statement
stringlengths
1
15.9k
proof
stringlengths
0
44.6k
type
stringclasses
18 values
symbolic_name
stringlengths
1
61
library
stringclasses
21 values
filename
stringclasses
502 values
imports
listlengths
0
38
deps
listlengths
0
64
docstring
stringlengths
0
500
source_url
stringclasses
1 value
commit
stringclasses
1 value
pow2_32: pow2 32 = 0x100000000
lemma
pow2_32
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_33: pow2 33 = 0x200000000
lemma
pow2_33
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_34: pow2 34 = 0x400000000
lemma
pow2_34
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_35: pow2 35 = 0x800000000
lemma
pow2_35
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_36: pow2 36 = 0x1000000000
lemma
pow2_36
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_37: pow2 37 = 0x2000000000
lemma
pow2_37
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_38: pow2 38 = 0x4000000000
lemma
pow2_38
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_39: pow2 39 = 0x8000000000
lemma
pow2_39
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_40: pow2 40 = 0x10000000000
lemma
pow2_40
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_41: pow2 41 = 0x20000000000
lemma
pow2_41
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_42: pow2 42 = 0x40000000000
lemma
pow2_42
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_43: pow2 43 = 0x80000000000
lemma
pow2_43
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_44: pow2 44 = 0x100000000000
lemma
pow2_44
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_45: pow2 45 = 0x200000000000
lemma
pow2_45
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_46: pow2 46 = 0x400000000000
lemma
pow2_46
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_47: pow2 47 = 0x800000000000
lemma
pow2_47
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_48: pow2 48 = 0x1000000000000
lemma
pow2_48
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_49: pow2 49 = 0x2000000000000
lemma
pow2_49
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_50: pow2 50 = 0x4000000000000
lemma
pow2_50
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_51: pow2 51 = 0x8000000000000
lemma
pow2_51
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_52: pow2 52 = 0x10000000000000
lemma
pow2_52
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_53: pow2 53 = 0x20000000000000
lemma
pow2_53
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_54: pow2 54 = 0x40000000000000
lemma
pow2_54
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_55: pow2 55 = 0x80000000000000
lemma
pow2_55
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_56: pow2 56 = 0x100000000000000
lemma
pow2_56
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_57: pow2 57 = 0x200000000000000
lemma
pow2_57
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_58: pow2 58 = 0x400000000000000
lemma
pow2_58
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_59: pow2 59 = 0x800000000000000
lemma
pow2_59
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_60: pow2 60 = 0x1000000000000000
lemma
pow2_60
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_61: pow2 61 = 0x2000000000000000
lemma
pow2_61
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_62: pow2 62 = 0x4000000000000000
lemma
pow2_62
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_63: pow2 63 = 0x8000000000000000
lemma
pow2_63
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
pow2_64: pow2 64 = 0x10000000000000000
lemma
pow2_64
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
size : int
constant
size
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "int" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
size_pos : size > 0
axiom
size_pos
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "size" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
nth t int : bool
val function
nth
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "int" ]
`nth b n` is the `n`-th bit of `b`. Bit 0 is the least significant bit
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
nth_out_of_bound: forall x n. n < 0 \/ n >= size -> nth x n = False
axiom
nth_out_of_bound
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "nth", "size" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
zeros : t
constant
zeros
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
Nth_zeros: forall n:int. nth zeros n = False
axiom
Nth_zeros
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "int", "nth", "zeros" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
ones : t
constant
ones
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
Nth_ones: forall n. 0 <= n < size -> nth ones n = True
axiom
Nth_ones
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "nth", "ones", "size" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
minus_one : t
constant
minus_one
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
min_sint : t
constant
min_sint
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
max_sint : t
constant
max_sint
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
max_uint : t
constant
max_uint
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
bw_and (v1 v2 : t) : t
val function
bw_and
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[]
/!\ NOTE : both bw_and and bw_or don't need guard on n because of nth out of bound axiom
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
Nth_bw_and: forall v1 v2:t, n:int. 0 <= n < size -> nth (bw_and v1 v2) n = andb (nth v1 n) (nth v2 n)
axiom
Nth_bw_and
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "andb", "bw_and", "int", "nth", "size" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
bw_or (v1 v2 : t) : t
val function
bw_or
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
Nth_bw_or: forall v1 v2:t, n:int. 0 <= n < size -> nth (bw_or v1 v2) n = orb (nth v1 n) (nth v2 n)
axiom
Nth_bw_or
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "bw_or", "int", "nth", "orb", "size" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
bw_xor (v1 v2 : t) : t
val function
bw_xor
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
Nth_bw_xor: forall v1 v2:t, n:int. 0 <= n < size -> nth (bw_xor v1 v2) n = xorb (nth v1 n) (nth v2 n)
axiom
Nth_bw_xor
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "bw_xor", "int", "nth", "size", "xorb" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
bw_not (v : t) : t
val function
bw_not
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
Nth_bw_not: forall v:t, n:int. 0 <= n < size -> nth (bw_not v) n = notb (nth v n)
axiom
Nth_bw_not
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "bw_not", "int", "notb", "nth", "size" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
lsr t int : t
val function
lsr
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "int" ]
Warning: shift operators of an amount greater than or equal to the size are specified here, in concordance with SMTLIB. This is not necessarily the case in hardware, where the amount of the shift might be taken modulo the size, eg. `lsr x 64` might be equal to `x`, whereas in this theory it is 0.
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
Lsr_nth_low: forall b:t,n s:int. 0 <= s -> 0 <= n -> n+s < size -> nth (lsr b s) n = nth b (n+s)
axiom
Lsr_nth_low
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "int", "lsr", "nth", "size" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
Lsr_nth_high: forall b:t,n s:int. 0 <= s -> 0 <= n -> n+s >= size -> nth (lsr b s) n = False
axiom
Lsr_nth_high
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "int", "lsr", "nth", "size" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
lsr_zeros: forall x. lsr x 0 = x
lemma
lsr_zeros
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "lsr" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
asr t int : t
val function
asr
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "int" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
Asr_nth_low: forall b:t,n s:int. 0 <= s -> 0 <= n < size -> n+s < size -> nth (asr b s) n = nth b (n+s)
axiom
Asr_nth_low
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "asr", "int", "nth", "size" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
Asr_nth_high: forall b:t,n s:int. 0 <= s -> 0 <= n < size -> n+s >= size -> nth (asr b s) n = nth b (size-1)
axiom
Asr_nth_high
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "asr", "int", "nth", "size" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
asr_zeros: forall x. asr x 0 = x
lemma
asr_zeros
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "asr" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
lsl t int : t
val function
lsl
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "int" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
Lsl_nth_high: forall b:t,n s:int. 0 <= s <= n < size -> nth (lsl b s) n = nth b (n-s)
axiom
Lsl_nth_high
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "int", "lsl", "nth", "size" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
Lsl_nth_low: forall b:t,n s:int. 0 <= n < s -> nth (lsl b s) n = False
axiom
Lsl_nth_low
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "int", "lsl", "nth" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
lsl_zeros: forall x. lsl x 0 = x
lemma
lsl_zeros
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "lsl" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
rotate_right t int : t
function
rotate_right
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "int" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
Nth_rotate_right : forall v n i. 0 <= i < size -> 0 <= n -> nth (rotate_right v n) i = nth v (mod (i + n) size)
axiom
Nth_rotate_right
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "mod", "nth", "rotate_right", "size" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
rotate_left t int : t
function
rotate_left
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "int" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
Nth_rotate_left : forall v n i. 0 <= i < size -> 0 <= n -> nth (rotate_left v n) i = nth v (mod (i - n) size)
axiom
Nth_rotate_left
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "mod", "nth", "rotate_left", "size" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
two_power_size : int
constant
two_power_size
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "int" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
two_power_sizem1 : int
constant
two_power_sizem1
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "int" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
max_int : int
constant
max_int
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "int" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
two_power_size_val : two_power_size = pow2 size
axiom
two_power_size_val
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2", "size", "two_power_size" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
two_power_sizem1_val : two_power_sizem1 = pow2 (size-1)
axiom
two_power_sizem1_val
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "pow2", "size", "two_power_sizem1" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
max_int_val : max_int = two_power_size - 1
axiom
max_int_val
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "max_int", "two_power_size" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
is_signed_positive t
predicate
is_signed_positive
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
to_uint t : int
function
to_uint
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "int" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
to_uint (x:t) : int ensures { result = to_uint x }
val
to_uint
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "int" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
of_int int : t
val function
of_int
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "int" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
to_int (x:t) : int
= if (is_signed_positive x) then (to_uint x) else (- (two_power_size - (to_uint x)))
function
to_int
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "int", "is_signed_positive", "to_uint", "two_power_size" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
to_int (x:t) : int ensures { result = to_int x }
val
to_int
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "int" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
to_uint_extensionality : forall v,v':t. to_uint v = to_uint v' -> v = v'
axiom
to_uint_extensionality
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "to_uint" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
to_int_extensionality: forall v,v':t. to_int v = to_int v' -> v = v'
axiom
to_int_extensionality
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "to_int" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
uint_in_range (i : int)
= (Int.(<=) 0 i) /\ (Int.(<=) i max_int)
predicate
uint_in_range
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "int", "max_int" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
to_uint_bounds : (* forall v:t. uint_in_range (to_uint v) *) forall v:t. 0 <= to_uint v < two_power_size
axiom
to_uint_bounds
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "to_uint", "two_power_size" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
to_uint_of_int : forall i. 0 <= i < two_power_size -> to_uint (of_int i) = i
axiom
to_uint_of_int
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "of_int", "to_uint", "two_power_size" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
to_int_bounds : forall v:t. - two_power_sizem1 <= to_int v < two_power_sizem1
axiom
to_int_bounds
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "to_int", "two_power_sizem1" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
to_int_of_int : forall i. - two_power_sizem1 <= i < two_power_sizem1 -> to_int (of_int i) = i
axiom
to_int_of_int
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "of_int", "to_int", "two_power_sizem1" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
size_bv : t
constant
size_bv
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
to_uint_size_bv : to_uint size_bv = size
axiom
to_uint_size_bv
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "size", "size_bv", "to_uint" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
to_uint_zeros : to_uint zeros = 0
axiom
to_uint_zeros
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "to_uint", "zeros" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
to_uint_ones : to_uint ones = max_int
axiom
to_uint_ones
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "max_int", "ones", "to_uint" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
to_uint_one : to_uint one = 1
axiom
to_uint_one
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "one", "to_uint" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
to_int_minus_one: to_int minus_one = -1
axiom
to_int_minus_one
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "minus_one", "to_int" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
to_int_min_sint : to_int min_sint = - two_power_sizem1
axiom
to_int_min_sint
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "min_sint", "to_int", "two_power_sizem1" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
to_int_max_sint : to_int max_sint = two_power_sizem1 - 1
axiom
to_int_max_sint
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "max_sint", "to_int", "two_power_sizem1" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
to_uint_max_uint: to_uint max_uint = two_power_size - 1
axiom
to_uint_max_uint
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "max_uint", "to_uint", "two_power_size" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
ult (x y : t)
= Int.(<) (to_uint x) (to_uint y)
let predicate
ult
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "to_uint" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
ult_wf : well_founded ult
lemma
ult_wf
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "ult" ]
note : the following must be a lemma so that it is cloned in the instances
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784
ule (x y : t)
= Int.(<=) (to_uint x) (to_uint y)
let predicate
ule
stdlib
stdlib/bv.mlw
[ "BV128", "BV16", "BV256", "BV32", "BV64", "BV8", "BVConverter_Gen", "BV_Gen", "Pow2int", "bool.Bool", "int.ComputerDivision", "int.EuclideanDivision", "int.Int", "why3.WellFounded.WellFounded" ]
[ "to_uint" ]
https://gitlab.inria.fr/why3/why3
7c59064b4eed9a4059292599f3a657716aa34784