file_name
stringlengths
5
52
name
stringlengths
4
95
original_source_type
stringlengths
0
23k
source_type
stringlengths
9
23k
source_definition
stringlengths
9
57.9k
source
dict
source_range
dict
file_context
stringlengths
0
721k
dependencies
dict
opens_and_abbrevs
listlengths
2
94
vconfig
dict
interleaved
bool
1 class
verbose_type
stringlengths
1
7.42k
effect
stringclasses
118 values
effect_flags
listlengths
0
2
mutual_with
listlengths
0
11
ideal_premises
listlengths
0
236
proof_features
listlengths
0
1
is_simple_lemma
bool
2 classes
is_div
bool
2 classes
is_proof
bool
2 classes
is_simply_typed
bool
2 classes
is_type
bool
2 classes
partial_definition
stringlengths
5
3.99k
completed_definiton
stringlengths
1
1.63M
isa_cross_project_example
bool
1 class
FStar.UInt.fst
FStar.UInt.from_vec_aux
val from_vec_aux: #n:nat -> a:bv_t n -> s1:nat{s1 < n} -> s2:nat{s2 < s1} -> Lemma (requires True) (ensures (from_vec #s2 (slice a 0 s2)) * pow2 (n - s2) + (from_vec #(s1 - s2) (slice a s2 s1)) * pow2 (n - s1) + (from_vec #(n - s1) (slice a s1 n)) = ((from_vec #s2 (slice a 0 s2)) * pow2 (s1 - s2) + (from_vec ...
val from_vec_aux: #n:nat -> a:bv_t n -> s1:nat{s1 < n} -> s2:nat{s2 < s1} -> Lemma (requires True) (ensures (from_vec #s2 (slice a 0 s2)) * pow2 (n - s2) + (from_vec #(s1 - s2) (slice a s2 s1)) * pow2 (n - s1) + (from_vec #(n - s1) (slice a s1 n)) = ((from_vec #s2 (slice a 0 s2)) * pow2 (s1 - s2) + (from_vec ...
let from_vec_aux #n a s1 s2 = paren_mul_left (from_vec #s2 (slice a 0 s2)) (pow2 (s1 - s2)) (pow2 (n - s1)); paren_mul_right (from_vec #s2 (slice a 0 s2)) (pow2 (s1 - s2)) (pow2 (n - s1)); pow2_plus (s1 - s2) (n - s1)
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 30, "end_line": 94, "start_col": 0, "start_line": 91 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.BitVector.bv_t n -> s1: Prims.nat{s1 < n} -> s2: Prims.nat{s2 < s1} -> FStar.Pervasives.Lemma (ensures FStar.UInt.from_vec (FStar.Seq.Base.slice a 0 s2) * Prims.pow2 (n - s2) + FStar.UInt.from_vec (FStar.Seq.Base.slice a s2 s1) * Prims.pow2 (n - s1) + FStar.UInt.from_vec (FStar.Seq.Base...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "FStar.BitVector.bv_t", "Prims.b2t", "Prims.op_LessThan", "FStar.Math.Lemmas.pow2_plus", "Prims.op_Subtraction", "Prims.unit", "FStar.Math.Lemmas.paren_mul_right", "FStar.UInt.from_vec", "FStar.Seq.Base.slice", "Prims.bool", "Prims.pow2", "FStar.Math.Lemmas.paren_mul_left" ]
[]
true
false
true
false
false
let from_vec_aux #n a s1 s2 =
paren_mul_left (from_vec #s2 (slice a 0 s2)) (pow2 (s1 - s2)) (pow2 (n - s1)); paren_mul_right (from_vec #s2 (slice a 0 s2)) (pow2 (s1 - s2)) (pow2 (n - s1)); pow2_plus (s1 - s2) (n - s1)
false
FStar.UInt.fst
FStar.UInt.inverse_aux
val inverse_aux: #n:nat -> vec:bv_t n -> i:nat{i < n} -> Lemma (requires True) (ensures index vec i = index (to_vec (from_vec vec)) i) [SMTPat (index (to_vec (from_vec vec)) i)]
val inverse_aux: #n:nat -> vec:bv_t n -> i:nat{i < n} -> Lemma (requires True) (ensures index vec i = index (to_vec (from_vec vec)) i) [SMTPat (index (to_vec (from_vec vec)) i)]
let rec inverse_aux #n vec i = if i = n - 1 then assert((from_vec vec) % 2 = (if index vec (n - 1) then 1 else 0)) else inverse_aux #(n - 1) (slice vec 0 (n - 1)) i
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 51, "end_line": 80, "start_col": 0, "start_line": 77 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
vec: FStar.BitVector.bv_t n -> i: Prims.nat{i < n} -> FStar.Pervasives.Lemma (ensures FStar.Seq.Base.index vec i = FStar.Seq.Base.index (FStar.UInt.to_vec (FStar.UInt.from_vec vec)) i) [SMTPat (FStar.Seq.Base.index (FStar.UInt.to_vec (FStar.UInt.from_vec vec)) i)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "FStar.BitVector.bv_t", "Prims.b2t", "Prims.op_LessThan", "Prims.op_Equality", "Prims.int", "Prims.op_Subtraction", "Prims._assert", "Prims.op_Modulus", "FStar.UInt.from_vec", "FStar.Seq.Base.index", "Prims.bool", "FStar.UInt.inverse_aux", "FStar.Seq.Base.slice", "Prims.unit...
[ "recursion" ]
false
false
true
false
false
let rec inverse_aux #n vec i =
if i = n - 1 then assert ((from_vec vec) % 2 = (if index vec (n - 1) then 1 else 0)) else inverse_aux #(n - 1) (slice vec 0 (n - 1)) i
false
FStar.UInt.fst
FStar.UInt.append_lemma
val append_lemma: #n:pos -> #m:pos -> a:bv_t n -> b:bv_t m -> Lemma (from_vec #(n + m) (append a b) = (from_vec #n a) * pow2 m + (from_vec #m b))
val append_lemma: #n:pos -> #m:pos -> a:bv_t n -> b:bv_t m -> Lemma (from_vec #(n + m) (append a b) = (from_vec #n a) * pow2 m + (from_vec #m b))
let append_lemma #n #m a b = assert(equal a (slice (append a b) 0 n)); assert(equal b (slice (append a b) n (n + m))); from_vec_propriety #(n + m) (append a b) n
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 44, "end_line": 116, "start_col": 0, "start_line": 113 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.BitVector.bv_t n -> b: FStar.BitVector.bv_t m -> FStar.Pervasives.Lemma (ensures FStar.UInt.from_vec (FStar.Seq.Base.append a b) = FStar.UInt.from_vec a * Prims.pow2 m + FStar.UInt.from_vec b)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.BitVector.bv_t", "FStar.UInt.from_vec_propriety", "Prims.op_Addition", "FStar.Seq.Base.append", "Prims.bool", "Prims.unit", "Prims._assert", "FStar.Seq.Base.equal", "FStar.Seq.Base.slice" ]
[]
true
false
true
false
false
let append_lemma #n #m a b =
assert (equal a (slice (append a b) 0 n)); assert (equal b (slice (append a b) n (n + m))); from_vec_propriety #(n + m) (append a b) n
false
FStar.UInt.fst
FStar.UInt.one_to_vec_lemma
val one_to_vec_lemma: #n:pos -> i:nat{i < n} -> Lemma (requires True) (ensures index (to_vec (one n)) i = index (elem_vec #n (n - 1)) i) [SMTPat (index (to_vec (one n)) i)]
val one_to_vec_lemma: #n:pos -> i:nat{i < n} -> Lemma (requires True) (ensures index (to_vec (one n)) i = index (elem_vec #n (n - 1)) i) [SMTPat (index (to_vec (one n)) i)]
let one_to_vec_lemma #n i = if i = n - 1 then () else zero_to_vec_lemma #n i
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 50, "end_line": 134, "start_col": 0, "start_line": 133 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: Prims.nat{i < n} -> FStar.Pervasives.Lemma (ensures FStar.Seq.Base.index (FStar.UInt.to_vec (FStar.UInt.one n)) i = FStar.Seq.Base.index (FStar.BitVector.elem_vec (n - 1)) i) [SMTPat (FStar.Seq.Base.index (FStar.UInt.to_vec (FStar.UInt.one n)) i)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.op_Equality", "Prims.int", "Prims.op_Subtraction", "Prims.bool", "FStar.UInt.zero_to_vec_lemma", "Prims.unit" ]
[]
false
false
true
false
false
let one_to_vec_lemma #n i =
if i = n - 1 then () else zero_to_vec_lemma #n i
false
Steel.ST.Array.fst
Steel.ST.Array.ghost_split
val ghost_split (#opened: _) (#elt: Type) (#x: Seq.seq elt) (#p: P.perm) (a: array elt) (i: US.t) : STGhost (squash (US.v i <= length a /\ US.v i <= Seq.length x)) opened (pts_to a p x) (fun res -> pts_to (split_l a i) p (Seq.slice x 0 (US.v i)) `star` pts_to (split_r a i) p (Seq.slice x...
val ghost_split (#opened: _) (#elt: Type) (#x: Seq.seq elt) (#p: P.perm) (a: array elt) (i: US.t) : STGhost (squash (US.v i <= length a /\ US.v i <= Seq.length x)) opened (pts_to a p x) (fun res -> pts_to (split_l a i) p (Seq.slice x 0 (US.v i)) `star` pts_to (split_r a i) p (Seq.slice x...
let ghost_split #_ #_ #x #p a i = rewrite (pts_to a _ _) (H.pts_to a p (seq_map raise x)); let _ = H.ghost_split a i in //H.ghost_split a i; assert (seq_map raise (Seq.slice x 0 (US.v i)) `Seq.equal` Seq.slice (seq_map raise x) 0 (US.v i)); rewrite (H.pts_to (H.split_l a i) _ _) (H.pts_to (s...
{ "file_name": "lib/steel/Steel.ST.Array.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 30, "end_line": 228, "start_col": 0, "start_line": 206 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Reference.fsti.checked", "Steel.ST.Loops.fsti.checked", "Steel.ST.HigherArray.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.che...
[ { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Steel.ST.Array.array elt -> i: FStar.SizeT.t -> Steel.ST.Effect.Ghost.STGhost (Prims.squash (FStar.SizeT.v i <= Steel.ST.Array.length a /\ FStar.SizeT.v i <= FStar.Seq.Base.length x))
Steel.ST.Effect.Ghost.STGhost
[]
[]
[ "Steel.Memory.inames", "FStar.Seq.Base.seq", "Steel.FractionalPermission.perm", "Steel.ST.Array.array", "FStar.SizeT.t", "Steel.ST.Util.rewrite", "Steel.ST.HigherArray.pts_to", "Steel.ST.Array.raise_t", "Steel.ST.Array.split_r", "Steel.ST.Array.seq_map", "Steel.ST.Array.raise", "FStar.Seq.Base...
[]
false
true
true
false
false
let ghost_split #_ #_ #x #p a i =
rewrite (pts_to a _ _) (H.pts_to a p (seq_map raise x)); let _ = H.ghost_split a i in assert ((seq_map raise (Seq.slice x 0 (US.v i))) `Seq.equal` (Seq.slice (seq_map raise x) 0 (US.v i))); rewrite (H.pts_to (H.split_l a i) _ _) (H.pts_to (split_l a i) p (seq_map raise (Seq.slice x 0 (US.v i)))); rewrite (H.p...
false
FStar.UInt.fst
FStar.UInt.slice_right_lemma
val slice_right_lemma: #n:pos -> a:bv_t n -> s:pos{s < n} -> Lemma (requires True) (ensures from_vec #s (slice a (n - s) n) = (from_vec #n a) % (pow2 s))
val slice_right_lemma: #n:pos -> a:bv_t n -> s:pos{s < n} -> Lemma (requires True) (ensures from_vec #s (slice a (n - s) n) = (from_vec #n a) % (pow2 s))
let slice_right_lemma #n a s = from_vec_propriety #n a (n - s); modulo_addition_lemma (from_vec #s (slice a (n - s) n)) (pow2 s) (from_vec #(n - s) (slice a 0 (n - s))); small_modulo_lemma_1 (from_vec #s (slice a (n - s) n)) (pow2 s)
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 65, "end_line": 126, "start_col": 0, "start_line": 123 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.BitVector.bv_t n -> s: Prims.pos{s < n} -> FStar.Pervasives.Lemma (ensures FStar.UInt.from_vec (FStar.Seq.Base.slice a (n - s) n) = FStar.UInt.from_vec a % Prims.pow2 s)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.BitVector.bv_t", "Prims.b2t", "Prims.op_LessThan", "FStar.Math.Lemmas.small_modulo_lemma_1", "FStar.UInt.from_vec", "FStar.Seq.Base.slice", "Prims.bool", "Prims.op_Subtraction", "Prims.pow2", "Prims.unit", "FStar.Math.Lemmas.modulo_addition_lemma", "FStar.UInt.from_vec_pr...
[]
true
false
true
false
false
let slice_right_lemma #n a s =
from_vec_propriety #n a (n - s); modulo_addition_lemma (from_vec #s (slice a (n - s) n)) (pow2 s) (from_vec #(n - s) (slice a 0 (n - s))); small_modulo_lemma_1 (from_vec #s (slice a (n - s) n)) (pow2 s)
false
FStar.UInt.fst
FStar.UInt.zero_from_vec_lemma
val zero_from_vec_lemma: #n:pos -> Lemma (requires True) (ensures from_vec (zero_vec #n) = zero n) [SMTPat (from_vec (zero_vec #n))]
val zero_from_vec_lemma: #n:pos -> Lemma (requires True) (ensures from_vec (zero_vec #n) = zero n) [SMTPat (from_vec (zero_vec #n))]
let zero_from_vec_lemma #n = to_vec_lemma_2 (from_vec (zero_vec #n)) (zero n)
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 77, "end_line": 131, "start_col": 0, "start_line": 131 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
FStar.Pervasives.Lemma (ensures FStar.UInt.from_vec FStar.BitVector.zero_vec = FStar.UInt.zero n) [SMTPat (FStar.UInt.from_vec FStar.BitVector.zero_vec)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.to_vec_lemma_2", "FStar.UInt.from_vec", "FStar.BitVector.zero_vec", "FStar.UInt.zero", "Prims.unit" ]
[]
true
false
true
false
false
let zero_from_vec_lemma #n =
to_vec_lemma_2 (from_vec (zero_vec #n)) (zero n)
false
FStar.UInt.fst
FStar.UInt.zero_to_vec_lemma
val zero_to_vec_lemma: #n:pos -> i:nat{i < n} -> Lemma (requires True) (ensures index (to_vec (zero n)) i = index (zero_vec #n) i) [SMTPat (index (to_vec (zero n)) i)]
val zero_to_vec_lemma: #n:pos -> i:nat{i < n} -> Lemma (requires True) (ensures index (to_vec (zero n)) i = index (zero_vec #n) i) [SMTPat (index (to_vec (zero n)) i)]
let rec zero_to_vec_lemma #n i = if i = n - 1 then () else zero_to_vec_lemma #(n - 1) i
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 56, "end_line": 129, "start_col": 0, "start_line": 128 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: Prims.nat{i < n} -> FStar.Pervasives.Lemma (ensures FStar.Seq.Base.index (FStar.UInt.to_vec (FStar.UInt.zero n)) i = FStar.Seq.Base.index FStar.BitVector.zero_vec i) [SMTPat (FStar.Seq.Base.index (FStar.UInt.to_vec (FStar.UInt.zero n)) i)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.op_Equality", "Prims.int", "Prims.op_Subtraction", "Prims.bool", "FStar.UInt.zero_to_vec_lemma", "Prims.unit" ]
[ "recursion" ]
false
false
true
false
false
let rec zero_to_vec_lemma #n i =
if i = n - 1 then () else zero_to_vec_lemma #(n - 1) i
false
FStar.UInt.fst
FStar.UInt.slice_left_lemma
val slice_left_lemma: #n:pos -> a:bv_t n -> s:pos{s < n} -> Lemma (requires True) (ensures from_vec #s (slice a 0 s) = (from_vec #n a) / (pow2 (n - s)))
val slice_left_lemma: #n:pos -> a:bv_t n -> s:pos{s < n} -> Lemma (requires True) (ensures from_vec #s (slice a 0 s) = (from_vec #n a) / (pow2 (n - s)))
let slice_left_lemma #n a s = from_vec_propriety #n a s; division_addition_lemma (from_vec #(n - s) (slice a s n)) (pow2 (n - s)) (from_vec #s (slice a 0 s)); small_division_lemma_1 (from_vec #(n - s) (slice a s n)) (pow2 (n - s))
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 73, "end_line": 121, "start_col": 0, "start_line": 118 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.BitVector.bv_t n -> s: Prims.pos{s < n} -> FStar.Pervasives.Lemma (ensures FStar.UInt.from_vec (FStar.Seq.Base.slice a 0 s) = FStar.UInt.from_vec a / Prims.pow2 (n - s))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.BitVector.bv_t", "Prims.b2t", "Prims.op_LessThan", "FStar.Math.Lemmas.small_division_lemma_1", "FStar.UInt.from_vec", "Prims.op_Subtraction", "FStar.Seq.Base.slice", "Prims.bool", "Prims.pow2", "Prims.unit", "FStar.Math.Lemmas.division_addition_lemma", "FStar.UInt.from_ve...
[]
true
false
true
false
false
let slice_left_lemma #n a s =
from_vec_propriety #n a s; division_addition_lemma (from_vec #(n - s) (slice a s n)) (pow2 (n - s)) (from_vec #s (slice a 0 s)); small_division_lemma_1 (from_vec #(n - s) (slice a s n)) (pow2 (n - s))
false
FStar.UInt.fst
FStar.UInt.pow2_to_vec_lemma
val pow2_to_vec_lemma: #n:pos -> p:nat{p < n} -> i:nat{i < n} -> Lemma (requires True) (ensures index (to_vec (pow2_n #n p)) i = index (elem_vec #n (n - p - 1)) i) [SMTPat (index (to_vec (pow2_n #n p)) i)]
val pow2_to_vec_lemma: #n:pos -> p:nat{p < n} -> i:nat{i < n} -> Lemma (requires True) (ensures index (to_vec (pow2_n #n p)) i = index (elem_vec #n (n - p - 1)) i) [SMTPat (index (to_vec (pow2_n #n p)) i)]
let rec pow2_to_vec_lemma #n p i = if i = n - 1 then () else if p = 0 then one_to_vec_lemma #n i else pow2_to_vec_lemma #(n - 1) (p - 1) i
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 43, "end_line": 139, "start_col": 0, "start_line": 136 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Prims.nat{p < n} -> i: Prims.nat{i < n} -> FStar.Pervasives.Lemma (ensures FStar.Seq.Base.index (FStar.UInt.to_vec (FStar.UInt.pow2_n p)) i = FStar.Seq.Base.index (FStar.BitVector.elem_vec (n - p - 1)) i) [SMTPat (FStar.Seq.Base.index (FStar.UInt.to_vec (FStar.UInt.pow2_n p)) i)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.op_Equality", "Prims.int", "Prims.op_Subtraction", "Prims.bool", "FStar.UInt.one_to_vec_lemma", "FStar.UInt.pow2_to_vec_lemma", "Prims.unit" ]
[ "recursion" ]
false
false
true
false
false
let rec pow2_to_vec_lemma #n p i =
if i = n - 1 then () else if p = 0 then one_to_vec_lemma #n i else pow2_to_vec_lemma #(n - 1) (p - 1) i
false
FStar.UInt.fst
FStar.UInt.pow2_from_vec_lemma
val pow2_from_vec_lemma: #n:pos -> p:nat{p < n} -> Lemma (requires True) (ensures from_vec (elem_vec #n p) = pow2_n #n (n - p - 1)) [SMTPat (from_vec (elem_vec #n p))]
val pow2_from_vec_lemma: #n:pos -> p:nat{p < n} -> Lemma (requires True) (ensures from_vec (elem_vec #n p) = pow2_n #n (n - p - 1)) [SMTPat (from_vec (elem_vec #n p))]
let pow2_from_vec_lemma #n p = to_vec_lemma_2 (from_vec (elem_vec #n p)) (pow2_n #n (n - p - 1))
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 67, "end_line": 142, "start_col": 0, "start_line": 141 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Prims.nat{p < n} -> FStar.Pervasives.Lemma (ensures FStar.UInt.from_vec (FStar.BitVector.elem_vec p) = FStar.UInt.pow2_n (n - p - 1)) [SMTPat (FStar.UInt.from_vec (FStar.BitVector.elem_vec p))]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "FStar.UInt.to_vec_lemma_2", "FStar.UInt.from_vec", "FStar.BitVector.elem_vec", "FStar.UInt.pow2_n", "Prims.op_Subtraction", "Prims.unit" ]
[]
true
false
true
false
false
let pow2_from_vec_lemma #n p =
to_vec_lemma_2 (from_vec (elem_vec #n p)) (pow2_n #n (n - p - 1))
false
FStar.UInt.fst
FStar.UInt.nth_lemma
val nth_lemma: #n:pos -> a:uint_t n -> b:uint_t n -> Lemma (requires forall (i:nat{i < n}). nth a i = nth b i) (ensures a = b)
val nth_lemma: #n:pos -> a:uint_t n -> b:uint_t n -> Lemma (requires forall (i:nat{i < n}). nth a i = nth b i) (ensures a = b)
let nth_lemma #n a b = assert(forall (i:nat{i < n}). index (to_vec #n a) i = index (to_vec #n b) i); to_vec_lemma_2 a b
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 20, "end_line": 152, "start_col": 0, "start_line": 150 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> b: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (requires forall (i: Prims.nat{i < n}). FStar.UInt.nth a i = FStar.UInt.nth b i) (ensures a = b)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.to_vec_lemma_2", "Prims.unit", "Prims._assert", "Prims.l_Forall", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.op_Equality", "Prims.bool", "FStar.Seq.Base.index", "FStar.UInt.to_vec" ]
[]
false
false
true
false
false
let nth_lemma #n a b =
assert (forall (i: nat{i < n}). index (to_vec #n a) i = index (to_vec #n b) i); to_vec_lemma_2 a b
false
FStar.UInt.fst
FStar.UInt.ones_from_vec_lemma
val ones_from_vec_lemma: #n:pos -> Lemma (requires True) (ensures from_vec (ones_vec #n) = ones n) [SMTPat (from_vec (ones_vec #n))]
val ones_from_vec_lemma: #n:pos -> Lemma (requires True) (ensures from_vec (ones_vec #n) = ones n) [SMTPat (from_vec (ones_vec #n))]
let ones_from_vec_lemma #n = to_vec_lemma_2 (from_vec (ones_vec #n)) (ones n)
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 50, "end_line": 148, "start_col": 0, "start_line": 147 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
FStar.Pervasives.Lemma (ensures FStar.UInt.from_vec FStar.BitVector.ones_vec = FStar.UInt.ones n) [SMTPat (FStar.UInt.from_vec FStar.BitVector.ones_vec)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.to_vec_lemma_2", "FStar.UInt.from_vec", "FStar.BitVector.ones_vec", "FStar.UInt.ones", "Prims.unit" ]
[]
true
false
true
false
false
let ones_from_vec_lemma #n =
to_vec_lemma_2 (from_vec (ones_vec #n)) (ones n)
false
FStar.UInt.fst
FStar.UInt.ones_to_vec_lemma
val ones_to_vec_lemma: #n:pos -> i:nat{i < n} -> Lemma (requires True) (ensures index (to_vec (ones n)) i = index (ones_vec #n) i) [SMTPat (index (to_vec (ones n)) i)]
val ones_to_vec_lemma: #n:pos -> i:nat{i < n} -> Lemma (requires True) (ensures index (to_vec (ones n)) i = index (ones_vec #n) i) [SMTPat (index (to_vec (ones n)) i)]
let rec ones_to_vec_lemma #n i = if i = n - 1 then () else ones_to_vec_lemma #(n - 1) i
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 56, "end_line": 145, "start_col": 0, "start_line": 144 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: Prims.nat{i < n} -> FStar.Pervasives.Lemma (ensures FStar.Seq.Base.index (FStar.UInt.to_vec (FStar.UInt.ones n)) i = FStar.Seq.Base.index FStar.BitVector.ones_vec i) [SMTPat (FStar.Seq.Base.index (FStar.UInt.to_vec (FStar.UInt.ones n)) i)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.op_Equality", "Prims.int", "Prims.op_Subtraction", "Prims.bool", "FStar.UInt.ones_to_vec_lemma", "Prims.unit" ]
[ "recursion" ]
false
false
true
false
false
let rec ones_to_vec_lemma #n i =
if i = n - 1 then () else ones_to_vec_lemma #(n - 1) i
false
FStar.UInt.fst
FStar.UInt.from_vec_propriety
val from_vec_propriety: #n:pos -> a:bv_t n -> s:nat{s < n} -> Lemma (requires True) (ensures from_vec a = (from_vec #s (slice a 0 s)) * pow2 (n - s) + from_vec #(n - s) (slice a s n)) (decreases (n - s))
val from_vec_propriety: #n:pos -> a:bv_t n -> s:nat{s < n} -> Lemma (requires True) (ensures from_vec a = (from_vec #s (slice a 0 s)) * pow2 (n - s) + from_vec #(n - s) (slice a s n)) (decreases (n - s))
let rec from_vec_propriety #n a s = if s = n - 1 then () else begin from_vec_propriety #n a (s + 1); from_vec_propriety #(s + 1) (slice a 0 (s + 1)) s; seq_slice_lemma #n a 0 (s + 1) 0 s; seq_slice_lemma #n a 0 (s + 1) s (s + 1); from_vec_aux #n a (s + 1) s; from_vec_propriety #(n - s) (slice ...
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 110, "start_col": 0, "start_line": 100 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.BitVector.bv_t n -> s: Prims.nat{s < n} -> FStar.Pervasives.Lemma (ensures FStar.UInt.from_vec a = FStar.UInt.from_vec (FStar.Seq.Base.slice a 0 s) * Prims.pow2 (n - s) + FStar.UInt.from_vec (FStar.Seq.Base.slice a s n)) (decreases n - s)
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.pos", "FStar.BitVector.bv_t", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.op_Equality", "Prims.int", "Prims.op_Subtraction", "Prims.bool", "FStar.UInt.seq_slice_lemma", "Prims.unit", "FStar.UInt.from_vec_propriety", "FStar.Seq.Base.slice", "FStar.UInt.from_vec_aux", "Pri...
[ "recursion" ]
false
false
true
false
false
let rec from_vec_propriety #n a s =
if s = n - 1 then () else (from_vec_propriety #n a (s + 1); from_vec_propriety #(s + 1) (slice a 0 (s + 1)) s; seq_slice_lemma #n a 0 (s + 1) 0 s; seq_slice_lemma #n a 0 (s + 1) s (s + 1); from_vec_aux #n a (s + 1) s; from_vec_propriety #(n - s) (slice a s n) 1; seq_slice_lemma #n a s n 0 1; ...
false
Steel.ST.SeqMatch.fst
Steel.ST.SeqMatch.seq_list_match_nil
val seq_list_match_nil (#opened: _) (#t #t': Type) (c: Seq.seq t) (v: list t') (item_match: (t -> v': t'{v' << v} -> vprop)) : STGhost unit opened emp (fun _ -> seq_list_match c v item_match) (c `Seq.equal` Seq.empty /\ Nil? v) (fun _ -> True)
val seq_list_match_nil (#opened: _) (#t #t': Type) (c: Seq.seq t) (v: list t') (item_match: (t -> v': t'{v' << v} -> vprop)) : STGhost unit opened emp (fun _ -> seq_list_match c v item_match) (c `Seq.equal` Seq.empty /\ Nil? v) (fun _ -> True)
let seq_list_match_nil (#opened: _) (#t #t': Type) (c: Seq.seq t) (v: list t') (item_match: (t -> (v': t' { v' << v }) -> vprop)) : STGhost unit opened emp (fun _ -> seq_list_match c v item_match) (c `Seq.equal` Seq.empty /\ Nil? v) (fun _ -> True) = noop (); rewrite (seq_list_matc...
{ "file_name": "lib/steel/Steel.ST.SeqMatch.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 35, "end_line": 78, "start_col": 0, "start_line": 63 }
module Steel.ST.SeqMatch include Steel.ST.OnRange open Steel.ST.GenElim module Seq = FStar.Seq module SZ = FStar.SizeT (* `seq_list_match` describes how to match a sequence of low-level values (the low-level contents of an array) with a list of high-level values. `seq_list_match` is carefully designed to be usable wi...
{ "checked_file": "/", "dependencies": [ "Steel.ST.OnRange.fsti.checked", "Steel.ST.GenElim.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "SZ" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "Steel.ST.GenElim", "short_module": null }, { "abbrev": false, "full_module": "Stee...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
c: FStar.Seq.Base.seq t -> v: Prims.list t' -> item_match: (_: t -> v': t'{v' << v} -> Steel.Effect.Common.vprop) -> Steel.ST.Effect.Ghost.STGhost Prims.unit
Steel.ST.Effect.Ghost.STGhost
[]
[]
[ "Steel.Memory.inames", "FStar.Seq.Base.seq", "Prims.list", "Prims.precedes", "Steel.Effect.Common.vprop", "Steel.ST.Util.rewrite", "Steel.ST.SeqMatch.seq_list_match_nil0", "Steel.ST.SeqMatch.seq_list_match", "Prims.unit", "Steel.ST.Util.noop", "Steel.Effect.Common.emp", "Prims.l_and", "FStar...
[]
false
true
false
false
false
let seq_list_match_nil (#opened: _) (#t #t': Type) (c: Seq.seq t) (v: list t') (item_match: (t -> v': t'{v' << v} -> vprop)) : STGhost unit opened emp (fun _ -> seq_list_match c v item_match) (c `Seq.equal` Seq.empty /\ Nil? v) (fun _ -> True) =
noop (); rewrite (seq_list_match_nil0 c) (seq_list_match c v item_match)
false
FStar.UInt.fst
FStar.UInt.logand_commutative
val logand_commutative: #n:pos -> a:uint_t n -> b:uint_t n -> Lemma (requires True) (ensures (logand #n a b = logand #n b a))
val logand_commutative: #n:pos -> a:uint_t n -> b:uint_t n -> Lemma (requires True) (ensures (logand #n a b = logand #n b a))
let logand_commutative #n a b = nth_lemma #n (logand #n a b) (logand #n b a)
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 76, "end_line": 170, "start_col": 0, "start_line": 170 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> b: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.logand a b = FStar.UInt.logand b a)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.nth_lemma", "FStar.UInt.logand", "Prims.unit" ]
[]
true
false
true
false
false
let logand_commutative #n a b =
nth_lemma #n (logand #n a b) (logand #n b a)
false
FStar.UInt.fst
FStar.UInt.logand_associative
val logand_associative: #n:pos -> a:uint_t n -> b:uint_t n -> c:uint_t n -> Lemma (requires True) (ensures (logand #n (logand #n a b) c = logand #n a (logand #n b c)))
val logand_associative: #n:pos -> a:uint_t n -> b:uint_t n -> c:uint_t n -> Lemma (requires True) (ensures (logand #n (logand #n a b) c = logand #n a (logand #n b c)))
let logand_associative #n a b c = nth_lemma #n (logand #n (logand #n a b) c) (logand #n a (logand #n b c))
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 106, "end_line": 172, "start_col": 0, "start_line": 172 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> b: FStar.UInt.uint_t n -> c: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.logand (FStar.UInt.logand a b) c = FStar.UInt.logand a (FStar.UInt.logand b c))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.nth_lemma", "FStar.UInt.logand", "Prims.unit" ]
[]
true
false
true
false
false
let logand_associative #n a b c =
nth_lemma #n (logand #n (logand #n a b) c) (logand #n a (logand #n b c))
false
FStar.UInt.fst
FStar.UInt.logand_self
val logand_self: #n:pos -> a:uint_t n -> Lemma (requires True) (ensures (logand #n a a = a))
val logand_self: #n:pos -> a:uint_t n -> Lemma (requires True) (ensures (logand #n a a = a))
let logand_self #n a = nth_lemma #n (logand #n a a) a
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 53, "end_line": 174, "start_col": 0, "start_line": 174 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.logand a a = a)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.nth_lemma", "FStar.UInt.logand", "Prims.unit" ]
[]
true
false
true
false
false
let logand_self #n a =
nth_lemma #n (logand #n a a) a
false
FStar.UInt.fst
FStar.UInt.logand_lemma_1
val logand_lemma_1: #n:pos -> a:uint_t n -> Lemma (requires True) (ensures (logand #n a (zero n) = zero n))
val logand_lemma_1: #n:pos -> a:uint_t n -> Lemma (requires True) (ensures (logand #n a (zero n) = zero n))
let logand_lemma_1 #n a = nth_lemma #n (logand #n a (zero n)) (zero n)
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 70, "end_line": 176, "start_col": 0, "start_line": 176 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.logand a (FStar.UInt.zero n) = FStar.UInt.zero n)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.nth_lemma", "FStar.UInt.logand", "FStar.UInt.zero", "Prims.unit" ]
[]
true
false
true
false
false
let logand_lemma_1 #n a =
nth_lemma #n (logand #n a (zero n)) (zero n)
false
FStar.UInt.fst
FStar.UInt.logand_lemma_2
val logand_lemma_2: #n:pos -> a:uint_t n -> Lemma (requires True) (ensures (logand #n a (ones n) = a))
val logand_lemma_2: #n:pos -> a:uint_t n -> Lemma (requires True) (ensures (logand #n a (ones n) = a))
let logand_lemma_2 #n a = nth_lemma #n (logand #n a (ones n)) a
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 63, "end_line": 178, "start_col": 0, "start_line": 178 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.logand a (FStar.UInt.ones n) = a)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.nth_lemma", "FStar.UInt.logand", "FStar.UInt.ones", "Prims.unit" ]
[]
true
false
true
false
false
let logand_lemma_2 #n a =
nth_lemma #n (logand #n a (ones n)) a
false
FStar.UInt.fst
FStar.UInt.logxor_self
val logxor_self: #n:pos -> a:uint_t n -> Lemma (requires True) (ensures (logxor #n a a = zero n))
val logxor_self: #n:pos -> a:uint_t n -> Lemma (requires True) (ensures (logxor #n a a = zero n))
let logxor_self #n a = nth_lemma #n (logxor #n a a) (zero n)
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 60, "end_line": 196, "start_col": 0, "start_line": 196 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.logxor a a = FStar.UInt.zero n)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.nth_lemma", "FStar.UInt.logxor", "FStar.UInt.zero", "Prims.unit" ]
[]
true
false
true
false
false
let logxor_self #n a =
nth_lemma #n (logxor #n a a) (zero n)
false
FStar.UInt.fst
FStar.UInt.logand_le
val logand_le: #n:pos -> a:uint_t n -> b:uint_t n -> Lemma (requires True) (ensures (logand a b) <= a /\ (logand a b) <= b)
val logand_le: #n:pos -> a:uint_t n -> b:uint_t n -> Lemma (requires True) (ensures (logand a b) <= a /\ (logand a b) <= b)
let logand_le #n a b = let va = to_vec a in let vb = to_vec b in let vand = to_vec (logand a b) in subset_vec_le_lemma #n vand va; subset_vec_le_lemma #n vand vb
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 32, "end_line": 190, "start_col": 0, "start_line": 185 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> b: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.logand a b <= a /\ FStar.UInt.logand a b <= b)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.subset_vec_le_lemma", "Prims.unit", "FStar.BitVector.bv_t", "FStar.UInt.to_vec", "FStar.UInt.logand" ]
[]
true
false
true
false
false
let logand_le #n a b =
let va = to_vec a in let vb = to_vec b in let vand = to_vec (logand a b) in subset_vec_le_lemma #n vand va; subset_vec_le_lemma #n vand vb
false
FStar.UInt.fst
FStar.UInt.logxor_commutative
val logxor_commutative: #n:pos -> a:uint_t n -> b:uint_t n -> Lemma (requires True) (ensures (logxor #n a b = logxor #n b a))
val logxor_commutative: #n:pos -> a:uint_t n -> b:uint_t n -> Lemma (requires True) (ensures (logxor #n a b = logxor #n b a))
let logxor_commutative #n a b = nth_lemma #n (logxor #n a b) (logxor #n b a)
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 76, "end_line": 192, "start_col": 0, "start_line": 192 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> b: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.logxor a b = FStar.UInt.logxor b a)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.nth_lemma", "FStar.UInt.logxor", "Prims.unit" ]
[]
true
false
true
false
false
let logxor_commutative #n a b =
nth_lemma #n (logxor #n a b) (logxor #n b a)
false
FStar.UInt.fst
FStar.UInt.logxor_associative
val logxor_associative: #n:pos -> a:uint_t n -> b:uint_t n -> c:uint_t n -> Lemma (requires True) (ensures (logxor #n (logxor #n a b) c = logxor #n a (logxor #n b c)))
val logxor_associative: #n:pos -> a:uint_t n -> b:uint_t n -> c:uint_t n -> Lemma (requires True) (ensures (logxor #n (logxor #n a b) c = logxor #n a (logxor #n b c)))
let logxor_associative #n a b c = nth_lemma #n (logxor #n (logxor #n a b) c) (logxor #n a (logxor #n b c))
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 106, "end_line": 194, "start_col": 0, "start_line": 194 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> b: FStar.UInt.uint_t n -> c: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.logxor (FStar.UInt.logxor a b) c = FStar.UInt.logxor a (FStar.UInt.logxor b c))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.nth_lemma", "FStar.UInt.logxor", "Prims.unit" ]
[]
true
false
true
false
false
let logxor_associative #n a b c =
nth_lemma #n (logxor #n (logxor #n a b) c) (logxor #n a (logxor #n b c))
false
FStar.UInt.fst
FStar.UInt.logxor_lemma_2
val logxor_lemma_2: #n:pos -> a:uint_t n -> Lemma (requires True) (ensures (logxor #n a (ones n) = lognot #n a))
val logxor_lemma_2: #n:pos -> a:uint_t n -> Lemma (requires True) (ensures (logxor #n a (ones n) = lognot #n a))
let logxor_lemma_2 #n a = nth_lemma #n (logxor #n a (ones n)) (lognot #n a)
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 75, "end_line": 200, "start_col": 0, "start_line": 200 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.logxor a (FStar.UInt.ones n) = FStar.UInt.lognot a)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.nth_lemma", "FStar.UInt.logxor", "FStar.UInt.ones", "FStar.UInt.lognot", "Prims.unit" ]
[]
true
false
true
false
false
let logxor_lemma_2 #n a =
nth_lemma #n (logxor #n a (ones n)) (lognot #n a)
false
CQueue.fst
CQueue.elim_llist_fragment_head_cons
val elim_llist_fragment_head_cons (#opened: _) (#a: Type) (l: Ghost.erased (list a)) (phead: ref (ccell_ptrvalue a)) (head: ccell_ptrvalue a) : SteelGhost (ll_uncons_t a) opened (llist_fragment_head l phead head) (fun res -> ccell head `star` llist_fragment_head res.ll_uncons_tl res.ll_uncons_pnext re...
val elim_llist_fragment_head_cons (#opened: _) (#a: Type) (l: Ghost.erased (list a)) (phead: ref (ccell_ptrvalue a)) (head: ccell_ptrvalue a) : SteelGhost (ll_uncons_t a) opened (llist_fragment_head l phead head) (fun res -> ccell head `star` llist_fragment_head res.ll_uncons_tl res.ll_uncons_pnext re...
let elim_llist_fragment_head_cons #_ #a l0 phead head = let l : (l : Ghost.erased (list a) { Cons? l }) = l0 in change_equal_slprop (llist_fragment_head l0 phead head) (llist_fragment_head l phead head); llist_fragment_head_eq_cons l phead head; change_equal_slprop (llist_fragment_head l phead hea...
{ "file_name": "share/steel/examples/steel/CQueue.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 938, "start_col": 0, "start_line": 907 }
module CQueue open CQueue.LList #set-options "--ide_id_info_off" //Re-define squash, since this module explicitly //replies on proving equalities of the form `t_of v == squash p` //which are delicate in the presence of optimizations that //unfold `Prims.squash (p /\ q)`to _:unit{p /\ q} //See Issue #2496 let squash (...
{ "checked_file": "/", "dependencies": [ "Steel.Memory.fsti.checked", "prims.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "CQueue.LList.fsti.checked" ], "interface_file": true, "source...
[ { "abbrev": false, "full_module": "CQueue.LList", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Steel.Reference", "short_module": null }, { "abbrev": false, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: FStar.Ghost.erased (Prims.list a) -> phead: Steel.Reference.ref (CQueue.Cell.ccell_ptrvalue a) -> head: CQueue.Cell.ccell_ptrvalue a -> Steel.Effect.Atomic.SteelGhost (CQueue.ll_uncons_t a)
Steel.Effect.Atomic.SteelGhost
[]
[]
[ "Steel.Memory.inames", "FStar.Ghost.erased", "Prims.list", "Steel.Reference.ref", "CQueue.Cell.ccell_ptrvalue", "CQueue.ll_uncons_t", "Prims.unit", "Steel.Effect.Atomic.change_equal_slprop", "CQueue.llist_fragment_head_payload", "FStar.List.Tot.Base.hd", "FStar.Ghost.reveal", "CQueue.llist_fra...
[]
false
true
false
false
false
let elim_llist_fragment_head_cons #_ #a l0 phead head =
let l:(l: Ghost.erased (list a) {Cons? l}) = l0 in change_equal_slprop (llist_fragment_head l0 phead head) (llist_fragment_head l phead head); llist_fragment_head_eq_cons l phead head; change_equal_slprop (llist_fragment_head l phead head) (vbind ((ccell_is_lvalue head) `star` ((ccell head) `vrefine` ...
false
FStar.UInt.fst
FStar.UInt.logxor_lemma_1
val logxor_lemma_1: #n:pos -> a:uint_t n -> Lemma (requires True) (ensures (logxor #n a (zero n) = a))
val logxor_lemma_1: #n:pos -> a:uint_t n -> Lemma (requires True) (ensures (logxor #n a (zero n) = a))
let logxor_lemma_1 #n a = nth_lemma #n (logxor #n a (zero n)) a
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 63, "end_line": 198, "start_col": 0, "start_line": 198 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.logxor a (FStar.UInt.zero n) = a)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.nth_lemma", "FStar.UInt.logxor", "FStar.UInt.zero", "Prims.unit" ]
[]
true
false
true
false
false
let logxor_lemma_1 #n a =
nth_lemma #n (logxor #n a (zero n)) a
false
FStar.UInt.fst
FStar.UInt.subset_vec_le_lemma
val subset_vec_le_lemma: #n:pos -> a:bv_t n -> b:bv_t n -> Lemma (requires is_subset_vec #n a b) (ensures (from_vec a) <= (from_vec b))
val subset_vec_le_lemma: #n:pos -> a:bv_t n -> b:bv_t n -> Lemma (requires is_subset_vec #n a b) (ensures (from_vec a) <= (from_vec b))
let rec subset_vec_le_lemma #n a b = match n with | 1 -> () | _ -> lemma_slice_subset_vec #n a b 0 (n-1); subset_vec_le_lemma #(n-1) (slice a 0 (n-1)) (slice b 0 (n-1))
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 70, "end_line": 183, "start_col": 0, "start_line": 180 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.BitVector.bv_t n -> b: FStar.BitVector.bv_t n -> FStar.Pervasives.Lemma (requires FStar.BitVector.is_subset_vec a b) (ensures FStar.UInt.from_vec a <= FStar.UInt.from_vec b)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.BitVector.bv_t", "Prims.int", "FStar.UInt.subset_vec_le_lemma", "Prims.op_Subtraction", "FStar.Seq.Base.slice", "Prims.bool", "Prims.unit", "FStar.BitVector.lemma_slice_subset_vec" ]
[ "recursion" ]
false
false
true
false
false
let rec subset_vec_le_lemma #n a b =
match n with | 1 -> () | _ -> lemma_slice_subset_vec #n a b 0 (n - 1); subset_vec_le_lemma #(n - 1) (slice a 0 (n - 1)) (slice b 0 (n - 1))
false
FStar.UInt.fst
FStar.UInt.logxor_inv
val logxor_inv: #n:pos -> a:uint_t n -> b:uint_t n -> Lemma (a = logxor #n (logxor #n a b) b)
val logxor_inv: #n:pos -> a:uint_t n -> b:uint_t n -> Lemma (a = logxor #n (logxor #n a b) b)
let logxor_inv #n a b = let open FStar.BitVector in let open FStar.Seq in let va = to_vec a in let vb = to_vec b in cut(forall (i:nat). i < n ==> index (logxor_vec #n va vb) i = (index va i <> index vb i)); cut (forall (i:nat). {:pattern (index (logxor_vec (logxor_vec va vb) vb) i)} i < n ==> index (log...
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 42, "end_line": 216, "start_col": 0, "start_line": 204 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> b: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures a = FStar.UInt.logxor (FStar.UInt.logxor a b) b)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.inverse_num_lemma", "Prims.unit", "FStar.Seq.Base.lemma_eq_intro", "Prims.bool", "FStar.BitVector.logxor_vec", "Prims.cut", "Prims.l_Forall", "Prims.nat", "Prims.l_imp", "Prims.b2t", "Prims.op_LessThan", "Prims.op_Equality", "FStar.Seq.Base.i...
[]
false
false
true
false
false
let logxor_inv #n a b =
let open FStar.BitVector in let open FStar.Seq in let va = to_vec a in let vb = to_vec b in cut (forall (i: nat). i < n ==> index (logxor_vec #n va vb) i = (index va i <> index vb i)); cut (forall (i: nat). {:pattern (index (logxor_vec (logxor_vec va vb) vb) i)} i < n ==> index (logxor_vec (logxor_vec va vb...
false
FStar.UInt.fst
FStar.UInt.logxor_neq_nonzero
val logxor_neq_nonzero: #n:pos -> a:uint_t n -> b:uint_t n -> Lemma (a <> b ==> logxor a b <> 0)
val logxor_neq_nonzero: #n:pos -> a:uint_t n -> b:uint_t n -> Lemma (a <> b ==> logxor a b <> 0)
let logxor_neq_nonzero #n a b = let va = to_vec a in let vb = to_vec b in if logxor a b = 0 then begin let open FStar.Seq in let f (i:nat{i < n}) : Lemma (not (nth #n 0 i)) = zero_nth_lemma #n i in Classical.forall_intro f; assert (forall (i:nat{i < n}). index va i = index vb i); lemma_eq_in...
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 229, "start_col": 0, "start_line": 218 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> b: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures a <> b ==> FStar.UInt.logxor a b <> 0)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.op_Equality", "Prims.int", "FStar.UInt.logxor", "Prims._assert", "Prims.b2t", "FStar.UInt.from_vec", "Prims.unit", "FStar.Seq.Base.lemma_eq_intro", "Prims.bool", "Prims.l_Forall", "Prims.nat", "Prims.op_LessThan", "FStar.Seq.Base.index", "FStar....
[]
false
false
true
false
false
let logxor_neq_nonzero #n a b =
let va = to_vec a in let vb = to_vec b in if logxor a b = 0 then let open FStar.Seq in let f (i: nat{i < n}) : Lemma (not (nth #n 0 i)) = zero_nth_lemma #n i in Classical.forall_intro f; assert (forall (i: nat{i < n}). index va i = index vb i); lemma_eq_intro va vb; assert (from_vec va = from_vec vb)
false
FStar.UInt.fst
FStar.UInt.logor_commutative
val logor_commutative: #n:pos -> a:uint_t n -> b:uint_t n -> Lemma (requires True) (ensures (logor #n a b = logor #n b a))
val logor_commutative: #n:pos -> a:uint_t n -> b:uint_t n -> Lemma (requires True) (ensures (logor #n a b = logor #n b a))
let logor_commutative #n a b = nth_lemma #n (logor #n a b) (logor #n b a)
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 73, "end_line": 231, "start_col": 0, "start_line": 231 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> b: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.logor a b = FStar.UInt.logor b a)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.nth_lemma", "FStar.UInt.logor", "Prims.unit" ]
[]
true
false
true
false
false
let logor_commutative #n a b =
nth_lemma #n (logor #n a b) (logor #n b a)
false
FStar.UInt.fst
FStar.UInt.logor_lemma_1
val logor_lemma_1: #n:pos -> a:uint_t n -> Lemma (requires True) (ensures (logor #n a (zero n) = a))
val logor_lemma_1: #n:pos -> a:uint_t n -> Lemma (requires True) (ensures (logor #n a (zero n) = a))
let logor_lemma_1 #n a = nth_lemma (logor #n a (zero n)) a
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 58, "end_line": 237, "start_col": 0, "start_line": 237 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.logor a (FStar.UInt.zero n) = a)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.nth_lemma", "FStar.UInt.logor", "FStar.UInt.zero", "Prims.unit" ]
[]
true
false
true
false
false
let logor_lemma_1 #n a =
nth_lemma (logor #n a (zero n)) a
false
FStar.UInt.fst
FStar.UInt.superset_vec_ge_lemma
val superset_vec_ge_lemma: #n:pos -> a:bv_t n -> b:bv_t n -> Lemma (requires is_superset_vec #n a b) (ensures (from_vec a) >= (from_vec b))
val superset_vec_ge_lemma: #n:pos -> a:bv_t n -> b:bv_t n -> Lemma (requires is_superset_vec #n a b) (ensures (from_vec a) >= (from_vec b))
let rec superset_vec_ge_lemma #n a b = match n with | 1 -> () | _ -> lemma_slice_superset_vec #n a b 0 (n-1); superset_vec_ge_lemma #(n-1) (slice a 0 (n-1)) (slice b 0 (n-1))
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 72, "end_line": 244, "start_col": 0, "start_line": 241 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.BitVector.bv_t n -> b: FStar.BitVector.bv_t n -> FStar.Pervasives.Lemma (requires FStar.BitVector.is_superset_vec a b) (ensures FStar.UInt.from_vec a >= FStar.UInt.from_vec b)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.BitVector.bv_t", "Prims.int", "FStar.UInt.superset_vec_ge_lemma", "Prims.op_Subtraction", "FStar.Seq.Base.slice", "Prims.bool", "Prims.unit", "FStar.BitVector.lemma_slice_superset_vec" ]
[ "recursion" ]
false
false
true
false
false
let rec superset_vec_ge_lemma #n a b =
match n with | 1 -> () | _ -> lemma_slice_superset_vec #n a b 0 (n - 1); superset_vec_ge_lemma #(n - 1) (slice a 0 (n - 1)) (slice b 0 (n - 1))
false
FStar.UInt.fst
FStar.UInt.logor_self
val logor_self: #n:pos -> a:uint_t n -> Lemma (requires True) (ensures (logor #n a a = a))
val logor_self: #n:pos -> a:uint_t n -> Lemma (requires True) (ensures (logor #n a a = a))
let logor_self #n a = nth_lemma #n (logor #n a a) a
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 51, "end_line": 235, "start_col": 0, "start_line": 235 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.logor a a = a)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.nth_lemma", "FStar.UInt.logor", "Prims.unit" ]
[]
true
false
true
false
false
let logor_self #n a =
nth_lemma #n (logor #n a a) a
false
FStar.UInt.fst
FStar.UInt.logor_associative
val logor_associative: #n:pos -> a:uint_t n -> b:uint_t n -> c:uint_t n -> Lemma (requires True) (ensures (logor #n (logor #n a b) c = logor #n a (logor #n b c)))
val logor_associative: #n:pos -> a:uint_t n -> b:uint_t n -> c:uint_t n -> Lemma (requires True) (ensures (logor #n (logor #n a b) c = logor #n a (logor #n b c)))
let logor_associative #n a b c = nth_lemma #n (logor #n (logor #n a b) c) (logor #n a (logor #n b c))
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 101, "end_line": 233, "start_col": 0, "start_line": 233 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> b: FStar.UInt.uint_t n -> c: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.logor (FStar.UInt.logor a b) c = FStar.UInt.logor a (FStar.UInt.logor b c))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.nth_lemma", "FStar.UInt.logor", "Prims.unit" ]
[]
true
false
true
false
false
let logor_associative #n a b c =
nth_lemma #n (logor #n (logor #n a b) c) (logor #n a (logor #n b c))
false
FStar.UInt.fst
FStar.UInt.logor_lemma_2
val logor_lemma_2: #n:pos -> a:uint_t n -> Lemma (requires True) (ensures (logor #n a (ones n) = ones n))
val logor_lemma_2: #n:pos -> a:uint_t n -> Lemma (requires True) (ensures (logor #n a (ones n) = ones n))
let logor_lemma_2 #n a = nth_lemma (logor #n a (ones n)) (ones n)
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 65, "end_line": 239, "start_col": 0, "start_line": 239 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.logor a (FStar.UInt.ones n) = FStar.UInt.ones n)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.nth_lemma", "FStar.UInt.logor", "FStar.UInt.ones", "Prims.unit" ]
[]
true
false
true
false
false
let logor_lemma_2 #n a =
nth_lemma (logor #n a (ones n)) (ones n)
false
FStar.UInt.fst
FStar.UInt.lognot_self
val lognot_self: #n:pos -> a:uint_t n -> Lemma (requires True) (ensures (lognot #n (lognot #n a) = a))
val lognot_self: #n:pos -> a:uint_t n -> Lemma (requires True) (ensures (lognot #n (lognot #n a) = a))
let lognot_self #n a = nth_lemma (lognot #n (lognot #n a)) a
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 60, "end_line": 253, "start_col": 0, "start_line": 253 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.lognot (FStar.UInt.lognot a) = a)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.nth_lemma", "FStar.UInt.lognot", "Prims.unit" ]
[]
true
false
true
false
false
let lognot_self #n a =
nth_lemma (lognot #n (lognot #n a)) a
false
FStar.UInt.fst
FStar.UInt.logor_ge
val logor_ge: #n:pos -> a:uint_t n -> b:uint_t n -> Lemma (requires True) (ensures (logor a b) >= a /\ (logor a b) >= b)
val logor_ge: #n:pos -> a:uint_t n -> b:uint_t n -> Lemma (requires True) (ensures (logor a b) >= a /\ (logor a b) >= b)
let logor_ge #n a b = let va = to_vec a in let vb = to_vec b in let vor = to_vec (logor a b) in superset_vec_ge_lemma #n vor va; superset_vec_ge_lemma #n vor vb
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 33, "end_line": 251, "start_col": 0, "start_line": 246 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> b: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.logor a b >= a /\ FStar.UInt.logor a b >= b)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.superset_vec_ge_lemma", "Prims.unit", "FStar.BitVector.bv_t", "FStar.UInt.to_vec", "FStar.UInt.logor" ]
[]
true
false
true
false
false
let logor_ge #n a b =
let va = to_vec a in let vb = to_vec b in let vor = to_vec (logor a b) in superset_vec_ge_lemma #n vor va; superset_vec_ge_lemma #n vor vb
false
FStar.UInt.fst
FStar.UInt.lognot_lemma_1
val lognot_lemma_1: #n:pos -> Lemma (requires True) (ensures (lognot #n (zero n) = ones n))
val lognot_lemma_1: #n:pos -> Lemma (requires True) (ensures (lognot #n (zero n) = ones n))
let lognot_lemma_1 #n = nth_lemma (lognot #n (zero n)) (ones n)
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 63, "end_line": 255, "start_col": 0, "start_line": 255 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
FStar.Pervasives.Lemma (ensures FStar.UInt.lognot (FStar.UInt.zero n) = FStar.UInt.ones n)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.nth_lemma", "FStar.UInt.lognot", "FStar.UInt.zero", "FStar.UInt.ones", "Prims.unit" ]
[]
true
false
true
false
false
let lognot_lemma_1 #n =
nth_lemma (lognot #n (zero n)) (ones n)
false
FStar.UInt.fst
FStar.UInt.to_vec_mod_pow2
val to_vec_mod_pow2: #n:nat -> a:uint_t n -> m:pos -> i:nat{n - m <= i /\ i < n} -> Lemma (requires (a % pow2 m == 0)) (ensures (index (to_vec a) i == false)) [SMTPat (index (to_vec #n a) i); SMTPat (pow2 m)]
val to_vec_mod_pow2: #n:nat -> a:uint_t n -> m:pos -> i:nat{n - m <= i /\ i < n} -> Lemma (requires (a % pow2 m == 0)) (ensures (index (to_vec a) i == false)) [SMTPat (index (to_vec #n a) i); SMTPat (pow2 m)]
let rec to_vec_mod_pow2 #n a m i = if i = n - 1 then begin lemma_index_app2 (to_vec #(n - 1) (a / 2)) (Seq.create 1 (a % 2 = 1)) i; mod_mult_exact a 2 (pow2 (m - 1)) end else begin lemma_index_app1 (to_vec #(n - 1) (a / 2)) (Seq.create 1 (a % 2 = 1)) i; assert (index (to_vec a) i == inde...
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 7, "end_line": 273, "start_col": 0, "start_line": 261 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> m: Prims.pos -> i: Prims.nat{n - m <= i /\ i < n} -> FStar.Pervasives.Lemma (requires a % Prims.pow2 m == 0) (ensures FStar.Seq.Base.index (FStar.UInt.to_vec a) i == false) [SMTPat (FStar.Seq.Base.index (FStar.UInt.to_vec a) i); SMTPat (Prims.pow2 m)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "FStar.UInt.uint_t", "Prims.pos", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Subtraction", "Prims.op_LessThan", "Prims.op_Equality", "Prims.int", "FStar.Math.Lemmas.mod_mult_exact", "Prims.pow2", "Prims.unit", "FStar.Seq.Base.lemma_index_app2", "Prims....
[ "recursion" ]
false
false
true
false
false
let rec to_vec_mod_pow2 #n a m i =
if i = n - 1 then (lemma_index_app2 (to_vec #(n - 1) (a / 2)) (Seq.create 1 (a % 2 = 1)) i; mod_mult_exact a 2 (pow2 (m - 1))) else (lemma_index_app1 (to_vec #(n - 1) (a / 2)) (Seq.create 1 (a % 2 = 1)) i; assert (index (to_vec a) i == index (to_vec #(n - 1) (a / 2)) i); mod_pow2_div2 a m; to_vec_mo...
false
FStar.UInt.fst
FStar.UInt.to_vec_lt_pow2
val to_vec_lt_pow2: #n:nat -> a:uint_t n -> m:nat -> i:nat{i < n - m} -> Lemma (requires (a < pow2 m)) (ensures (index (to_vec a) i == false)) [SMTPat (index (to_vec #n a) i); SMTPat (pow2 m)]
val to_vec_lt_pow2: #n:nat -> a:uint_t n -> m:nat -> i:nat{i < n - m} -> Lemma (requires (a < pow2 m)) (ensures (index (to_vec a) i == false)) [SMTPat (index (to_vec #n a) i); SMTPat (pow2 m)]
let rec to_vec_lt_pow2 #n a m i = if n = 0 then () else if m = 0 then assert (a == zero n) else begin lemma_index_app1 (to_vec #(n - 1) (a / 2)) (Seq.create 1 (a % 2 = 1)) i; assert (index (to_vec a) i == index (to_vec #(n - 1) (a / 2)) i); to_vec_lt_pow2 #(n - 1) (a / 2) (m - ...
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 9, "end_line": 289, "start_col": 0, "start_line": 279 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> m: Prims.nat -> i: Prims.nat{i < n - m} -> FStar.Pervasives.Lemma (requires a < Prims.pow2 m) (ensures FStar.Seq.Base.index (FStar.UInt.to_vec a) i == false) [SMTPat (FStar.Seq.Base.index (FStar.UInt.to_vec a) i); SMTPat (Prims.pow2 m)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "FStar.UInt.uint_t", "Prims.b2t", "Prims.op_LessThan", "Prims.op_Subtraction", "Prims.op_Equality", "Prims.int", "Prims.bool", "Prims._assert", "Prims.eq2", "FStar.UInt.zero", "FStar.UInt.to_vec_lt_pow2", "Prims.op_Division", "Prims.unit", "FStar.Seq.Base.index", "FStar.UI...
[ "recursion" ]
false
false
true
false
false
let rec to_vec_lt_pow2 #n a m i =
if n = 0 then () else if m = 0 then assert (a == zero n) else (lemma_index_app1 (to_vec #(n - 1) (a / 2)) (Seq.create 1 (a % 2 = 1)) i; assert (index (to_vec a) i == index (to_vec #(n - 1) (a / 2)) i); to_vec_lt_pow2 #(n - 1) (a / 2) (m - 1) i)
false
FStar.UInt.fst
FStar.UInt.logor_disjoint
val logor_disjoint: #n:pos -> a:uint_t n -> b:uint_t n -> m:pos{m < n} -> Lemma (requires (a % pow2 m == 0 /\ b < pow2 m)) (ensures (logor #n a b == a + b))
val logor_disjoint: #n:pos -> a:uint_t n -> b:uint_t n -> m:pos{m < n} -> Lemma (requires (a % pow2 m == 0 /\ b < pow2 m)) (ensures (logor #n a b == a + b))
let logor_disjoint #n a b m = assert (a % pow2 m == 0); // To trigger pattern above assert (forall (i:nat{n - m <= i /\ i < n}).{:pattern (index (to_vec a) i)} index (to_vec a) i == false); assert (b < pow2 m); // To trigger pattern above assert (forall (i:nat{i < n - m}).{:pattern (index (to_vec b) i)} ...
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 56, "end_line": 319, "start_col": 0, "start_line": 302 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> b: FStar.UInt.uint_t n -> m: Prims.pos{m < n} -> FStar.Pervasives.Lemma (requires a % Prims.pow2 m == 0 /\ b < Prims.pow2 m) (ensures FStar.UInt.logor a b == a + b)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.b2t", "Prims.op_LessThan", "Prims._assert", "Prims.eq2", "Prims.int", "Prims.l_or", "FStar.UInt.size", "FStar.UInt.from_vec", "FStar.Seq.Base.slice", "Prims.bool", "FStar.UInt.to_vec", "Prims.op_Subtraction", "Prims.unit", "FStar.Math.Lemmas.sma...
[]
false
false
true
false
false
let logor_disjoint #n a b m =
assert (a % pow2 m == 0); assert (forall (i: nat{n - m <= i /\ i < n}). {:pattern (index (to_vec a) i)} index (to_vec a) i == false); assert (b < pow2 m); assert (forall (i: nat{i < n - m}). {:pattern (index (to_vec b) i)} index (to_vec b) i == false); Seq.lemma_split (logor_vec (to_vec a) (to_vec b)) (n - m); Se...
false
FStar.UInt.fst
FStar.UInt.shift_left_logand_lemma
val shift_left_logand_lemma: #n:pos -> a:uint_t n -> b:uint_t n -> s:nat -> Lemma (requires True) (ensures (shift_left #n (logand #n a b) s = logand #n (shift_left #n a s) (shift_left #n b s)))
val shift_left_logand_lemma: #n:pos -> a:uint_t n -> b:uint_t n -> s:nat -> Lemma (requires True) (ensures (shift_left #n (logand #n a b) s = logand #n (shift_left #n a s) (shift_left #n b s)))
let shift_left_logand_lemma #n a b s = nth_lemma (shift_left #n (logand #n a b) s) (logand #n (shift_left #n a s) (shift_left #n b s))
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 134, "end_line": 341, "start_col": 0, "start_line": 341 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> b: FStar.UInt.uint_t n -> s: Prims.nat -> FStar.Pervasives.Lemma (ensures FStar.UInt.shift_left (FStar.UInt.logand a b) s = FStar.UInt.logand (FStar.UInt.shift_left a s) (FStar.UInt.shift_left b s))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.nat", "FStar.UInt.nth_lemma", "FStar.UInt.shift_left", "FStar.UInt.logand", "Prims.unit" ]
[]
true
false
true
false
false
let shift_left_logand_lemma #n a b s =
nth_lemma (shift_left #n (logand #n a b) s) (logand #n (shift_left #n a s) (shift_left #n b s))
false
FStar.UInt.fst
FStar.UInt.index_to_vec_ones
val index_to_vec_ones: #n:pos -> m:nat{m <= n} -> i:nat{i < n} -> Lemma (requires True) (ensures (pow2 m <= pow2 n /\ (i < n - m ==> index (to_vec #n (pow2 m - 1)) i == false) /\ (n - m <= i ==> index (to_vec #n (pow2 m - 1)) i == true))) [SMTPat (index (to_vec #n (pow2 m - 1)) i)]
val index_to_vec_ones: #n:pos -> m:nat{m <= n} -> i:nat{i < n} -> Lemma (requires True) (ensures (pow2 m <= pow2 n /\ (i < n - m ==> index (to_vec #n (pow2 m - 1)) i == false) /\ (n - m <= i ==> index (to_vec #n (pow2 m - 1)) i == true))) [SMTPat (index (to_vec #n (pow2 m - 1)) i)]
let rec index_to_vec_ones #n m i = let a = pow2 m - 1 in pow2_le_compat n m; if m = 0 then one_to_vec_lemma #n i else if m = n then ones_to_vec_lemma #n i else if i = n - 1 then () else index_to_vec_ones #(n - 1) (m - 1) i
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 44, "end_line": 299, "start_col": 0, "start_line": 293 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
m: Prims.nat{m <= n} -> i: Prims.nat{i < n} -> FStar.Pervasives.Lemma (ensures Prims.pow2 m <= Prims.pow2 n /\ (i < n - m ==> FStar.Seq.Base.index (FStar.UInt.to_vec (Prims.pow2 m - 1)) i == false) /\ (n - m <= i ==> FStar.Seq.Base.index (FStar.UInt.to_vec (Prims.pow2 m - 1)) i == true))...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "Prims.op_Equality", "Prims.int", "FStar.UInt.one_to_vec_lemma", "Prims.bool", "Prims.l_or", "Prims.l_and", "Prims.op_GreaterThanOrEqual", "Prims.op_GreaterThan", "FStar.UInt.ones_to_vec_lemma", "Prim...
[ "recursion" ]
false
false
true
false
false
let rec index_to_vec_ones #n m i =
let a = pow2 m - 1 in pow2_le_compat n m; if m = 0 then one_to_vec_lemma #n i else if m = n then ones_to_vec_lemma #n i else if i = n - 1 then () else index_to_vec_ones #(n - 1) (m - 1) i
false
FStar.UInt.fst
FStar.UInt.shift_right_logand_lemma
val shift_right_logand_lemma: #n:pos -> a:uint_t n -> b:uint_t n -> s:nat -> Lemma (requires True) (ensures (shift_right #n (logand #n a b) s = logand #n (shift_right #n a s) (shift_right #n b s)))
val shift_right_logand_lemma: #n:pos -> a:uint_t n -> b:uint_t n -> s:nat -> Lemma (requires True) (ensures (shift_right #n (logand #n a b) s = logand #n (shift_right #n a s) (shift_right #n b s)))
let shift_right_logand_lemma #n a b s = nth_lemma (shift_right #n (logand #n a b) s) (logand #n (shift_right #n a s) (shift_right #n b s))
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 138, "end_line": 343, "start_col": 0, "start_line": 343 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> b: FStar.UInt.uint_t n -> s: Prims.nat -> FStar.Pervasives.Lemma (ensures FStar.UInt.shift_right (FStar.UInt.logand a b) s = FStar.UInt.logand (FStar.UInt.shift_right a s) (FStar.UInt.shift_right b s))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.nat", "FStar.UInt.nth_lemma", "FStar.UInt.shift_right", "FStar.UInt.logand", "Prims.unit" ]
[]
true
false
true
false
false
let shift_right_logand_lemma #n a b s =
nth_lemma (shift_right #n (logand #n a b) s) (logand #n (shift_right #n a s) (shift_right #n b s))
false
FStar.UInt.fst
FStar.UInt.shift_left_logor_lemma
val shift_left_logor_lemma: #n:pos -> a:uint_t n -> b:uint_t n -> s:nat -> Lemma (requires True) (ensures (shift_left #n (logor #n a b) s = logor #n (shift_left #n a s) (shift_left #n b s)))
val shift_left_logor_lemma: #n:pos -> a:uint_t n -> b:uint_t n -> s:nat -> Lemma (requires True) (ensures (shift_left #n (logor #n a b) s = logor #n (shift_left #n a s) (shift_left #n b s)))
let shift_left_logor_lemma #n a b s = nth_lemma (shift_left #n (logor #n a b) s) (logor #n (shift_left #n a s) (shift_left #n b s))
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 131, "end_line": 349, "start_col": 0, "start_line": 349 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> b: FStar.UInt.uint_t n -> s: Prims.nat -> FStar.Pervasives.Lemma (ensures FStar.UInt.shift_left (FStar.UInt.logor a b) s = FStar.UInt.logor (FStar.UInt.shift_left a s) (FStar.UInt.shift_left b s))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.nat", "FStar.UInt.nth_lemma", "FStar.UInt.shift_left", "FStar.UInt.logor", "Prims.unit" ]
[]
true
false
true
false
false
let shift_left_logor_lemma #n a b s =
nth_lemma (shift_left #n (logor #n a b) s) (logor #n (shift_left #n a s) (shift_left #n b s))
false
FStar.UInt.fst
FStar.UInt.shift_left_logxor_lemma
val shift_left_logxor_lemma: #n:pos -> a:uint_t n -> b:uint_t n -> s:nat -> Lemma (requires True) (ensures (shift_left #n (logxor #n a b) s = logxor #n (shift_left #n a s) (shift_left #n b s)))
val shift_left_logxor_lemma: #n:pos -> a:uint_t n -> b:uint_t n -> s:nat -> Lemma (requires True) (ensures (shift_left #n (logxor #n a b) s = logxor #n (shift_left #n a s) (shift_left #n b s)))
let shift_left_logxor_lemma #n a b s = nth_lemma (shift_left #n (logxor #n a b) s) (logxor #n (shift_left #n a s) (shift_left #n b s))
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 134, "end_line": 345, "start_col": 0, "start_line": 345 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> b: FStar.UInt.uint_t n -> s: Prims.nat -> FStar.Pervasives.Lemma (ensures FStar.UInt.shift_left (FStar.UInt.logxor a b) s = FStar.UInt.logxor (FStar.UInt.shift_left a s) (FStar.UInt.shift_left b s))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.nat", "FStar.UInt.nth_lemma", "FStar.UInt.shift_left", "FStar.UInt.logxor", "Prims.unit" ]
[]
true
false
true
false
false
let shift_left_logxor_lemma #n a b s =
nth_lemma (shift_left #n (logxor #n a b) s) (logxor #n (shift_left #n a s) (shift_left #n b s))
false
FStar.UInt.fst
FStar.UInt.shift_right_logxor_lemma
val shift_right_logxor_lemma: #n:pos -> a:uint_t n -> b:uint_t n -> s:nat -> Lemma (requires True) (ensures (shift_right #n (logxor #n a b) s = logxor #n (shift_right #n a s) (shift_right #n b s)))
val shift_right_logxor_lemma: #n:pos -> a:uint_t n -> b:uint_t n -> s:nat -> Lemma (requires True) (ensures (shift_right #n (logxor #n a b) s = logxor #n (shift_right #n a s) (shift_right #n b s)))
let shift_right_logxor_lemma #n a b s = nth_lemma (shift_right #n (logxor #n a b) s) (logxor #n (shift_right #n a s) (shift_right #n b s))
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 138, "end_line": 347, "start_col": 0, "start_line": 347 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> b: FStar.UInt.uint_t n -> s: Prims.nat -> FStar.Pervasives.Lemma (ensures FStar.UInt.shift_right (FStar.UInt.logxor a b) s = FStar.UInt.logxor (FStar.UInt.shift_right a s) (FStar.UInt.shift_right b s))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.nat", "FStar.UInt.nth_lemma", "FStar.UInt.shift_right", "FStar.UInt.logxor", "Prims.unit" ]
[]
true
false
true
false
false
let shift_right_logxor_lemma #n a b s =
nth_lemma (shift_right #n (logxor #n a b) s) (logxor #n (shift_right #n a s) (shift_right #n b s))
false
FStar.UInt.fst
FStar.UInt.shift_right_logor_lemma
val shift_right_logor_lemma: #n:pos -> a:uint_t n -> b:uint_t n -> s:nat -> Lemma (requires True) (ensures (shift_right #n (logor #n a b) s = logor #n (shift_right #n a s) (shift_right #n b s)))
val shift_right_logor_lemma: #n:pos -> a:uint_t n -> b:uint_t n -> s:nat -> Lemma (requires True) (ensures (shift_right #n (logor #n a b) s = logor #n (shift_right #n a s) (shift_right #n b s)))
let shift_right_logor_lemma #n a b s = nth_lemma (shift_right #n (logor #n a b) s) (logor #n (shift_right #n a s) (shift_right #n b s))
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 135, "end_line": 351, "start_col": 0, "start_line": 351 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> b: FStar.UInt.uint_t n -> s: Prims.nat -> FStar.Pervasives.Lemma (ensures FStar.UInt.shift_right (FStar.UInt.logor a b) s = FStar.UInt.logor (FStar.UInt.shift_right a s) (FStar.UInt.shift_right b s))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.nat", "FStar.UInt.nth_lemma", "FStar.UInt.shift_right", "FStar.UInt.logor", "Prims.unit" ]
[]
true
false
true
false
false
let shift_right_logor_lemma #n a b s =
nth_lemma (shift_right #n (logor #n a b) s) (logor #n (shift_right #n a s) (shift_right #n b s))
false
FStar.UInt.fst
FStar.UInt.shift_left_value_aux_1
val shift_left_value_aux_1: #n:pos -> a:uint_t n -> s:nat{s >= n} -> Lemma (requires True) (ensures shift_left #n a s = (a * pow2 s) % pow2 n)
val shift_left_value_aux_1: #n:pos -> a:uint_t n -> s:nat{s >= n} -> Lemma (requires True) (ensures shift_left #n a s = (a * pow2 s) % pow2 n)
let shift_left_value_aux_1 #n a s = pow2_multiplication_modulo_lemma_1 a n s
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 76, "end_line": 354, "start_col": 0, "start_line": 354 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> s: Prims.nat{s >= n} -> FStar.Pervasives.Lemma (ensures FStar.UInt.shift_left a s = a * Prims.pow2 s % Prims.pow2 n)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.nat", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "FStar.Math.Lemmas.pow2_multiplication_modulo_lemma_1", "Prims.unit" ]
[]
true
false
true
false
false
let shift_left_value_aux_1 #n a s =
pow2_multiplication_modulo_lemma_1 a n s
false
FStar.UInt.fst
FStar.UInt.shift_left_value_lemma
val shift_left_value_lemma: #n:pos -> a:uint_t n -> s:nat -> Lemma (requires True) (ensures shift_left #n a s = (a * pow2 s) % pow2 n) [SMTPat (shift_left #n a s)]
val shift_left_value_lemma: #n:pos -> a:uint_t n -> s:nat -> Lemma (requires True) (ensures shift_left #n a s = (a * pow2 s) % pow2 n) [SMTPat (shift_left #n a s)]
let shift_left_value_lemma #n a s = if s >= n then shift_left_value_aux_1 #n a s else if s = 0 then shift_left_value_aux_2 #n a else shift_left_value_aux_3 #n a s
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 36, "end_line": 368, "start_col": 0, "start_line": 365 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> s: Prims.nat -> FStar.Pervasives.Lemma (ensures FStar.UInt.shift_left a s = a * Prims.pow2 s % Prims.pow2 n) [SMTPat (FStar.UInt.shift_left a s)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.nat", "Prims.op_GreaterThanOrEqual", "FStar.UInt.shift_left_value_aux_1", "Prims.bool", "Prims.op_Equality", "Prims.int", "FStar.UInt.shift_left_value_aux_2", "FStar.UInt.shift_left_value_aux_3", "Prims.unit" ]
[]
false
false
true
false
false
let shift_left_value_lemma #n a s =
if s >= n then shift_left_value_aux_1 #n a s else if s = 0 then shift_left_value_aux_2 #n a else shift_left_value_aux_3 #n a s
false
FStar.UInt.fst
FStar.UInt.logand_mask
val logand_mask: #n:pos -> a:uint_t n -> m:pos{m < n} -> Lemma (pow2 m < pow2 n /\ logand #n a (pow2 m - 1) == a % pow2 m)
val logand_mask: #n:pos -> a:uint_t n -> m:pos{m < n} -> Lemma (pow2 m < pow2 n /\ logand #n a (pow2 m - 1) == a % pow2 m)
let logand_mask #n a m = pow2_lt_compat n m; Seq.lemma_split (logand_vec (to_vec a) (to_vec (pow2 m - 1))) (n - m); Seq.lemma_eq_intro (logand_vec (to_vec a) (to_vec (pow2 m - 1))) (append (zero_vec #(n - m)) (slice (to_vec a) (n - m) n)); append_lemma #(n - m) #m (zero_vec #(n - m)) (slice (to_vec a) (...
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 65, "end_line": 331, "start_col": 0, "start_line": 321 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> m: Prims.pos{m < n} -> FStar.Pervasives.Lemma (ensures Prims.pow2 m < Prims.pow2 n /\ FStar.UInt.logand a (Prims.pow2 m - 1) == a % Prims.pow2 m)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.b2t", "Prims.op_LessThan", "Prims._assert", "Prims.eq2", "Prims.int", "FStar.UInt.from_vec", "FStar.Seq.Base.slice", "Prims.bool", "FStar.UInt.to_vec", "Prims.op_Subtraction", "Prims.op_Modulus", "Prims.pow2", "Prims.unit", "FStar.UInt.slice_rig...
[]
true
false
true
false
false
let logand_mask #n a m =
pow2_lt_compat n m; Seq.lemma_split (logand_vec (to_vec a) (to_vec (pow2 m - 1))) (n - m); Seq.lemma_eq_intro (logand_vec (to_vec a) (to_vec (pow2 m - 1))) (append (zero_vec #(n - m)) (slice (to_vec a) (n - m) n)); append_lemma #(n - m) #m (zero_vec #(n - m)) (slice (to_vec a) (n - m) n); assert (0 * pow2 m + a % pow...
false
FStar.UInt.fst
FStar.UInt.shift_left_value_aux_2
val shift_left_value_aux_2: #n:pos -> a:uint_t n -> Lemma (requires True) (ensures shift_left #n a 0 = (a * pow2 0) % pow2 n)
val shift_left_value_aux_2: #n:pos -> a:uint_t n -> Lemma (requires True) (ensures shift_left #n a 0 = (a * pow2 0) % pow2 n)
let shift_left_value_aux_2 #n a = assert_norm(a * pow2 0 = a); small_modulo_lemma_1 a (pow2 n)
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 33, "end_line": 358, "start_col": 0, "start_line": 356 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.shift_left a 0 = a * Prims.pow2 0 % Prims.pow2 n)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.Math.Lemmas.small_modulo_lemma_1", "Prims.pow2", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.b2t", "Prims.op_Equality", "Prims.int", "FStar.Mul.op_Star" ]
[]
true
false
true
false
false
let shift_left_value_aux_2 #n a =
assert_norm (a * pow2 0 = a); small_modulo_lemma_1 a (pow2 n)
false
FStar.UInt.fst
FStar.UInt.shift_right_value_aux_2
val shift_right_value_aux_2: #n:pos -> a:uint_t n -> Lemma (requires True) (ensures shift_right #n a 0 = a / pow2 0)
val shift_right_value_aux_2: #n:pos -> a:uint_t n -> Lemma (requires True) (ensures shift_right #n a 0 = a / pow2 0)
let shift_right_value_aux_2 #n a = assert_norm (pow2 0 == 1)
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 60, "end_line": 374, "start_col": 0, "start_line": 374 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.shift_right a 0 = a / Prims.pow2 0)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "Prims.pow2", "Prims.unit" ]
[]
true
false
true
false
false
let shift_right_value_aux_2 #n a =
assert_norm (pow2 0 == 1)
false
FStar.UInt.fst
FStar.UInt.shift_right_value_lemma
val shift_right_value_lemma: #n:pos -> a:uint_t n -> s:nat -> Lemma (requires True) (ensures shift_right #n a s = a / pow2 s) [SMTPat (shift_right #n a s)]
val shift_right_value_lemma: #n:pos -> a:uint_t n -> s:nat -> Lemma (requires True) (ensures shift_right #n a s = a / pow2 s) [SMTPat (shift_right #n a s)]
let shift_right_value_lemma #n a s = if s >= n then shift_right_value_aux_1 #n a s else if s = 0 then shift_right_value_aux_2 #n a else shift_right_value_aux_3 #n a s
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 37, "end_line": 385, "start_col": 0, "start_line": 382 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> s: Prims.nat -> FStar.Pervasives.Lemma (ensures FStar.UInt.shift_right a s = a / Prims.pow2 s) [SMTPat (FStar.UInt.shift_right a s)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.nat", "Prims.op_GreaterThanOrEqual", "FStar.UInt.shift_right_value_aux_1", "Prims.bool", "Prims.op_Equality", "Prims.int", "FStar.UInt.shift_right_value_aux_2", "FStar.UInt.shift_right_value_aux_3", "Prims.unit" ]
[]
false
false
true
false
false
let shift_right_value_lemma #n a s =
if s >= n then shift_right_value_aux_1 #n a s else if s = 0 then shift_right_value_aux_2 #n a else shift_right_value_aux_3 #n a s
false
FStar.UInt.fst
FStar.UInt.shift_right_value_aux_1
val shift_right_value_aux_1: #n:pos -> a:uint_t n -> s:nat{s >= n} -> Lemma (requires True) (ensures shift_right #n a s = a / pow2 s)
val shift_right_value_aux_1: #n:pos -> a:uint_t n -> s:nat{s >= n} -> Lemma (requires True) (ensures shift_right #n a s = a / pow2 s)
let shift_right_value_aux_1 #n a s = pow2_le_compat s n; small_division_lemma_1 a (pow2 s)
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 35, "end_line": 372, "start_col": 0, "start_line": 370 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> s: Prims.nat{s >= n} -> FStar.Pervasives.Lemma (ensures FStar.UInt.shift_right a s = a / Prims.pow2 s)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.nat", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "FStar.Math.Lemmas.small_division_lemma_1", "Prims.pow2", "Prims.unit", "FStar.Math.Lemmas.pow2_le_compat" ]
[]
true
false
true
false
false
let shift_right_value_aux_1 #n a s =
pow2_le_compat s n; small_division_lemma_1 a (pow2 s)
false
FStar.UInt.fst
FStar.UInt.lemma_minus_zero
val lemma_minus_zero: #n:pos -> a:uint_t n -> Lemma (minus a = 0 ==> a = 0)
val lemma_minus_zero: #n:pos -> a:uint_t n -> Lemma (minus a = 0 ==> a = 0)
let lemma_minus_zero #n a = if minus a = 0 then begin plus_one_mod (pow2 n) (lognot a); lognot_self a; logxor_self (ones n); logxor_lemma_2 #n (ones n) end
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 400, "start_col": 0, "start_line": 393 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.minus a = 0 ==> a = 0)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.op_Equality", "Prims.int", "FStar.UInt.minus", "FStar.UInt.logxor_lemma_2", "FStar.UInt.ones", "Prims.unit", "FStar.UInt.logxor_self", "FStar.UInt.lognot_self", "FStar.UInt.plus_one_mod", "Prims.pow2", "FStar.UInt.lognot", "Prims.bool" ]
[]
false
false
true
false
false
let lemma_minus_zero #n a =
if minus a = 0 then (plus_one_mod (pow2 n) (lognot a); lognot_self a; logxor_self (ones n); logxor_lemma_2 #n (ones n))
false
FStar.UInt.fst
FStar.UInt.lemma_add_sub_cancel
val lemma_add_sub_cancel: #n:pos -> a:uint_t n -> b:uint_t n -> Lemma (add_mod (sub_mod a b) b = a)
val lemma_add_sub_cancel: #n:pos -> a:uint_t n -> b:uint_t n -> Lemma (add_mod (sub_mod a b) b = a)
let lemma_add_sub_cancel #n a b = let ab = (a-b) % pow2 n in let abb = (ab + b) % pow2 n in let ab_mod = sub_mod a b in let abb_mod = add_mod ab b in let p = pow2 n in lemma_uint_mod a; assert (add_mod (sub_mod a b) b = add_mod ab_mod b); assert (add_mod ab_mod b = (ab_mod + b) % p); assert (add_mod a...
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 40, "end_line": 428, "start_col": 0, "start_line": 416 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> b: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.add_mod (FStar.UInt.sub_mod a b) b = a)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims._assert", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "Prims.op_Addition", "Prims.op_Subtraction", "Prims.unit", "FStar.Math.Lemmas.lemma_mod_plus_distr_l", "FStar.UInt.add_mod", "FStar.UInt.sub_mod", "FStar.UInt.lemma_uint_mo...
[]
true
false
true
false
false
let lemma_add_sub_cancel #n a b =
let ab = (a - b) % pow2 n in let abb = (ab + b) % pow2 n in let ab_mod = sub_mod a b in let abb_mod = add_mod ab b in let p = pow2 n in lemma_uint_mod a; assert (add_mod (sub_mod a b) b = add_mod ab_mod b); assert (add_mod ab_mod b = (ab_mod + b) % p); assert (add_mod ab_mod b = ((a - b) % p + b) % p); FStar.Math.Lemma...
false
FStar.UInt.fst
FStar.UInt.lemma_msb_gte
val lemma_msb_gte: #n:pos{n > 1} -> a:uint_t n -> b:uint_t n -> Lemma ((a >= b && not (msb a)) ==> not (msb b))
val lemma_msb_gte: #n:pos{n > 1} -> a:uint_t n -> b:uint_t n -> Lemma ((a >= b && not (msb a)) ==> not (msb b))
let lemma_msb_gte #n a b = from_vec_propriety (to_vec a) 1; from_vec_propriety (to_vec b) 1
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 33, "end_line": 405, "start_col": 0, "start_line": 403 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> b: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures a >= b && Prims.op_Negation (FStar.UInt.msb a) ==> Prims.op_Negation (FStar.UInt.msb b) )
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "Prims.b2t", "Prims.op_GreaterThan", "FStar.UInt.uint_t", "FStar.UInt.from_vec_propriety", "FStar.UInt.to_vec", "Prims.unit" ]
[]
true
false
true
false
false
let lemma_msb_gte #n a b =
from_vec_propriety (to_vec a) 1; from_vec_propriety (to_vec b) 1
false
FStar.UInt.fst
FStar.UInt.lemma_mod_sub_distr_l
val lemma_mod_sub_distr_l: a:int -> b:int -> p:pos -> Lemma ((a - b) % p = ((a % p) - b) % p)
val lemma_mod_sub_distr_l: a:int -> b:int -> p:pos -> Lemma ((a - b) % p = ((a % p) - b) % p)
let lemma_mod_sub_distr_l a b p = let q = (a - (a % p)) / p in FStar.Math.Lemmas.lemma_mod_spec2 a p; FStar.Math.Lemmas.lemma_mod_plus (a % p - b) q p
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 50, "end_line": 433, "start_col": 0, "start_line": 430 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Prims.int -> b: Prims.int -> p: Prims.pos -> FStar.Pervasives.Lemma (ensures (a - b) % p = (a % p - b) % p)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "Prims.pos", "FStar.Math.Lemmas.lemma_mod_plus", "Prims.op_Subtraction", "Prims.op_Modulus", "Prims.unit", "FStar.Math.Lemmas.lemma_mod_spec2", "Prims.op_Division" ]
[]
true
false
true
false
false
let lemma_mod_sub_distr_l a b p =
let q = (a - (a % p)) / p in FStar.Math.Lemmas.lemma_mod_spec2 a p; FStar.Math.Lemmas.lemma_mod_plus (a % p - b) q p
false
FStar.UInt.fst
FStar.UInt.shift_left_value_aux_3
val shift_left_value_aux_3: #n:pos -> a:uint_t n -> s:pos{s < n} -> Lemma (requires True) (ensures shift_left #n a s = (a * pow2 s) % pow2 n)
val shift_left_value_aux_3: #n:pos -> a:uint_t n -> s:pos{s < n} -> Lemma (requires True) (ensures shift_left #n a s = (a * pow2 s) % pow2 n)
let shift_left_value_aux_3 #n a s = append_lemma #(n - s) #s (slice (to_vec a) s n) (zero_vec #s); slice_right_lemma #n (to_vec a) (n - s); pow2_multiplication_modulo_lemma_2 a n s
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 42, "end_line": 363, "start_col": 0, "start_line": 360 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> s: Prims.pos{s < n} -> FStar.Pervasives.Lemma (ensures FStar.UInt.shift_left a s = a * Prims.pow2 s % Prims.pow2 n)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.b2t", "Prims.op_LessThan", "FStar.Math.Lemmas.pow2_multiplication_modulo_lemma_2", "Prims.unit", "FStar.UInt.slice_right_lemma", "FStar.UInt.to_vec", "Prims.op_Subtraction", "FStar.UInt.append_lemma", "FStar.Seq.Base.slice", "Prims.bool", "FStar.BitVe...
[]
true
false
true
false
false
let shift_left_value_aux_3 #n a s =
append_lemma #(n - s) #s (slice (to_vec a) s n) (zero_vec #s); slice_right_lemma #n (to_vec a) (n - s); pow2_multiplication_modulo_lemma_2 a n s
false
FStar.UInt.fst
FStar.UInt.lemma_sub_add_cancel
val lemma_sub_add_cancel: #n:pos -> a:uint_t n -> b:uint_t n -> Lemma (sub_mod (add_mod a b) b = a)
val lemma_sub_add_cancel: #n:pos -> a:uint_t n -> b:uint_t n -> Lemma (sub_mod (add_mod a b) b = a)
let lemma_sub_add_cancel #n a b = let ab = (a+b) % pow2 n in let abb = (ab - b) % pow2 n in let ab_mod = add_mod a b in let abb_mod = sub_mod ab b in let p = pow2 n in lemma_uint_mod a; lemma_mod_sub_distr_l (a+b) b p
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 33, "end_line": 442, "start_col": 0, "start_line": 435 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> b: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.sub_mod (FStar.UInt.add_mod a b) b = a)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.lemma_mod_sub_distr_l", "Prims.op_Addition", "Prims.unit", "FStar.UInt.lemma_uint_mod", "Prims.pow2", "FStar.UInt.sub_mod", "FStar.UInt.add_mod", "Prims.int", "Prims.op_Modulus", "Prims.op_Subtraction" ]
[]
true
false
true
false
false
let lemma_sub_add_cancel #n a b =
let ab = (a + b) % pow2 n in let abb = (ab - b) % pow2 n in let ab_mod = add_mod a b in let abb_mod = sub_mod ab b in let p = pow2 n in lemma_uint_mod a; lemma_mod_sub_distr_l (a + b) b p
false
FStar.UInt.fst
FStar.UInt.lemma_zero_extend
val lemma_zero_extend: #n:pos -> a:uint_t n -> Lemma (zero_extend a = a) [SMTPat (zero_extend a)]
val lemma_zero_extend: #n:pos -> a:uint_t n -> Lemma (zero_extend a = a) [SMTPat (zero_extend a)]
let lemma_zero_extend #n a = let hd0 = Seq.create 1 false in let av = to_vec a in let eav = Seq.append hd0 av in let r = zero_extend a in append_lemma #1 #n hd0 av; assert (r = from_vec eav); from_vec_propriety #(n+1) eav 1; assert (r = a)
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 16, "end_line": 452, "start_col": 0, "start_line": 444 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.zero_extend a = a) [SMTPat (FStar.UInt.zero_extend a)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims._assert", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.l_or", "FStar.UInt.size", "Prims.op_Addition", "Prims.unit", "FStar.UInt.from_vec_propriety", "FStar.UInt.from_vec", "FStar.UInt.append_lemma", "FStar.UInt.zero_extend", "FStar.Seq.Ba...
[]
true
false
true
false
false
let lemma_zero_extend #n a =
let hd0 = Seq.create 1 false in let av = to_vec a in let eav = Seq.append hd0 av in let r = zero_extend a in append_lemma #1 #n hd0 av; assert (r = from_vec eav); from_vec_propriety #(n + 1) eav 1; assert (r = a)
false
FStar.UInt.fst
FStar.UInt.lemma_msb_pow2
val lemma_msb_pow2: #n:pos -> a:uint_t n -> Lemma (msb a <==> a >= pow2 (n-1))
val lemma_msb_pow2: #n:pos -> a:uint_t n -> Lemma (msb a <==> a >= pow2 (n-1))
let lemma_msb_pow2 #n a = if n = 1 then () else from_vec_propriety (to_vec a) 1
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 79, "end_line": 387, "start_col": 0, "start_line": 387 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.msb a <==> a >= Prims.pow2 (n - 1))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.op_Equality", "Prims.int", "Prims.bool", "FStar.UInt.from_vec_propriety", "FStar.UInt.to_vec", "Prims.unit" ]
[]
false
false
true
false
false
let lemma_msb_pow2 #n a =
if n = 1 then () else from_vec_propriety (to_vec a) 1
false
FStar.UInt.fst
FStar.UInt.lemma_lognot_value
val lemma_lognot_value: #n:pos -> a:uint_t n -> Lemma (lognot #n a = sub_mod (sub_mod 0 a) 1)
val lemma_lognot_value: #n:pos -> a:uint_t n -> Lemma (lognot #n a = sub_mod (sub_mod 0 a) 1)
let lemma_lognot_value #n a = if a = 0 then lemma_lognot_value_zero a else lemma_lognot_value_nonzero a
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 35, "end_line": 613, "start_col": 0, "start_line": 611 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.lognot a = FStar.UInt.sub_mod (FStar.UInt.sub_mod 0 a) 1)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.op_Equality", "Prims.int", "FStar.UInt.lemma_lognot_value_zero", "Prims.bool", "FStar.UInt.lemma_lognot_value_nonzero", "Prims.unit" ]
[]
false
false
true
false
false
let lemma_lognot_value #n a =
if a = 0 then lemma_lognot_value_zero a else lemma_lognot_value_nonzero a
false
FStar.UInt.fst
FStar.UInt.lemma_lognot_value_variation
val lemma_lognot_value_variation: #n:pos -> a:uint_t n{a <> 0} -> Lemma (lognot a = (-a) % pow2 n - 1 % pow2 n)
val lemma_lognot_value_variation: #n:pos -> a:uint_t n{a <> 0} -> Lemma (lognot a = (-a) % pow2 n - 1 % pow2 n)
let lemma_lognot_value_variation #n a = let p = pow2 n in calc (==) { lognot a <: int; == { lemma_lognot_value_mod a } p - a - 1; == { FStar.Math.Lemmas.modulo_lemma a p } p - (a % p) - 1; == { FStar.Math.Lemmas.modulo_lemma 1 p } (p - (a % p)) - (1 % p); == { FStar.Math.Lemmas.lemma...
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 3, "end_line": 599, "start_col": 0, "start_line": 587 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n {a <> 0} -> FStar.Pervasives.Lemma (ensures FStar.UInt.lognot a = (- a) % Prims.pow2 n - 1 % Prims.pow2 n)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.b2t", "Prims.op_disEquality", "Prims.int", "FStar.Calc.calc_finish", "Prims.eq2", "FStar.UInt.lognot", "Prims.op_Subtraction", "Prims.op_Modulus", "Prims.op_Minus", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", "Prims.unit", "FStar.Calc....
[]
false
false
true
false
false
let lemma_lognot_value_variation #n a =
let p = pow2 n in calc ( == ) { lognot a <: int; ( == ) { lemma_lognot_value_mod a } p - a - 1; ( == ) { FStar.Math.Lemmas.modulo_lemma a p } p - (a % p) - 1; ( == ) { FStar.Math.Lemmas.modulo_lemma 1 p } (p - (a % p)) - (1 % p); ( == ) { FStar.Math.Lemmas.lemma_mod_sub_1 a p } (- a) % p - 1 % p; }
false
FStar.UInt.fst
FStar.UInt.lemma_minus_eq_zero_sub
val lemma_minus_eq_zero_sub: #n:pos -> a:uint_t n -> Lemma (minus #n a = sub_mod #n 0 a)
val lemma_minus_eq_zero_sub: #n:pos -> a:uint_t n -> Lemma (minus #n a = sub_mod #n 0 a)
let lemma_minus_eq_zero_sub #n a = let na = lognot a in let ma = minus a in assert (sub_mod ma 1 = sub_mod (add_mod na 1) 1); lemma_sub_add_cancel na 1; assert (sub_mod ma 1 = na); lemma_lognot_value #n a; assert (na = sub_mod (sub_mod 0 a) 1); assert (ma = add_mod (sub_mod (sub_mod 0 a) 1) 1); lemma_...
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 38, "end_line": 624, "start_col": 0, "start_line": 615 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.minus a = FStar.UInt.sub_mod 0 a)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.lemma_add_sub_cancel", "FStar.UInt.sub_mod", "Prims.unit", "Prims._assert", "Prims.b2t", "Prims.op_Equality", "FStar.UInt.add_mod", "FStar.UInt.lemma_lognot_value", "FStar.UInt.lemma_sub_add_cancel", "FStar.UInt.minus", "FStar.UInt.lognot" ]
[]
true
false
true
false
false
let lemma_minus_eq_zero_sub #n a =
let na = lognot a in let ma = minus a in assert (sub_mod ma 1 = sub_mod (add_mod na 1) 1); lemma_sub_add_cancel na 1; assert (sub_mod ma 1 = na); lemma_lognot_value #n a; assert (na = sub_mod (sub_mod 0 a) 1); assert (ma = add_mod (sub_mod (sub_mod 0 a) 1) 1); lemma_add_sub_cancel (sub_mod 0 a) 1
false
Trace.fst
Trace.tick
val tick (nm: fv) : fv
val tick (nm: fv) : fv
let tick (nm : fv) : fv = let ns = inspect_fv nm in pack_fv (tick_last ns)
{ "file_name": "examples/tactics/Trace.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 24, "end_line": 66, "start_col": 0, "start_line": 64 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "Trace.fst" }
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
nm: FStar.Stubs.Reflection.Types.fv -> FStar.Stubs.Reflection.Types.fv
Prims.Tot
[ "total" ]
[]
[ "FStar.Stubs.Reflection.Types.fv", "FStar.Stubs.Reflection.V2.Builtins.pack_fv", "Trace.tick_last", "FStar.Stubs.Reflection.Types.name", "FStar.Stubs.Reflection.V2.Builtins.inspect_fv" ]
[]
false
false
false
true
false
let tick (nm: fv) : fv =
let ns = inspect_fv nm in pack_fv (tick_last ns)
false
Trace.fst
Trace.cons_fst
val cons_fst (x: 'a) (p: (list 'a * 'b)) : list 'a * 'b
val cons_fst (x: 'a) (p: (list 'a * 'b)) : list 'a * 'b
let cons_fst (x : 'a) (p : list 'a * 'b) : list 'a * 'b = let (y, z) = p in (x :: y, z)
{ "file_name": "examples/tactics/Trace.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 33, "end_line": 69, "start_col": 0, "start_line": 68 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "Trace.fst" }
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: 'a -> p: (Prims.list 'a * 'b) -> Prims.list 'a * 'b
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.Native.tuple2", "Prims.list", "FStar.Pervasives.Native.Mktuple2", "Prims.Cons" ]
[]
false
false
false
true
false
let cons_fst (x: 'a) (p: list 'a * 'b) : list 'a * 'b =
let y, z = p in (x :: y, z)
false
Trace.fst
Trace.cons_fst_qn
val cons_fst_qn : Prims.list Prims.string
let cons_fst_qn = ["Trace"; "cons_fst"]
{ "file_name": "examples/tactics/Trace.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 39, "end_line": 71, "start_col": 0, "start_line": 71 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "Trace.fst" }
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Prims.list Prims.string
Prims.Tot
[ "total" ]
[]
[ "Prims.Cons", "Prims.string", "Prims.Nil" ]
[]
false
false
false
true
false
let cons_fst_qn =
["Trace"; "cons_fst"]
false
Steel.ST.SeqMatch.fst
Steel.ST.SeqMatch.seq_seq_match_item_match_option_elim
val seq_seq_match_item_match_option_elim (#opened: _) (#t1 #t2: Type) (p: (t1 -> t2 -> vprop)) (s1: Seq.seq t1) (s2: Seq.seq t2) (i j: nat) : STGhostT unit opened (seq_seq_match (item_match_option p) s1 (seq_map Some s2) i j) (fun _ -> seq_seq_match p s1 s2 i j)
val seq_seq_match_item_match_option_elim (#opened: _) (#t1 #t2: Type) (p: (t1 -> t2 -> vprop)) (s1: Seq.seq t1) (s2: Seq.seq t2) (i j: nat) : STGhostT unit opened (seq_seq_match (item_match_option p) s1 (seq_map Some s2) i j) (fun _ -> seq_seq_match p s1 s2 i j)
let seq_seq_match_item_match_option_elim (#opened: _) (#t1 #t2: Type) (p: t1 -> t2 -> vprop) (s1: Seq.seq t1) (s2: Seq.seq t2) (i j: nat) : STGhostT unit opened (seq_seq_match (item_match_option p) s1 (seq_map Some s2) i j) (fun _ -> seq_seq_match p s1 s2 i j) = on_range_weaken (seq_seq_match_it...
{ "file_name": "lib/steel/Steel.ST.SeqMatch.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 629, "start_col": 0, "start_line": 611 }
module Steel.ST.SeqMatch include Steel.ST.OnRange open Steel.ST.GenElim module Seq = FStar.Seq module SZ = FStar.SizeT (* `seq_list_match` describes how to match a sequence of low-level values (the low-level contents of an array) with a list of high-level values. `seq_list_match` is carefully designed to be usable wi...
{ "checked_file": "/", "dependencies": [ "Steel.ST.OnRange.fsti.checked", "Steel.ST.GenElim.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "SZ" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "Steel.ST.GenElim", "short_module": null }, { "abbrev": false, "full_module": "Stee...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: (_: t1 -> _: t2 -> Steel.Effect.Common.vprop) -> s1: FStar.Seq.Base.seq t1 -> s2: FStar.Seq.Base.seq t2 -> i: Prims.nat -> j: Prims.nat -> Steel.ST.Effect.Ghost.STGhostT Prims.unit
Steel.ST.Effect.Ghost.STGhostT
[]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "FStar.Seq.Base.seq", "Prims.nat", "Steel.ST.OnRange.on_range_weaken", "Steel.ST.SeqMatch.seq_seq_match_item", "FStar.Pervasives.Native.option", "Steel.ST.SeqMatch.item_match_option", "Steel.ST.SeqMatch.seq_map", "FStar.Pervasives.Native.Some", ...
[]
false
true
false
false
false
let seq_seq_match_item_match_option_elim (#opened: _) (#t1 #t2: Type) (p: (t1 -> t2 -> vprop)) (s1: Seq.seq t1) (s2: Seq.seq t2) (i j: nat) : STGhostT unit opened (seq_seq_match (item_match_option p) s1 (seq_map Some s2) i j) (fun _ -> seq_seq_match p s1 s2 i j)...
on_range_weaken (seq_seq_match_item (item_match_option p) s1 (seq_map Some s2)) (seq_seq_match_item p s1 s2) i j (fun k -> rewrite (seq_seq_match_item (item_match_option p) s1 (seq_map Some s2) k) (seq_seq_match_item p s1 s2 k))
false
Trace.fst
Trace.tick_last
val tick_last : ns: Prims.list Prims.string -> Prims.list Prims.string
let rec tick_last (ns:list string) = match ns with | [] -> [] | [x] -> [x ^ "'"] | x::xs -> x :: (tick_last xs)
{ "file_name": "examples/tactics/Trace.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 32, "end_line": 62, "start_col": 0, "start_line": 58 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "Trace.fst" }
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ns: Prims.list Prims.string -> Prims.list Prims.string
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "Prims.string", "Prims.Nil", "Prims.Cons", "Prims.op_Hat", "Trace.tick_last" ]
[ "recursion" ]
false
false
false
true
false
let rec tick_last (ns: list string) =
match ns with | [] -> [] | [x] -> [x ^ "'"] | x :: xs -> x :: (tick_last xs)
false
FStar.UInt.fst
FStar.UInt.lemma_lognot_one_ext
val lemma_lognot_one_ext: #n:pos -> a:uint_t n -> Lemma (lognot #(n+1) (one_extend a) = lognot #n a)
val lemma_lognot_one_ext: #n:pos -> a:uint_t n -> Lemma (lognot #(n+1) (one_extend a) = lognot #n a)
let lemma_lognot_one_ext #n a = let lhs = lognot #(n+1) (one_extend a) in let rhs = lognot #n a in let av = to_vec a in assert (Seq.length av = n); let hd0 = Seq.create 1 false in let hd1 = Seq.create 1 true in let nav = to_vec (lognot #n a) in let eav = Seq.append hd1 av in append_lemma #1 #n hd1 av;...
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 38, "end_line": 512, "start_col": 0, "start_line": 498 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.lognot (FStar.UInt.one_extend a) = FStar.UInt.lognot a)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.Seq.Base.lemma_eq_elim", "Prims.bool", "FStar.Seq.Base.seq", "FStar.Seq.Base.append", "FStar.BitVector.bv_t", "Prims.op_Addition", "FStar.BitVector.lognot_vec", "Prims.unit", "FStar.UInt.append_lemma", "FStar.UInt.to_vec", "FStar.UInt.lognot", "FSta...
[]
true
false
true
false
false
let lemma_lognot_one_ext #n a =
let lhs = lognot #(n + 1) (one_extend a) in let rhs = lognot #n a in let av = to_vec a in assert (Seq.length av = n); let hd0 = Seq.create 1 false in let hd1 = Seq.create 1 true in let nav = to_vec (lognot #n a) in let eav = Seq.append hd1 av in append_lemma #1 #n hd1 av; append_lemma #1 #n hd0 nav; let nav = BitVector...
false
FStar.UInt.fst
FStar.UInt.lemma_lognot_value_nonzero
val lemma_lognot_value_nonzero: #n:pos -> a:uint_t n{a <> 0} -> Lemma (lognot a = sub_mod (sub_mod 0 a) 1)
val lemma_lognot_value_nonzero: #n:pos -> a:uint_t n{a <> 0} -> Lemma (lognot a = sub_mod (sub_mod 0 a) 1)
let lemma_lognot_value_nonzero #n a = let p = pow2 n in lemma_lognot_value_variation #n a; assert (lognot a = (-a) % (pow2 n) - 1 % (pow2 n)); assert (sub_mod (sub_mod 0 a) 1 = (((0 - a) % p) - 1) % p); lemma_mod_variation #n a; assert (((-a) % p) - 1 % p = (((-a) % p) - 1) % p); assert ((-a) % p - 1 % p ...
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 53, "end_line": 609, "start_col": 0, "start_line": 602 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n {a <> 0} -> FStar.Pervasives.Lemma (ensures FStar.UInt.lognot a = FStar.UInt.sub_mod (FStar.UInt.sub_mod 0 a) 1)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.b2t", "Prims.op_disEquality", "Prims.int", "Prims._assert", "Prims.op_Equality", "Prims.op_Subtraction", "Prims.op_Modulus", "Prims.op_Minus", "Prims.unit", "FStar.UInt.lemma_mod_variation", "FStar.UInt.sub_mod", "FStar.UInt.lognot", "Prims.pow2",...
[]
true
false
true
false
false
let lemma_lognot_value_nonzero #n a =
let p = pow2 n in lemma_lognot_value_variation #n a; assert (lognot a = (- a) % (pow2 n) - 1 % (pow2 n)); assert (sub_mod (sub_mod 0 a) 1 = (((0 - a) % p) - 1) % p); lemma_mod_variation #n a; assert (((- a) % p) - 1 % p = (((- a) % p) - 1) % p); assert ((- a) % p - 1 % p = (((0 - a) % p) - 1) % p)
false
FStar.UInt.fst
FStar.UInt.lemma_lognot_zero_ext
val lemma_lognot_zero_ext: #n:pos -> a:uint_t n -> Lemma (lognot #(n+1) (zero_extend a) = pow2 n + (lognot #n a))
val lemma_lognot_zero_ext: #n:pos -> a:uint_t n -> Lemma (lognot #(n+1) (zero_extend a) = pow2 n + (lognot #n a))
let lemma_lognot_zero_ext #n a = let lhs = lognot #(n+1) a in let rhs = pow2 n + (lognot #n a) in let av = to_vec a in assert (Seq.length av = n); let hd0 = Seq.create 1 false in let hd1 = Seq.create 1 true in let nav = to_vec (lognot a) in let eav = Seq.append hd0 av in append_lemma #1 #n hd0 av; ...
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 32, "end_line": 496, "start_col": 0, "start_line": 467 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.lognot (FStar.UInt.zero_extend a) = Prims.pow2 n + FStar.UInt.lognot a)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims._assert", "Prims.b2t", "Prims.op_Equality", "Prims.op_Addition", "FStar.UInt.from_vec", "Prims.unit", "FStar.Seq.Base.seq", "Prims.bool", "FStar.Seq.Base.lemma_eq_intro", "Prims.l_Forall", "Prims.op_LessThan", "FStar.Seq.Base.index", "Prims.int", ...
[]
false
false
true
false
false
let lemma_lognot_zero_ext #n a =
let lhs = lognot #(n + 1) a in let rhs = pow2 n + (lognot #n a) in let av = to_vec a in assert (Seq.length av = n); let hd0 = Seq.create 1 false in let hd1 = Seq.create 1 true in let nav = to_vec (lognot a) in let eav = Seq.append hd0 av in append_lemma #1 #n hd0 av; assert (from_vec #(n + 1) eav = op_Multiply (from_ve...
false
FStar.UInt.fst
FStar.UInt.lemma_one_extend
val lemma_one_extend: #n:pos -> a:uint_t n -> Lemma (one_extend a = pow2 n + a) [SMTPat (one_extend a)]
val lemma_one_extend: #n:pos -> a:uint_t n -> Lemma (one_extend a = pow2 n + a) [SMTPat (one_extend a)]
let lemma_one_extend #n a = let hd1 = Seq.create 1 true in let av = to_vec a in let eav = Seq.append hd1 av in let r = one_extend a in append_lemma #1 #n hd1 av; assert (r = from_vec eav); from_vec_propriety #(n+1) eav 1; assert (r = pow2 n + a)
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 25, "end_line": 463, "start_col": 0, "start_line": 455 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.one_extend a = Prims.pow2 n + a) [SMTPat (FStar.UInt.one_extend a)]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims._assert", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.op_Addition", "Prims.pow2", "Prims.unit", "FStar.UInt.from_vec_propriety", "FStar.UInt.from_vec", "FStar.UInt.append_lemma", "FStar.UInt.one_extend", "FStar.Seq.Base.seq", "Prims.bool...
[]
true
false
true
false
false
let lemma_one_extend #n a =
let hd1 = Seq.create 1 true in let av = to_vec a in let eav = Seq.append hd1 av in let r = one_extend a in append_lemma #1 #n hd1 av; assert (r = from_vec eav); from_vec_propriety #(n + 1) eav 1; assert (r = pow2 n + a)
false
Trace.fst
Trace.fact
val fact (n: nat) : Tot nat
val fact (n: nat) : Tot nat
let fact (n : nat) : Tot nat = fact_aux n 1
{ "file_name": "examples/tactics/Trace.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 43, "end_line": 179, "start_col": 0, "start_line": 179 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "Trace.fst" }
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Prims.nat -> Prims.nat
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Trace.fact_aux" ]
[]
false
false
false
true
false
let fact (n: nat) : Tot nat =
fact_aux n 1
false
Trace.fst
Trace.instrument_body
val instrument_body (ii: ins_info) (t: term) : Tac term
val instrument_body (ii: ins_info) (t: term) : Tac term
let rec instrument_body (ii : ins_info) (t : term) : Tac term = match inspect_unascribe t with // descend into matches | Tv_Match t ret_opt brs -> begin let brs' = map (ins_br ii) brs in pack (Tv_Match t ret_opt brs') end // descend into lets | Tv_Let r attrs b t1 t2 -> begin let t2' = instrum...
{ "file_name": "examples/tactics/Trace.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 9, "end_line": 116, "start_col": 0, "start_line": 86 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "Trace.fst" }
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ii: Trace.ins_info -> t: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac FStar.Tactics.NamedView.term
FStar.Tactics.Effect.Tac
[]
[ "instrument_body", "ins_br" ]
[ "Trace.ins_info", "FStar.Tactics.NamedView.term", "FStar.Pervasives.Native.option", "FStar.Tactics.NamedView.match_returns_ascription", "Prims.list", "FStar.Tactics.NamedView.branch", "FStar.Tactics.NamedView.pack", "FStar.Tactics.NamedView.Tv_Match", "FStar.Tactics.Util.map", "Trace.ins_br", "P...
[ "mutual recursion" ]
false
true
false
false
false
let rec instrument_body (ii: ins_info) (t: term) : Tac term =
match inspect_unascribe t with | Tv_Match t ret_opt brs -> let brs' = map (ins_br ii) brs in pack (Tv_Match t ret_opt brs') | Tv_Let r attrs b t1 t2 -> let t2' = instrument_body ii t2 in pack (Tv_Let r attrs b t1 t2') | _ -> let hd, args = collect_app t in let argpack = mktuple_n ii.args in if term_is_fv ...
false
Steel.ST.SeqMatch.fst
Steel.ST.SeqMatch.seq_seq_match_item_match_option_intro
val seq_seq_match_item_match_option_intro (#opened: _) (#t1 #t2: Type) (p: (t1 -> t2 -> vprop)) (s1: Seq.seq t1) (s2: Seq.seq t2) (i j: nat) : STGhostT unit opened (seq_seq_match p s1 s2 i j) (fun _ -> seq_seq_match (item_match_option p) s1 (seq_map Some s2) i j...
val seq_seq_match_item_match_option_intro (#opened: _) (#t1 #t2: Type) (p: (t1 -> t2 -> vprop)) (s1: Seq.seq t1) (s2: Seq.seq t2) (i j: nat) : STGhostT unit opened (seq_seq_match p s1 s2 i j) (fun _ -> seq_seq_match (item_match_option p) s1 (seq_map Some s2) i j...
let seq_seq_match_item_match_option_intro (#opened: _) (#t1 #t2: Type) (p: t1 -> t2 -> vprop) (s1: Seq.seq t1) (s2: Seq.seq t2) (i j: nat) : STGhostT unit opened (seq_seq_match p s1 s2 i j) (fun _ -> seq_seq_match (item_match_option p) s1 (seq_map Some s2) i j) = on_range_weaken (seq_seq_match_i...
{ "file_name": "lib/steel/Steel.ST.SeqMatch.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 649, "start_col": 0, "start_line": 631 }
module Steel.ST.SeqMatch include Steel.ST.OnRange open Steel.ST.GenElim module Seq = FStar.Seq module SZ = FStar.SizeT (* `seq_list_match` describes how to match a sequence of low-level values (the low-level contents of an array) with a list of high-level values. `seq_list_match` is carefully designed to be usable wi...
{ "checked_file": "/", "dependencies": [ "Steel.ST.OnRange.fsti.checked", "Steel.ST.GenElim.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "SZ" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "Steel.ST.GenElim", "short_module": null }, { "abbrev": false, "full_module": "Stee...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: (_: t1 -> _: t2 -> Steel.Effect.Common.vprop) -> s1: FStar.Seq.Base.seq t1 -> s2: FStar.Seq.Base.seq t2 -> i: Prims.nat -> j: Prims.nat -> Steel.ST.Effect.Ghost.STGhostT Prims.unit
Steel.ST.Effect.Ghost.STGhostT
[]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "FStar.Seq.Base.seq", "Prims.nat", "Steel.ST.OnRange.on_range_weaken", "Steel.ST.SeqMatch.seq_seq_match_item", "FStar.Pervasives.Native.option", "Steel.ST.SeqMatch.item_match_option", "Steel.ST.SeqMatch.seq_map", "FStar.Pervasives.Native.Some", ...
[]
false
true
false
false
false
let seq_seq_match_item_match_option_intro (#opened: _) (#t1 #t2: Type) (p: (t1 -> t2 -> vprop)) (s1: Seq.seq t1) (s2: Seq.seq t2) (i j: nat) : STGhostT unit opened (seq_seq_match p s1 s2 i j) (fun _ -> seq_seq_match (item_match_option p) s1 (seq_map Some s2) i j...
on_range_weaken (seq_seq_match_item p s1 s2) (seq_seq_match_item (item_match_option p) s1 (seq_map Some s2)) i j (fun k -> rewrite (seq_seq_match_item p s1 s2 k) (seq_seq_match_item (item_match_option p) s1 (seq_map Some s2) k))
false
Trace.fst
Trace.ins_br
val ins_br (ii: ins_info) (br: branch) : Tac branch
val ins_br (ii: ins_info) (br: branch) : Tac branch
let rec instrument_body (ii : ins_info) (t : term) : Tac term = match inspect_unascribe t with // descend into matches | Tv_Match t ret_opt brs -> begin let brs' = map (ins_br ii) brs in pack (Tv_Match t ret_opt brs') end // descend into lets | Tv_Let r attrs b t1 t2 -> begin let t2' = instrum...
{ "file_name": "examples/tactics/Trace.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 9, "end_line": 116, "start_col": 0, "start_line": 86 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "Trace.fst" }
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ii: Trace.ins_info -> br: FStar.Tactics.NamedView.branch -> FStar.Tactics.Effect.Tac FStar.Tactics.NamedView.branch
FStar.Tactics.Effect.Tac
[]
[ "instrument_body", "ins_br" ]
[ "Trace.ins_info", "FStar.Tactics.NamedView.branch", "FStar.Tactics.NamedView.pattern", "FStar.Tactics.NamedView.term", "FStar.Pervasives.Native.Mktuple2", "Trace.instrument_body" ]
[ "mutual recursion" ]
false
true
false
false
false
let rec ins_br (ii: ins_info) (br: branch) : Tac branch =
let p, t = br in let t' = instrument_body ii t in (p, t')
false
Lib.ByteSequence.fst
Lib.ByteSequence.some_arithmetic
val some_arithmetic: t:inttype{~(U1? t)} -> n:nat -> i:nat -> Lemma (let m = numbytes t in n / pow2 (bits t * (i / m)) % pow2 (bits t) / pow2 (8 * (i % m)) % pow2 8 == n / pow2 (8 * i) % pow2 8)
val some_arithmetic: t:inttype{~(U1? t)} -> n:nat -> i:nat -> Lemma (let m = numbytes t in n / pow2 (bits t * (i / m)) % pow2 (bits t) / pow2 (8 * (i % m)) % pow2 8 == n / pow2 (8 * i) % pow2 8)
let some_arithmetic t n i = let m = numbytes t in calc (==) { n / pow2 (bits t * (i / m)) % pow2 (bits t) / pow2 (8 * (i % m)) % pow2 8; == { assert (bits t == 8 * m) } n / pow2 ((8 * m) * (i / m)) % pow2 (8 * m) / pow2 (8 * (i % m)) % pow2 8; == { FStar.Math.Lemmas.paren_mul_right 8 m (i / m); ...
{ "file_name": "lib/Lib.ByteSequence.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 625, "start_col": 0, "start_line": 607 }
module Lib.ByteSequence open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.RawIntTypes open Lib.LoopCombinators #reset-options "--z3rlimit 100 --max_fuel 0 --max_ifuel 0" /// BEGIN constant-time sequence equality val lemma_not_equal_slice: #a:Type -> b1:Seq.seq a -> b2:Seq.seq a -> i:nat -> j:nat -> k:n...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.RawIntTypes", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Lib.IntTypes.inttype{~(U1? t)} -> n: Prims.nat -> i: Prims.nat -> FStar.Pervasives.Lemma (ensures (let m = Lib.IntTypes.numbytes t in n / Prims.pow2 (Lib.IntTypes.bits t * (i / m)) % Prims.pow2 (Lib.IntTypes.bits t) / Prims.pow2 (8 * (i % m)) % Prims.pow2 8 == n / Prims.po...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Lib.IntTypes.inttype", "Prims.l_not", "Prims.b2t", "Lib.IntTypes.uu___is_U1", "Prims.nat", "FStar.Calc.calc_finish", "Prims.int", "Prims.eq2", "Prims.op_Modulus", "Prims.op_Division", "Prims.pow2", "FStar.Mul.op_Star", "Lib.IntTypes.bits", "Prims.Cons", "FStar.Preorder.relation", "Pri...
[]
false
false
true
false
false
let some_arithmetic t n i =
let m = numbytes t in calc ( == ) { n / pow2 (bits t * (i / m)) % pow2 (bits t) / pow2 (8 * (i % m)) % pow2 8; ( == ) { assert (bits t == 8 * m) } n / pow2 ((8 * m) * (i / m)) % pow2 (8 * m) / pow2 (8 * (i % m)) % pow2 8; ( == ) { (FStar.Math.Lemmas.paren_mul_right 8 m (i / m); FStar.Math.Lemmas.euclidean_d...
false
Trace.fst
Trace.cutlast
val cutlast (l: list 'a {length l > 0}) : list 'a * 'a
val cutlast (l: list 'a {length l > 0}) : list 'a * 'a
let rec cutlast (l : list 'a{length l > 0}) : list 'a * 'a = match l with | [x] -> [], x | x::xs -> let ys, y = cutlast xs in x::ys, y
{ "file_name": "examples/tactics/Trace.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 49, "end_line": 121, "start_col": 0, "start_line": 118 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "Trace.fst" }
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: Prims.list 'a {FStar.List.Tot.Base.length l > 0} -> Prims.list 'a * 'a
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "Prims.b2t", "Prims.op_GreaterThan", "FStar.List.Tot.Base.length", "FStar.Pervasives.Native.Mktuple2", "Prims.Nil", "Prims.Cons", "FStar.Pervasives.Native.tuple2", "Trace.cutlast" ]
[ "recursion" ]
false
false
false
false
false
let rec cutlast (l: list 'a {length l > 0}) : list 'a * 'a =
match l with | [x] -> [], x | x :: xs -> let ys, y = cutlast xs in x :: ys, y
false
Trace.fst
Trace.fall
val fall (n: mynat) : Tot mynat
val fall (n: mynat) : Tot mynat
let rec fall (n : mynat) : Tot mynat = match n with | Z -> Z | S n -> fall n
{ "file_name": "examples/tactics/Trace.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 19, "end_line": 158, "start_col": 0, "start_line": 155 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "Trace.fst" }
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Trace.mynat -> Trace.mynat
Prims.Tot
[ "total" ]
[]
[ "Trace.mynat", "Trace.Z", "Trace.fall" ]
[ "recursion" ]
false
false
false
true
false
let rec fall (n: mynat) : Tot mynat =
match n with | Z -> Z | S n -> fall n
false
FStar.UInt.fst
FStar.UInt.lemma_lognot_value_mod
val lemma_lognot_value_mod: #n:pos -> a:uint_t n -> Lemma (requires True) (ensures (lognot a = pow2 n - a - 1)) (decreases n)
val lemma_lognot_value_mod: #n:pos -> a:uint_t n -> Lemma (requires True) (ensures (lognot a = pow2 n - a - 1)) (decreases n)
let rec lemma_lognot_value_mod #n a = if n = 1 then () else begin assert (-pow2 n <= (-(a+1)) && -(a+1) < 0); let av = to_vec a in let hd = from_vec #1 (Seq.slice (to_vec a) 0 1) in let tl = from_vec #(n-1) (Seq.slice (to_vec a) 1 n) in assert (hd = 0 || hd = 1); let hdpow ...
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 7, "end_line": 550, "start_col": 0, "start_line": 515 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> FStar.Pervasives.Lemma (ensures FStar.UInt.lognot a = Prims.pow2 n - a - 1) (decreases n)
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.op_Equality", "Prims.int", "Prims.bool", "FStar.UInt.lemma_zero_extend", "Prims.op_Subtraction", "Prims.unit", "FStar.UInt.lemma_lognot_zero_ext", "Prims._assert", "Prims.b2t", "FStar.UInt.lognot", "FStar.UInt.lemma_one_extend", "FStar.UInt.lemma_lo...
[ "recursion" ]
false
false
true
false
false
let rec lemma_lognot_value_mod #n a =
if n = 1 then () else (assert (- pow2 n <= (- (a + 1)) && - (a + 1) < 0); let av = to_vec a in let hd = from_vec #1 (Seq.slice (to_vec a) 0 1) in let tl = from_vec #(n - 1) (Seq.slice (to_vec a) 1 n) in assert (hd = 0 || hd = 1); let hdpow = op_Multiply hd (pow2 (n - 1)) in from_vec_propriety ...
false
FStar.UInt.fst
FStar.UInt.lemma_lognot_value_zero
val lemma_lognot_value_zero: #n:pos -> a:uint_t n{a = 0} -> Lemma (lognot a = sub_mod (sub_mod 0 a) 1)
val lemma_lognot_value_zero: #n:pos -> a:uint_t n{a = 0} -> Lemma (lognot a = sub_mod (sub_mod 0 a) 1)
let lemma_lognot_value_zero #n a = let p = pow2 n in calc (==) { sub_mod (sub_mod 0 a) 1; == { } sub_mod ((0 - a) % p) 1; == { } ((0 - a) % p - 1) % p; == { } (0 % p - 1) % p; == { modulo_lemma 0 p } (0 - 1) % p; == { lemma_mod_sub_0 p } p - 1; == { } p - 0 - 1; ...
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 3, "end_line": 571, "start_col": 0, "start_line": 553 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n {a = 0} -> FStar.Pervasives.Lemma (ensures FStar.UInt.lognot a = FStar.UInt.sub_mod (FStar.UInt.sub_mod 0 a) 1)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.b2t", "Prims.op_Equality", "Prims.int", "FStar.Calc.calc_finish", "Prims.eq2", "FStar.UInt.sub_mod", "FStar.UInt.lognot", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", "Prims.unit", "FStar.Calc.calc_step", "Prims.op_Subtraction", "Prims....
[]
false
false
true
false
false
let lemma_lognot_value_zero #n a =
let p = pow2 n in calc ( == ) { sub_mod (sub_mod 0 a) 1; ( == ) { () } sub_mod ((0 - a) % p) 1; ( == ) { () } ((0 - a) % p - 1) % p; ( == ) { () } (0 % p - 1) % p; ( == ) { modulo_lemma 0 p } (0 - 1) % p; ( == ) { lemma_mod_sub_0 p } p - 1; ( == ) { () } p - 0 - 1; ( == ) { lemma_lognot_valu...
false
Trace.fst
Trace.instrument
val instrument (f: 'a) : Tac unit
val instrument (f: 'a) : Tac unit
let instrument (f : 'a) : Tac unit = let t = quote f in // name let n = match inspect t with | Tv_FVar fv -> fv | _ -> fail "Not a top-level" in let n' = tick n in let all_args = intros () in if length all_args = 0 then fail "Function has no arguments?"; let...
{ "file_name": "examples/tactics/Trace.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 12, "end_line": 153, "start_col": 0, "start_line": 123 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "Trace.fst" }
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: 'a -> FStar.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.list", "FStar.Tactics.NamedView.binding", "FStar.Tactics.V2.Derived.trefl", "Prims.unit", "FStar.Stubs.Tactics.V2.Builtins.norm", "Prims.Nil", "FStar.Pervasives.norm_step", "FStar.Tactics.V2.Derived.focus", "FStar.Tactics.V2.Derived.repeat", "FStar.Tactics.V2.Derived.smt", "FStar.Tactics....
[]
false
true
false
false
false
let instrument (f: 'a) : Tac unit =
let t = quote f in let n = match inspect t with | Tv_FVar fv -> fv | _ -> fail "Not a top-level" in let n' = tick n in let all_args = intros () in if length all_args = 0 then fail "Function has no arguments?"; let real, trace_arg = cutlast all_args in let real = map (fun b -> pack (Tv_Var (binding_to_namedv b))) ...
false
Trace.fst
Trace.fact_aux
val fact_aux (n acc: nat) : Tot nat
val fact_aux (n acc: nat) : Tot nat
let rec fact_aux (n acc : nat) : Tot nat = if n = 0 then acc else let acc' = acc `op_Multiply` n in fact_aux (n - 1) acc'
{ "file_name": "examples/tactics/Trace.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 64, "end_line": 177, "start_col": 0, "start_line": 174 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "Trace.fst" }
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Prims.nat -> acc: Prims.nat -> Prims.nat
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.op_Equality", "Prims.int", "Prims.bool", "Trace.fact_aux", "Prims.op_Subtraction", "Prims.op_Multiply" ]
[ "recursion" ]
false
false
false
true
false
let rec fact_aux (n acc: nat) : Tot nat =
if n = 0 then acc else let acc' = acc `op_Multiply` n in fact_aux (n - 1) acc'
false
Trace.fst
Trace.fact'
val fact' (n: nat) (tr: list nat) : Tot (list nat * int)
val fact' (n: nat) (tr: list nat) : Tot (list nat * int)
let rec fact' (n : nat) (tr : list nat) : Tot (list nat * int) = synth_by_tactic #(nat -> list nat -> (list nat * int)) (fun () -> instrument fact) n tr
{ "file_name": "examples/tactics/Trace.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 91, "end_line": 193, "start_col": 0, "start_line": 192 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_file": "Trace.fst" }
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Prims.nat -> tr: Prims.list Prims.nat -> Prims.list Prims.nat * Prims.int
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.list", "Prims.op_Equality", "Prims.int", "FStar.Pervasives.Native.Mktuple2", "Prims.Cons", "Prims.bool", "Trace.fact_aux", "Prims.op_Subtraction", "Prims.op_Multiply", "FStar.Pervasives.Native.tuple2" ]
[ "recursion" ]
false
false
false
true
false
let rec fact' (n: nat) (tr: list nat) : Tot (list nat * int) =
synth_by_tactic #(nat -> list nat -> (list nat * int)) (fun () -> instrument fact) n tr
false
Steel.ST.SeqMatch.fst
Steel.ST.SeqMatch.seq_list_match_cons_intro
val seq_list_match_cons_intro (#opened: _) (#t #t': Type) (a: t) (a': t') (c: Seq.seq t) (v: list t') (item_match: (t -> v': t'{v' << a' :: v} -> vprop)) : STGhostT unit opened ((item_match a a') `star` (seq_list_match c v item_match)) (fun _ -> seq_list_m...
val seq_list_match_cons_intro (#opened: _) (#t #t': Type) (a: t) (a': t') (c: Seq.seq t) (v: list t') (item_match: (t -> v': t'{v' << a' :: v} -> vprop)) : STGhostT unit opened ((item_match a a') `star` (seq_list_match c v item_match)) (fun _ -> seq_list_m...
let seq_list_match_cons_intro (#opened: _) (#t #t': Type) (a: t) (a' : t') (c: Seq.seq t) (v: list t') (item_match: (t -> (v': t' { v' << a' :: v }) -> vprop)) : STGhostT unit opened (item_match a a' `star` seq_list_match c v item_match) (fun _ -> seq_list_match (Seq.cons a c) (a' :: v) item_match...
{ "file_name": "lib/steel/Steel.ST.SeqMatch.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 56, "end_line": 105, "start_col": 0, "start_line": 90 }
module Steel.ST.SeqMatch include Steel.ST.OnRange open Steel.ST.GenElim module Seq = FStar.Seq module SZ = FStar.SizeT (* `seq_list_match` describes how to match a sequence of low-level values (the low-level contents of an array) with a list of high-level values. `seq_list_match` is carefully designed to be usable wi...
{ "checked_file": "/", "dependencies": [ "Steel.ST.OnRange.fsti.checked", "Steel.ST.GenElim.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "SZ" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": false, "full_module": "Steel.ST.GenElim", "short_module": null }, { "abbrev": false, "full_module": "Stee...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: t -> a': t' -> c: FStar.Seq.Base.seq t -> v: Prims.list t' -> item_match: (_: t -> v': t'{v' << a' :: v} -> Steel.Effect.Common.vprop) -> Steel.ST.Effect.Ghost.STGhostT Prims.unit
Steel.ST.Effect.Ghost.STGhostT
[]
[]
[ "Steel.Memory.inames", "FStar.Seq.Base.seq", "Prims.list", "Prims.precedes", "Prims.Cons", "Steel.Effect.Common.vprop", "Steel.ST.Util.rewrite", "Steel.ST.SeqMatch.seq_list_match_cons0", "FStar.Seq.Base.cons", "Steel.ST.SeqMatch.seq_list_match", "Prims.unit", "Steel.ST.Util.noop", "Steel.ST....
[]
false
true
false
false
false
let seq_list_match_cons_intro (#opened: _) (#t #t': Type) (a: t) (a': t') (c: Seq.seq t) (v: list t') (item_match: (t -> v': t'{v' << a' :: v} -> vprop)) : STGhostT unit opened ((item_match a a') `star` (seq_list_match c v item_match)) (fun _ -> seq_list_m...
seq_list_match_cons_eq (Seq.cons a c) (a' :: v) item_match; noop (); rewrite (seq_list_match_cons0 (Seq.cons a c) (a' :: v) item_match seq_list_match) (seq_list_match (Seq.cons a c) (a' :: v) item_match)
false
CQueue.fst
CQueue.llist_fragment_head_append
val llist_fragment_head_append (#opened: _) (#a: Type) (l1: Ghost.erased (list a)) (phead1: ref (ccell_ptrvalue a)) (head1: ccell_ptrvalue a) (l2: Ghost.erased (list a)) (phead2: ref (ccell_ptrvalue a)) (head2: ccell_ptrvalue a) : SteelGhost (Ghost.erased (list a)) ...
val llist_fragment_head_append (#opened: _) (#a: Type) (l1: Ghost.erased (list a)) (phead1: ref (ccell_ptrvalue a)) (head1: ccell_ptrvalue a) (l2: Ghost.erased (list a)) (phead2: ref (ccell_ptrvalue a)) (head2: ccell_ptrvalue a) : SteelGhost (Ghost.erased (list a)) ...
let rec llist_fragment_head_append (#opened: _) (#a: Type) (l1: Ghost.erased (list a)) (phead1: ref (ccell_ptrvalue a)) (head1: ccell_ptrvalue a) (l2: Ghost.erased (list a)) (phead2: ref (ccell_ptrvalue a)) (head2: ccell_ptrvalue a) : SteelGhost (Ghost.erased (list a)) opened (llist_fragment_head l1...
{ "file_name": "share/steel/examples/steel/CQueue.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 981, "start_col": 0, "start_line": 940 }
module CQueue open CQueue.LList #set-options "--ide_id_info_off" //Re-define squash, since this module explicitly //replies on proving equalities of the form `t_of v == squash p` //which are delicate in the presence of optimizations that //unfold `Prims.squash (p /\ q)`to _:unit{p /\ q} //See Issue #2496 let squash (...
{ "checked_file": "/", "dependencies": [ "Steel.Memory.fsti.checked", "prims.fst.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "CQueue.LList.fsti.checked" ], "interface_file": true, "source...
[ { "abbrev": false, "full_module": "CQueue.LList", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Steel.Reference", "short_module": null }, { "abbrev": false, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l1: FStar.Ghost.erased (Prims.list a) -> phead1: Steel.Reference.ref (CQueue.Cell.ccell_ptrvalue a) -> head1: CQueue.Cell.ccell_ptrvalue a -> l2: FStar.Ghost.erased (Prims.list a) -> phead2: Steel.Reference.ref (CQueue.Cell.ccell_ptrvalue a) -> head2: CQueue.Cell.ccell_ptrvalue a -> Steel.Eff...
Steel.Effect.Atomic.SteelGhost
[ "" ]
[]
[ "Steel.Memory.inames", "FStar.Ghost.erased", "Prims.list", "Steel.Reference.ref", "CQueue.Cell.ccell_ptrvalue", "Prims.uu___is_Nil", "FStar.Ghost.reveal", "Prims.unit", "Steel.Effect.Atomic.change_equal_slprop", "CQueue.llist_fragment_head", "CQueue.elim_llist_fragment_head_nil", "Prims.bool",...
[ "recursion" ]
false
true
false
false
false
let rec llist_fragment_head_append (#opened: _) (#a: Type) (l1: Ghost.erased (list a)) (phead1: ref (ccell_ptrvalue a)) (head1: ccell_ptrvalue a) (l2: Ghost.erased (list a)) (phead2: ref (ccell_ptrvalue a)) (head2: ccell_ptrvalue a) : SteelGhost (Ghost.erased (list a)...
if Nil? l1 then (elim_llist_fragment_head_nil l1 phead1 head1; change_equal_slprop (llist_fragment_head l2 phead2 head2) (llist_fragment_head l2 phead1 head1); l2) else let u = elim_llist_fragment_head_cons l1 phead1 head1 in let head1':Ghost.erased (ccell_lvalue a) = head1 in let l3 = llist_fragmen...
false
FStar.UInt.fst
FStar.UInt.shift_right_value_aux_3
val shift_right_value_aux_3: #n:pos -> a:uint_t n -> s:pos{s < n} -> Lemma (requires True) (ensures shift_right #n a s = a / pow2 s)
val shift_right_value_aux_3: #n:pos -> a:uint_t n -> s:pos{s < n} -> Lemma (requires True) (ensures shift_right #n a s = a / pow2 s)
let shift_right_value_aux_3 #n a s = append_lemma #s #(n - s) (zero_vec #s) (slice (to_vec a) 0 (n - s)); slice_left_lemma #n (to_vec a) (n - s)
{ "file_name": "ulib/FStar.UInt.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 40, "end_line": 379, "start_col": 0, "start_line": 377 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.Base.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lib.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Ca...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> s: Prims.pos{s < n} -> FStar.Pervasives.Lemma (ensures FStar.UInt.shift_right a s = a / Prims.pow2 s)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.b2t", "Prims.op_LessThan", "FStar.UInt.slice_left_lemma", "FStar.UInt.to_vec", "Prims.op_Subtraction", "Prims.unit", "FStar.UInt.append_lemma", "FStar.BitVector.zero_vec", "FStar.Seq.Base.slice", "Prims.bool" ]
[]
true
false
true
false
false
let shift_right_value_aux_3 #n a s =
append_lemma #s #(n - s) (zero_vec #s) (slice (to_vec a) 0 (n - s)); slice_left_lemma #n (to_vec a) (n - s)
false
Pulse.Checker.VPropEquiv.fst
Pulse.Checker.VPropEquiv.ve_unit_r
val ve_unit_r (g:env) (p:term) : vprop_equiv g (tm_star p tm_emp) p
val ve_unit_r (g:env) (p:term) : vprop_equiv g (tm_star p tm_emp) p
let ve_unit_r g (p:term) : vprop_equiv g (tm_star p tm_emp) p = VE_Trans _ _ _ _ (VE_Comm _ _ _) (VE_Unit _ _)
{ "file_name": "lib/steel/pulse/Pulse.Checker.VPropEquiv.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 48, "end_line": 23, "start_col": 0, "start_line": 22 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": true, "source_file": "Pulse.Checker.VPropEquiv.fst" }
[ { "abbrev": false, "full_module": "Pulse.Checker.Base", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing.Combinators", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
g: Pulse.Typing.Env.env -> p: Pulse.Syntax.Base.term -> Pulse.Typing.vprop_equiv g (Pulse.Syntax.Base.tm_star p Pulse.Syntax.Base.tm_emp) p
Prims.Tot
[ "total" ]
[]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.term", "Pulse.Typing.VE_Trans", "Pulse.Syntax.Base.tm_star", "Pulse.Syntax.Base.tm_emp", "Pulse.Typing.VE_Comm", "Pulse.Typing.VE_Unit", "Pulse.Typing.vprop_equiv" ]
[]
false
false
false
false
false
let ve_unit_r g (p: term) : vprop_equiv g (tm_star p tm_emp) p =
VE_Trans _ _ _ _ (VE_Comm _ _ _) (VE_Unit _ _)
false
Pulse.Checker.VPropEquiv.fst
Pulse.Checker.VPropEquiv.list_as_vprop_comm
val list_as_vprop_comm (g:env) (vp0 vp1:list term) : GTot (vprop_equiv g (list_as_vprop (vp0 @ vp1)) (list_as_vprop (vp1 @ vp0)))
val list_as_vprop_comm (g:env) (vp0 vp1:list term) : GTot (vprop_equiv g (list_as_vprop (vp0 @ vp1)) (list_as_vprop (vp1 @ vp0)))
let list_as_vprop_comm g (vp0 vp1:list term) : GTot (vprop_equiv g (list_as_vprop (vp0 @ vp1)) (list_as_vprop (vp1 @ vp0))) = let d1 : _ = list_as_vprop_append g vp0 vp1 in let d2 : _ = VE_Sym _ _ _ (list_as_vprop_append g vp1 vp0) in let d1 : _ = VE_Trans _ _ _ _ d1 (VE_Comm _ _ _) ...
{ "file_name": "lib/steel/pulse/Pulse.Checker.VPropEquiv.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 26, "end_line": 63, "start_col": 0, "start_line": 57 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": true, "source_file": "Pulse.Checker.VPropEquiv.fst" }
[ { "abbrev": false, "full_module": "Pulse.Checker.Base", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing.Combinators", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
g: Pulse.Typing.Env.env -> vp0: Prims.list Pulse.Syntax.Base.term -> vp1: Prims.list Pulse.Syntax.Base.term -> Prims.GTot (Pulse.Typing.vprop_equiv g (Pulse.Typing.Combinators.list_as_vprop (vp0 @ vp1)) (Pulse.Typing.Combinators.list_as_vprop (vp1 @ vp0)))
Prims.GTot
[ "sometrivial" ]
[]
[ "Pulse.Typing.Env.env", "Prims.list", "Pulse.Syntax.Base.term", "Pulse.Typing.VE_Trans", "Pulse.Typing.Combinators.list_as_vprop", "FStar.List.Tot.Base.op_At", "Pulse.Syntax.Base.tm_star", "Pulse.Typing.vprop_equiv", "Pulse.Typing.VE_Comm", "Pulse.Typing.VE_Sym", "Pulse.Checker.VPropEquiv.list_a...
[]
false
false
false
false
false
let list_as_vprop_comm g (vp0: list term) (vp1: list term) : GTot (vprop_equiv g (list_as_vprop (vp0 @ vp1)) (list_as_vprop (vp1 @ vp0))) =
let d1:_ = list_as_vprop_append g vp0 vp1 in let d2:_ = VE_Sym _ _ _ (list_as_vprop_append g vp1 vp0) in let d1:_ = VE_Trans _ _ _ _ d1 (VE_Comm _ _ _) in VE_Trans _ _ _ _ d1 d2
false
Pulse.Checker.VPropEquiv.fst
Pulse.Checker.VPropEquiv.list_as_vprop_ctx
val list_as_vprop_ctx (g:env) (vp0 vp0' vp1 vp1':list term) (_:vprop_equiv g (list_as_vprop vp0) (list_as_vprop vp0')) (_:vprop_equiv g (list_as_vprop vp1) (list_as_vprop vp1')) : GTot (vprop_equiv g (list_as_vprop (vp0 @ vp1)) (list_as_vprop (vp0' @ vp1')))
val list_as_vprop_ctx (g:env) (vp0 vp0' vp1 vp1':list term) (_:vprop_equiv g (list_as_vprop vp0) (list_as_vprop vp0')) (_:vprop_equiv g (list_as_vprop vp1) (list_as_vprop vp1')) : GTot (vprop_equiv g (list_as_vprop (vp0 @ vp1)) (list_as_vprop (vp0' @ vp1')))
let list_as_vprop_ctx g (vp0 vp0' vp1 vp1':list term) (d0:vprop_equiv g (list_as_vprop vp0) (list_as_vprop vp0')) (d1:vprop_equiv g (list_as_vprop vp1) (list_as_vprop vp1')) : GTot (vprop_equiv g (list_as_vprop (vp0 @ vp1)) (list_as_vprop (vp0' @ vp1'))) = let split_...
{ "file_name": "lib/steel/pulse/Pulse.Checker.VPropEquiv.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 80, "end_line": 79, "start_col": 0, "start_line": 71 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": true, "source_file": "Pulse.Checker.VPropEquiv.fst" }
[ { "abbrev": false, "full_module": "Pulse.Checker.Base", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing.Combinators", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
g: Pulse.Typing.Env.env -> vp0: Prims.list Pulse.Syntax.Base.term -> vp0': Prims.list Pulse.Syntax.Base.term -> vp1: Prims.list Pulse.Syntax.Base.term -> vp1': Prims.list Pulse.Syntax.Base.term -> d0: Pulse.Typing.vprop_equiv g (Pulse.Typing.Combinators.list_as_vprop vp0) ...
Prims.GTot
[ "sometrivial" ]
[]
[ "Pulse.Typing.Env.env", "Prims.list", "Pulse.Syntax.Base.term", "Pulse.Typing.vprop_equiv", "Pulse.Typing.Combinators.list_as_vprop", "Pulse.Typing.VE_Trans", "FStar.List.Tot.Base.op_At", "Pulse.Syntax.Base.tm_star", "Pulse.Typing.VE_Sym", "Pulse.Typing.VE_Ctxt", "Pulse.Checker.VPropEquiv.list_a...
[]
false
false
false
false
false
let list_as_vprop_ctx g (vp0: list term) (vp0': list term) (vp1: list term) (vp1': list term) (d0: vprop_equiv g (list_as_vprop vp0) (list_as_vprop vp0')) (d1: vprop_equiv g (list_as_vprop vp1) (list_as_vprop vp1')) : GTot (vprop_equiv g (list_as_vprop (vp0 @ vp1)) (list_as...
let split_app = list_as_vprop_append _ vp0 vp1 in let split_app' = list_as_vprop_append _ vp0' vp1' in let ctxt = VE_Ctxt _ _ _ _ _ d0 d1 in VE_Trans _ _ _ _ split_app (VE_Trans _ _ _ _ ctxt (VE_Sym _ _ _ split_app'))
false
Pulse.Checker.VPropEquiv.fst
Pulse.Checker.VPropEquiv.list_as_vprop_singleton
val list_as_vprop_singleton (g:env) (p q:term) (d:vprop_equiv g p q) : GTot (vprop_equiv g (list_as_vprop [p]) (list_as_vprop [q]))
val list_as_vprop_singleton (g:env) (p q:term) (d:vprop_equiv g p q) : GTot (vprop_equiv g (list_as_vprop [p]) (list_as_vprop [q]))
let list_as_vprop_singleton g (p q:term) (d:vprop_equiv g p q) : GTot (vprop_equiv g (list_as_vprop [p]) (list_as_vprop [q])) = d
{ "file_name": "lib/steel/pulse/Pulse.Checker.VPropEquiv.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 85, "start_col": 0, "start_line": 81 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": true, "source_file": "Pulse.Checker.VPropEquiv.fst" }
[ { "abbrev": false, "full_module": "Pulse.Checker.Base", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing.Combinators", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
g: Pulse.Typing.Env.env -> p: Pulse.Syntax.Base.term -> q: Pulse.Syntax.Base.term -> d: Pulse.Typing.vprop_equiv g p q -> Prims.GTot (Pulse.Typing.vprop_equiv g (Pulse.Typing.Combinators.list_as_vprop [p]) (Pulse.Typing.Combinators.list_as_vprop [q]))
Prims.GTot
[ "sometrivial" ]
[]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.term", "Pulse.Typing.vprop_equiv", "Pulse.Typing.Combinators.list_as_vprop", "Prims.Cons", "Prims.Nil" ]
[]
false
false
false
false
false
let list_as_vprop_singleton g (p: term) (q: term) (d: vprop_equiv g p q) : GTot (vprop_equiv g (list_as_vprop [p]) (list_as_vprop [q])) =
d
false
Pulse.Checker.VPropEquiv.fst
Pulse.Checker.VPropEquiv.vprop_equiv_swap_equiv
val vprop_equiv_swap_equiv (g:_) (l0 l2:list term) (p q:term) (d_p_q:vprop_equiv g p q) : GTot (vprop_equiv g (list_as_vprop ((l0 @ [q]) @ l2)) (list_as_vprop ([p] @ (l0 @ l2))))
val vprop_equiv_swap_equiv (g:_) (l0 l2:list term) (p q:term) (d_p_q:vprop_equiv g p q) : GTot (vprop_equiv g (list_as_vprop ((l0 @ [q]) @ l2)) (list_as_vprop ([p] @ (l0 @ l2))))
let vprop_equiv_swap_equiv (g:_) (l0 l2:list term) (p q:term) (d_p_q:vprop_equiv g p q) : vprop_equiv g (list_as_vprop ((l0 @ [q]) @ l2)) (list_as_vprop ([p] @ (l0 @ l2))) = let d : vprop_equiv g (list_as_vprop ((l0 @ [q]) @ l2)) ...
{ "file_name": "lib/steel/pulse/Pulse.Checker.VPropEquiv.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 25, "end_line": 131, "start_col": 0, "start_line": 109 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": true, "source_file": "Pulse.Checker.VPropEquiv.fst" }
[ { "abbrev": false, "full_module": "Pulse.Checker.Base", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing.Combinators", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Typing", "short_module": null }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
g: Pulse.Typing.Env.env -> l0: Prims.list Pulse.Syntax.Base.term -> l2: Prims.list Pulse.Syntax.Base.term -> p: Pulse.Syntax.Base.term -> q: Pulse.Syntax.Base.term -> d_p_q: Pulse.Typing.vprop_equiv g p q -> Prims.GTot (Pulse.Typing.vprop_equiv g (Pulse.Typing.Combinators.list_as_...
Prims.GTot
[ "sometrivial" ]
[]
[ "Pulse.Typing.Env.env", "Prims.list", "Pulse.Syntax.Base.term", "Pulse.Typing.vprop_equiv", "Pulse.Typing.VE_Trans", "Pulse.Typing.Combinators.list_as_vprop", "FStar.List.Tot.Base.op_At", "Prims.Cons", "Prims.Nil", "Pulse.Checker.VPropEquiv.list_as_vprop_ctx", "Pulse.Typing.VE_Refl", "Pulse.Ty...
[]
false
false
false
false
false
let vprop_equiv_swap_equiv (g: _) (l0 l2: list term) (p q: term) (d_p_q: vprop_equiv g p q) : vprop_equiv g (list_as_vprop ((l0 @ [q]) @ l2)) (list_as_vprop ([p] @ (l0 @ l2))) =
let d:vprop_equiv g (list_as_vprop ((l0 @ [q]) @ l2)) (list_as_vprop (([q] @ l0) @ l2)) = list_as_vprop_ctx g (l0 @ [q]) ([q] @ l0) l2 l2 (list_as_vprop_comm g l0 [q]) (VE_Refl _ _) in let d':vprop_equiv g (list_as_vprop (([q] @ l0) @ l2)) (list_as_vprop ([q] @ (l0 @ l2))) = List.Tot.append_assoc [q] l0 l2; VE_Re...
false
LowParseWriters.NoHoare.fst
LowParseWriters.NoHoare.read_reify_trivial
val read_reify_trivial (#a: Type) (#l: memory_invariant) (f: (unit -> ERead a True (fun _ -> True) (fun _ -> True) l)) : Tot (read_repr a l)
val read_reify_trivial (#a: Type) (#l: memory_invariant) (f: (unit -> ERead a True (fun _ -> True) (fun _ -> True) l)) : Tot (read_repr a l)
let read_reify_trivial (#a: Type) (#l: memory_invariant) (f: (unit -> ERead a True (fun _ -> True) (fun _ -> True) l)) : Tot (read_repr a l) = reify (f ())
{ "file_name": "examples/layeredeffects/LowParseWriters.NoHoare.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 14, "end_line": 17, "start_col": 0, "start_line": 12 }
module LowParseWriters.NoHoare include LowParseWriters inline_for_extraction let read_repr (t: Type) (inv: memory_invariant) : Tot Type = read_repr t True (fun _ -> True) (fun _ -> True) inv
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParseWriters.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.IndefiniteDescription.fsti.checked", "FStar.HyperSta...
[ { "abbrev": false, "full_module": "LowParseWriters", "short_module": null }, { "abbrev": false, "full_module": "LowParseWriters", "short_module": null }, { "abbrev": false, "full_module": "LowParseWriters", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.unit -> LowParseWriters.ERead a) -> LowParseWriters.NoHoare.read_repr a l
Prims.Tot
[ "total" ]
[]
[ "LowParseWriters.memory_invariant", "Prims.unit", "Prims.l_True", "LowParseWriters.NoHoare.read_repr" ]
[]
false
false
false
false
false
let read_reify_trivial (#a: Type) (#l: memory_invariant) (f: (unit -> ERead a True (fun _ -> True) (fun _ -> True) l)) : Tot (read_repr a l) =
reify (f ())
false
Hacl.Impl.HSalsa20.fst
Hacl.Impl.HSalsa20.hsalsa20
val hsalsa20: out:lbuffer uint8 32ul -> key:lbuffer uint8 32ul -> n:lbuffer uint8 16ul -> Stack unit (requires fun h -> live h key /\ live h n /\ live h out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == Spec.hsalsa20 (as_seq h0 key) (as_seq h0 n))
val hsalsa20: out:lbuffer uint8 32ul -> key:lbuffer uint8 32ul -> n:lbuffer uint8 16ul -> Stack unit (requires fun h -> live h key /\ live h n /\ live h out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == Spec.hsalsa20 (as_seq h0 key) (as_seq h0 n))
let hsalsa20 out key n = push_frame(); let ctx = create 16ul (u32 0) in hsalsa20_init ctx key n; Salsa20.rounds ctx; let r0 = ctx.(0ul) in let r1 = ctx.(5ul) in let r2 = ctx.(10ul) in let r3 = ctx.(15ul) in let r4 = ctx.(6ul) in let r5 = ctx.(7ul) in let r6 = ctx.(8ul) in let r7 = ctx.(9ul) in ...
{ "file_name": "code/salsa20/Hacl.Impl.HSalsa20.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 13, "end_line": 86, "start_col": 0, "start_line": 68 }
module Hacl.Impl.HSalsa20 open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer open Hacl.Impl.Salsa20.Core32 module ST = FStar.HyperStack.ST module Spec = Spec.Salsa20 module Loop = Lib.LoopCombinators module Salsa20 = Hacl.Impl.Salsa20 #set-options ...
{ "checked_file": "/", "dependencies": [ "Spec.Salsa20.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Impl.Salsa20.Core32.fst.checked", ...
[ { "abbrev": true, "full_module": "Hacl.Impl.Salsa20", "short_module": "Salsa20" }, { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loop" }, { "abbrev": true, "full_module": "Spec.Salsa20", "short_module": "Spec" }, { "abbrev": true, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
out: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> key: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> n: Lib.Buffer.lbuffer Lib.IntTypes.uint8 16ul -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "Lib.ByteBuffer.uints_to_bytes_le", "Lib.IntTypes.U32", "Lib.IntTypes.SEC", "Lib.Buffer.lbuffer_t", "Lib.Buffer.MUT", "Lib.IntTypes.int_t", "Lib.IntTypes.mk_int", "Lib.IntTy...
[]
false
true
false
false
false
let hsalsa20 out key n =
push_frame (); let ctx = create 16ul (u32 0) in hsalsa20_init ctx key n; Salsa20.rounds ctx; let r0 = ctx.(0ul) in let r1 = ctx.(5ul) in let r2 = ctx.(10ul) in let r3 = ctx.(15ul) in let r4 = ctx.(6ul) in let r5 = ctx.(7ul) in let r6 = ctx.(8ul) in let r7 = ctx.(9ul) in [@@ inline_let ]let res_l = [r0; r1; r2; r3; r4; ...
false
Spec.Box.Test.fst
Spec.Box.Test.nonce
val nonce:lbytes 24
val nonce:lbytes 24
let nonce : lbytes 24 = let l = List.Tot.map u8_from_UInt8 [ 0x00uy; 0x01uy; 0x02uy; 0x03uy; 0x04uy; 0x05uy; 0x06uy; 0x07uy; 0x08uy; 0x09uy; 0x10uy; 0x11uy; 0x12uy; 0x13uy; 0x14uy; 0x15uy; 0x16uy; 0x17uy; 0x18uy; 0x19uy; 0x20uy; 0x21uy; 0x22uy; 0x23uy ] in assert_norm (List.Tot.length l == 24); of_l...
{ "file_name": "specs/tests/Spec.Box.Test.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 36, "start_col": 0, "start_line": 29 }
module Spec.Box.Test open FStar.Mul open Lib.IntTypes open Lib.RawIntTypes open Lib.Sequence open Lib.ByteSequence open Spec.Box #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let plain : lbytes 72 = let l = List.Tot.map u8_from_UInt8 [ 0x00uy; 0x01uy; 0x02uy; 0x03uy; 0x04uy; 0x05uy; 0x06uy; 0x07uy; 0x08...
{ "checked_file": "/", "dependencies": [ "Spec.Curve25519.fst.checked", "Spec.Box.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Perva...
[ { "abbrev": false, "full_module": "Spec.Box", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 24
Prims.Tot
[ "total" ]
[]
[ "Lib.Sequence.of_list", "Lib.IntTypes.int_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "FStar.List.Tot.Base.length", "Prims.list", "FStar.List.Tot.Base.map", "FStar.UInt8.t", "Lib.RawIntTypes.u8_from_UInt8", "Prims.Cons"...
[]
false
false
false
false
false
let nonce:lbytes 24 =
let l = List.Tot.map u8_from_UInt8 [ 0x00uy; 0x01uy; 0x02uy; 0x03uy; 0x04uy; 0x05uy; 0x06uy; 0x07uy; 0x08uy; 0x09uy; 0x10uy; 0x11uy; 0x12uy; 0x13uy; 0x14uy; 0x15uy; 0x16uy; 0x17uy; 0x18uy; 0x19uy; 0x20uy; 0x21uy; 0x22uy; 0x23uy ] in assert_norm (List.Tot.length l == 24); of_list l
false