From Stdlib Require Import Strings.String.
From Stdlib Require Import String Ascii.
From Stdlib Require Arith.
From stdpp Require Import base.
From stdpp Require Import fin_maps.
From stdpp Require Import gmap.
From stdpp Require Import base gmultiset.
From Stdlib Require Classical.
From Stdlib Require Import ZArith.
From stdpp.bitvector Require Import definitions tactics.
From Stdlib Require Import Sorting.Sorted.
From Stdlib Require Import Reals.Rbasic_fun.
From Stdlib Require Import Reals.Abstract.ConstructiveAbs.
From Stdlib Require Import Reals.Rdefinitions.
From stdpp Require Import list_relations.
From stdpp Require Import list_numbers.
From stdpp Require Import functions.
From Stdlib Require Import ClassicalEpsilon.
From stdpp Require Import base decidable.
From Stdlib Require Import ZArith.Zeuclid.
From Stdlib Require Import ZArith.Znumtheory.
From stdpp Require Import propset.
From Stdlib Require Import Reals.
Require Import Why3.Base.
Require Import Why3.why3.Ref.Ref.
Require Import Why3.map.Const.
Require Import Why3.map.MapEq.
Require Import Why3.mach.int.Unsigned.
Require Import Why3.mach.c.C.
Require Import multiprecision.types.Config.
Require Import multiprecision.types.Types.
Require Import multiprecision.types.Int32Eq.
Require Import multiprecision.types.UInt64Eq.
Open Scope Z_scope.
Definition map_eq_sub_shift {α : Type} `{Inhabited α} (x : Z -> α) (y : Z -> α) (xi : Z) (yi : Z) (sz : Z) := ∀(i : Z), 0%Z ≤ i ∧ i < sz -> x (xi + i) = y (yi + i).
Axiom value_sub : (Z -> bv 64%N) -> Z -> Z -> Z.
Axiom value_sub'def : forall  (n : Z) (m : Z) (x : Z -> bv 64%N), if decide (n < m) then value_sub x n m = bv_unsigned (x n) + (18446744073709551615%Z + 1%Z) * value_sub x (n + 1%Z) m else value_sub x n m = 0%Z.
Lemma value_sub_update'vc (n : Z) (i : Z) (m : Z) (x : Z -> bv 64%N) (v : bv 64%N) (fact0 : n ≤ i) (fact1 : i < m) : value_sub (fun_updt x i v) n m = value_sub x n m + Z.pow (18446744073709551615%Z + 1%Z) (i - n) * (bv_unsigned v - bv_unsigned (x i)).
Admitted.
