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
Hacl.Spec.K256.PrecompTable.fst
Hacl.Spec.K256.PrecompTable.create5_lseq
val create5_lseq (x0 x1 x2 x3 x4: uint64) : lseq uint64 5
val create5_lseq (x0 x1 x2 x3 x4: uint64) : lseq uint64 5
let create5_lseq (x0 x1 x2 x3 x4:uint64) : lseq uint64 5 = let l = [x0; x1; x2; x3; x4] in assert_norm (FL.length l = 5); Seq.seq_of_list l
{ "file_name": "code/k256/Hacl.Spec.K256.PrecompTable.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 19, "end_line": 19, "start_col": 0, "start_line": 16 }
module Hacl.Spec.K256.PrecompTable open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.K256.Field52.Definitions open Hacl.Impl.K256.Point module S = Spec.K256 module FL = FStar.List.Tot module SPT = Hacl.Spec.PrecompBaseTable #set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.PrecompBaseTable.fsti.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "Hacl.Impl.K256.Point.fsti.checked", "FStar.Se...
[ { "abbrev": true, "full_module": "Hacl.Spec.PrecompBaseTable", "short_module": "SPT" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "FL" }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "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
x0: Lib.IntTypes.uint64 -> x1: Lib.IntTypes.uint64 -> x2: Lib.IntTypes.uint64 -> x3: Lib.IntTypes.uint64 -> x4: Lib.IntTypes.uint64 -> Lib.Sequence.lseq Lib.IntTypes.uint64 5
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.uint64", "FStar.Seq.Base.seq_of_list", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.b2t", "Prims.op_Equality", "Prims.int", "FStar.List.Tot.Base.length", "Prims.list", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Prims.Cons", "Prims.Nil", "Lib.Sequ...
[]
false
false
false
false
false
let create5_lseq (x0 x1 x2 x3 x4: uint64) : lseq uint64 5 =
let l = [x0; x1; x2; x3; x4] in assert_norm (FL.length l = 5); Seq.seq_of_list l
false
Hacl.Spec.K256.PrecompTable.fst
Hacl.Spec.K256.PrecompTable.lemma_mod_pow2_sub
val lemma_mod_pow2_sub: x:nat -> a:nat -> b:nat -> Lemma (x / pow2 a % pow2 b * pow2 a == x % pow2 (a + b) - x % pow2 a)
val lemma_mod_pow2_sub: x:nat -> a:nat -> b:nat -> Lemma (x / pow2 a % pow2 b * pow2 a == x % pow2 (a + b) - x % pow2 a)
let lemma_mod_pow2_sub x a b = calc (==) { x / pow2 a % pow2 b * pow2 a; (==) { Math.Lemmas.pow2_modulo_division_lemma_1 x a (a + b) } x % pow2 (a + b) / pow2 a * pow2 a; (==) { Math.Lemmas.euclidean_division_definition (x % pow2 (a + b)) (pow2 a) } x % pow2 (a + b) - x % pow2 (a + b) % pow2 a; ...
{ "file_name": "code/k256/Hacl.Spec.K256.PrecompTable.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 88, "start_col": 0, "start_line": 79 }
module Hacl.Spec.K256.PrecompTable open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.K256.Field52.Definitions open Hacl.Impl.K256.Point module S = Spec.K256 module FL = FStar.List.Tot module SPT = Hacl.Spec.PrecompBaseTable #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let create5_lseq (x0 x1 x2 ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.PrecompBaseTable.fsti.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "Hacl.Impl.K256.Point.fsti.checked", "FStar.Se...
[ { "abbrev": true, "full_module": "Hacl.Spec.PrecompBaseTable", "short_module": "SPT" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "FL" }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "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
x: Prims.nat -> a: Prims.nat -> b: Prims.nat -> FStar.Pervasives.Lemma (ensures (x / Prims.pow2 a % Prims.pow2 b) * Prims.pow2 a == x % Prims.pow2 (a + b) - x % Prims.pow2 a)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "FStar.Calc.calc_finish", "Prims.int", "Prims.eq2", "FStar.Mul.op_Star", "Prims.op_Modulus", "Prims.op_Division", "Prims.pow2", "Prims.op_Subtraction", "Prims.op_Addition", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", "Prims.unit", "FStar.Calc.calc_step", "FStar.C...
[]
false
false
true
false
false
let lemma_mod_pow2_sub x a b =
calc ( == ) { (x / pow2 a % pow2 b) * pow2 a; ( == ) { Math.Lemmas.pow2_modulo_division_lemma_1 x a (a + b) } (x % pow2 (a + b) / pow2 a) * pow2 a; ( == ) { Math.Lemmas.euclidean_division_definition (x % pow2 (a + b)) (pow2 a) } x % pow2 (a + b) - x % pow2 (a + b) % pow2 a; ( == ) { Math.Lemmas.pow2_modulo_...
false
Hacl.Spec.K256.PrecompTable.fst
Hacl.Spec.K256.PrecompTable.list_as_felem5
val list_as_felem5 (f: felem_list) : felem5
val list_as_felem5 (f: felem_list) : felem5
let list_as_felem5 (f:felem_list) : felem5 = let x = Seq.seq_of_list f <: lseq uint64 5 in as_felem5_lseq x
{ "file_name": "code/k256/Hacl.Spec.K256.PrecompTable.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 18, "end_line": 33, "start_col": 0, "start_line": 31 }
module Hacl.Spec.K256.PrecompTable open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.K256.Field52.Definitions open Hacl.Impl.K256.Point module S = Spec.K256 module FL = FStar.List.Tot module SPT = Hacl.Spec.PrecompBaseTable #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let create5_lseq (x0 x1 x2 ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.PrecompBaseTable.fsti.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "Hacl.Impl.K256.Point.fsti.checked", "FStar.Se...
[ { "abbrev": true, "full_module": "Hacl.Spec.PrecompBaseTable", "short_module": "SPT" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "FL" }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "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
f: Hacl.Spec.K256.PrecompTable.felem_list -> Hacl.Spec.K256.Field52.Definitions.felem5
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.K256.PrecompTable.felem_list", "Hacl.Impl.K256.Point.as_felem5_lseq", "Lib.Sequence.lseq", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "FStar.Seq.Base.seq_of_list", "Lib.IntTypes.uint64", "Hacl.Spec.K256.Field52.Definitions.felem5" ]
[]
false
false
false
true
false
let list_as_felem5 (f: felem_list) : felem5 =
let x = Seq.seq_of_list f <: lseq uint64 5 in as_felem5_lseq x
false
Hacl.Spec.K256.PrecompTable.fst
Hacl.Spec.K256.PrecompTable.felem_to_list_index_lemma
val felem_to_list_index_lemma: x:S.felem -> Lemma (let (f0, f1, f2, f3, f4) = list_as_felem5 (felem_to_list x) in let x0 = x % pow52 in let x1 = x / pow52 % pow52 in let x2 = x / pow104 % pow52 in let x3 = x / pow156 % pow52 in let x4 = x / pow208 in v f0 == x0 /\ v f1 == x1 /\ v f2 == x2 /\ v...
val felem_to_list_index_lemma: x:S.felem -> Lemma (let (f0, f1, f2, f3, f4) = list_as_felem5 (felem_to_list x) in let x0 = x % pow52 in let x1 = x / pow52 % pow52 in let x2 = x / pow104 % pow52 in let x3 = x / pow156 % pow52 in let x4 = x / pow208 in v f0 == x0 /\ v f1 == x1 /\ v f2 == x2 /\ v...
let felem_to_list_index_lemma x = let x0 = x % pow52 in let x1 = x / pow52 % pow52 in let x2 = x / pow104 % pow52 in let x3 = x / pow156 % pow52 in let x4 = x / pow208 in let f = felem_to_list x in let (f0, f1, f2, f3, f4) = list_as_felem5 f in create5_lemma (u64 x0) (u64 x1) (u64 x2) (u64 x3) (u64 x4)...
{ "file_name": "code/k256/Hacl.Spec.K256.PrecompTable.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 77, "end_line": 55, "start_col": 0, "start_line": 45 }
module Hacl.Spec.K256.PrecompTable open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.K256.Field52.Definitions open Hacl.Impl.K256.Point module S = Spec.K256 module FL = FStar.List.Tot module SPT = Hacl.Spec.PrecompBaseTable #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let create5_lseq (x0 x1 x2 ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.PrecompBaseTable.fsti.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "Hacl.Impl.K256.Point.fsti.checked", "FStar.Se...
[ { "abbrev": true, "full_module": "Hacl.Spec.PrecompBaseTable", "short_module": "SPT" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "FL" }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "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
x: Spec.K256.PointOps.felem -> FStar.Pervasives.Lemma (ensures (let _ = Hacl.Spec.K256.PrecompTable.list_as_felem5 (Hacl.Spec.K256.PrecompTable.felem_to_list x) in (let FStar.Pervasives.Native.Mktuple5 #_ #_ #_ #_ #_ f0 f1 f2 f3 f4 = _ in let x0 = x % Hacl.Spec.K256.Field...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.K256.PointOps.felem", "Lib.IntTypes.uint64", "Prims._assert", "Prims.l_and", "Prims.eq2", "Prims.int", "Lib.IntTypes.v", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Prims.unit", "Hacl.Spec.K256.PrecompTable.create5_lemma", "Lib.IntTypes.u64", "Hacl.Spec.K256.Field52.Definitions.felem5", ...
[]
false
false
true
false
false
let felem_to_list_index_lemma x =
let x0 = x % pow52 in let x1 = x / pow52 % pow52 in let x2 = x / pow104 % pow52 in let x3 = x / pow156 % pow52 in let x4 = x / pow208 in let f = felem_to_list x in let f0, f1, f2, f3, f4 = list_as_felem5 f in create5_lemma (u64 x0) (u64 x1) (u64 x2) (u64 x3) (u64 x4); assert (v f0 == x0 /\ v f1 == x1 /\ v f2 == x2 /\ v...
false
Hacl.Spec.K256.PrecompTable.fst
Hacl.Spec.K256.PrecompTable.felem_to_list_lemma_fits
val felem_to_list_lemma_fits: x:S.felem -> Lemma (felem_fits5 (list_as_felem5 (felem_to_list x)) (1, 1, 1, 1, 1))
val felem_to_list_lemma_fits: x:S.felem -> Lemma (felem_fits5 (list_as_felem5 (felem_to_list x)) (1, 1, 1, 1, 1))
let felem_to_list_lemma_fits x = felem_to_list_index_lemma x; let x0 = x % pow52 in let x1 = x / pow52 % pow52 in let x2 = x / pow104 % pow52 in let x3 = x / pow156 % pow52 in let x4 = x / pow208 in assert (felem_fits1 (u64 x0) 1); assert (felem_fits1 (u64 x1) 1); assert (felem_fits1 (u64 x2) 1); as...
{ "file_name": "code/k256/Hacl.Spec.K256.PrecompTable.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 73, "start_col": 0, "start_line": 61 }
module Hacl.Spec.K256.PrecompTable open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.K256.Field52.Definitions open Hacl.Impl.K256.Point module S = Spec.K256 module FL = FStar.List.Tot module SPT = Hacl.Spec.PrecompBaseTable #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let create5_lseq (x0 x1 x2 ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.PrecompBaseTable.fsti.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "Hacl.Impl.K256.Point.fsti.checked", "FStar.Se...
[ { "abbrev": true, "full_module": "Hacl.Spec.PrecompBaseTable", "short_module": "SPT" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "FL" }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "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
x: Spec.K256.PointOps.felem -> FStar.Pervasives.Lemma (ensures Hacl.Spec.K256.Field52.Definitions.felem_fits5 (Hacl.Spec.K256.PrecompTable.list_as_felem5 (Hacl.Spec.K256.PrecompTable.felem_to_list x)) (1, 1, 1, 1, 1))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.K256.PointOps.felem", "Prims._assert", "Prims.b2t", "Hacl.Spec.K256.Field52.Definitions.felem_fits_last1", "Lib.IntTypes.u64", "Prims.unit", "FStar.Math.Lemmas.lemma_div_lt_nat", "Hacl.Spec.K256.Field52.Definitions.felem_fits1", "Prims.int", "Prims.op_Division", "Hacl.Spec.K256.Field52.Def...
[]
true
false
true
false
false
let felem_to_list_lemma_fits x =
felem_to_list_index_lemma x; let x0 = x % pow52 in let x1 = x / pow52 % pow52 in let x2 = x / pow104 % pow52 in let x3 = x / pow156 % pow52 in let x4 = x / pow208 in assert (felem_fits1 (u64 x0) 1); assert (felem_fits1 (u64 x1) 1); assert (felem_fits1 (u64 x2) 1); assert (felem_fits1 (u64 x3) 1); Math.Lemmas.lemma_div_...
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.tot_parse_u8
val tot_parse_u8: tot_parser parse_u8_kind U8.t
val tot_parse_u8: tot_parser parse_u8_kind U8.t
let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser 1 U8.t decode_u8
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 54, "end_line": 15, "start_col": 0, "start_line": 13 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = ()
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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
LowParse.Spec.Base.tot_parser LowParse.Spec.Int.parse_u8_kind FStar.UInt8.t
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Combinators.tot_make_total_constant_size_parser", "FStar.UInt8.t", "LowParse.Spec.Int.decode_u8", "Prims.unit", "LowParse.Spec.Int.decode_u8_injective" ]
[]
false
false
false
true
false
let tot_parse_u8 =
decode_u8_injective (); tot_make_total_constant_size_parser 1 U8.t decode_u8
false
Hacl.Spec.K256.PrecompTable.fst
Hacl.Spec.K256.PrecompTable.create5_lemma
val create5_lemma (x0 x1 x2 x3 x4:uint64) : Lemma (let s = create5_lseq x0 x1 x2 x3 x4 in s.[0] == x0 /\ s.[1] == x1 /\ s.[2] == x2 /\ s.[3] == x3 /\ s.[4] == x4)
val create5_lemma (x0 x1 x2 x3 x4:uint64) : Lemma (let s = create5_lseq x0 x1 x2 x3 x4 in s.[0] == x0 /\ s.[1] == x1 /\ s.[2] == x2 /\ s.[3] == x3 /\ s.[4] == x4)
let create5_lemma x0 x1 x2 x3 x4 = Seq.elim_of_list [x0; x1; x2; x3; x4]
{ "file_name": "code/k256/Hacl.Spec.K256.PrecompTable.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 39, "end_line": 26, "start_col": 0, "start_line": 25 }
module Hacl.Spec.K256.PrecompTable open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.K256.Field52.Definitions open Hacl.Impl.K256.Point module S = Spec.K256 module FL = FStar.List.Tot module SPT = Hacl.Spec.PrecompBaseTable #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let create5_lseq (x0 x1 x2 ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.PrecompBaseTable.fsti.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "Hacl.Impl.K256.Point.fsti.checked", "FStar.Se...
[ { "abbrev": true, "full_module": "Hacl.Spec.PrecompBaseTable", "short_module": "SPT" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "FL" }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "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
x0: Lib.IntTypes.uint64 -> x1: Lib.IntTypes.uint64 -> x2: Lib.IntTypes.uint64 -> x3: Lib.IntTypes.uint64 -> x4: Lib.IntTypes.uint64 -> FStar.Pervasives.Lemma (ensures (let s = Hacl.Spec.K256.PrecompTable.create5_lseq x0 x1 x2 x3 x4 in s.[ 0 ] == x0 /\ s.[ 1 ] == x1 /\ s.[ 2 ] ==...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Lib.IntTypes.uint64", "FStar.Seq.Properties.elim_of_list", "Prims.Cons", "Prims.Nil", "Prims.unit" ]
[]
true
false
true
false
false
let create5_lemma x0 x1 x2 x3 x4 =
Seq.elim_of_list [x0; x1; x2; x3; x4]
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.decode_u16
val decode_u16 (b: bytes{Seq.length b == 2}) : GTot U16.t
val decode_u16 (b: bytes{Seq.length b == 2}) : GTot U16.t
let decode_u16 (b: bytes { Seq.length b == 2 } ) : GTot U16.t = E.lemma_be_to_n_is_bounded b; U16.uint_to_t (E.be_to_n b)
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 29, "end_line": 35, "start_col": 0, "start_line": 31 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = () let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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
b: LowParse.Bytes.bytes{FStar.Seq.Base.length b == 2} -> Prims.GTot FStar.UInt16.t
Prims.GTot
[ "sometrivial" ]
[]
[ "LowParse.Bytes.bytes", "Prims.eq2", "Prims.int", "FStar.Seq.Base.length", "LowParse.Bytes.byte", "FStar.UInt16.uint_to_t", "FStar.Endianness.be_to_n", "Prims.unit", "FStar.Endianness.lemma_be_to_n_is_bounded", "FStar.UInt16.t" ]
[]
false
false
false
false
false
let decode_u16 (b: bytes{Seq.length b == 2}) : GTot U16.t =
E.lemma_be_to_n_is_bounded b; U16.uint_to_t (E.be_to_n b)
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.parse_u32
val parse_u32: parser parse_u32_kind U32.t
val parse_u32: parser parse_u32_kind U32.t
let parse_u32 = decode_u32_injective (); make_total_constant_size_parser 4 U32.t decode_u32
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 52, "end_line": 97, "start_col": 0, "start_line": 95 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = () let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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
LowParse.Spec.Base.parser LowParse.Spec.Int.parse_u32_kind FStar.UInt32.t
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Combinators.make_total_constant_size_parser", "FStar.UInt32.t", "LowParse.Spec.Int.decode_u32", "Prims.unit", "LowParse.Spec.Int.decode_u32_injective" ]
[]
false
false
false
true
false
let parse_u32 =
decode_u32_injective (); make_total_constant_size_parser 4 U32.t decode_u32
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.decode_u16_injective'
val decode_u16_injective' (b1: bytes{Seq.length b1 == 2}) (b2: bytes{Seq.length b2 == 2}) : Lemma (decode_u16 b1 == decode_u16 b2 ==> Seq.equal b1 b2)
val decode_u16_injective' (b1: bytes{Seq.length b1 == 2}) (b2: bytes{Seq.length b2 == 2}) : Lemma (decode_u16 b1 == decode_u16 b2 ==> Seq.equal b1 b2)
let decode_u16_injective' (b1: bytes { Seq.length b1 == 2 } ) (b2: bytes { Seq.length b2 == 2 } ) : Lemma (decode_u16 b1 == decode_u16 b2 ==> Seq.equal b1 b2) = if decode_u16 b1 = decode_u16 b2 then begin E.lemma_be_to_n_is_bounded b1; E.lemma_be_to_n_is_bounded b2; assert (U32.v (U32.uint_to_t (E.b...
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 13, "end_line": 50, "start_col": 0, "start_line": 37 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = () let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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
b1: LowParse.Bytes.bytes{FStar.Seq.Base.length b1 == 2} -> b2: LowParse.Bytes.bytes{FStar.Seq.Base.length b2 == 2} -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Int.decode_u16 b1 == LowParse.Spec.Int.decode_u16 b2 ==> FStar.Seq.Base.equal b1 b2)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Bytes.bytes", "Prims.eq2", "Prims.int", "FStar.Seq.Base.length", "LowParse.Bytes.byte", "Prims.op_Equality", "FStar.UInt16.t", "LowParse.Spec.Int.decode_u16", "FStar.Endianness.be_to_n_inj", "Prims.unit", "Prims._assert", "Prims.nat", "FStar.Endianness.be_to_n", "Prims.l_or", "...
[]
false
false
true
false
false
let decode_u16_injective' (b1: bytes{Seq.length b1 == 2}) (b2: bytes{Seq.length b2 == 2}) : Lemma (decode_u16 b1 == decode_u16 b2 ==> Seq.equal b1 b2) =
if decode_u16 b1 = decode_u16 b2 then (E.lemma_be_to_n_is_bounded b1; E.lemma_be_to_n_is_bounded b2; assert (U32.v (U32.uint_to_t (E.be_to_n b1)) == E.be_to_n b1); assert (U32.v (U32.uint_to_t (E.be_to_n b2)) == E.be_to_n b2); assert (E.be_to_n b1 == E.be_to_n b2); E.be_to_n_inj b1 b2)
false
Steel.Memory.fst
Steel.Memory.fresh_invariant
val fresh_invariant (e:inames) (p:slprop) (ctx:list pre_inv) : action_except (i:inv p { not (mem_inv e i) /\ fresh_wrt ctx (name_of_inv i) }) e p (fun _ -> emp)
val fresh_invariant (e:inames) (p:slprop) (ctx:list pre_inv) : action_except (i:inv p { not (mem_inv e i) /\ fresh_wrt ctx (name_of_inv i) }) e p (fun _ -> emp)
let fresh_invariant (e:inames) (p:slprop) (ctx:list pre_inv) (frame:slprop) : MstTot (i:inv p { not (mem_inv e i) /\ fresh_wrt ctx (name_of_inv i)}) e p (fun _ -> emp) frame (fun _ -> True) (fun _ _ _ -> True) = let m0 = NMSTTotal.get () in recall_all ctx; ac_reasoning_for_m_frame_preserving p frame (locks_...
{ "file_name": "lib/steel/Steel.Memory.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 23, "end_line": 1288, "start_col": 0, "start_line": 1273 }
(* Copyright 2020 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": [ "Steel.Preorder.fst.checked", "Steel.Heap.fsti.checked", "prims.fst.checked", "FStar.Witnessed.Core.fsti.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ { "abbrev": true, "full_module": "Steel.Preorder", "short_module": "PP" }, { "abbrev": true, "full_module": "FStar.Witnessed.Core", "short_module": "W" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "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
e: Steel.Memory.inames -> p: Steel.Memory.slprop -> ctx: Prims.list Steel.Memory.pre_inv -> Steel.Memory.action_except (i: Steel.Memory.inv p { Prims.op_Negation (FStar.Ghost.reveal (Steel.Memory.mem_inv e i)) /\ Steel.Memory.fresh_wrt ctx (Steel.Memory.name_of_inv i) }) e p ...
Prims.Tot
[ "total" ]
[]
[ "Steel.Memory.inames", "Steel.Memory.slprop", "Prims.list", "Steel.Memory.pre_inv", "Steel.Memory.iname", "Steel.Memory.hmem_with_inv_except", "Steel.Memory.emp", "FStar.Pervasives.Mkdtuple3", "FStar.Ghost.erased", "Steel.Memory.witnessed_name_is_ok", "FStar.Ghost.reveal", "Steel.Memory.op_Gre...
[]
false
false
false
false
false
let fresh_invariant (e: inames) (p: slprop) (ctx: list pre_inv) (frame: slprop) : MstTot (i: inv p {not (mem_inv e i) /\ fresh_wrt ctx (name_of_inv i)}) e p (fun _ -> emp) frame (fun _ -> True) (fun _ _ _ -> True) =
let m0 = NMSTTotal.get () in recall_all ctx; ac_reasoning_for_m_frame_preserving p frame (locks_invariant e m0) m0; assert (interp (p `star` (locks_invariant e m0)) m0); let r = new_invariant_tot_action e p m0 in let i, m1 = r in assert (i == List.Tot.length m0.locks); assert (not (Set.mem i e)); assert (mem_evolves m0...
false
Hacl.Spec.Poly1305.Field32xN.Lemmas.fst
Hacl.Spec.Poly1305.Field32xN.Lemmas.load_felem5_lemma
val load_felem5_lemma: #w:lanes -> lo:uint64xN w -> hi:uint64xN w -> Lemma (let f = load_felem5 #w lo hi in felem_fits5 f (1, 1, 1, 1, 1) /\ felem_less5 f (pow2 128) /\ feval5 f == createi #Vec.pfelem w (fun i -> (uint64xN_v hi).[i] * pow2 64 + (uint64xN_v lo).[i]))
val load_felem5_lemma: #w:lanes -> lo:uint64xN w -> hi:uint64xN w -> Lemma (let f = load_felem5 #w lo hi in felem_fits5 f (1, 1, 1, 1, 1) /\ felem_less5 f (pow2 128) /\ feval5 f == createi #Vec.pfelem w (fun i -> (uint64xN_v hi).[i] * pow2 64 + (uint64xN_v lo).[i]))
let load_felem5_lemma #w lo hi = let f = load_felem5 #w lo hi in assert_norm (pow2 64 * pow2 64 = pow2 128); assert_norm (pow2 128 < Vec.prime); let res = createi #Vec.pfelem w (fun i -> (uint64xN_v hi).[i] * pow2 64 + (uint64xN_v lo).[i]) in match w with | 1 -> load_felem5_lemma_i #w lo hi 0; ...
{ "file_name": "code/poly1305/Hacl.Spec.Poly1305.Field32xN.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 27, "end_line": 654, "start_col": 0, "start_line": 634 }
module Hacl.Spec.Poly1305.Field32xN.Lemmas open Lib.IntTypes open Lib.IntVector open Lib.Sequence open FStar.Mul open Hacl.Spec.Poly1305.Field32xN open Hacl.Poly1305.Field32xN.Lemmas0 open Hacl.Poly1305.Field32xN.Lemmas1 open Hacl.Poly1305.Field32xN.Lemmas2 module Vec = Hacl.Spec.Poly1305.Vec #set-options "--z3rlim...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntVector.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Spec.Poly1305.Field32xN.fst.checked", "Hacl.Poly1305.Field32xN.Lemmas2.fst.checked", "Hacl...
[ { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": false, "full_module": "Hacl.Poly1305.Field32xN.Lemmas2", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Poly1305.Field32xN.Lemmas1", "short_module": null }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "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
lo: Hacl.Spec.Poly1305.Field32xN.uint64xN w -> hi: Hacl.Spec.Poly1305.Field32xN.uint64xN w -> FStar.Pervasives.Lemma (ensures (let f = Hacl.Spec.Poly1305.Field32xN.load_felem5 lo hi in Hacl.Spec.Poly1305.Field32xN.felem_fits5 f (1, 1, 1, 1, 1) /\ Hacl.Spec.Poly1305.Field32xN.felem_less5 f (P...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Poly1305.Field32xN.lanes", "Hacl.Spec.Poly1305.Field32xN.uint64xN", "Lib.Sequence.eq_intro", "Hacl.Spec.Poly1305.Vec.pfelem", "Hacl.Spec.Poly1305.Field32xN.feval5", "Prims.unit", "Hacl.Poly1305.Field32xN.Lemmas2.load_felem5_lemma_i", "Lib.Sequence.lseq", "Prims.l_Forall", "Prims.nat", ...
[]
false
false
true
false
false
let load_felem5_lemma #w lo hi =
let f = load_felem5 #w lo hi in assert_norm (pow2 64 * pow2 64 = pow2 128); assert_norm (pow2 128 < Vec.prime); let res = createi #Vec.pfelem w (fun i -> (uint64xN_v hi).[ i ] * pow2 64 + (uint64xN_v lo).[ i ]) in match w with | 1 -> load_felem5_lemma_i #w lo hi 0; eq_intro (feval5 f) res | 2 -> load_felem5_lem...
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.decode_u8
val decode_u8 (b: bytes{Seq.length b == 1}) : Tot U8.t
val decode_u8 (b: bytes{Seq.length b == 1}) : Tot U8.t
let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 15, "end_line": 7, "start_col": 0, "start_line": 4 }
module LowParse.Spec.Int open LowParse.Spec.Combinators
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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
b: LowParse.Bytes.bytes{FStar.Seq.Base.length b == 1} -> FStar.UInt8.t
Prims.Tot
[ "total" ]
[]
[ "LowParse.Bytes.bytes", "Prims.eq2", "Prims.int", "FStar.Seq.Base.length", "LowParse.Bytes.byte", "FStar.Seq.Base.index", "FStar.UInt8.t" ]
[]
false
false
false
false
false
let decode_u8 (b: bytes{Seq.length b == 1}) : Tot U8.t =
Seq.index b 0
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.serialize_u16
val serialize_u16 : serializer parse_u16
val serialize_u16 : serializer parse_u16
let serialize_u16 = (fun (x: U16.t) -> E.n_to_be 2 (U16.v x))
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 43, "end_line": 68, "start_col": 0, "start_line": 67 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = () let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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
LowParse.Spec.Base.serializer LowParse.Spec.Int.parse_u16
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt16.t", "FStar.Endianness.n_to_be", "FStar.UInt16.v", "FStar.Endianness.bytes", "Prims.l_and", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "FStar.UInt8.t", "FStar.Endianness.be_to_n" ]
[]
false
false
false
true
false
let serialize_u16 =
(fun (x: U16.t) -> E.n_to_be 2 (U16.v x))
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.serialize_u8
val serialize_u8 : serializer parse_u8
val serialize_u8 : serializer parse_u8
let serialize_u8 = Seq.create 1
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 14, "end_line": 27, "start_col": 0, "start_line": 26 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = () let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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
LowParse.Spec.Base.serializer LowParse.Spec.Int.parse_u8
Prims.Tot
[ "total" ]
[]
[ "FStar.Seq.Base.create", "LowParse.Bytes.byte" ]
[]
false
false
false
true
false
let serialize_u8 =
Seq.create 1
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.parse_u64
val parse_u64: parser parse_u64_kind U64.t
val parse_u64: parser parse_u64_kind U64.t
let parse_u64 = decode_u64_injective (); make_total_constant_size_parser 8 U64.t decode_u64
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 52, "end_line": 134, "start_col": 0, "start_line": 132 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = () let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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
LowParse.Spec.Base.parser LowParse.Spec.Int.parse_u64_kind FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Combinators.make_total_constant_size_parser", "FStar.UInt64.t", "LowParse.Spec.Int.decode_u64", "Prims.unit", "LowParse.Spec.Int.decode_u64_injective" ]
[]
false
false
false
true
false
let parse_u64 =
decode_u64_injective (); make_total_constant_size_parser 8 U64.t decode_u64
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.decode_u32_injective
val decode_u32_injective: Prims.unit -> Lemma (make_total_constant_size_parser_precond 4 U32.t decode_u32)
val decode_u32_injective: Prims.unit -> Lemma (make_total_constant_size_parser_precond 4 U32.t decode_u32)
let decode_u32_injective () : Lemma (make_total_constant_size_parser_precond 4 U32.t decode_u32) = Classical.forall_intro_2 decode_u32_injective'
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 48, "end_line": 93, "start_col": 0, "start_line": 91 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = () let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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.unit -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Combinators.make_total_constant_size_parser_precond 4 FStar.UInt32.t LowParse.Spec.Int.decode_u32)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "FStar.Classical.forall_intro_2", "LowParse.Bytes.bytes", "Prims.eq2", "Prims.int", "FStar.Seq.Base.length", "LowParse.Bytes.byte", "Prims.l_imp", "FStar.UInt32.t", "LowParse.Spec.Int.decode_u32", "FStar.Seq.Base.equal", "LowParse.Spec.Int.decode_u32_injective'", "Prims.l_True"...
[]
false
false
true
false
false
let decode_u32_injective () : Lemma (make_total_constant_size_parser_precond 4 U32.t decode_u32) =
Classical.forall_intro_2 decode_u32_injective'
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.decode_u16_injective
val decode_u16_injective: Prims.unit -> Lemma (make_total_constant_size_parser_precond 2 U16.t decode_u16)
val decode_u16_injective: Prims.unit -> Lemma (make_total_constant_size_parser_precond 2 U16.t decode_u16)
let decode_u16_injective () : Lemma (make_total_constant_size_parser_precond 2 U16.t decode_u16) = Classical.forall_intro_2 decode_u16_injective'
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 48, "end_line": 56, "start_col": 0, "start_line": 52 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = () let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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.unit -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Combinators.make_total_constant_size_parser_precond 2 FStar.UInt16.t LowParse.Spec.Int.decode_u16)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "FStar.Classical.forall_intro_2", "LowParse.Bytes.bytes", "Prims.eq2", "Prims.int", "FStar.Seq.Base.length", "LowParse.Bytes.byte", "Prims.l_imp", "FStar.UInt16.t", "LowParse.Spec.Int.decode_u16", "FStar.Seq.Base.equal", "LowParse.Spec.Int.decode_u16_injective'", "Prims.l_True"...
[]
false
false
true
false
false
let decode_u16_injective () : Lemma (make_total_constant_size_parser_precond 2 U16.t decode_u16) =
Classical.forall_intro_2 decode_u16_injective'
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.serialize_u32
val serialize_u32 : serializer parse_u32
val serialize_u32 : serializer parse_u32
let serialize_u32 = (fun (x: U32.t) -> E.n_to_be 4 (U32.v x))
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 43, "end_line": 105, "start_col": 0, "start_line": 104 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = () let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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
LowParse.Spec.Base.serializer LowParse.Spec.Int.parse_u32
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt32.t", "FStar.Endianness.n_to_be", "FStar.UInt32.v", "FStar.Endianness.bytes", "Prims.l_and", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "FStar.UInt8.t", "FStar.Endianness.be_to_n" ]
[]
false
false
false
true
false
let serialize_u32 =
(fun (x: U32.t) -> E.n_to_be 4 (U32.v x))
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.decode_u64
val decode_u64 (b: bytes{Seq.length b == 8}) : GTot U64.t
val decode_u64 (b: bytes{Seq.length b == 8}) : GTot U64.t
let decode_u64 (b: bytes { Seq.length b == 8 } ) : GTot U64.t = E.lemma_be_to_n_is_bounded b; U64.uint_to_t (E.be_to_n b)
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 29, "end_line": 111, "start_col": 0, "start_line": 107 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = () let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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
b: LowParse.Bytes.bytes{FStar.Seq.Base.length b == 8} -> Prims.GTot FStar.UInt64.t
Prims.GTot
[ "sometrivial" ]
[]
[ "LowParse.Bytes.bytes", "Prims.eq2", "Prims.int", "FStar.Seq.Base.length", "LowParse.Bytes.byte", "FStar.UInt64.uint_to_t", "FStar.Endianness.be_to_n", "Prims.unit", "FStar.Endianness.lemma_be_to_n_is_bounded", "FStar.UInt64.t" ]
[]
false
false
false
false
false
let decode_u64 (b: bytes{Seq.length b == 8}) : GTot U64.t =
E.lemma_be_to_n_is_bounded b; U64.uint_to_t (E.be_to_n b)
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.decode_u32_injective'
val decode_u32_injective' (b1: bytes{Seq.length b1 == 4}) (b2: bytes{Seq.length b2 == 4}) : Lemma (decode_u32 b1 == decode_u32 b2 ==> Seq.equal b1 b2)
val decode_u32_injective' (b1: bytes{Seq.length b1 == 4}) (b2: bytes{Seq.length b2 == 4}) : Lemma (decode_u32 b1 == decode_u32 b2 ==> Seq.equal b1 b2)
let decode_u32_injective' (b1: bytes { Seq.length b1 == 4 } ) (b2: bytes { Seq.length b2 == 4 } ) : Lemma (decode_u32 b1 == decode_u32 b2 ==> Seq.equal b1 b2) = if decode_u32 b1 = decode_u32 b2 then begin E.lemma_be_to_n_is_bounded b1; E.lemma_be_to_n_is_bounded b2; assert (U32.v (U32.uint_to_t (E.b...
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 13, "end_line": 89, "start_col": 0, "start_line": 76 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = () let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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
b1: LowParse.Bytes.bytes{FStar.Seq.Base.length b1 == 4} -> b2: LowParse.Bytes.bytes{FStar.Seq.Base.length b2 == 4} -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Int.decode_u32 b1 == LowParse.Spec.Int.decode_u32 b2 ==> FStar.Seq.Base.equal b1 b2)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Bytes.bytes", "Prims.eq2", "Prims.int", "FStar.Seq.Base.length", "LowParse.Bytes.byte", "Prims.op_Equality", "FStar.UInt32.t", "LowParse.Spec.Int.decode_u32", "FStar.Endianness.be_to_n_inj", "Prims.unit", "Prims._assert", "Prims.nat", "FStar.Endianness.be_to_n", "Prims.l_or", "...
[]
false
false
true
false
false
let decode_u32_injective' (b1: bytes{Seq.length b1 == 4}) (b2: bytes{Seq.length b2 == 4}) : Lemma (decode_u32 b1 == decode_u32 b2 ==> Seq.equal b1 b2) =
if decode_u32 b1 = decode_u32 b2 then (E.lemma_be_to_n_is_bounded b1; E.lemma_be_to_n_is_bounded b2; assert (U32.v (U32.uint_to_t (E.be_to_n b1)) == E.be_to_n b1); assert (U32.v (U32.uint_to_t (E.be_to_n b2)) == E.be_to_n b2); assert (E.be_to_n b1 == E.be_to_n b2); E.be_to_n_inj b1 b2)
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.parse_u16
val parse_u16: parser parse_u16_kind U16.t
val parse_u16: parser parse_u16_kind U16.t
let parse_u16 = decode_u16_injective (); make_total_constant_size_parser 2 U16.t decode_u16
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 52, "end_line": 60, "start_col": 0, "start_line": 58 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = () let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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
LowParse.Spec.Base.parser LowParse.Spec.Int.parse_u16_kind FStar.UInt16.t
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Combinators.make_total_constant_size_parser", "FStar.UInt16.t", "LowParse.Spec.Int.decode_u16", "Prims.unit", "LowParse.Spec.Int.decode_u16_injective" ]
[]
false
false
false
true
false
let parse_u16 =
decode_u16_injective (); make_total_constant_size_parser 2 U16.t decode_u16
false
Hacl.Spec.K256.PrecompTable.fst
Hacl.Spec.K256.PrecompTable.proj_point_to_list_sub
val proj_point_to_list_sub: p:S.proj_point -> Lemma (let (px, py, pz) = p in let px_list = felem_to_list px in let py_list = felem_to_list py in let pz_list = felem_to_list pz in let p_list = FL.(px_list @ py_list @ pz_list) in let p_lseq = Seq.seq_of_list p_list <: lseq uint64 15 in let px_lseq = Seq.seq...
val proj_point_to_list_sub: p:S.proj_point -> Lemma (let (px, py, pz) = p in let px_list = felem_to_list px in let py_list = felem_to_list py in let pz_list = felem_to_list pz in let p_list = FL.(px_list @ py_list @ pz_list) in let p_lseq = Seq.seq_of_list p_list <: lseq uint64 15 in let px_lseq = Seq.seq...
let proj_point_to_list_sub p = let (px, py, pz) = p in let px_list = felem_to_list px in let py_list = felem_to_list py in let pz_list = felem_to_list pz in FL.append_assoc px_list py_list pz_list; SPT.seq_of_list_append_lemma px_list py_list; SPT.seq_of_list_append_lemma FL.(px_list @ py_list) pz_list
{ "file_name": "code/k256/Hacl.Spec.K256.PrecompTable.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 61, "end_line": 143, "start_col": 0, "start_line": 135 }
module Hacl.Spec.K256.PrecompTable open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.K256.Field52.Definitions open Hacl.Impl.K256.Point module S = Spec.K256 module FL = FStar.List.Tot module SPT = Hacl.Spec.PrecompBaseTable #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let create5_lseq (x0 x1 x2 ...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.PrecompBaseTable.fsti.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "Hacl.Impl.K256.Point.fsti.checked", "FStar.Se...
[ { "abbrev": true, "full_module": "Hacl.Spec.PrecompBaseTable", "short_module": "SPT" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "FL" }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "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
p: Spec.K256.PointOps.proj_point -> FStar.Pervasives.Lemma (ensures (let _ = p in (let FStar.Pervasives.Native.Mktuple3 #_ #_ #_ px py pz = _ in let px_list = Hacl.Spec.K256.PrecompTable.felem_to_list px in let py_list = Hacl.Spec.K256.PrecompTable.felem_to_list py in l...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.K256.PointOps.proj_point", "Spec.K256.PointOps.felem", "Hacl.Spec.PrecompBaseTable.seq_of_list_append_lemma", "Lib.IntTypes.uint64", "FStar.List.Tot.Base.op_At", "Prims.unit", "FStar.List.Tot.Properties.append_assoc", "Hacl.Spec.K256.PrecompTable.felem_list", "Hacl.Spec.K256.PrecompTable.felem...
[]
false
false
true
false
false
let proj_point_to_list_sub p =
let px, py, pz = p in let px_list = felem_to_list px in let py_list = felem_to_list py in let pz_list = felem_to_list pz in FL.append_assoc px_list py_list pz_list; SPT.seq_of_list_append_lemma px_list py_list; SPT.seq_of_list_append_lemma FL.(px_list @ py_list) pz_list
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.decode_u64_le_injective'
val decode_u64_le_injective' (b1: bytes{Seq.length b1 == 8}) (b2: bytes{Seq.length b2 == 8}) : Lemma (decode_u64_le b1 == decode_u64_le b2 ==> Seq.equal b1 b2)
val decode_u64_le_injective' (b1: bytes{Seq.length b1 == 8}) (b2: bytes{Seq.length b2 == 8}) : Lemma (decode_u64_le b1 == decode_u64_le b2 ==> Seq.equal b1 b2)
let decode_u64_le_injective' (b1: bytes { Seq.length b1 == 8 } ) (b2: bytes { Seq.length b2 == 8 } ) : Lemma (decode_u64_le b1 == decode_u64_le b2 ==> Seq.equal b1 b2) = if decode_u64_le b1 = decode_u64_le b2 then begin E.lemma_le_to_n_is_bounded b1; E.lemma_le_to_n_is_bounded b2; assert (U64.v (U64...
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 13, "end_line": 162, "start_col": 0, "start_line": 149 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = () let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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
b1: LowParse.Bytes.bytes{FStar.Seq.Base.length b1 == 8} -> b2: LowParse.Bytes.bytes{FStar.Seq.Base.length b2 == 8} -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Int.decode_u64_le b1 == LowParse.Spec.Int.decode_u64_le b2 ==> FStar.Seq.Base.equal b1 b2)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Bytes.bytes", "Prims.eq2", "Prims.int", "FStar.Seq.Base.length", "LowParse.Bytes.byte", "Prims.op_Equality", "FStar.UInt64.t", "LowParse.Spec.Int.decode_u64_le", "FStar.Endianness.le_to_n_inj", "Prims.unit", "Prims._assert", "Prims.nat", "FStar.Endianness.le_to_n", "Prims.l_or", ...
[]
false
false
true
false
false
let decode_u64_le_injective' (b1: bytes{Seq.length b1 == 8}) (b2: bytes{Seq.length b2 == 8}) : Lemma (decode_u64_le b1 == decode_u64_le b2 ==> Seq.equal b1 b2) =
if decode_u64_le b1 = decode_u64_le b2 then (E.lemma_le_to_n_is_bounded b1; E.lemma_le_to_n_is_bounded b2; assert (U64.v (U64.uint_to_t (E.le_to_n b1)) == E.le_to_n b1); assert (U64.v (U64.uint_to_t (E.le_to_n b2)) == E.le_to_n b2); assert (E.le_to_n b1 == E.le_to_n b2); E.le_to_n_inj b1 b2)
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.parse_u32_spec
val parse_u32_spec (b: bytes) : Lemma (requires (Seq.length b >= 4)) (ensures ( let pp = parse parse_u32 b in Some? pp /\ ( let (Some (v, consumed)) = pp in U32.v v == E.be_to_n (Seq.slice b 0 4) )))
val parse_u32_spec (b: bytes) : Lemma (requires (Seq.length b >= 4)) (ensures ( let pp = parse parse_u32 b in Some? pp /\ ( let (Some (v, consumed)) = pp in U32.v v == E.be_to_n (Seq.slice b 0 4) )))
let parse_u32_spec b = E.lemma_be_to_n_is_bounded (Seq.slice b 0 4)
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 46, "end_line": 102, "start_col": 0, "start_line": 99 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = () let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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
b: LowParse.Bytes.bytes -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length b >= 4) (ensures (let pp = LowParse.Spec.Base.parse LowParse.Spec.Int.parse_u32 b in Some? pp /\ (let _ = pp in (let FStar.Pervasives.Native.Some #_ (FStar.Pervasives.Native.Mktuple2 #_ #_ v...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Bytes.bytes", "FStar.Endianness.lemma_be_to_n_is_bounded", "FStar.Seq.Base.slice", "LowParse.Bytes.byte", "Prims.unit" ]
[]
true
false
true
false
false
let parse_u32_spec b =
E.lemma_be_to_n_is_bounded (Seq.slice b 0 4)
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.parse_u8_spec
val parse_u8_spec (b: bytes) : Lemma (requires (Seq.length b >= 1)) (ensures ( let pp = parse parse_u8 b in Some? pp /\ ( let (Some (v, consumed)) = pp in U8.v v == E.be_to_n (Seq.slice b 0 1) )))
val parse_u8_spec (b: bytes) : Lemma (requires (Seq.length b >= 1)) (ensures ( let pp = parse parse_u8 b in Some? pp /\ ( let (Some (v, consumed)) = pp in U8.v v == E.be_to_n (Seq.slice b 0 1) )))
let parse_u8_spec b = Seq.lemma_index_slice b 0 1 0; E.reveal_be_to_n (Seq.slice b 0 1); E.reveal_be_to_n (Seq.slice (Seq.slice b 0 1) 0 0)
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 52, "end_line": 22, "start_col": 0, "start_line": 17 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = () let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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
b: LowParse.Bytes.bytes -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length b >= 1) (ensures (let pp = LowParse.Spec.Base.parse LowParse.Spec.Int.parse_u8 b in Some? pp /\ (let _ = pp in (let FStar.Pervasives.Native.Some #_ (FStar.Pervasives.Native.Mktuple2 #_ #_ v ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Bytes.bytes", "FStar.Endianness.reveal_be_to_n", "FStar.Seq.Base.slice", "LowParse.Bytes.byte", "Prims.unit", "FStar.Seq.Base.lemma_index_slice" ]
[]
true
false
true
false
false
let parse_u8_spec b =
Seq.lemma_index_slice b 0 1 0; E.reveal_be_to_n (Seq.slice b 0 1); E.reveal_be_to_n (Seq.slice (Seq.slice b 0 1) 0 0)
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.decode_u64_injective'
val decode_u64_injective' (b1: bytes{Seq.length b1 == 8}) (b2: bytes{Seq.length b2 == 8}) : Lemma (decode_u64 b1 == decode_u64 b2 ==> Seq.equal b1 b2)
val decode_u64_injective' (b1: bytes{Seq.length b1 == 8}) (b2: bytes{Seq.length b2 == 8}) : Lemma (decode_u64 b1 == decode_u64 b2 ==> Seq.equal b1 b2)
let decode_u64_injective' (b1: bytes { Seq.length b1 == 8 } ) (b2: bytes { Seq.length b2 == 8 } ) : Lemma (decode_u64 b1 == decode_u64 b2 ==> Seq.equal b1 b2) = if decode_u64 b1 = decode_u64 b2 then begin E.lemma_be_to_n_is_bounded b1; E.lemma_be_to_n_is_bounded b2; assert (U64.v (U64.uint_to_t (E.b...
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 13, "end_line": 126, "start_col": 0, "start_line": 113 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = () let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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
b1: LowParse.Bytes.bytes{FStar.Seq.Base.length b1 == 8} -> b2: LowParse.Bytes.bytes{FStar.Seq.Base.length b2 == 8} -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Int.decode_u64 b1 == LowParse.Spec.Int.decode_u64 b2 ==> FStar.Seq.Base.equal b1 b2)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Bytes.bytes", "Prims.eq2", "Prims.int", "FStar.Seq.Base.length", "LowParse.Bytes.byte", "Prims.op_Equality", "FStar.UInt64.t", "LowParse.Spec.Int.decode_u64", "FStar.Endianness.be_to_n_inj", "Prims.unit", "Prims._assert", "Prims.nat", "FStar.Endianness.be_to_n", "Prims.l_or", "...
[]
false
false
true
false
false
let decode_u64_injective' (b1: bytes{Seq.length b1 == 8}) (b2: bytes{Seq.length b2 == 8}) : Lemma (decode_u64 b1 == decode_u64 b2 ==> Seq.equal b1 b2) =
if decode_u64 b1 = decode_u64 b2 then (E.lemma_be_to_n_is_bounded b1; E.lemma_be_to_n_is_bounded b2; assert (U64.v (U64.uint_to_t (E.be_to_n b1)) == E.be_to_n b1); assert (U64.v (U64.uint_to_t (E.be_to_n b2)) == E.be_to_n b2); assert (E.be_to_n b1 == E.be_to_n b2); E.be_to_n_inj b1 b2)
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.decode_u32
val decode_u32 (b: bytes{Seq.length b == 4}) : GTot U32.t
val decode_u32 (b: bytes{Seq.length b == 4}) : GTot U32.t
let decode_u32 (b: bytes { Seq.length b == 4 } ) : GTot U32.t = E.lemma_be_to_n_is_bounded b; U32.uint_to_t (E.be_to_n b)
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 29, "end_line": 74, "start_col": 0, "start_line": 70 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = () let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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
b: LowParse.Bytes.bytes{FStar.Seq.Base.length b == 4} -> Prims.GTot FStar.UInt32.t
Prims.GTot
[ "sometrivial" ]
[]
[ "LowParse.Bytes.bytes", "Prims.eq2", "Prims.int", "FStar.Seq.Base.length", "LowParse.Bytes.byte", "FStar.UInt32.uint_to_t", "FStar.Endianness.be_to_n", "Prims.unit", "FStar.Endianness.lemma_be_to_n_is_bounded", "FStar.UInt32.t" ]
[]
false
false
false
false
false
let decode_u32 (b: bytes{Seq.length b == 4}) : GTot U32.t =
E.lemma_be_to_n_is_bounded b; U32.uint_to_t (E.be_to_n b)
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.parse_u16_spec
val parse_u16_spec (b: bytes) : Lemma (requires (Seq.length b >= 2)) (ensures ( let pp = parse parse_u16 b in Some? pp /\ ( let (Some (v, consumed)) = pp in U16.v v == E.be_to_n (Seq.slice b 0 2) )))
val parse_u16_spec (b: bytes) : Lemma (requires (Seq.length b >= 2)) (ensures ( let pp = parse parse_u16 b in Some? pp /\ ( let (Some (v, consumed)) = pp in U16.v v == E.be_to_n (Seq.slice b 0 2) )))
let parse_u16_spec b = E.lemma_be_to_n_is_bounded (Seq.slice b 0 2)
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 46, "end_line": 65, "start_col": 0, "start_line": 62 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = () let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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
b: LowParse.Bytes.bytes -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length b >= 2) (ensures (let pp = LowParse.Spec.Base.parse LowParse.Spec.Int.parse_u16 b in Some? pp /\ (let _ = pp in (let FStar.Pervasives.Native.Some #_ (FStar.Pervasives.Native.Mktuple2 #_ #_ v...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Bytes.bytes", "FStar.Endianness.lemma_be_to_n_is_bounded", "FStar.Seq.Base.slice", "LowParse.Bytes.byte", "Prims.unit" ]
[]
true
false
true
false
false
let parse_u16_spec b =
E.lemma_be_to_n_is_bounded (Seq.slice b 0 2)
false
Steel.Memory.fst
Steel.Memory.lift_tot_action_with_frame
val lift_tot_action_with_frame (#a #e #fp #fp': _) ($f: tot_action_with_frame_except e fp a fp') (frame: slprop) : MstTot a e fp fp' frame (fun _ -> True) (fun _ _ _ -> True)
val lift_tot_action_with_frame (#a #e #fp #fp': _) ($f: tot_action_with_frame_except e fp a fp') (frame: slprop) : MstTot a e fp fp' frame (fun _ -> True) (fun _ _ _ -> True)
let lift_tot_action_with_frame #a #e #fp #fp' ($f:tot_action_with_frame_except e fp a fp') (frame:slprop) : MstTot a e fp fp' frame (fun _ -> True) (fun _ _ _ -> True) = let m0 = NMSTTotal.get () in assert (inames_ok e m0); ac_reasoning_for_m_frame_preserving fp frame (locks_invariant e m0) m0; asse...
{ "file_name": "lib/steel/Steel.Memory.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 841, "start_col": 0, "start_line": 824 }
(* Copyright 2020 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": [ "Steel.Preorder.fst.checked", "Steel.Heap.fsti.checked", "prims.fst.checked", "FStar.Witnessed.Core.fsti.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ { "abbrev": true, "full_module": "Steel.Preorder", "short_module": "PP" }, { "abbrev": true, "full_module": "FStar.Witnessed.Core", "short_module": "W" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "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
$f: Steel.Memory.tot_action_with_frame_except e fp a fp' -> frame: Steel.Memory.slprop -> Steel.Memory.MstTot a
Steel.Memory.MstTot
[]
[]
[ "Steel.Memory.inames", "Steel.Memory.slprop", "Steel.Memory.tot_action_with_frame_except", "Steel.Memory.hmem_with_inv_except", "Steel.Memory.star", "Prims.unit", "FStar.NMSTTotal.put", "Steel.Memory.full_mem", "Steel.Memory.mem_evolves", "Prims._assert", "Steel.Memory.interp", "Steel.Memory.l...
[]
false
true
false
false
false
let lift_tot_action_with_frame #a #e #fp #fp' ($f: tot_action_with_frame_except e fp a fp') (frame: slprop) : MstTot a e fp fp' frame (fun _ -> True) (fun _ _ _ -> True) =
let m0 = NMSTTotal.get () in assert (inames_ok e m0); ac_reasoning_for_m_frame_preserving fp frame (locks_invariant e m0) m0; assert (interp ((fp `star` frame) `star` (locks_invariant e m0)) m0); assert (interp (fp `star` (locks_invariant e m0)) m0); let m0':hmem_with_inv_except e fp = m0 in let r = f frame m0' in let ...
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.decode_u64_le
val decode_u64_le (b: bytes{Seq.length b == 8}) : GTot U64.t
val decode_u64_le (b: bytes{Seq.length b == 8}) : GTot U64.t
let decode_u64_le (b: bytes { Seq.length b == 8 } ) : GTot U64.t = E.lemma_le_to_n_is_bounded b; U64.uint_to_t (E.le_to_n b)
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 29, "end_line": 147, "start_col": 0, "start_line": 143 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = () let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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
b: LowParse.Bytes.bytes{FStar.Seq.Base.length b == 8} -> Prims.GTot FStar.UInt64.t
Prims.GTot
[ "sometrivial" ]
[]
[ "LowParse.Bytes.bytes", "Prims.eq2", "Prims.int", "FStar.Seq.Base.length", "LowParse.Bytes.byte", "FStar.UInt64.uint_to_t", "FStar.Endianness.le_to_n", "Prims.unit", "FStar.Endianness.lemma_le_to_n_is_bounded", "FStar.UInt64.t" ]
[]
false
false
false
false
false
let decode_u64_le (b: bytes{Seq.length b == 8}) : GTot U64.t =
E.lemma_le_to_n_is_bounded b; U64.uint_to_t (E.le_to_n b)
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.parse_u64_le
val parse_u64_le: parser parse_u64_kind U64.t
val parse_u64_le: parser parse_u64_kind U64.t
let parse_u64_le = decode_u64_le_injective (); make_total_constant_size_parser 8 U64.t decode_u64_le
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 55, "end_line": 170, "start_col": 0, "start_line": 168 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = () let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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
LowParse.Spec.Base.parser LowParse.Spec.Int.parse_u64_kind FStar.UInt64.t
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Combinators.make_total_constant_size_parser", "FStar.UInt64.t", "LowParse.Spec.Int.decode_u64_le", "Prims.unit", "LowParse.Spec.Int.decode_u64_le_injective" ]
[]
false
false
false
true
false
let parse_u64_le =
decode_u64_le_injective (); make_total_constant_size_parser 8 U64.t decode_u64_le
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.decode_u64_injective
val decode_u64_injective: Prims.unit -> Lemma (make_total_constant_size_parser_precond 8 U64.t decode_u64)
val decode_u64_injective: Prims.unit -> Lemma (make_total_constant_size_parser_precond 8 U64.t decode_u64)
let decode_u64_injective () : Lemma (make_total_constant_size_parser_precond 8 U64.t decode_u64) = Classical.forall_intro_2 decode_u64_injective'
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 48, "end_line": 130, "start_col": 0, "start_line": 128 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = () let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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.unit -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Combinators.make_total_constant_size_parser_precond 8 FStar.UInt64.t LowParse.Spec.Int.decode_u64)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "FStar.Classical.forall_intro_2", "LowParse.Bytes.bytes", "Prims.eq2", "Prims.int", "FStar.Seq.Base.length", "LowParse.Bytes.byte", "Prims.l_imp", "FStar.UInt64.t", "LowParse.Spec.Int.decode_u64", "FStar.Seq.Base.equal", "LowParse.Spec.Int.decode_u64_injective'", "Prims.l_True"...
[]
false
false
true
false
false
let decode_u64_injective () : Lemma (make_total_constant_size_parser_precond 8 U64.t decode_u64) =
Classical.forall_intro_2 decode_u64_injective'
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.parse_u64_spec
val parse_u64_spec (b: bytes) : Lemma (requires (Seq.length b >= 8)) (ensures ( let pp = parse parse_u64 b in Some? pp /\ ( let (Some (v, consumed)) = pp in U64.v v == E.be_to_n (Seq.slice b 0 8) )))
val parse_u64_spec (b: bytes) : Lemma (requires (Seq.length b >= 8)) (ensures ( let pp = parse parse_u64 b in Some? pp /\ ( let (Some (v, consumed)) = pp in U64.v v == E.be_to_n (Seq.slice b 0 8) )))
let parse_u64_spec b = E.lemma_be_to_n_is_bounded (Seq.slice b 0 8)
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 46, "end_line": 138, "start_col": 0, "start_line": 136 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = () let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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
b: LowParse.Bytes.bytes -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length b >= 8) (ensures (let pp = LowParse.Spec.Base.parse LowParse.Spec.Int.parse_u64 b in Some? pp /\ (let _ = pp in (let FStar.Pervasives.Native.Some #_ (FStar.Pervasives.Native.Mktuple2 #_ #_ v...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Bytes.bytes", "FStar.Endianness.lemma_be_to_n_is_bounded", "FStar.Seq.Base.slice", "LowParse.Bytes.byte", "Prims.unit" ]
[]
true
false
true
false
false
let parse_u64_spec b =
E.lemma_be_to_n_is_bounded (Seq.slice b 0 8)
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.serialize_u64
val serialize_u64 : serializer parse_u64
val serialize_u64 : serializer parse_u64
let serialize_u64 = (fun (x: U64.t) -> E.n_to_be 8 (U64.v x))
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 43, "end_line": 141, "start_col": 0, "start_line": 140 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = () let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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
LowParse.Spec.Base.serializer LowParse.Spec.Int.parse_u64
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.t", "FStar.Endianness.n_to_be", "FStar.UInt64.v", "FStar.Endianness.bytes", "Prims.l_and", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "FStar.UInt8.t", "FStar.Endianness.be_to_n" ]
[]
false
false
false
true
false
let serialize_u64 =
(fun (x: U64.t) -> E.n_to_be 8 (U64.v x))
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.same_domain
val same_domain (h:vale_heap) (m:S.machine_heap) : prop0
val same_domain (h:vale_heap) (m:S.machine_heap) : prop0
let same_domain h m = Set.equal (IB.addrs_set (_ih h)) (Map.domain m)
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 69, "end_line": 21, "start_col": 0, "start_line": 21 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": true, "full_module": "LowStar.BufferView.Down", "short_module": "DV" }, { "abbrev": tr...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
h: Vale.Arch.HeapImpl.vale_heap -> m: Vale.Arch.MachineHeap_s.machine_heap -> Vale.Def.Prop_s.prop0
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapImpl.vale_heap", "Vale.Arch.MachineHeap_s.machine_heap", "FStar.Set.equal", "Prims.int", "Vale.Interop.Heap_s.addrs_set", "Vale.Arch.HeapImpl._ih", "FStar.Map.domain", "Vale.Def.Types_s.nat8", "Vale.Def.Prop_s.prop0" ]
[]
false
false
false
true
false
let same_domain h m =
Set.equal (IB.addrs_set (_ih h)) (Map.domain m)
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.decode_u64_le_injective
val decode_u64_le_injective: Prims.unit -> Lemma (make_total_constant_size_parser_precond 8 U64.t decode_u64_le)
val decode_u64_le_injective: Prims.unit -> Lemma (make_total_constant_size_parser_precond 8 U64.t decode_u64_le)
let decode_u64_le_injective () : Lemma (make_total_constant_size_parser_precond 8 U64.t decode_u64_le) = Classical.forall_intro_2 decode_u64_le_injective'
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 51, "end_line": 166, "start_col": 0, "start_line": 164 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = () let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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.unit -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Combinators.make_total_constant_size_parser_precond 8 FStar.UInt64.t LowParse.Spec.Int.decode_u64_le)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "FStar.Classical.forall_intro_2", "LowParse.Bytes.bytes", "Prims.eq2", "Prims.int", "FStar.Seq.Base.length", "LowParse.Bytes.byte", "Prims.l_imp", "FStar.UInt64.t", "LowParse.Spec.Int.decode_u64_le", "FStar.Seq.Base.equal", "LowParse.Spec.Int.decode_u64_le_injective'", "Prims.l...
[]
false
false
true
false
false
let decode_u64_le_injective () : Lemma (make_total_constant_size_parser_precond 8 U64.t decode_u64_le) =
Classical.forall_intro_2 decode_u64_le_injective'
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.parse_u64_le_spec
val parse_u64_le_spec (b: bytes) : Lemma (requires (Seq.length b >= 8)) (ensures ( let pp = parse parse_u64_le b in Some? pp /\ ( let (Some (v, consumed)) = pp in U64.v v == E.le_to_n (Seq.slice b 0 8) )))
val parse_u64_le_spec (b: bytes) : Lemma (requires (Seq.length b >= 8)) (ensures ( let pp = parse parse_u64_le b in Some? pp /\ ( let (Some (v, consumed)) = pp in U64.v v == E.le_to_n (Seq.slice b 0 8) )))
let parse_u64_le_spec b = E.lemma_le_to_n_is_bounded (Seq.slice b 0 8)
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 46, "end_line": 174, "start_col": 0, "start_line": 172 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = () let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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
b: LowParse.Bytes.bytes -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length b >= 8) (ensures (let pp = LowParse.Spec.Base.parse LowParse.Spec.Int.parse_u64_le b in Some? pp /\ (let _ = pp in (let FStar.Pervasives.Native.Some #_ (FStar.Pervasives.Native.Mktuple2 #_ #...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Bytes.bytes", "FStar.Endianness.lemma_le_to_n_is_bounded", "FStar.Seq.Base.slice", "LowParse.Bytes.byte", "Prims.unit" ]
[]
true
false
true
false
false
let parse_u64_le_spec b =
E.lemma_le_to_n_is_bounded (Seq.slice b 0 8)
false
LowParse.Spec.Int.fst
LowParse.Spec.Int.serialize_u64_le
val serialize_u64_le : serializer parse_u64_le
val serialize_u64_le : serializer parse_u64_le
let serialize_u64_le = (fun (x: U64.t) -> E.n_to_le 8 (U64.v x))
{ "file_name": "src/lowparse/LowParse.Spec.Int.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 43, "end_line": 177, "start_col": 0, "start_line": 176 }
module LowParse.Spec.Int open LowParse.Spec.Combinators let decode_u8 (b: bytes { Seq.length b == 1 } ) : Tot U8.t = Seq.index b 0 let decode_u8_injective () : Lemma (make_total_constant_size_parser_precond 1 U8.t decode_u8) = () let tot_parse_u8 = decode_u8_injective (); tot_make_total_constant_size_parser ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Seq.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "LowParse.Spec.Int.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_m...
{ "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
LowParse.Spec.Base.serializer LowParse.Spec.Int.parse_u64_le
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt64.t", "FStar.Endianness.n_to_le", "FStar.UInt64.v", "FStar.Endianness.bytes", "Prims.l_and", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "FStar.UInt8.t", "FStar.Endianness.le_to_n" ]
[]
false
false
false
true
false
let serialize_u64_le =
(fun (x: U64.t) -> E.n_to_le 8 (U64.v x))
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.buffer_info_has_addr
val buffer_info_has_addr : bi: Vale.Arch.HeapImpl.buffer_info -> a: Prims.int -> Prims.logical
let buffer_info_has_addr (bi:buffer_info) (a:int) = let b = bi.bi_buffer in let addr = Vale.Interop.Heap_s.global_addrs_map b in let len = DV.length (get_downview b.bsrc) in addr <= a /\ a < addr + len
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 52, "start_col": 0, "start_line": 48 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
bi: Vale.Arch.HeapImpl.buffer_info -> a: Prims.int -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapImpl.buffer_info", "Prims.int", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "Prims.op_Addition", "Prims.nat", "LowStar.BufferView.Down.length", "FStar.UInt8.t", "Vale.Interop.Types.get_downview", "Vale.Interop.Types.__proj__Buffer__item__src", ...
[]
false
false
false
true
true
let buffer_info_has_addr (bi: buffer_info) (a: int) =
let b = bi.bi_buffer in let addr = Vale.Interop.Heap_s.global_addrs_map b in let len = DV.length (get_downview b.bsrc) in addr <= a /\ a < addr + len
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.make_owns
val make_owns (h: vale_heap) (bs: Seq.seq buffer_info) (n: nat{n <= Seq.length bs}) : GTot ((int -> option (n: nat{n < Seq.length bs})) & (heaplet_id -> Set.set int))
val make_owns (h: vale_heap) (bs: Seq.seq buffer_info) (n: nat{n <= Seq.length bs}) : GTot ((int -> option (n: nat{n < Seq.length bs})) & (heaplet_id -> Set.set int))
let make_owns (h:vale_heap) (bs:Seq.seq buffer_info) (n:nat{n <= Seq.length bs}) : GTot ((int -> option (n:nat{n < Seq.length bs})) & (heaplet_id -> Set.set int)) = make_owns_rec h bs n
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 79, "start_col": 0, "start_line": 76 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
h: Vale.Arch.HeapImpl.vale_heap -> bs: FStar.Seq.Base.seq Vale.Arch.HeapImpl.buffer_info -> n: Prims.nat{n <= FStar.Seq.Base.length bs} -> Prims.GTot ((_: Prims.int -> FStar.Pervasives.Native.option (n: Prims.nat{n < FStar.Seq.Base.length bs})) * (_: Vale.Arch.HeapImpl.heaplet_id -> FStar.Set.s...
Prims.GTot
[ "sometrivial" ]
[]
[ "Vale.Arch.HeapImpl.vale_heap", "FStar.Seq.Base.seq", "Vale.Arch.HeapImpl.buffer_info", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Seq.Base.length", "Vale.X64.Memory_Sems.make_owns_rec", "FStar.Pervasives.Native.tuple2", "Prims.int", "FStar.Pervasives.Native.option", "Prims.o...
[]
false
false
false
false
false
let make_owns (h: vale_heap) (bs: Seq.seq buffer_info) (n: nat{n <= Seq.length bs}) : GTot ((int -> option (n: nat{n < Seq.length bs})) & (heaplet_id -> Set.set int)) =
make_owns_rec h bs n
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.destroy_heaplets
val destroy_heaplets (h1:vale_full_heap) : GTot vale_full_heap
val destroy_heaplets (h1:vale_full_heap) : GTot vale_full_heap
let destroy_heaplets h1 = h1
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 189, "start_col": 0, "start_line": 188 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": true, "full_module": "LowStar.BufferView.Down", "short_module": "DV" }, { "abbrev": tr...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
h1: Vale.Arch.HeapImpl.vale_full_heap -> Prims.GTot Vale.Arch.HeapImpl.vale_full_heap
Prims.GTot
[ "sometrivial" ]
[]
[ "Vale.Arch.HeapImpl.vale_full_heap" ]
[]
false
false
false
false
false
let destroy_heaplets h1 =
h1
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.get_heap
val get_heap (h:vale_heap) : GTot (m:S.machine_heap{same_domain h m})
val get_heap (h:vale_heap) : GTot (m:S.machine_heap{same_domain h m})
let get_heap h = I.down_mem (_ih h)
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 35, "end_line": 25, "start_col": 0, "start_line": 25 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": true, "full_module": "LowStar.BufferView.Down", "short_module": "DV" }, { "abbrev": tr...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
h: Vale.Arch.HeapImpl.vale_heap -> Prims.GTot (m: Vale.Arch.MachineHeap_s.machine_heap{Vale.X64.Memory_Sems.same_domain h m})
Prims.GTot
[ "sometrivial" ]
[]
[ "Vale.Arch.HeapImpl.vale_heap", "Vale.Interop.down_mem", "Vale.Arch.HeapImpl._ih", "Vale.Arch.MachineHeap_s.machine_heap", "Vale.X64.Memory_Sems.same_domain" ]
[]
false
false
false
false
false
let get_heap h =
I.down_mem (_ih h)
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.create_heaplets
val create_heaplets (buffers:list buffer_info) (h1:vale_full_heap) : GTot vale_full_heap
val create_heaplets (buffers:list buffer_info) (h1:vale_full_heap) : GTot vale_full_heap
let create_heaplets buffers h1 = let bs = list_to_seq buffers in let modloc = loc_mutable_buffers buffers in let layout1 = h1.vf_layout in let layin1 = layout1.vl_inner in let (hmap, hsets) = make_owns h1.vf_heap bs (Seq.length bs) in let hmap a = Option.mapTot (fun n -> (Seq.index bs n).bi_heaplet) (hmap a...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 177, "start_col": 0, "start_line": 156 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": true, "full_module": "LowStar.BufferView.Down", "short_module": "DV" }, { "abbrev": tr...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
buffers: Prims.list Vale.Arch.HeapImpl.buffer_info -> h1: Vale.Arch.HeapImpl.vale_full_heap -> Prims.GTot Vale.Arch.HeapImpl.vale_full_heap
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.list", "Vale.Arch.HeapImpl.buffer_info", "Vale.Arch.HeapImpl.vale_full_heap", "Prims.int", "FStar.Pervasives.Native.option", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "FStar.Seq.Base.length", "Vale.Arch.HeapImpl.heaplet_id", "FStar.Set.set", "Vale.Arch.HeapImpl.Mkvale_full_heap", ...
[]
false
false
false
false
false
let create_heaplets buffers h1 =
let bs = list_to_seq buffers in let modloc = loc_mutable_buffers buffers in let layout1 = h1.vf_layout in let layin1 = layout1.vl_inner in let hmap, hsets = make_owns h1.vf_heap bs (Seq.length bs) in let hmap a = Option.mapTot (fun n -> (Seq.index bs n).bi_heaplet) (hmap a) in let l = { vl_heaplets_initialized = ...
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.lemma_get_upd_heap
val lemma_get_upd_heap (h:vale_heap) (m:S.machine_heap) : Lemma (requires is_machine_heap_update (get_heap h) m) (ensures get_heap (upd_heap h m) == m)
val lemma_get_upd_heap (h:vale_heap) (m:S.machine_heap) : Lemma (requires is_machine_heap_update (get_heap h) m) (ensures get_heap (upd_heap h m) == m)
let lemma_get_upd_heap h m = I.up_down_identity (_ih h) m
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 57, "end_line": 31, "start_col": 0, "start_line": 31 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": true, "full_module": "LowStar.BufferView.Down", "short_module": "DV" }, { "abbrev": tr...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
h: Vale.Arch.HeapImpl.vale_heap -> m: Vale.Arch.MachineHeap_s.machine_heap -> FStar.Pervasives.Lemma (requires Vale.Arch.MachineHeap_s.is_machine_heap_update (Vale.X64.Memory_Sems.get_heap h) m) (ensures Vale.X64.Memory_Sems.get_heap (Vale.X64.Memory_Sems.upd_heap h m) == m)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Arch.HeapImpl.vale_heap", "Vale.Arch.MachineHeap_s.machine_heap", "Vale.Interop.up_down_identity", "Vale.Arch.HeapImpl._ih", "Prims.unit" ]
[]
true
false
true
false
false
let lemma_get_upd_heap h m =
I.up_down_identity (_ih h) m
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.set_of_range
val set_of_range (a: int) (n: nat) : Pure (Set.set int) (requires True) (ensures fun s -> (forall (i: int). {:pattern Set.mem i s} Set.mem i s <==> a <= i /\ i < a + n))
val set_of_range (a: int) (n: nat) : Pure (Set.set int) (requires True) (ensures fun s -> (forall (i: int). {:pattern Set.mem i s} Set.mem i s <==> a <= i /\ i < a + n))
let rec set_of_range (a:int) (n:nat) : Pure (Set.set int) (requires True) (ensures fun s -> (forall (i:int).{:pattern Set.mem i s} Set.mem i s <==> a <= i /\ i < a + n)) = if n = 0 then Set.empty else Set.union (set_of_range a (n - 1)) (Set.singleton (a + n - 1))
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 93, "end_line": 46, "start_col": 0, "start_line": 42 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
a: Prims.int -> n: Prims.nat -> Prims.Pure (FStar.Set.set Prims.int)
Prims.Pure
[]
[]
[ "Prims.int", "Prims.nat", "Prims.op_Equality", "FStar.Set.empty", "Prims.bool", "FStar.Set.union", "Vale.X64.Memory_Sems.set_of_range", "Prims.op_Subtraction", "FStar.Set.singleton", "Prims.op_Addition", "FStar.Set.set", "Prims.l_True", "Prims.l_Forall", "Prims.l_iff", "Prims.b2t", "FS...
[ "recursion" ]
false
false
false
false
false
let rec set_of_range (a: int) (n: nat) : Pure (Set.set int) (requires True) (ensures fun s -> (forall (i: int). {:pattern Set.mem i s} Set.mem i s <==> a <= i /\ i < a + n)) =
if n = 0 then Set.empty else Set.union (set_of_range a (n - 1)) (Set.singleton (a + n - 1))
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.buffer_info_has_addr_opt
val buffer_info_has_addr_opt : bi: FStar.Pervasives.Native.option Vale.Arch.HeapImpl.buffer_info -> a: Prims.int -> Prims.logical
let buffer_info_has_addr_opt (bi:option buffer_info) (a:int) = match bi with | None -> False | Some bi -> buffer_info_has_addr bi a
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 40, "end_line": 57, "start_col": 0, "start_line": 54 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
bi: FStar.Pervasives.Native.option Vale.Arch.HeapImpl.buffer_info -> a: Prims.int -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.Native.option", "Vale.Arch.HeapImpl.buffer_info", "Prims.int", "Prims.l_False", "Vale.X64.Memory_Sems.buffer_info_has_addr", "Prims.logical" ]
[]
false
false
false
true
true
let buffer_info_has_addr_opt (bi: option buffer_info) (a: int) =
match bi with | None -> False | Some bi -> buffer_info_has_addr bi a
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.upd_heap
val upd_heap (h:vale_heap) (m:S.machine_heap{is_machine_heap_update (get_heap h) m}) : GTot vale_heap
val upd_heap (h:vale_heap) (m:S.machine_heap{is_machine_heap_update (get_heap h) m}) : GTot vale_heap
let upd_heap h m = mi_heap_upd h m
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 34, "end_line": 27, "start_col": 0, "start_line": 27 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": true, "full_module": "LowStar.BufferView.Down", "short_module": "DV" }, { "abbrev": tr...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
h: Vale.Arch.HeapImpl.vale_heap -> m: Vale.Arch.MachineHeap_s.machine_heap {Vale.Arch.MachineHeap_s.is_machine_heap_update (Vale.X64.Memory_Sems.get_heap h) m} -> Prims.GTot Vale.Arch.HeapImpl.vale_heap
Prims.GTot
[ "sometrivial" ]
[]
[ "Vale.Arch.HeapImpl.vale_heap", "Vale.Arch.MachineHeap_s.machine_heap", "Vale.Arch.MachineHeap_s.is_machine_heap_update", "Vale.X64.Memory_Sems.get_heap", "Vale.Arch.HeapImpl.mi_heap_upd" ]
[]
false
false
false
false
false
let upd_heap h m =
mi_heap_upd h m
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.lemma_loc_mutable_buffers
val lemma_loc_mutable_buffers (l: list buffer_info) : Lemma (ensures (let s = list_to_seq l in forall (i: nat). {:pattern Seq.index s i} i < Seq.length s ==> (let bi = Seq.index s i in bi.bi_mutable == Mutable ==> loc_includes (loc_mutable_buffers l) (lo...
val lemma_loc_mutable_buffers (l: list buffer_info) : Lemma (ensures (let s = list_to_seq l in forall (i: nat). {:pattern Seq.index s i} i < Seq.length s ==> (let bi = Seq.index s i in bi.bi_mutable == Mutable ==> loc_includes (loc_mutable_buffers l) (lo...
let lemma_loc_mutable_buffers (l:list buffer_info) : Lemma (ensures ( let s = list_to_seq l in forall (i:nat).{:pattern Seq.index s i} i < Seq.length s ==> ( let bi = Seq.index s i in bi.bi_mutable == Mutable ==> loc_includes (loc_mutable_buffers l) (loc_buffer bi.bi_buffer)) )) = lemma_list...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 51, "end_line": 154, "start_col": 0, "start_line": 145 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
l: Prims.list Vale.Arch.HeapImpl.buffer_info -> FStar.Pervasives.Lemma (ensures (let s = Vale.Lib.Seqs.list_to_seq l in forall (i: Prims.nat). {:pattern FStar.Seq.Base.index s i} i < FStar.Seq.Base.length s ==> (let bi = FStar.Seq.Base.index s i in Mkbuffer_info?.bi_m...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "Vale.Arch.HeapImpl.buffer_info", "Vale.X64.Memory_Sems.lemma_loc_mutable_buffers_rec", "Vale.Lib.Seqs.list_to_seq", "Prims.unit", "Vale.Lib.Seqs.lemma_list_to_seq", "Prims.l_True", "Prims.squash", "Prims.l_Forall", "Prims.nat", "Prims.l_imp", "Prims.b2t", "Prims.op_LessThan", ...
[]
true
false
true
false
false
let lemma_loc_mutable_buffers (l: list buffer_info) : Lemma (ensures (let s = list_to_seq l in forall (i: nat). {:pattern Seq.index s i} i < Seq.length s ==> (let bi = Seq.index s i in bi.bi_mutable == Mutable ==> loc_includes (loc_mutable_buffers l) (lo...
lemma_list_to_seq l; lemma_loc_mutable_buffers_rec l (list_to_seq l) 0
false
Steel.Memory.fst
Steel.Memory.with_invariant
val with_invariant (#a:Type) (#fp:slprop) (#fp':a -> slprop) (#opened_invariants:inames) (#p:slprop) (i:inv p{not (mem_inv opened_invariants i)}) (f:action_except a (add_inv opened_invariants i) (p `star` f...
val with_invariant (#a:Type) (#fp:slprop) (#fp':a -> slprop) (#opened_invariants:inames) (#p:slprop) (i:inv p{not (mem_inv opened_invariants i)}) (f:action_except a (add_inv opened_invariants i) (p `star` f...
let with_invariant (#a:Type) (#fp:slprop) (#fp':a -> slprop) (#opened_invariants:inames) (#p:slprop) (i:inv p{not (mem_inv opened_invariants i)}) (f:action_except a (add_inv opened_invariants i) (p `star` f...
{ "file_name": "lib/steel/Steel.Memory.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 1489, "start_col": 0, "start_line": 1432 }
(* Copyright 2020 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": [ "Steel.Preorder.fst.checked", "Steel.Heap.fsti.checked", "prims.fst.checked", "FStar.Witnessed.Core.fsti.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ { "abbrev": true, "full_module": "Steel.Preorder", "short_module": "PP" }, { "abbrev": true, "full_module": "FStar.Witnessed.Core", "short_module": "W" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "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
i: Steel.Memory.inv p {Prims.op_Negation (FStar.Ghost.reveal (Steel.Memory.mem_inv opened_invariants i))} -> f: Steel.Memory.action_except a (Steel.Memory.add_inv opened_invariants i) (Steel.Memory.star p fp) (fun x -> Steel.Memory.star p (fp' x)) -> Steel.Memory.a...
Prims.Tot
[ "total" ]
[]
[ "Steel.Memory.slprop", "Steel.Memory.inames", "Steel.Memory.inv", "Prims.b2t", "Prims.op_Negation", "FStar.Ghost.reveal", "Prims.bool", "Steel.Memory.mem_inv", "Steel.Memory.action_except", "Steel.Memory.add_inv", "Steel.Memory.star", "Prims.unit", "Prims._assert", "Steel.Memory.inames_ok"...
[]
false
false
false
false
false
let with_invariant (#a: Type) (#fp: slprop) (#fp': (a -> slprop)) (#opened_invariants: inames) (#p: slprop) (i: inv p {not (mem_inv opened_invariants i)}) (f: action_except a (add_inv opened_invariants i) (p `star` fp) (fun x -> p `star` (fp' x))) (frame: slprop) : Ms...
let m0 = NMSTTotal.get () in NMSTTotal.recall _ mem_evolves (iname_for_p_mem (name_of_inv i) p) (token_of_inv i); assert (iname_for_p (name_of_inv i) p m0.locks); assert (interp ((fp `star` frame) `star` (locks_invariant opened_invariants m0)) m0); assert (interp ((fp `star` frame) `star` ((lock_store_i...
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.make_owns_rec
val make_owns_rec (h: vale_heap) (bs: Seq.seq buffer_info) (n: nat{n <= Seq.length bs}) : GTot ((int -> option (n: nat{n < Seq.length bs})) & (heaplet_id -> Set.set int))
val make_owns_rec (h: vale_heap) (bs: Seq.seq buffer_info) (n: nat{n <= Seq.length bs}) : GTot ((int -> option (n: nat{n < Seq.length bs})) & (heaplet_id -> Set.set int))
let rec make_owns_rec (h:vale_heap) (bs:Seq.seq buffer_info) (n:nat{n <= Seq.length bs}) : GTot ((int -> option (n:nat{n < Seq.length bs})) & (heaplet_id -> Set.set int)) = if n = 0 then ((fun _ -> None), (fun _ -> Set.empty)) else let (m0, s0) = make_owns_rec h bs (n - 1) in let bi = Seq.index bs (n - 1) in ...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 8, "end_line": 73, "start_col": 0, "start_line": 60 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
h: Vale.Arch.HeapImpl.vale_heap -> bs: FStar.Seq.Base.seq Vale.Arch.HeapImpl.buffer_info -> n: Prims.nat{n <= FStar.Seq.Base.length bs} -> Prims.GTot ((_: Prims.int -> FStar.Pervasives.Native.option (n: Prims.nat{n < FStar.Seq.Base.length bs})) * (_: Vale.Arch.HeapImpl.heaplet_id -> FStar.Set.s...
Prims.GTot
[ "sometrivial" ]
[]
[ "Vale.Arch.HeapImpl.vale_heap", "FStar.Seq.Base.seq", "Vale.Arch.HeapImpl.buffer_info", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Seq.Base.length", "Prims.op_Equality", "Prims.int", "FStar.Pervasives.Native.Mktuple2", "FStar.Pervasives.Native.option", "Prims.op_LessThan", ...
[ "recursion" ]
false
false
false
false
false
let rec make_owns_rec (h: vale_heap) (bs: Seq.seq buffer_info) (n: nat{n <= Seq.length bs}) : GTot ((int -> option (n: nat{n < Seq.length bs})) & (heaplet_id -> Set.set int)) =
if n = 0 then ((fun _ -> None), (fun _ -> Set.empty)) else let m0, s0 = make_owns_rec h bs (n - 1) in let bi = Seq.index bs (n - 1) in let b = bi.bi_buffer in let hi = bi.bi_heaplet in let addr = Vale.Interop.Heap_s.global_addrs_map b in let len = DV.length (get_downview b.bsrc) in let s_b = set_of_range ...
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.lemma_create_heaplets
val lemma_create_heaplets (buffers:list buffer_info) (h1:vale_full_heap) : Lemma (requires mem_inv h1 /\ is_initial_heap h1.vf_layout h1.vf_heap /\ init_heaplets_req h1.vf_heap (list_to_seq buffers) ) (ensures ( let h2 = create_heaplets buffers h1 in let bs = list_to_seq buffers in h1.vf_h...
val lemma_create_heaplets (buffers:list buffer_info) (h1:vale_full_heap) : Lemma (requires mem_inv h1 /\ is_initial_heap h1.vf_layout h1.vf_heap /\ init_heaplets_req h1.vf_heap (list_to_seq buffers) ) (ensures ( let h2 = create_heaplets buffers h1 in let bs = list_to_seq buffers in h1.vf_h...
let lemma_create_heaplets buffers h1 = let bs = list_to_seq buffers in let h2 = create_heaplets buffers h1 in assert (h2.vf_layout.vl_inner.vl_buffers == bs); // REVIEW: why is this necessary, even with extra ifuel? lemma_make_owns h1.vf_heap bs (Seq.length bs); lemma_loc_mutable_buffers buffers; reveal_opa...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 186, "start_col": 0, "start_line": 179 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": true, "full_module": "LowStar.BufferView.Down", "short_module": "DV" }, { "abbrev": tr...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
buffers: Prims.list Vale.Arch.HeapImpl.buffer_info -> h1: Vale.Arch.HeapImpl.vale_full_heap -> FStar.Pervasives.Lemma (requires Vale.X64.Memory.mem_inv h1 /\ Vale.X64.Memory.is_initial_heap (Mkvale_full_heap?.vf_layout h1) (Mkvale_full_heap?.vf_heap h1) /\ Vale.X64.Memory.init_...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "Vale.Arch.HeapImpl.buffer_info", "Vale.Arch.HeapImpl.vale_full_heap", "Prims.unit", "FStar.Pervasives.reveal_opaque", "Vale.Arch.HeapTypes_s.base_typ", "Vale.X64.Memory.buffer", "Vale.Arch.HeapImpl.vale_heap_layout", "FStar.Pervasives.Native.option", "Vale.Arch.HeapImpl.heaplet_id",...
[]
true
false
true
false
false
let lemma_create_heaplets buffers h1 =
let bs = list_to_seq buffers in let h2 = create_heaplets buffers h1 in assert (h2.vf_layout.vl_inner.vl_buffers == bs); lemma_make_owns h1.vf_heap bs (Seq.length bs); lemma_loc_mutable_buffers buffers; reveal_opaque (`%valid_layout_buffer_id) valid_layout_buffer_id; ()
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.heap_shift
val heap_shift (m1 m2:S.machine_heap) (base:int) (n:nat) : Lemma (requires (forall i. 0 <= i /\ i < n ==> m1.[base + i] == m2.[base + i])) (ensures (forall i. {:pattern (m1.[i])} base <= i /\ i < base + n ==> m1.[i] == m2.[i]))
val heap_shift (m1 m2:S.machine_heap) (base:int) (n:nat) : Lemma (requires (forall i. 0 <= i /\ i < n ==> m1.[base + i] == m2.[base + i])) (ensures (forall i. {:pattern (m1.[i])} base <= i /\ i < base + n ==> m1.[i] == m2.[i]))
let heap_shift m1 m2 base n = assert (forall i. base <= i /\ i < base + n ==> m1.[base + (i - base)] == m2.[base + (i - base)])
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 53, "end_line": 201, "start_col": 0, "start_line": 199 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
m1: Vale.Arch.MachineHeap_s.machine_heap -> m2: Vale.Arch.MachineHeap_s.machine_heap -> base: Prims.int -> n: Prims.nat -> FStar.Pervasives.Lemma (requires forall (i: Prims.int). 0 <= i /\ i < n ==> m1.[ base + i ] == m2.[ base + i ]) (ensures forall (i: Prims.int). {:pattern m1.[...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Arch.MachineHeap_s.machine_heap", "Prims.int", "Prims.nat", "Prims._assert", "Prims.l_Forall", "Prims.l_imp", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "Prims.op_Addition", "Prims.eq2", "Vale.Def.Types_s.nat8", "Vale.X64.Memory.op_String_Access", ...
[]
false
false
true
false
false
let heap_shift m1 m2 base n =
assert (forall i. base <= i /\ i < base + n ==> m1.[ base + (i - base) ] == m2.[ base + (i - base) ] )
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.length_up64
val length_up64 (b: buffer64) (h: vale_heap) (k: nat{k < buffer_length b}) (i: nat{i < 8}) : Lemma (scale8 k + i <= DV.length (get_downview b.bsrc))
val length_up64 (b: buffer64) (h: vale_heap) (k: nat{k < buffer_length b}) (i: nat{i < 8}) : Lemma (scale8 k + i <= DV.length (get_downview b.bsrc))
let length_up64 (b:buffer64) (h:vale_heap) (k:nat{k < buffer_length b}) (i:nat{i < 8}) : Lemma (scale8 k + i <= DV.length (get_downview b.bsrc)) = let vb = UV.mk_buffer (get_downview b.bsrc) uint64_view in UV.length_eq vb
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 17, "end_line": 231, "start_col": 0, "start_line": 228 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
b: Vale.X64.Memory.buffer64 -> h: Vale.Arch.HeapImpl.vale_heap -> k: Prims.nat{k < Vale.X64.Memory.buffer_length b} -> i: Prims.nat{i < 8} -> FStar.Pervasives.Lemma (ensures Vale.X64.Memory.scale8 k + i <= LowStar.BufferView.Down.length (Vale.Interop.Types.get_downview (Buffer?.bsrc b...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.X64.Memory.buffer64", "Vale.Arch.HeapImpl.vale_heap", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Vale.X64.Memory.buffer_length", "Vale.X64.Memory.vuint64", "LowStar.BufferView.Up.length_eq", "FStar.UInt64.t", "LowStar.BufferView.Up.buffer", "LowStar.BufferView.Up.mk_buffer", "FStar....
[]
true
false
true
false
false
let length_up64 (b: buffer64) (h: vale_heap) (k: nat{k < buffer_length b}) (i: nat{i < 8}) : Lemma (scale8 k + i <= DV.length (get_downview b.bsrc)) =
let vb = UV.mk_buffer (get_downview b.bsrc) uint64_view in UV.length_eq vb
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.lemma_loc_mutable_buffers_rec
val lemma_loc_mutable_buffers_rec (l: list buffer_info) (s: Seq.seq buffer_info) (n: nat) : Lemma (requires n + List.length l == Seq.length s /\ list_to_seq_post l s n) (ensures (let modloc = loc_mutable_buffers l in forall (i: nat). {:pattern Seq.index s i} n <= i /\ i < Seq.len...
val lemma_loc_mutable_buffers_rec (l: list buffer_info) (s: Seq.seq buffer_info) (n: nat) : Lemma (requires n + List.length l == Seq.length s /\ list_to_seq_post l s n) (ensures (let modloc = loc_mutable_buffers l in forall (i: nat). {:pattern Seq.index s i} n <= i /\ i < Seq.len...
let rec lemma_loc_mutable_buffers_rec (l:list buffer_info) (s:Seq.seq buffer_info) (n:nat) : Lemma (requires n + List.length l == Seq.length s /\ list_to_seq_post l s n ) (ensures ( let modloc = loc_mutable_buffers l in forall (i:nat).{:pattern Seq.index s i} n <= i /\ i < Seq.length s ==> ( ...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 53, "end_line": 142, "start_col": 0, "start_line": 127 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 2, "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
l: Prims.list Vale.Arch.HeapImpl.buffer_info -> s: FStar.Seq.Base.seq Vale.Arch.HeapImpl.buffer_info -> n: Prims.nat -> FStar.Pervasives.Lemma (requires n + FStar.List.Tot.Base.length l == FStar.Seq.Base.length s /\ Vale.Lib.Seqs.list_to_seq_post l s n) (ensures (let m...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.list", "Vale.Arch.HeapImpl.buffer_info", "FStar.Seq.Base.seq", "Prims.nat", "Vale.X64.Memory_Sems.lemma_loc_mutable_buffers_rec", "Prims.op_Addition", "Prims.unit", "Prims.l_and", "Prims.eq2", "Prims.int", "FStar.List.Tot.Base.length", "FStar.Seq.Base.length", "Vale.Lib.Seqs.list_to_s...
[ "recursion" ]
false
false
true
false
false
let rec lemma_loc_mutable_buffers_rec (l: list buffer_info) (s: Seq.seq buffer_info) (n: nat) : Lemma (requires n + List.length l == Seq.length s /\ list_to_seq_post l s n) (ensures (let modloc = loc_mutable_buffers l in forall (i: nat). {:pattern Seq.index s i} n <= i /\ i < Seq...
match l with | [] -> () | h :: t -> lemma_loc_mutable_buffers_rec t s (n + 1)
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.written_buffer_down64
val written_buffer_down64 (b: buffer64{buffer_writeable b}) (i: nat{i < buffer_length b}) (v: nat64) (h: vale_heap) : Lemma (requires List.memP b (IB.ptrs_of_mem (_ih h))) (ensures (let mem1 = I.down_mem (_ih h) in let h1 = buffer_write b i v h in let mem2 =...
val written_buffer_down64 (b: buffer64{buffer_writeable b}) (i: nat{i < buffer_length b}) (v: nat64) (h: vale_heap) : Lemma (requires List.memP b (IB.ptrs_of_mem (_ih h))) (ensures (let mem1 = I.down_mem (_ih h) in let h1 = buffer_write b i v h in let mem2 =...
let written_buffer_down64 (b:buffer64{buffer_writeable b}) (i:nat{i < buffer_length b}) (v:nat64) (h:vale_heap) : Lemma (requires List.memP b (IB.ptrs_of_mem (_ih h))) (ensures ( let mem1 = I.down_mem (_ih h) in let h1 = buffer_write b i v h in let mem2 = I.down_mem (_ih h1) ...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 64, "end_line": 337, "start_col": 0, "start_line": 318 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
b: Vale.X64.Memory.buffer64{Vale.X64.Memory.buffer_writeable b} -> i: Prims.nat{i < Vale.X64.Memory.buffer_length b} -> v: Vale.Def.Words_s.nat64 -> h: Vale.Arch.HeapImpl.vale_heap -> FStar.Pervasives.Lemma (requires FStar.List.Tot.Base.memP b (Vale.Interop.Heap_s.ptrs_of_mem (Vale.Arch...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.X64.Memory.buffer64", "Vale.X64.Memory.buffer_writeable", "Vale.X64.Memory.vuint64", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Vale.X64.Memory.buffer_length", "Vale.Def.Words_s.nat64", "Vale.Arch.HeapImpl.vale_heap", "Vale.X64.Memory_Sems.written_buffer_down64_aux2", "Prims.op_Additi...
[]
true
false
true
false
false
let written_buffer_down64 (b: buffer64{buffer_writeable b}) (i: nat{i < buffer_length b}) (v: nat64) (h: vale_heap) : Lemma (requires List.memP b (IB.ptrs_of_mem (_ih h))) (ensures (let mem1 = I.down_mem (_ih h) in let h1 = buffer_write b i v h in let mem2 =...
let mem1 = I.down_mem (_ih h) in let h1 = buffer_write b i v h in let mem2 = I.down_mem (_ih h1) in let base = buffer_addr b h in let n = buffer_length b in written_buffer_down64_aux1 b i v h base 0 h1 mem1 mem2; written_buffer_down64_aux2 b i v h base n (i + 1) h1 mem1 mem2
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.length_up128
val length_up128 (b: buffer128) (h: vale_heap) (k: nat{k < buffer_length b}) (i: nat{i < 16}) : Lemma (scale16 k + i <= DV.length (get_downview b.bsrc))
val length_up128 (b: buffer128) (h: vale_heap) (k: nat{k < buffer_length b}) (i: nat{i < 16}) : Lemma (scale16 k + i <= DV.length (get_downview b.bsrc))
let length_up128 (b:buffer128) (h:vale_heap) (k:nat{k < buffer_length b}) (i:nat{i < 16}) : Lemma (scale16 k + i <= DV.length (get_downview b.bsrc)) = let vb = UV.mk_buffer (get_downview b.bsrc) uint128_view in UV.length_eq vb
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 17, "end_line": 508, "start_col": 0, "start_line": 505 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
b: Vale.X64.Memory.buffer128 -> h: Vale.Arch.HeapImpl.vale_heap -> k: Prims.nat{k < Vale.X64.Memory.buffer_length b} -> i: Prims.nat{i < 16} -> FStar.Pervasives.Lemma (ensures Vale.X64.Memory.scale16 k + i <= LowStar.BufferView.Down.length (Vale.Interop.Types.get_downview (Buffer?.bsr...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.X64.Memory.buffer128", "Vale.Arch.HeapImpl.vale_heap", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Vale.X64.Memory.buffer_length", "Vale.X64.Memory.vuint128", "LowStar.BufferView.Up.length_eq", "Vale.Def.Types_s.quad32", "LowStar.BufferView.Up.buffer", "LowStar.BufferView.Up.mk_buffer"...
[]
true
false
true
false
false
let length_up128 (b: buffer128) (h: vale_heap) (k: nat{k < buffer_length b}) (i: nat{i < 16}) : Lemma (scale16 k + i <= DV.length (get_downview b.bsrc)) =
let vb = UV.mk_buffer (get_downview b.bsrc) uint128_view in UV.length_eq vb
false
Selectors.LList2.fst
Selectors.LList2.is_nil'
val is_nil' (#opened: _) (#a: Type0) (ptr: t a) : SteelGhost unit opened (llist ptr) (fun _ -> llist ptr) (requires fun _ -> True) (ensures fun h0 _ h1 -> let res = is_null ptr in (res == true <==> ptr == null_llist #a) /\ v_llist ptr h0 == v_llist ptr h1 /\...
val is_nil' (#opened: _) (#a: Type0) (ptr: t a) : SteelGhost unit opened (llist ptr) (fun _ -> llist ptr) (requires fun _ -> True) (ensures fun h0 _ h1 -> let res = is_null ptr in (res == true <==> ptr == null_llist #a) /\ v_llist ptr h0 == v_llist ptr h1 /\...
let is_nil' (#opened: _) (#a:Type0) (ptr:t a) : SteelGhost unit opened (llist ptr) (fun _ -> llist ptr) (requires fun _ -> True) (ensures fun h0 _ h1 -> let res = is_null ptr in (res == true <==> ptr == null_llist #a) /\ v_llist ptr h0 == v_llist ptr h1 /\ ...
{ "file_name": "share/steel/examples/steel/Selectors.LList2.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 21, "end_line": 265, "start_col": 0, "start_line": 234 }
module Selectors.LList2 open Steel.FractionalPermission module Mem = Steel.Memory #push-options "--__no_positivity" noeq type cell (a: Type0) = { tail_fuel: Ghost.erased nat; next: ref (cell a); data: a; } #pop-options let next #a (c:cell a) : t a = c.next let data #a (c:cell a) : a = c.data let mk_cell #a (n:...
{ "checked_file": "/", "dependencies": [ "Steel.Memory.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked" ], "interface_file": true, "source_file": "Selectors.LList2.fst" }
[ { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": false, "full_module": "Steel.FractionalPermission", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full...
{ "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
ptr: Selectors.LList2.t a -> Steel.Effect.Atomic.SteelGhost Prims.unit
Steel.Effect.Atomic.SteelGhost
[]
[]
[ "Steel.Memory.inames", "Selectors.LList2.t", "Selectors.LList2.llist_of_llist0", "Prims.unit", "Steel.Effect.Atomic.change_equal_slprop", "Steel.Effect.Common.vrewrite", "Steel.Effect.Common.emp", "Prims.list", "Selectors.LList2.v_null_rewrite", "Selectors.LList2.llist0", "Steel.Effect.Atomic.in...
[]
false
true
false
false
false
let is_nil' (#opened: _) (#a: Type0) (ptr: t a) : SteelGhost unit opened (llist ptr) (fun _ -> llist ptr) (requires fun _ -> True) (ensures fun h0 _ h1 -> let res = is_null ptr in (res == true <==> ptr == null_llist #a) /\ v_llist ptr h0 == v_llist ptr h1 /\...
let res = is_null ptr in llist0_of_llist ptr; if res then (change_equal_slprop (llist0 ptr) (emp `vrewrite` (v_null_rewrite a)); elim_vrewrite emp (v_null_rewrite a); intro_vrewrite emp (v_null_rewrite a); change_equal_slprop (emp `vrewrite` (v_null_rewrite a)) (llist0 ptr)) else (change_equal_slprop (l...
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.store_buffer_aux_down64_mem
val store_buffer_aux_down64_mem (ptr: int) (v: nat64) (h: vale_heap{writeable_mem64 ptr h}) : Lemma (ensures (let mem1 = I.down_mem (_ih h) in let h1 = store_mem (TUInt64) ptr v h in let mem2 = I.down_mem (_ih h1) in forall j. {:pattern mem1.[ j ]\/mem2.[ j ]} j < ptr \/ ...
val store_buffer_aux_down64_mem (ptr: int) (v: nat64) (h: vale_heap{writeable_mem64 ptr h}) : Lemma (ensures (let mem1 = I.down_mem (_ih h) in let h1 = store_mem (TUInt64) ptr v h in let mem2 = I.down_mem (_ih h1) in forall j. {:pattern mem1.[ j ]\/mem2.[ j ]} j < ptr \/ ...
let store_buffer_aux_down64_mem (ptr:int) (v:nat64) (h:vale_heap{writeable_mem64 ptr h}) : Lemma (ensures ( let mem1 = I.down_mem (_ih h) in let h1 = store_mem (TUInt64) ptr v h in let mem2 = I.down_mem (_ih h1) in forall j. {:pattern mem1.[j] \/ mem2.[j]} j < ptr \/ j ...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 35, "end_line": 431, "start_col": 0, "start_line": 414 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
ptr: Prims.int -> v: Vale.Def.Words_s.nat64 -> h: Vale.Arch.HeapImpl.vale_heap{Vale.X64.Memory.writeable_mem64 ptr h} -> FStar.Pervasives.Lemma (ensures (let mem1 = Vale.Interop.down_mem (Vale.Arch.HeapImpl._ih h) in let h1 = Vale.X64.Memory.store_mem Vale.Arch.HeapTypes_s.TUInt64 ptr v...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "Vale.Def.Words_s.nat64", "Vale.Arch.HeapImpl.vale_heap", "Prims.b2t", "Vale.X64.Memory.writeable_mem64", "Vale.X64.Memory_Sems.store_buffer_down64_mem", "Prims.unit", "Prims._assert", "Prims.eq2", "Prims.op_Addition", "Vale.X64.Memory.buffer_addr", "Vale.X64.Memory.scale8", "Va...
[]
true
false
true
false
false
let store_buffer_aux_down64_mem (ptr: int) (v: nat64) (h: vale_heap{writeable_mem64 ptr h}) : Lemma (ensures (let mem1 = I.down_mem (_ih h) in let h1 = store_mem (TUInt64) ptr v h in let mem2 = I.down_mem (_ih h1) in forall j. {:pattern mem1.[ j ]\/mem2.[ j ]} j < ptr \/ ...
let t = TUInt64 in let h1 = store_mem t ptr v h in let b = Some?.v (find_writeable_buffer t ptr h) in length_t_eq t b; let i = get_addr_in_ptr t (buffer_length b) (buffer_addr b h) ptr 0 in store_buffer_write t ptr v h; assert (buffer_addr b h + scale8 i == ptr); assert (buffer_addr b h + scale8 (i + 1) == ptr + 8); st...
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.written_buffer_down64_aux1
val written_buffer_down64_aux1 (b: buffer64{buffer_writeable b}) (i: nat{i < buffer_length b}) (v: nat64) (h: vale_heap{List.memP b (IB.ptrs_of_mem (_ih h))}) (base: nat{base == buffer_addr b h}) (k: nat) (h1: vale_heap{h1 == buffer_write b i v h}) (mem1: S.machine_heap{I...
val written_buffer_down64_aux1 (b: buffer64{buffer_writeable b}) (i: nat{i < buffer_length b}) (v: nat64) (h: vale_heap{List.memP b (IB.ptrs_of_mem (_ih h))}) (base: nat{base == buffer_addr b h}) (k: nat) (h1: vale_heap{h1 == buffer_write b i v h}) (mem1: S.machine_heap{I...
let rec written_buffer_down64_aux1 (b:buffer64{buffer_writeable b}) (i:nat{i < buffer_length b}) (v:nat64) (h:vale_heap{List.memP b (IB.ptrs_of_mem (_ih h))}) (base:nat{base == buffer_addr b h}) (k:nat) (h1:vale_heap{h1 == buffer_write b i v h}) (mem1:S.machine_heap{IB.correct_down (_ih h) mem1}) (mem2:...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 7, "end_line": 290, "start_col": 0, "start_line": 267 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
b: Vale.X64.Memory.buffer64{Vale.X64.Memory.buffer_writeable b} -> i: Prims.nat{i < Vale.X64.Memory.buffer_length b} -> v: Vale.Def.Words_s.nat64 -> h: Vale.Arch.HeapImpl.vale_heap {FStar.List.Tot.Base.memP b (Vale.Interop.Heap_s.ptrs_of_mem (Vale.Arch.HeapImpl._ih h))} -> base: Prims...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Vale.X64.Memory.buffer64", "Vale.X64.Memory.buffer_writeable", "Vale.X64.Memory.vuint64", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Vale.X64.Memory.buffer_length", "Vale.Def.Words_s.nat64", "Vale.Arch.HeapImpl.vale_heap", "FStar.List.Tot.Base.memP", "Vale.Interop.Types.b8", "Vale.Intero...
[ "recursion" ]
false
false
true
false
false
let rec written_buffer_down64_aux1 (b: buffer64{buffer_writeable b}) (i: nat{i < buffer_length b}) (v: nat64) (h: vale_heap{List.memP b (IB.ptrs_of_mem (_ih h))}) (base: nat{base == buffer_addr b h}) (k: nat) (h1: vale_heap{h1 == buffer_write b i v h}) (mem1: S.machine_he...
if k >= i then () else let ptr = base + scale8 k in same_mem_get_heap_val64 b i v k h h1 mem1 mem2; heap_shift mem1 mem2 ptr 8; written_buffer_down64_aux1 b i v h base (k + 1) h1 mem1 mem2
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.bytes_valid64
val bytes_valid64 (i:int) (m:vale_heap) : Lemma (requires valid_mem64 i m) (ensures S.valid_addr64 i (get_heap m)) [SMTPat (S.valid_addr64 i (get_heap m))]
val bytes_valid64 (i:int) (m:vale_heap) : Lemma (requires valid_mem64 i m) (ensures S.valid_addr64 i (get_heap m)) [SMTPat (S.valid_addr64 i (get_heap m))]
let bytes_valid64 ptr h = reveal_opaque (`%S.valid_addr64) S.valid_addr64; let t = TUInt64 in let b = get_addr_ptr t ptr h in let i = get_addr_in_ptr t (buffer_length b) (buffer_addr b h) ptr 0 in in_bounds64 h b i; I.addrs_set_mem (_ih h) b ptr; I.addrs_set_mem (_ih h) b (ptr+1); I.addrs_set_mem (_ih...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 36, "end_line": 467, "start_col": 0, "start_line": 454 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": true, "full_module": "LowStar.BufferView.Down", "short_module": "DV" }, { "abbrev": tr...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
i: Prims.int -> m: Vale.Arch.HeapImpl.vale_heap -> FStar.Pervasives.Lemma (requires Vale.X64.Memory.valid_mem64 i m) (ensures Vale.Arch.MachineHeap_s.valid_addr64 i (Vale.X64.Memory_Sems.get_heap m)) [SMTPat (Vale.Arch.MachineHeap_s.valid_addr64 i (Vale.X64.Memory_Sems.get_heap m))]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "Vale.Arch.HeapImpl.vale_heap", "Vale.Interop.addrs_set_mem", "Vale.Arch.HeapImpl._ih", "Prims.op_Addition", "Prims.unit", "Vale.X64.Memory_Sems.in_bounds64", "Prims.nat", "Vale.X64.Memory.get_addr_in_ptr", "Vale.X64.Memory.buffer_length", "Vale.X64.Memory.buffer_addr", "Vale.Arch...
[]
true
false
true
false
false
let bytes_valid64 ptr h =
reveal_opaque (`%S.valid_addr64) S.valid_addr64; let t = TUInt64 in let b = get_addr_ptr t ptr h in let i = get_addr_in_ptr t (buffer_length b) (buffer_addr b h) ptr 0 in in_bounds64 h b i; I.addrs_set_mem (_ih h) b ptr; I.addrs_set_mem (_ih h) b (ptr + 1); I.addrs_set_mem (_ih h) b (ptr + 2); I.addrs_set_mem (_ih h) b...
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.in_bounds64
val in_bounds64 (h: vale_heap) (b: buffer64) (i: nat{i < buffer_length b}) : Lemma (scale8 i + 8 <= DV.length (get_downview b.bsrc))
val in_bounds64 (h: vale_heap) (b: buffer64) (i: nat{i < buffer_length b}) : Lemma (scale8 i + 8 <= DV.length (get_downview b.bsrc))
let in_bounds64 (h:vale_heap) (b:buffer64) (i:nat{i < buffer_length b}) : Lemma (scale8 i + 8 <= DV.length (get_downview b.bsrc)) = length_t_eq TUInt64 b
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 23, "end_line": 452, "start_col": 0, "start_line": 449 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
h: Vale.Arch.HeapImpl.vale_heap -> b: Vale.X64.Memory.buffer64 -> i: Prims.nat{i < Vale.X64.Memory.buffer_length b} -> FStar.Pervasives.Lemma (ensures Vale.X64.Memory.scale8 i + 8 <= LowStar.BufferView.Down.length (Vale.Interop.Types.get_downview (Buffer?.bsrc b)))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Arch.HeapImpl.vale_heap", "Vale.X64.Memory.buffer64", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Vale.X64.Memory.buffer_length", "Vale.X64.Memory.vuint64", "Vale.X64.Memory.length_t_eq", "Vale.Arch.HeapTypes_s.TUInt64", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.op_LessT...
[]
true
false
true
false
false
let in_bounds64 (h: vale_heap) (b: buffer64) (i: nat{i < buffer_length b}) : Lemma (scale8 i + 8 <= DV.length (get_downview b.bsrc)) =
length_t_eq TUInt64 b
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.store_buffer_aux_down64_mem2
val store_buffer_aux_down64_mem2 (ptr: int) (v: nat64) (h: vale_heap{writeable_mem64 ptr h}) : Lemma (ensures (let h1 = store_mem (TUInt64) ptr v h in let mem2 = I.down_mem (_ih h1) in S.get_heap_val64 ptr mem2 == v))
val store_buffer_aux_down64_mem2 (ptr: int) (v: nat64) (h: vale_heap{writeable_mem64 ptr h}) : Lemma (ensures (let h1 = store_mem (TUInt64) ptr v h in let mem2 = I.down_mem (_ih h1) in S.get_heap_val64 ptr mem2 == v))
let store_buffer_aux_down64_mem2 (ptr:int) (v:nat64) (h:vale_heap{writeable_mem64 ptr h}) : Lemma (ensures ( let h1 = store_mem (TUInt64) ptr v h in let mem2 = I.down_mem (_ih h1) in S.get_heap_val64 ptr mem2 == v)) = let t = TUInt64 in let b = Some?.v (find_writeable_buffer t ptr ...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 447, "start_col": 0, "start_line": 433 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
ptr: Prims.int -> v: Vale.Def.Words_s.nat64 -> h: Vale.Arch.HeapImpl.vale_heap{Vale.X64.Memory.writeable_mem64 ptr h} -> FStar.Pervasives.Lemma (ensures (let h1 = Vale.X64.Memory.store_mem Vale.Arch.HeapTypes_s.TUInt64 ptr v h in let mem2 = Vale.Interop.down_mem (Vale.Arch.HeapImpl._ih ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "Vale.Def.Words_s.nat64", "Vale.Arch.HeapImpl.vale_heap", "Prims.b2t", "Vale.X64.Memory.writeable_mem64", "Vale.X64.Memory.index64_get_heap_val64", "Prims.unit", "Prims._assert", "Prims.eq2", "Vale.X64.Memory.base_typ_as_vale_type", "FStar.Seq.Base.index", "Vale.X64.Memory.buffer_...
[]
true
false
true
false
false
let store_buffer_aux_down64_mem2 (ptr: int) (v: nat64) (h: vale_heap{writeable_mem64 ptr h}) : Lemma (ensures (let h1 = store_mem (TUInt64) ptr v h in let mem2 = I.down_mem (_ih h1) in S.get_heap_val64 ptr mem2 == v)) =
let t = TUInt64 in let b = Some?.v (find_writeable_buffer t ptr h) in length_t_eq t b; let i = get_addr_in_ptr t (buffer_length b) (buffer_addr b h) ptr 0 in let h1 = store_mem t ptr v h in let mem2 = I.down_mem (_ih h1) in store_buffer_write t ptr v h; assert (Seq.index (buffer_as_seq h1 b) i == v); index64_get_heap_v...
false
PulseCore.MonotonicStateMonad.fst
PulseCore.MonotonicStateMonad.mst
val mst (#s:Type u#s) (rel:FStar.Preorder.preorder s) (a:Type u#a) (pre:s -> prop) (post:s -> a -> s -> prop) : Type u#(max a s)
val mst (#s:Type u#s) (rel:FStar.Preorder.preorder s) (a:Type u#a) (pre:s -> prop) (post:s -> a -> s -> prop) : Type u#(max a s)
let mst (#s:Type u#s) (rel:FStar.Preorder.preorder s) (a:Type u#a) (pre:s -> prop) (post:s -> a -> s -> prop) = s0:s { pre s0 } -> Tot ( res:(a & s) { post s0 res._1 res._2 /\ rel s0 res._2 } )
{ "file_name": "lib/pulse_core/PulseCore.MonotonicStateMonad.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 15, "start_col": 0, "start_line": 4 }
module PulseCore.MonotonicStateMonad open FStar.Preorder
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.MSTTotal.fst.checked" ], "interface_file": true, "source_file": "PulseCore.MonotonicStateMonad.fst" }
[ { "abbrev": true, "full_module": "FStar.MSTTotal", "short_module": "M" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": true, "full_module": "FStar.MSTTotal", "short_module": "M" }, { "abbrev": false, "full_module": "F...
{ "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
rel: FStar.Preorder.preorder s -> a: Type -> pre: (_: s -> Prims.prop) -> post: (_: s -> _: a -> _: s -> Prims.prop) -> Type
Prims.Tot
[ "total" ]
[]
[ "FStar.Preorder.preorder", "Prims.prop", "FStar.Pervasives.Native.tuple2", "Prims.l_and", "FStar.Pervasives.Native.__proj__Mktuple2__item___1", "FStar.Pervasives.Native.__proj__Mktuple2__item___2" ]
[]
false
false
false
true
true
let mst (#s: Type u#s) (rel: FStar.Preorder.preorder s) (a: Type u#a) (pre: (s -> prop)) (post: (s -> a -> s -> prop)) =
s0: s{pre s0} -> Tot (res: (a & s){post s0 res._1 res._2 /\ rel s0 res._2})
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.same_mem_eq_slices64
val same_mem_eq_slices64 (b:buffer64{buffer_writeable b}) (i:nat{i < buffer_length b}) (v:nat64) (k:nat{k < buffer_length b}) (h1:vale_heap{List.memP b (IB.ptrs_of_mem (_ih h1))}) (h2:vale_heap{h2 == buffe...
val same_mem_eq_slices64 (b:buffer64{buffer_writeable b}) (i:nat{i < buffer_length b}) (v:nat64) (k:nat{k < buffer_length b}) (h1:vale_heap{List.memP b (IB.ptrs_of_mem (_ih h1))}) (h2:vale_heap{h2 == buffe...
let same_mem_eq_slices64 b i v k h1 h2 mem1 mem2 = let t = TUInt64 in let db = get_downview b.bsrc in let ub = UV.mk_buffer db (uint_view t) in UV.as_seq_sel (IB.hs_of_mem (_ih h1)) ub k; UV.as_seq_sel (IB.hs_of_mem (_ih h2)) ub k; UV.put_sel (IB.hs_of_mem (_ih h1)) ub k; UV.put_sel (IB.hs_o...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 19, "end_line": 226, "start_col": 0, "start_line": 218 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
b: Vale.X64.Memory.buffer64{Vale.X64.Memory.buffer_writeable b} -> i: Prims.nat{i < Vale.X64.Memory.buffer_length b} -> v: Vale.Def.Words_s.nat64 -> k: Prims.nat{k < Vale.X64.Memory.buffer_length b} -> h1: Vale.Arch.HeapImpl.vale_heap {FStar.List.Tot.Base.memP b (Vale.Interop.Heap_s.p...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.X64.Memory.buffer64", "Vale.X64.Memory.buffer_writeable", "Vale.X64.Memory.vuint64", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Vale.X64.Memory.buffer_length", "Vale.Def.Words_s.nat64", "Vale.Arch.HeapImpl.vale_heap", "FStar.List.Tot.Base.memP", "Vale.Interop.Types.b8", "Vale.Intero...
[]
true
false
true
false
false
let same_mem_eq_slices64 b i v k h1 h2 mem1 mem2 =
let t = TUInt64 in let db = get_downview b.bsrc in let ub = UV.mk_buffer db (uint_view t) in UV.as_seq_sel (IB.hs_of_mem (_ih h1)) ub k; UV.as_seq_sel (IB.hs_of_mem (_ih h2)) ub k; UV.put_sel (IB.hs_of_mem (_ih h1)) ub k; UV.put_sel (IB.hs_of_mem (_ih h2)) ub k; UV.length_eq ub
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.equiv_load_mem128
val equiv_load_mem128 (ptr:int) (m:vale_heap) : Lemma (requires valid_mem128 ptr m) (ensures load_mem128 ptr m == S.get_heap_val128 ptr (get_heap m))
val equiv_load_mem128 (ptr:int) (m:vale_heap) : Lemma (requires valid_mem128 ptr m) (ensures load_mem128 ptr m == S.get_heap_val128 ptr (get_heap m))
let equiv_load_mem128 ptr h = equiv_load_mem128_aux ptr h
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 753, "start_col": 0, "start_line": 752 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": false, "full_module": "Vale.X64.BufferViewStore", "short_module": null }, { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
ptr: Prims.int -> m: Vale.Arch.HeapImpl.vale_heap -> FStar.Pervasives.Lemma (requires Vale.X64.Memory.valid_mem128 ptr m) (ensures Vale.X64.Memory.load_mem128 ptr m == Vale.Arch.MachineHeap_s.get_heap_val128 ptr (Vale.X64.Memory_Sems.get_heap m))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "Vale.Arch.HeapImpl.vale_heap", "Vale.X64.Memory_Sems.equiv_load_mem128_aux", "Prims.unit" ]
[]
true
false
true
false
false
let equiv_load_mem128 ptr h =
equiv_load_mem128_aux ptr h
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.bytes_valid128
val bytes_valid128 (i:int) (m:vale_heap) : Lemma (requires valid_mem128 i m) (ensures S.valid_addr128 i (get_heap m)) [SMTPat (S.valid_addr128 i (get_heap m))]
val bytes_valid128 (i:int) (m:vale_heap) : Lemma (requires valid_mem128 i m) (ensures S.valid_addr128 i (get_heap m)) [SMTPat (S.valid_addr128 i (get_heap m))]
let bytes_valid128 ptr h = reveal_opaque (`%S.valid_addr128) S.valid_addr128; IB.list_disjoint_or_eq_reveal (); let t = TUInt128 in let b = get_addr_ptr t ptr h in let i = get_addr_in_ptr t (buffer_length b) (buffer_addr b h) ptr 0 in in_bounds128 h b i; I.addrs_set_mem (_ih h) b ptr; I.addrs_set_mem (_...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 36, "end_line": 560, "start_col": 0, "start_line": 538 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": true, "full_module": "LowStar.BufferView.Down", "short_module": "DV" }, { "abbrev": tr...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
i: Prims.int -> m: Vale.Arch.HeapImpl.vale_heap -> FStar.Pervasives.Lemma (requires Vale.X64.Memory.valid_mem128 i m) (ensures Vale.Arch.MachineHeap_s.valid_addr128 i (Vale.X64.Memory_Sems.get_heap m)) [SMTPat (Vale.Arch.MachineHeap_s.valid_addr128 i (Vale.X64.Memory_Sems.get_heap m))]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "Vale.Arch.HeapImpl.vale_heap", "Vale.Interop.addrs_set_mem", "Vale.Arch.HeapImpl._ih", "Prims.op_Addition", "Prims.unit", "Vale.X64.Memory_Sems.in_bounds128", "Prims.nat", "Vale.X64.Memory.get_addr_in_ptr", "Vale.X64.Memory.buffer_length", "Vale.X64.Memory.buffer_addr", "Vale.Arc...
[]
true
false
true
false
false
let bytes_valid128 ptr h =
reveal_opaque (`%S.valid_addr128) S.valid_addr128; IB.list_disjoint_or_eq_reveal (); let t = TUInt128 in let b = get_addr_ptr t ptr h in let i = get_addr_in_ptr t (buffer_length b) (buffer_addr b h) ptr 0 in in_bounds128 h b i; I.addrs_set_mem (_ih h) b ptr; I.addrs_set_mem (_ih h) b (ptr + 1); I.addrs_set_mem (_ih h) ...
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.in_bounds128
val in_bounds128 (h: vale_heap) (b: buffer128) (i: nat{i < buffer_length b}) : Lemma (scale16 i + 16 <= DV.length (get_downview b.bsrc))
val in_bounds128 (h: vale_heap) (b: buffer128) (i: nat{i < buffer_length b}) : Lemma (scale16 i + 16 <= DV.length (get_downview b.bsrc))
let in_bounds128 (h:vale_heap) (b:buffer128) (i:nat{i < buffer_length b}) : Lemma (scale16 i + 16 <= DV.length (get_downview b.bsrc)) = length_t_eq TUInt128 b
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 24, "end_line": 534, "start_col": 0, "start_line": 531 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
h: Vale.Arch.HeapImpl.vale_heap -> b: Vale.X64.Memory.buffer128 -> i: Prims.nat{i < Vale.X64.Memory.buffer_length b} -> FStar.Pervasives.Lemma (ensures Vale.X64.Memory.scale16 i + 16 <= LowStar.BufferView.Down.length (Vale.Interop.Types.get_downview (Buffer?.bsrc b)))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Arch.HeapImpl.vale_heap", "Vale.X64.Memory.buffer128", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Vale.X64.Memory.buffer_length", "Vale.X64.Memory.vuint128", "Vale.X64.Memory.length_t_eq", "Vale.Arch.HeapTypes_s.TUInt128", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.op_Le...
[]
true
false
true
false
false
let in_bounds128 (h: vale_heap) (b: buffer128) (i: nat{i < buffer_length b}) : Lemma (scale16 i + 16 <= DV.length (get_downview b.bsrc)) =
length_t_eq TUInt128 b
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.written_buffer_down64_aux2
val written_buffer_down64_aux2 (b: buffer64{buffer_writeable b}) (i: nat{i < buffer_length b}) (v: nat64) (h: vale_heap{List.memP b (IB.ptrs_of_mem (_ih h))}) (base: nat{base == buffer_addr b h}) (n: nat{n == buffer_length b}) (k: nat{k > i}) (h1: vale_heap{h1 == buffer_w...
val written_buffer_down64_aux2 (b: buffer64{buffer_writeable b}) (i: nat{i < buffer_length b}) (v: nat64) (h: vale_heap{List.memP b (IB.ptrs_of_mem (_ih h))}) (base: nat{base == buffer_addr b h}) (n: nat{n == buffer_length b}) (k: nat{k > i}) (h1: vale_heap{h1 == buffer_w...
let rec written_buffer_down64_aux2 (b:buffer64{buffer_writeable b}) (i:nat{i < buffer_length b}) (v:nat64) (h:vale_heap{List.memP b (IB.ptrs_of_mem (_ih h))}) (base:nat{base == buffer_addr b h}) (n:nat{n == buffer_length b}) (k:nat{k > i}) (h1:vale_heap{h1 == buffer_write b i v h}) (mem1:S.machine_heap{...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 7, "end_line": 316, "start_col": 0, "start_line": 292 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
b: Vale.X64.Memory.buffer64{Vale.X64.Memory.buffer_writeable b} -> i: Prims.nat{i < Vale.X64.Memory.buffer_length b} -> v: Vale.Def.Words_s.nat64 -> h: Vale.Arch.HeapImpl.vale_heap {FStar.List.Tot.Base.memP b (Vale.Interop.Heap_s.ptrs_of_mem (Vale.Arch.HeapImpl._ih h))} -> base: Prims...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Vale.X64.Memory.buffer64", "Vale.X64.Memory.buffer_writeable", "Vale.X64.Memory.vuint64", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Vale.X64.Memory.buffer_length", "Vale.Def.Words_s.nat64", "Vale.Arch.HeapImpl.vale_heap", "FStar.List.Tot.Base.memP", "Vale.Interop.Types.b8", "Vale.Intero...
[ "recursion" ]
false
false
true
false
false
let rec written_buffer_down64_aux2 (b: buffer64{buffer_writeable b}) (i: nat{i < buffer_length b}) (v: nat64) (h: vale_heap{List.memP b (IB.ptrs_of_mem (_ih h))}) (base: nat{base == buffer_addr b h}) (n: nat{n == buffer_length b}) (k: nat{k > i}) (h1: vale_heap{h1 == buff...
if k >= n then () else let ptr = base + scale8 k in same_mem_get_heap_val64 b i v k h h1 mem1 mem2; heap_shift mem1 mem2 ptr 8; written_buffer_down64_aux2 b i v h base n (k + 1) h1 mem1 mem2
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.store_buffer_down64_mem
val store_buffer_down64_mem (b: buffer64{buffer_writeable b}) (i: nat{i < buffer_length b}) (v: nat64) (h: vale_heap{List.memP b (IB.ptrs_of_mem (_ih h))}) : Lemma (ensures (let mem1 = I.down_mem (_ih h) in let h1 = buffer_write b i v h in let mem2 = I.down_mem (_ih...
val store_buffer_down64_mem (b: buffer64{buffer_writeable b}) (i: nat{i < buffer_length b}) (v: nat64) (h: vale_heap{List.memP b (IB.ptrs_of_mem (_ih h))}) : Lemma (ensures (let mem1 = I.down_mem (_ih h) in let h1 = buffer_write b i v h in let mem2 = I.down_mem (_ih...
let store_buffer_down64_mem (b:buffer64{buffer_writeable b}) (i:nat{i < buffer_length b}) (v:nat64) (h:vale_heap{List.memP b (IB.ptrs_of_mem (_ih h))}) : Lemma (ensures ( let mem1 = I.down_mem (_ih h) in let h1 = buffer_write b i v h in let mem2 = I.down_mem (_ih h1) in l...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 30, "end_line": 412, "start_col": 0, "start_line": 379 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
b: Vale.X64.Memory.buffer64{Vale.X64.Memory.buffer_writeable b} -> i: Prims.nat{i < Vale.X64.Memory.buffer_length b} -> v: Vale.Def.Words_s.nat64 -> h: Vale.Arch.HeapImpl.vale_heap {FStar.List.Tot.Base.memP b (Vale.Interop.Heap_s.ptrs_of_mem (Vale.Arch.HeapImpl._ih h))} -> FStar.Pervasi...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.X64.Memory.buffer64", "Vale.X64.Memory.buffer_writeable", "Vale.X64.Memory.vuint64", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Vale.X64.Memory.buffer_length", "Vale.Def.Words_s.nat64", "Vale.Arch.HeapImpl.vale_heap", "FStar.List.Tot.Base.memP", "Vale.Interop.Types.b8", "Vale.Intero...
[]
false
false
true
false
false
let store_buffer_down64_mem (b: buffer64{buffer_writeable b}) (i: nat{i < buffer_length b}) (v: nat64) (h: vale_heap{List.memP b (IB.ptrs_of_mem (_ih h))}) : Lemma (ensures (let mem1 = I.down_mem (_ih h) in let h1 = buffer_write b i v h in let mem2 = I.down_mem (_ih...
let mem1 = I.down_mem (_ih h) in let h1 = buffer_write b i v h in let mem2 = I.down_mem (_ih h1) in let base = buffer_addr b h in let n = buffer_length b in let aux (j: int) : Lemma (j < base + scale8 i \/ j >= base + scale8 (i + 1) ==> mem1.[ j ] == mem2.[ j ]) = I.addrs_set_lemma_all (); if j >= base && j < b...
false
PulseCore.MonotonicStateMonad.fst
PulseCore.MonotonicStateMonad.return
val return (#s:Type u#s) (#rel:preorder s) (#a:Type u#a) (x:a) : mst rel a (fun _ -> True) (fun s0 v s1 -> x == v /\ s0 == s1)
val return (#s:Type u#s) (#rel:preorder s) (#a:Type u#a) (x:a) : mst rel a (fun _ -> True) (fun s0 v s1 -> x == v /\ s0 == s1)
let return x = fun s0 -> x, s0
{ "file_name": "lib/pulse_core/PulseCore.MonotonicStateMonad.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 17, "end_line": 37, "start_col": 0, "start_line": 36 }
module PulseCore.MonotonicStateMonad open FStar.Preorder module M = FStar.MSTTotal let mst (#s:Type u#s) (rel:FStar.Preorder.preorder s) (a:Type u#a) (pre:s -> prop) (post:s -> a -> s -> prop) = s0:s { pre s0 } -> Tot ( res:(a & s) { post s0 res._1 res._2 /\...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.MSTTotal.fst.checked" ], "interface_file": true, "source_file": "PulseCore.MonotonicStateMonad.fst" }
[ { "abbrev": true, "full_module": "FStar.MSTTotal", "short_module": "M" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": true, "full_module": "FStar.MSTTotal", "short_module": "M" }, { "abbrev": false, "full_module": "F...
{ "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 -> PulseCore.MonotonicStateMonad.mst rel a (fun _ -> Prims.l_True) (fun s0 v s1 -> x == v /\ s0 == s1)
Prims.Tot
[ "total" ]
[]
[ "FStar.Preorder.preorder", "Prims.l_True", "FStar.Pervasives.Native.Mktuple2", "FStar.Pervasives.Native.tuple2", "Prims.l_and", "Prims.eq2", "Prims.prop", "FStar.Pervasives.Native.__proj__Mktuple2__item___1", "FStar.Pervasives.Native.__proj__Mktuple2__item___2" ]
[]
false
false
false
false
false
let return x =
fun s0 -> x, s0
false
PulseCore.MonotonicStateMonad.fst
PulseCore.MonotonicStateMonad.to_msttotal
val to_msttotal (#s:Type u#2) (rel:FStar.Preorder.preorder s) (a:Type u#a) (pre:s -> prop) (post:s -> a -> s -> prop) (f:mst rel a pre post) : M.MSTATETOT a s rel pre post
val to_msttotal (#s:Type u#2) (rel:FStar.Preorder.preorder s) (a:Type u#a) (pre:s -> prop) (post:s -> a -> s -> prop) (f:mst rel a pre post) : M.MSTATETOT a s rel pre post
let to_msttotal (#s:Type u#2) (rel:FStar.Preorder.preorder s) (a:Type u#a) (pre:s -> prop) (post:s -> a -> s -> prop) (f:mst rel a pre post) : M.MSTATETOT a s rel pre post = M.MSTATETOT?.reflect (fun s -> f s)
{ "file_name": "lib/pulse_core/PulseCore.MonotonicStateMonad.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 37, "end_line": 34, "start_col": 0, "start_line": 30 }
module PulseCore.MonotonicStateMonad open FStar.Preorder module M = FStar.MSTTotal let mst (#s:Type u#s) (rel:FStar.Preorder.preorder s) (a:Type u#a) (pre:s -> prop) (post:s -> a -> s -> prop) = s0:s { pre s0 } -> Tot ( res:(a & s) { post s0 res._1 res._2 /\...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.MSTTotal.fst.checked" ], "interface_file": true, "source_file": "PulseCore.MonotonicStateMonad.fst" }
[ { "abbrev": true, "full_module": "FStar.MSTTotal", "short_module": "M" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": true, "full_module": "FStar.MSTTotal", "short_module": "M" }, { "abbrev": false, "full_module": "F...
{ "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
rel: FStar.Preorder.preorder s -> a: Type -> pre: (_: s -> Prims.prop) -> post: (_: s -> _: a -> _: s -> Prims.prop) -> f: PulseCore.MonotonicStateMonad.mst rel a pre post -> FStar.MSTTotal.MSTATETOT a
FStar.MSTTotal.MSTATETOT
[]
[]
[ "FStar.Preorder.preorder", "Prims.prop", "PulseCore.MonotonicStateMonad.mst", "FStar.Pervasives.Native.tuple2" ]
[]
false
true
false
false
false
let to_msttotal (#s: Type u#2) (rel: FStar.Preorder.preorder s) (a: Type u#a) (pre: (s -> prop)) (post: (s -> a -> s -> prop)) (f: mst rel a pre post) : M.MSTATETOT a s rel pre post =
M.MSTATETOT?.reflect (fun s -> f s)
false
PulseCore.MonotonicStateMonad.fst
PulseCore.MonotonicStateMonad.of_msttotal
val of_msttotal (#s:Type u#2) (rel:FStar.Preorder.preorder s) (a:Type u#a) (pre:s -> prop) (post:s -> a -> s -> prop) (f:unit -> M.MSTATETOT a s rel pre post) : mst rel a pre post
val of_msttotal (#s:Type u#2) (rel:FStar.Preorder.preorder s) (a:Type u#a) (pre:s -> prop) (post:s -> a -> s -> prop) (f:unit -> M.MSTATETOT a s rel pre post) : mst rel a pre post
let of_msttotal (#s:Type u#2) (rel:FStar.Preorder.preorder s) (a:Type u#a) (pre:s -> prop) (post:s -> a -> s -> prop) (f:unit -> M.MSTATETOT a s rel pre post) : mst rel a pre post = let f = reify_ f in fun s -> f s
{ "file_name": "lib/pulse_core/PulseCore.MonotonicStateMonad.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 14, "end_line": 28, "start_col": 0, "start_line": 23 }
module PulseCore.MonotonicStateMonad open FStar.Preorder module M = FStar.MSTTotal let mst (#s:Type u#s) (rel:FStar.Preorder.preorder s) (a:Type u#a) (pre:s -> prop) (post:s -> a -> s -> prop) = s0:s { pre s0 } -> Tot ( res:(a & s) { post s0 res._1 res._2 /\...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.MSTTotal.fst.checked" ], "interface_file": true, "source_file": "PulseCore.MonotonicStateMonad.fst" }
[ { "abbrev": true, "full_module": "FStar.MSTTotal", "short_module": "M" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": true, "full_module": "FStar.MSTTotal", "short_module": "M" }, { "abbrev": false, "full_module": "F...
{ "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
rel: FStar.Preorder.preorder s -> a: Type -> pre: (_: s -> Prims.prop) -> post: (_: s -> _: a -> _: s -> Prims.prop) -> f: (_: Prims.unit -> FStar.MSTTotal.MSTATETOT a) -> PulseCore.MonotonicStateMonad.mst rel a pre post
Prims.Tot
[ "total" ]
[]
[ "FStar.Preorder.preorder", "Prims.prop", "Prims.unit", "FStar.Pervasives.Native.tuple2", "Prims.l_and", "FStar.Pervasives.Native.__proj__Mktuple2__item___1", "FStar.Pervasives.Native.__proj__Mktuple2__item___2", "FStar.MSTTotal.repr", "PulseCore.MonotonicStateMonad.reify_", "PulseCore.MonotonicSta...
[]
false
false
false
false
false
let of_msttotal (#s: Type u#2) (rel: FStar.Preorder.preorder s) (a: Type u#a) (pre: (s -> prop)) (post: (s -> a -> s -> prop)) (f: (unit -> M.MSTATETOT a s rel pre post)) : mst rel a pre post =
let f = reify_ f in fun s -> f s
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.low_lemma_load_mem64_full
val low_lemma_load_mem64_full (b:buffer64) (i:nat) (vfh:vale_full_heap) (t:taint) (hid:heaplet_id) : Lemma (requires ( let (h, mt) = (Map16.get vfh.vf_heaplets hid, vfh.vf_layout.vl_taint) in i < Seq.length (buffer_as_seq h b) /\ buffer_readable h b /\ valid_layout_buffer b vfh.vf_layout h false /\ ...
val low_lemma_load_mem64_full (b:buffer64) (i:nat) (vfh:vale_full_heap) (t:taint) (hid:heaplet_id) : Lemma (requires ( let (h, mt) = (Map16.get vfh.vf_heaplets hid, vfh.vf_layout.vl_taint) in i < Seq.length (buffer_as_seq h b) /\ buffer_readable h b /\ valid_layout_buffer b vfh.vf_layout h false /\ ...
let low_lemma_load_mem64_full b i vfh t hid = reveal_opaque (`%valid_layout_buffer_id) valid_layout_buffer_id; ()
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 638, "start_col": 0, "start_line": 636 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": false, "full_module": "Vale.X64.BufferViewStore", "short_module": null }, { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
b: Vale.X64.Memory.buffer64 -> i: Prims.nat -> vfh: Vale.Arch.HeapImpl.vale_full_heap -> t: Vale.Arch.HeapTypes_s.taint -> hid: Vale.Arch.HeapImpl.heaplet_id -> FStar.Pervasives.Lemma (requires (let _ = Vale.Lib.Map16.get (Mkvale_full_heap?.vf_heaplets vfh) hid, ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.X64.Memory.buffer64", "Prims.nat", "Vale.Arch.HeapImpl.vale_full_heap", "Vale.Arch.HeapTypes_s.taint", "Vale.Arch.HeapImpl.heaplet_id", "Prims.unit", "FStar.Pervasives.reveal_opaque", "Vale.Arch.HeapTypes_s.base_typ", "Vale.X64.Memory.buffer", "Vale.Arch.HeapImpl.vale_heap_layout", "FStar....
[]
true
false
true
false
false
let low_lemma_load_mem64_full b i vfh t hid =
reveal_opaque (`%valid_layout_buffer_id) valid_layout_buffer_id; ()
false
PulseCore.MonotonicStateMonad.fst
PulseCore.MonotonicStateMonad.witnessed
val witnessed (#s:Type u#s) (p: s -> prop) : Type0
val witnessed (#s:Type u#s) (p: s -> prop) : Type0
let witnessed p = unit
{ "file_name": "lib/pulse_core/PulseCore.MonotonicStateMonad.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 6, "end_line": 54, "start_col": 0, "start_line": 53 }
module PulseCore.MonotonicStateMonad open FStar.Preorder module M = FStar.MSTTotal let mst (#s:Type u#s) (rel:FStar.Preorder.preorder s) (a:Type u#a) (pre:s -> prop) (post:s -> a -> s -> prop) = s0:s { pre s0 } -> Tot ( res:(a & s) { post s0 res._1 res._2 /\...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.MSTTotal.fst.checked" ], "interface_file": true, "source_file": "PulseCore.MonotonicStateMonad.fst" }
[ { "abbrev": true, "full_module": "FStar.MSTTotal", "short_module": "M" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": true, "full_module": "FStar.MSTTotal", "short_module": "M" }, { "abbrev": false, "full_module": "F...
{ "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: (_: s -> Prims.prop) -> Type0
Prims.Tot
[ "total" ]
[]
[ "Prims.prop", "Prims.unit" ]
[]
false
false
false
true
true
let witnessed p =
unit
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.low_lemma_valid_mem128
val low_lemma_valid_mem128 (b:buffer128) (i:nat) (h:vale_heap) : Lemma (requires i < Seq.length (buffer_as_seq h b) /\ buffer_readable h b ) (ensures S.valid_addr128 (buffer_addr b h + scale16 i) (get_heap h) )
val low_lemma_valid_mem128 (b:buffer128) (i:nat) (h:vale_heap) : Lemma (requires i < Seq.length (buffer_as_seq h b) /\ buffer_readable h b ) (ensures S.valid_addr128 (buffer_addr b h + scale16 i) (get_heap h) )
let low_lemma_valid_mem128 b i h = lemma_valid_mem128 b i h; bytes_valid128 (buffer_addr b h + scale16 i) h
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 48, "end_line": 735, "start_col": 0, "start_line": 733 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": false, "full_module": "Vale.X64.BufferViewStore", "short_module": null }, { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
b: Vale.X64.Memory.buffer128 -> i: Prims.nat -> h: Vale.Arch.HeapImpl.vale_heap -> FStar.Pervasives.Lemma (requires i < FStar.Seq.Base.length (Vale.X64.Memory.buffer_as_seq h b) /\ Vale.X64.Memory.buffer_readable h b) (ensures Vale.Arch.MachineHeap_s.valid_addr128 (Vale.X64.Memory....
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.X64.Memory.buffer128", "Prims.nat", "Vale.Arch.HeapImpl.vale_heap", "Vale.X64.Memory_Sems.bytes_valid128", "Prims.op_Addition", "Vale.X64.Memory.buffer_addr", "Vale.X64.Memory.vuint128", "Vale.X64.Memory.scale16", "Prims.unit", "Vale.X64.Memory.lemma_valid_mem128" ]
[]
true
false
true
false
false
let low_lemma_valid_mem128 b i h =
lemma_valid_mem128 b i h; bytes_valid128 (buffer_addr b h + scale16 i) h
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.same_mem_get_heap_val64
val same_mem_get_heap_val64 (b:buffer64{buffer_writeable b}) (i:nat{i < buffer_length b}) (v:nat64) (k:nat{k < buffer_length b}) (h1:vale_heap{List.memP b (IB.ptrs_of_mem (_ih h1))}) (h2:val...
val same_mem_get_heap_val64 (b:buffer64{buffer_writeable b}) (i:nat{i < buffer_length b}) (v:nat64) (k:nat{k < buffer_length b}) (h1:vale_heap{List.memP b (IB.ptrs_of_mem (_ih h1))}) (h2:val...
let same_mem_get_heap_val64 b j v k h1 h2 mem1 mem2 = let ptr = buffer_addr b h1 + scale8 k in let addr = buffer_addr b h1 in let aux (x:int{ptr <= x /\ x < ptr + 8}) : Lemma (mem1.[x] == mem2.[x]) = let i = x - ptr in let db = get_downview b.bsrc in let ub = UV.mk_buffer db uint64_view in UV.as_s...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 53, "end_line": 265, "start_col": 0, "start_line": 245 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
b: Vale.X64.Memory.buffer64{Vale.X64.Memory.buffer_writeable b} -> i: Prims.nat{i < Vale.X64.Memory.buffer_length b} -> v: Vale.Def.Words_s.nat64 -> k: Prims.nat{k < Vale.X64.Memory.buffer_length b} -> h1: Vale.Arch.HeapImpl.vale_heap {FStar.List.Tot.Base.memP b (Vale.Interop.Heap_s.p...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.X64.Memory.buffer64", "Vale.X64.Memory.buffer_writeable", "Vale.X64.Memory.vuint64", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Vale.X64.Memory.buffer_length", "Vale.Def.Words_s.nat64", "Vale.Arch.HeapImpl.vale_heap", "FStar.List.Tot.Base.memP", "Vale.Interop.Types.b8", "Vale.Intero...
[]
false
false
true
false
false
let same_mem_get_heap_val64 b j v k h1 h2 mem1 mem2 =
let ptr = buffer_addr b h1 + scale8 k in let addr = buffer_addr b h1 in let aux (x: int{ptr <= x /\ x < ptr + 8}) : Lemma (mem1.[ x ] == mem2.[ x ]) = let i = x - ptr in let db = get_downview b.bsrc in let ub = UV.mk_buffer db uint64_view in UV.as_seq_sel (IB.hs_of_mem (_ih h1)) ub k; UV.as_seq_sel (IB.hs_of_...
false
PulseCore.MonotonicStateMonad.fst
PulseCore.MonotonicStateMonad.get
val get (#s:Type u#s) (#rel:preorder s) (_:unit) : mst rel s (fun _ -> True) (fun s0 x s1 -> s0 == s1 /\ x == s0)
val get (#s:Type u#s) (#rel:preorder s) (_:unit) : mst rel s (fun _ -> True) (fun s0 x s1 -> s0 == s1 /\ x == s0)
let get _ = fun s -> s, s
{ "file_name": "lib/pulse_core/PulseCore.MonotonicStateMonad.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 15, "end_line": 48, "start_col": 0, "start_line": 47 }
module PulseCore.MonotonicStateMonad open FStar.Preorder module M = FStar.MSTTotal let mst (#s:Type u#s) (rel:FStar.Preorder.preorder s) (a:Type u#a) (pre:s -> prop) (post:s -> a -> s -> prop) = s0:s { pre s0 } -> Tot ( res:(a & s) { post s0 res._1 res._2 /\...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.MSTTotal.fst.checked" ], "interface_file": true, "source_file": "PulseCore.MonotonicStateMonad.fst" }
[ { "abbrev": true, "full_module": "FStar.MSTTotal", "short_module": "M" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": true, "full_module": "FStar.MSTTotal", "short_module": "M" }, { "abbrev": false, "full_module": "F...
{ "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.unit -> PulseCore.MonotonicStateMonad.mst rel s (fun _ -> Prims.l_True) (fun s0 x s1 -> s0 == s1 /\ x == s0)
Prims.Tot
[ "total" ]
[]
[ "FStar.Preorder.preorder", "Prims.unit", "Prims.l_True", "FStar.Pervasives.Native.Mktuple2", "FStar.Pervasives.Native.tuple2", "Prims.l_and", "Prims.eq2", "Prims.prop", "FStar.Pervasives.Native.__proj__Mktuple2__item___1", "FStar.Pervasives.Native.__proj__Mktuple2__item___2" ]
[]
false
false
false
false
false
let get _ =
fun s -> s, s
false
PulseCore.MonotonicStateMonad.fst
PulseCore.MonotonicStateMonad.bind
val bind (#s:Type u#s) (#a:Type u#a) (#b:Type u#b) (#rel:preorder s) (#req_f:req_t s) (#ens_f:ens_t s a) (#req_g:a -> req_t s) (#ens_g:a -> ens_t s b) (f:mst rel a req_f ens_f) (g:(x:a -> mst rel b (req_g x) (ens_g x))) : mst rel b (fun s0 -> req...
val bind (#s:Type u#s) (#a:Type u#a) (#b:Type u#b) (#rel:preorder s) (#req_f:req_t s) (#ens_f:ens_t s a) (#req_g:a -> req_t s) (#ens_g:a -> ens_t s b) (f:mst rel a req_f ens_f) (g:(x:a -> mst rel b (req_g x) (ens_g x))) : mst rel b (fun s0 -> req...
let bind f g = fun s0 -> let x, s1 = f s0 in g x s1
{ "file_name": "lib/pulse_core/PulseCore.MonotonicStateMonad.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 10, "end_line": 42, "start_col": 0, "start_line": 39 }
module PulseCore.MonotonicStateMonad open FStar.Preorder module M = FStar.MSTTotal let mst (#s:Type u#s) (rel:FStar.Preorder.preorder s) (a:Type u#a) (pre:s -> prop) (post:s -> a -> s -> prop) = s0:s { pre s0 } -> Tot ( res:(a & s) { post s0 res._1 res._2 /\...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.MSTTotal.fst.checked" ], "interface_file": true, "source_file": "PulseCore.MonotonicStateMonad.fst" }
[ { "abbrev": true, "full_module": "FStar.MSTTotal", "short_module": "M" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": true, "full_module": "FStar.MSTTotal", "short_module": "M" }, { "abbrev": false, "full_module": "F...
{ "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: PulseCore.MonotonicStateMonad.mst rel a req_f ens_f -> g: (x: a -> PulseCore.MonotonicStateMonad.mst rel b (req_g x) (ens_g x)) -> PulseCore.MonotonicStateMonad.mst rel b (fun s0 -> req_f s0 /\ (forall (x: a) (s1: s). ens_f s0 x s1 ==> req_g x s1)) (fun s0 r s2 -> req_f s0 /\ (...
Prims.Tot
[ "total" ]
[]
[ "FStar.Preorder.preorder", "PulseCore.MonotonicStateMonad.req_t", "PulseCore.MonotonicStateMonad.ens_t", "PulseCore.MonotonicStateMonad.mst", "Prims.l_and", "Prims.l_Forall", "Prims.l_imp", "FStar.Pervasives.Native.tuple2", "Prims.l_Exists", "FStar.Pervasives.Native.__proj__Mktuple2__item___1", ...
[]
false
false
false
false
false
let bind f g =
fun s0 -> let x, s1 = f s0 in g x s1
false
PulseCore.MonotonicStateMonad.fst
PulseCore.MonotonicStateMonad.weaken
val weaken (#s:Type u#s) (#rel:preorder s) (#a:Type u#a) (#req_f:req_t s) (#ens_f:ens_t s a) (#req_g:req_t s) (#ens_g:ens_t s a) (f:mst rel a req_f ens_f) : Pure (mst rel a req_g ens_g) (requires (forall s. req_g s ==> req_f s) /\ (fo...
val weaken (#s:Type u#s) (#rel:preorder s) (#a:Type u#a) (#req_f:req_t s) (#ens_f:ens_t s a) (#req_g:req_t s) (#ens_g:ens_t s a) (f:mst rel a req_f ens_f) : Pure (mst rel a req_g ens_g) (requires (forall s. req_g s ==> req_f s) /\ (fo...
let weaken f = fun s -> f s
{ "file_name": "lib/pulse_core/PulseCore.MonotonicStateMonad.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 14, "end_line": 45, "start_col": 0, "start_line": 44 }
module PulseCore.MonotonicStateMonad open FStar.Preorder module M = FStar.MSTTotal let mst (#s:Type u#s) (rel:FStar.Preorder.preorder s) (a:Type u#a) (pre:s -> prop) (post:s -> a -> s -> prop) = s0:s { pre s0 } -> Tot ( res:(a & s) { post s0 res._1 res._2 /\...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.MSTTotal.fst.checked" ], "interface_file": true, "source_file": "PulseCore.MonotonicStateMonad.fst" }
[ { "abbrev": true, "full_module": "FStar.MSTTotal", "short_module": "M" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": true, "full_module": "FStar.MSTTotal", "short_module": "M" }, { "abbrev": false, "full_module": "F...
{ "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: PulseCore.MonotonicStateMonad.mst rel a req_f ens_f -> Prims.Pure (PulseCore.MonotonicStateMonad.mst rel a req_g ens_g)
Prims.Pure
[]
[]
[ "FStar.Preorder.preorder", "PulseCore.MonotonicStateMonad.req_t", "PulseCore.MonotonicStateMonad.ens_t", "PulseCore.MonotonicStateMonad.mst", "FStar.Pervasives.Native.tuple2", "Prims.l_and", "FStar.Pervasives.Native.__proj__Mktuple2__item___1", "FStar.Pervasives.Native.__proj__Mktuple2__item___2" ]
[]
false
false
false
false
false
let weaken f =
fun s -> f s
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.equiv_load_mem64
val equiv_load_mem64 (ptr:int) (m:vale_heap) : Lemma (requires valid_mem64 ptr m) (ensures load_mem64 ptr m == S.get_heap_val64 ptr (get_heap m))
val equiv_load_mem64 (ptr:int) (m:vale_heap) : Lemma (requires valid_mem64 ptr m) (ensures load_mem64 ptr m == S.get_heap_val64 ptr (get_heap m))
let equiv_load_mem64 ptr h = let t = TUInt64 in let b = get_addr_ptr t ptr h in let i = get_addr_in_ptr t (buffer_length b) (buffer_addr b h) ptr 0 in let addr = buffer_addr b h in let contents = DV.as_seq (_ih h).IB.hs (get_downview b.bsrc) in let heap = get_heap h in index64_get_heap_val64 h b heap i; ...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 24, "end_line": 571, "start_col": 0, "start_line": 563 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": true, "full_module": "LowStar.BufferView.Down", "short_module": "DV" }, { "abbrev": tr...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
ptr: Prims.int -> m: Vale.Arch.HeapImpl.vale_heap -> FStar.Pervasives.Lemma (requires Vale.X64.Memory.valid_mem64 ptr m) (ensures Vale.X64.Memory.load_mem64 ptr m == Vale.Arch.MachineHeap_s.get_heap_val64 ptr (Vale.X64.Memory_Sems.get_heap m))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "Vale.Arch.HeapImpl.vale_heap", "Vale.X64.Memory.lemma_load_mem64", "Prims.unit", "Vale.X64.Memory.index64_get_heap_val64", "Vale.Arch.MachineHeap_s.machine_heap", "Vale.X64.Memory_Sems.same_domain", "Vale.X64.Memory_Sems.get_heap", "FStar.Seq.Properties.lseq", "FStar.UInt8.t", "Low...
[]
true
false
true
false
false
let equiv_load_mem64 ptr h =
let t = TUInt64 in let b = get_addr_ptr t ptr h in let i = get_addr_in_ptr t (buffer_length b) (buffer_addr b h) ptr 0 in let addr = buffer_addr b h in let contents = DV.as_seq (_ih h).IB.hs (get_downview b.bsrc) in let heap = get_heap h in index64_get_heap_val64 h b heap i; lemma_load_mem64 b i h
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.unwritten_buffer_down
val unwritten_buffer_down (t: base_typ) (b: buffer t {buffer_writeable b}) (i: nat{i < buffer_length b}) (v: base_typ_as_vale_type t) (h: vale_heap{List.memP b (IB.ptrs_of_mem (_ih h))}) : Lemma (ensures (let mem1 = I.down_mem (_ih h) in let h1 = buffer_write b i v h ...
val unwritten_buffer_down (t: base_typ) (b: buffer t {buffer_writeable b}) (i: nat{i < buffer_length b}) (v: base_typ_as_vale_type t) (h: vale_heap{List.memP b (IB.ptrs_of_mem (_ih h))}) : Lemma (ensures (let mem1 = I.down_mem (_ih h) in let h1 = buffer_write b i v h ...
let unwritten_buffer_down (t:base_typ) (b:buffer t{buffer_writeable b}) (i:nat{i < buffer_length b}) (v:base_typ_as_vale_type t) (h:vale_heap{List.memP b (IB.ptrs_of_mem (_ih h))}) : Lemma (ensures ( let mem1 = I.down_mem (_ih...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 30, "end_line": 377, "start_col": 0, "start_line": 339 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
t: Vale.Arch.HeapTypes_s.base_typ -> b: Vale.Arch.HeapImpl.buffer t {Vale.X64.Memory.buffer_writeable b} -> i: Prims.nat{i < Vale.X64.Memory.buffer_length b} -> v: Vale.X64.Memory.base_typ_as_vale_type t -> h: Vale.Arch.HeapImpl.vale_heap {FStar.List.Tot.Base.memP b (Vale.Interop.Heap...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Vale.Arch.HeapImpl.buffer", "Vale.X64.Memory.buffer_writeable", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Vale.X64.Memory.buffer_length", "Vale.X64.Memory.base_typ_as_vale_type", "Vale.Arch.HeapImpl.vale_heap", "FStar.List.Tot.Base.memP", "Vale.Interop.Ty...
[]
false
false
true
false
false
let unwritten_buffer_down (t: base_typ) (b: buffer t {buffer_writeable b}) (i: nat{i < buffer_length b}) (v: base_typ_as_vale_type t) (h: vale_heap{List.memP b (IB.ptrs_of_mem (_ih h))}) : Lemma (ensures (let mem1 = I.down_mem (_ih h) in let h1 = buffer_write b i v h ...
let aux (a: b8{a =!= b /\ List.memP a (IB.ptrs_of_mem (_ih h))}) : Lemma (ensures (let base = (IB.addrs_of_mem (_ih h)) a in let mem1 = I.down_mem (_ih h) in let h1 = buffer_write b i v h in let mem2 = I.down_mem (_ih h1) in forall j. j >= base /\ j < base + DV.le...
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.low_lemma_store_mem64
val low_lemma_store_mem64 (b:buffer64) (i:nat) (v:nat64) (h:vale_heap) : Lemma (requires i < Seq.length (buffer_as_seq h b) /\ buffer_readable h b /\ buffer_writeable b ) (ensures ( let m = S.update_heap64 (buffer_addr b h + scale8 i) v (get_heap h) in is_machine_heap_update (get_heap h) m /\ ...
val low_lemma_store_mem64 (b:buffer64) (i:nat) (v:nat64) (h:vale_heap) : Lemma (requires i < Seq.length (buffer_as_seq h b) /\ buffer_readable h b /\ buffer_writeable b ) (ensures ( let m = S.update_heap64 (buffer_addr b h + scale8 i) v (get_heap h) in is_machine_heap_update (get_heap h) m /\ ...
let low_lemma_store_mem64 b i v h = lemma_writeable_mem64 b i h; lemma_store_mem64 b i v h; valid_state_store_mem64_aux (buffer_addr b h + scale8 i) v h; let heap = get_heap h in let heap' = S.update_heap64 (buffer_addr b h + scale8 i) v heap in low_lemma_store_mem64_aux b heap i v h; Vale.Arch.MachineHea...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 45, "end_line": 652, "start_col": 0, "start_line": 642 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": false, "full_module": "Vale.X64.BufferViewStore", "short_module": null }, { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
b: Vale.X64.Memory.buffer64 -> i: Prims.nat -> v: Vale.Def.Words_s.nat64 -> h: Vale.Arch.HeapImpl.vale_heap -> FStar.Pervasives.Lemma (requires i < FStar.Seq.Base.length (Vale.X64.Memory.buffer_as_seq h b) /\ Vale.X64.Memory.buffer_readable h b /\ Vale.X64.Memory.buffer_writeabl...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.X64.Memory.buffer64", "Prims.nat", "Vale.Def.Words_s.nat64", "Vale.Arch.HeapImpl.vale_heap", "Vale.Interop.update_buffer_up_mem", "Vale.Arch.HeapImpl._ih", "Prims.unit", "Vale.Interop.addrs_set_lemma_all", "Vale.X64.Memory_Sems.in_bounds64", "Vale.Arch.MachineHeap.frame_update_heap64", "Pr...
[]
true
false
true
false
false
let low_lemma_store_mem64 b i v h =
lemma_writeable_mem64 b i h; lemma_store_mem64 b i v h; valid_state_store_mem64_aux (buffer_addr b h + scale8 i) v h; let heap = get_heap h in let heap' = S.update_heap64 (buffer_addr b h + scale8 i) v heap in low_lemma_store_mem64_aux b heap i v h; Vale.Arch.MachineHeap.frame_update_heap64 (buffer_addr b h + scale8 i)...
false
PulseCore.MonotonicStateMonad.fst
PulseCore.MonotonicStateMonad.put
val put (#s:Type u#s) (#rel:preorder s) (v:s) : mst rel unit (fun s0 -> rel s0 v /\ True) (fun s0 x s1 -> v == s1)
val put (#s:Type u#s) (#rel:preorder s) (v:s) : mst rel unit (fun s0 -> rel s0 v /\ True) (fun s0 x s1 -> v == s1)
let put v = fun _ -> (), v
{ "file_name": "lib/pulse_core/PulseCore.MonotonicStateMonad.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 17, "end_line": 51, "start_col": 0, "start_line": 50 }
module PulseCore.MonotonicStateMonad open FStar.Preorder module M = FStar.MSTTotal let mst (#s:Type u#s) (rel:FStar.Preorder.preorder s) (a:Type u#a) (pre:s -> prop) (post:s -> a -> s -> prop) = s0:s { pre s0 } -> Tot ( res:(a & s) { post s0 res._1 res._2 /\...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.MSTTotal.fst.checked" ], "interface_file": true, "source_file": "PulseCore.MonotonicStateMonad.fst" }
[ { "abbrev": true, "full_module": "FStar.MSTTotal", "short_module": "M" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": true, "full_module": "FStar.MSTTotal", "short_module": "M" }, { "abbrev": false, "full_module": "F...
{ "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
v: s -> PulseCore.MonotonicStateMonad.mst rel Prims.unit (fun s0 -> rel s0 v /\ Prims.l_True) (fun _ _ s1 -> v == s1)
Prims.Tot
[ "total" ]
[]
[ "FStar.Preorder.preorder", "Prims.l_and", "Prims.l_True", "FStar.Pervasives.Native.Mktuple2", "Prims.unit", "FStar.Pervasives.Native.tuple2", "Prims.eq2", "Prims.prop", "FStar.Pervasives.Native.__proj__Mktuple2__item___1", "FStar.Pervasives.Native.__proj__Mktuple2__item___2" ]
[]
false
false
false
false
false
let put v =
fun _ -> (), v
false
PulseCore.MonotonicStateMonad.fst
PulseCore.MonotonicStateMonad.witness
val witness (#s:Type u#s) (#rel:preorder s) (p: s -> prop { stable p rel }) : mst rel (witnessed p) (fun s0 -> p s0) (fun s0 x s1 -> s0 == s1)
val witness (#s:Type u#s) (#rel:preorder s) (p: s -> prop { stable p rel }) : mst rel (witnessed p) (fun s0 -> p s0) (fun s0 x s1 -> s0 == s1)
let witness p = fun s -> (), s
{ "file_name": "lib/pulse_core/PulseCore.MonotonicStateMonad.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 16, "end_line": 57, "start_col": 0, "start_line": 56 }
module PulseCore.MonotonicStateMonad open FStar.Preorder module M = FStar.MSTTotal let mst (#s:Type u#s) (rel:FStar.Preorder.preorder s) (a:Type u#a) (pre:s -> prop) (post:s -> a -> s -> prop) = s0:s { pre s0 } -> Tot ( res:(a & s) { post s0 res._1 res._2 /\...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.MSTTotal.fst.checked" ], "interface_file": true, "source_file": "PulseCore.MonotonicStateMonad.fst" }
[ { "abbrev": true, "full_module": "FStar.MSTTotal", "short_module": "M" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": true, "full_module": "FStar.MSTTotal", "short_module": "M" }, { "abbrev": false, "full_module": "F...
{ "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: (_: s -> Prims.prop){FStar.Preorder.stable p rel} -> PulseCore.MonotonicStateMonad.mst rel (PulseCore.MonotonicStateMonad.witnessed p) (fun s0 -> p s0) (fun s0 _ s1 -> s0 == s1)
Prims.Tot
[ "total" ]
[]
[ "FStar.Preorder.preorder", "Prims.prop", "FStar.Preorder.stable", "FStar.Pervasives.Native.Mktuple2", "PulseCore.MonotonicStateMonad.witnessed", "FStar.Pervasives.Native.tuple2", "Prims.l_and", "Prims.eq2", "FStar.Pervasives.Native.__proj__Mktuple2__item___1", "FStar.Pervasives.Native.__proj__Mktu...
[]
false
false
false
false
false
let witness p =
fun s -> (), s
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.valid_state_store_mem64_aux
val valid_state_store_mem64_aux: (i:nat) -> (v:nat64) -> (h:vale_heap) -> Lemma (requires writeable_mem64 i h) (ensures ( let heap = get_heap h in let heap' = S.update_heap64 i v heap in let h' = store_mem64 i v h in heap' == I.down_mem (_ih h') ))
val valid_state_store_mem64_aux: (i:nat) -> (v:nat64) -> (h:vale_heap) -> Lemma (requires writeable_mem64 i h) (ensures ( let heap = get_heap h in let heap' = S.update_heap64 i v heap in let h' = store_mem64 i v h in heap' == I.down_mem (_ih h') ))
let valid_state_store_mem64_aux i v h = let heap = get_heap h in let heap' = S.update_heap64 i v heap in let h1 = store_mem TUInt64 i v h in store_buffer_aux_down64_mem i v h; store_buffer_aux_down64_mem2 i v h; let mem1 = heap' in let mem2 = I.down_mem (_ih h1) in let aux () : Lemma (forall j. mem1.[j]...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 33, "end_line": 634, "start_col": 0, "start_line": 618 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": false, "full_module": "Vale.X64.BufferViewStore", "short_module": null }, { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
i: Prims.nat -> v: Vale.Def.Words_s.nat64 -> h: Vale.Arch.HeapImpl.vale_heap -> FStar.Pervasives.Lemma (requires Vale.X64.Memory.writeable_mem64 i h) (ensures (let heap = Vale.X64.Memory_Sems.get_heap h in let heap' = Vale.Arch.MachineHeap_s.update_heap64 i v heap in let h' = Vale.X6...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Vale.Def.Words_s.nat64", "Vale.Arch.HeapImpl.vale_heap", "FStar.Map.lemma_equal_intro", "Prims.int", "Vale.Def.Types_s.nat8", "Prims.unit", "Prims.l_True", "Prims.squash", "FStar.Set.equal", "FStar.Map.domain", "Vale.Def.Words_s.nat8", "Prims.Nil", "FStar.Pervasives.pattern",...
[]
false
false
true
false
false
let valid_state_store_mem64_aux i v h =
let heap = get_heap h in let heap' = S.update_heap64 i v heap in let h1 = store_mem TUInt64 i v h in store_buffer_aux_down64_mem i v h; store_buffer_aux_down64_mem2 i v h; let mem1 = heap' in let mem2 = I.down_mem (_ih h1) in let aux () : Lemma (forall j. mem1.[ j ] == mem2.[ j ]) = Vale.Arch.MachineHeap.same_mem_get...
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.same_mem_eq_slices128
val same_mem_eq_slices128 (b:buffer128) (i:nat{i < buffer_length b}) (v:quad32) (k:nat{k < buffer_length b}) (h1:vale_heap{List.memP b (IB.ptrs_of_mem (_ih h1)) /\ buffer_writeable b}) (h2:vale_heap{h2 == ...
val same_mem_eq_slices128 (b:buffer128) (i:nat{i < buffer_length b}) (v:quad32) (k:nat{k < buffer_length b}) (h1:vale_heap{List.memP b (IB.ptrs_of_mem (_ih h1)) /\ buffer_writeable b}) (h2:vale_heap{h2 == ...
let same_mem_eq_slices128 b i v k h1 h2 mem1 mem2 = let t = TUInt128 in let db = get_downview b.bsrc in let ub = UV.mk_buffer db (uint_view t) in UV.as_seq_sel (IB.hs_of_mem (_ih h1)) ub k; UV.as_seq_sel (IB.hs_of_mem (_ih h2)) ub k; UV.put_sel (IB.hs_of_mem (_ih h1)) ub k; UV.put_sel (IB.hs...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 19, "end_line": 503, "start_col": 0, "start_line": 495 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
b: Vale.X64.Memory.buffer128 -> i: Prims.nat{i < Vale.X64.Memory.buffer_length b} -> v: Vale.X64.Memory.quad32 -> k: Prims.nat{k < Vale.X64.Memory.buffer_length b} -> h1: Vale.Arch.HeapImpl.vale_heap { FStar.List.Tot.Base.memP b (Vale.Interop.Heap_s.ptrs_of_mem (Vale.Arch.HeapImpl._ih...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.X64.Memory.buffer128", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Vale.X64.Memory.buffer_length", "Vale.X64.Memory.vuint128", "Vale.X64.Memory.quad32", "Vale.Arch.HeapImpl.vale_heap", "Prims.l_and", "FStar.List.Tot.Base.memP", "Vale.Interop.Types.b8", "Vale.Interop.Heap_s.ptrs_of_me...
[]
true
false
true
false
false
let same_mem_eq_slices128 b i v k h1 h2 mem1 mem2 =
let t = TUInt128 in let db = get_downview b.bsrc in let ub = UV.mk_buffer db (uint_view t) in UV.as_seq_sel (IB.hs_of_mem (_ih h1)) ub k; UV.as_seq_sel (IB.hs_of_mem (_ih h2)) ub k; UV.put_sel (IB.hs_of_mem (_ih h1)) ub k; UV.put_sel (IB.hs_of_mem (_ih h2)) ub k; UV.length_eq ub
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.lemma_make_owns
val lemma_make_owns (h: vale_heap) (bs: Seq.seq buffer_info) (n: nat) : Lemma (requires n <= Seq.length bs /\ (forall (i: nat). {:pattern Seq.index bs i} i < Seq.length bs ==> buffer_readable h (Seq.index bs i).bi_buffer) /\ (forall (i1: nat) (i2: nat). {:pattern (Seq.index...
val lemma_make_owns (h: vale_heap) (bs: Seq.seq buffer_info) (n: nat) : Lemma (requires n <= Seq.length bs /\ (forall (i: nat). {:pattern Seq.index bs i} i < Seq.length bs ==> buffer_readable h (Seq.index bs i).bi_buffer) /\ (forall (i1: nat) (i2: nat). {:pattern (Seq.index...
let rec lemma_make_owns (h:vale_heap) (bs:Seq.seq buffer_info) (n:nat) : Lemma (requires n <= Seq.length bs /\ (forall (i:nat).{:pattern Seq.index bs i} i < Seq.length bs ==> buffer_readable h (Seq.index bs i).bi_buffer) /\ (forall (i1 i2:nat).{:pattern (Seq.index bs i1); (Seq.index bs i2)} i1 < Seq...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 124, "start_col": 0, "start_line": 81 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.HeapImpl", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
h: Vale.Arch.HeapImpl.vale_heap -> bs: FStar.Seq.Base.seq Vale.Arch.HeapImpl.buffer_info -> n: Prims.nat -> FStar.Pervasives.Lemma (requires n <= FStar.Seq.Base.length bs /\ (forall (i: Prims.nat). {:pattern FStar.Seq.Base.index bs i} i < FStar.Seq.Base.length bs ==> ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Arch.HeapImpl.vale_heap", "FStar.Seq.Base.seq", "Vale.Arch.HeapImpl.buffer_info", "Prims.nat", "Prims.op_Equality", "Prims.int", "Prims.bool", "FStar.Pervasives.Native.option", "Prims.b2t", "Prims.op_LessThan", "FStar.Seq.Base.length", "Vale.Arch.HeapImpl.heaplet_id", "FStar.Set.set", ...
[ "recursion" ]
false
false
true
false
false
let rec lemma_make_owns (h: vale_heap) (bs: Seq.seq buffer_info) (n: nat) : Lemma (requires n <= Seq.length bs /\ (forall (i: nat). {:pattern Seq.index bs i} i < Seq.length bs ==> buffer_readable h (Seq.index bs i).bi_buffer) /\ (forall (i1: nat) (i2: nat). {:pattern (Seq.i...
reveal_opaque (`%make_owns) make_owns; if n = 0 then () else let _ = make_owns h bs (n - 1) in let m, s = make_owns h bs n in lemma_make_owns h bs (n - 1); let bi = Seq.index bs (n - 1) in let b = bi.bi_buffer in let hi = bi.bi_heaplet in let addr = Vale.Interop.Heap_s.global_addrs_map b in let len = DV...
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.equiv_load_mem128_aux
val equiv_load_mem128_aux: (ptr:int) -> (h:vale_heap) -> Lemma (requires valid_mem128 ptr h) (ensures load_mem128 ptr h == S.get_heap_val128 ptr (get_heap h))
val equiv_load_mem128_aux: (ptr:int) -> (h:vale_heap) -> Lemma (requires valid_mem128 ptr h) (ensures load_mem128 ptr h == S.get_heap_val128 ptr (get_heap h))
let equiv_load_mem128_aux ptr h = let t = TUInt128 in let b = get_addr_ptr t ptr h in let i = get_addr_in_ptr t (buffer_length b) (buffer_addr b h) ptr 0 in let addr = buffer_addr b h in let contents = DV.as_seq (_ih h).IB.hs (get_downview b.bsrc) in let heap = get_heap h in S.get_heap_val128_reveal (); ...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 750, "start_col": 0, "start_line": 741 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": false, "full_module": "Vale.X64.BufferViewStore", "short_module": null }, { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
ptr: Prims.int -> h: Vale.Arch.HeapImpl.vale_heap -> FStar.Pervasives.Lemma (requires Vale.X64.Memory.valid_mem128 ptr h) (ensures Vale.X64.Memory.load_mem128 ptr h == Vale.Arch.MachineHeap_s.get_heap_val128 ptr (Vale.X64.Memory_Sems.get_heap h))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "Vale.Arch.HeapImpl.vale_heap", "Vale.X64.Memory.lemma_load_mem128", "Prims.unit", "Vale.X64.Memory.index128_get_heap_val128", "Vale.Arch.MachineHeap_s.get_heap_val128_reveal", "Vale.Arch.MachineHeap_s.machine_heap", "Vale.X64.Memory_Sems.same_domain", "Vale.X64.Memory_Sems.get_heap", ...
[]
true
false
true
false
false
let equiv_load_mem128_aux ptr h =
let t = TUInt128 in let b = get_addr_ptr t ptr h in let i = get_addr_in_ptr t (buffer_length b) (buffer_addr b h) ptr 0 in let addr = buffer_addr b h in let contents = DV.as_seq (_ih h).IB.hs (get_downview b.bsrc) in let heap = get_heap h in S.get_heap_val128_reveal (); index128_get_heap_val128 h b heap i; lemma_load_m...
false
LowStar.Literal.fsti
LowStar.Literal.ascii_char
val ascii_char : Type0
let ascii_char = c:Char.char{is_ascii_char c}
{ "file_name": "ulib/LowStar.Literal.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 45, "end_line": 38, "start_col": 0, "start_line": 38 }
module LowStar.Literal module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer module HS = FStar.HyperStack module ST = FStar.HyperStack.ST open FStar.Mul /// This module enables clients to make use of string literals in Low* as /// shorthand syntax for immutable, always-live uint8 buffers. See /// LowStar.pri...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.ImmutableBuffer.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.String.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Perva...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "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
Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.Char.char", "Prims.b2t", "LowStar.Literal.is_ascii_char" ]
[]
false
false
false
true
true
let ascii_char =
c: Char.char{is_ascii_char c}
false
LowStar.Literal.fsti
LowStar.Literal.is_ascii_char
val is_ascii_char : c: FStar.Char.char -> Prims.bool
let is_ascii_char (c: Char.char) = UInt32.lt (Char.u32_of_char c) 0x80ul
{ "file_name": "ulib/LowStar.Literal.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 72, "end_line": 36, "start_col": 0, "start_line": 36 }
module LowStar.Literal module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer module HS = FStar.HyperStack module ST = FStar.HyperStack.ST open FStar.Mul /// This module enables clients to make use of string literals in Low* as /// shorthand syntax for immutable, always-live uint8 buffers. See /// LowStar.pri...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.ImmutableBuffer.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.String.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Perva...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "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
c: FStar.Char.char -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "FStar.Char.char", "FStar.UInt32.lt", "FStar.Char.u32_of_char", "FStar.UInt32.__uint_to_t", "Prims.bool" ]
[]
false
false
false
true
false
let is_ascii_char (c: Char.char) =
UInt32.lt (Char.u32_of_char c) 0x80ul
false
LowStar.Literal.fsti
LowStar.Literal.is_ascii_string
val is_ascii_string : s: Prims.string -> Prims.bool
let is_ascii_string (s: string) = List.Tot.for_all is_ascii_char (String.list_of_string s)
{ "file_name": "ulib/LowStar.Literal.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 58, "end_line": 41, "start_col": 0, "start_line": 40 }
module LowStar.Literal module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer module HS = FStar.HyperStack module ST = FStar.HyperStack.ST open FStar.Mul /// This module enables clients to make use of string literals in Low* as /// shorthand syntax for immutable, always-live uint8 buffers. See /// LowStar.pri...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.ImmutableBuffer.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.String.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Perva...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "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
s: Prims.string -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Prims.string", "FStar.List.Tot.Base.for_all", "FStar.String.char", "LowStar.Literal.is_ascii_char", "FStar.String.list_of_string", "Prims.bool" ]
[]
false
false
false
true
false
let is_ascii_string (s: string) =
List.Tot.for_all is_ascii_char (String.list_of_string s)
false
LowStar.Literal.fsti
LowStar.Literal.ascii_string
val ascii_string : Type0
let ascii_string = s:string{is_ascii_string s}
{ "file_name": "ulib/LowStar.Literal.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 46, "end_line": 43, "start_col": 0, "start_line": 43 }
module LowStar.Literal module B = LowStar.Buffer module IB = LowStar.ImmutableBuffer module HS = FStar.HyperStack module ST = FStar.HyperStack.ST open FStar.Mul /// This module enables clients to make use of string literals in Low* as /// shorthand syntax for immutable, always-live uint8 buffers. See /// LowStar.pri...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.ImmutableBuffer.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.String.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Perva...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "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
Type0
Prims.Tot
[ "total" ]
[]
[ "Prims.string", "Prims.b2t", "LowStar.Literal.is_ascii_string" ]
[]
false
false
false
true
true
let ascii_string =
s: string{is_ascii_string s}
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.low_lemma_load_mem128
val low_lemma_load_mem128 (b:buffer128) (i:nat) (h:vale_heap) : Lemma (requires i < Seq.length (buffer_as_seq h b) /\ buffer_readable h b ) (ensures S.get_heap_val128 (buffer_addr b h + scale16 i) (get_heap h) == buffer_read b i h )
val low_lemma_load_mem128 (b:buffer128) (i:nat) (h:vale_heap) : Lemma (requires i < Seq.length (buffer_as_seq h b) /\ buffer_readable h b ) (ensures S.get_heap_val128 (buffer_addr b h + scale16 i) (get_heap h) == buffer_read b i h )
let low_lemma_load_mem128 b i h = lemma_valid_mem128 b i h; lemma_load_mem128 b i h; equiv_load_mem128_aux (buffer_addr b h + scale16 i) h
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 55, "end_line": 767, "start_col": 0, "start_line": 764 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": false, "full_module": "Vale.X64.BufferViewStore", "short_module": null }, { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
b: Vale.X64.Memory.buffer128 -> i: Prims.nat -> h: Vale.Arch.HeapImpl.vale_heap -> FStar.Pervasives.Lemma (requires i < FStar.Seq.Base.length (Vale.X64.Memory.buffer_as_seq h b) /\ Vale.X64.Memory.buffer_readable h b) (ensures Vale.Arch.MachineHeap_s.get_heap_val128 (Vale.X64.Memor...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.X64.Memory.buffer128", "Prims.nat", "Vale.Arch.HeapImpl.vale_heap", "Vale.X64.Memory_Sems.equiv_load_mem128_aux", "Prims.op_Addition", "Vale.X64.Memory.buffer_addr", "Vale.X64.Memory.vuint128", "Vale.X64.Memory.scale16", "Prims.unit", "Vale.X64.Memory.lemma_load_mem128", "Vale.X64.Memory.l...
[]
true
false
true
false
false
let low_lemma_load_mem128 b i h =
lemma_valid_mem128 b i h; lemma_load_mem128 b i h; equiv_load_mem128_aux (buffer_addr b h + scale16 i) h
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.low_lemma_valid_mem128_64
val low_lemma_valid_mem128_64 (b:buffer128) (i:nat) (h:vale_heap) : Lemma (requires i < Seq.length (buffer_as_seq h b) /\ buffer_readable h b ) (ensures S.valid_addr64 (buffer_addr b h + scale16 i) (get_heap h) /\ S.valid_addr64 (buffer_addr b h + scale16 i + 8) (get_heap h) )
val low_lemma_valid_mem128_64 (b:buffer128) (i:nat) (h:vale_heap) : Lemma (requires i < Seq.length (buffer_as_seq h b) /\ buffer_readable h b ) (ensures S.valid_addr64 (buffer_addr b h + scale16 i) (get_heap h) /\ S.valid_addr64 (buffer_addr b h + scale16 i + 8) (get_heap h) )
let low_lemma_valid_mem128_64 b i h = reveal_opaque (`%S.valid_addr64) S.valid_addr64; reveal_opaque (`%S.valid_addr128) S.valid_addr128; low_lemma_valid_mem128 b i h; let ptr = buffer_addr b h + scale16 i in assert (buffer_addr b h + scale16 i + 8 = ptr + 8)
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 52, "end_line": 1015, "start_col": 0, "start_line": 1010 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": false, "full_module": "Vale.X64.BufferViewStore", "short_module": null }, { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
b: Vale.X64.Memory.buffer128 -> i: Prims.nat -> h: Vale.Arch.HeapImpl.vale_heap -> FStar.Pervasives.Lemma (requires i < FStar.Seq.Base.length (Vale.X64.Memory.buffer_as_seq h b) /\ Vale.X64.Memory.buffer_readable h b) (ensures Vale.Arch.MachineHeap_s.valid_addr64 (Vale.X64.Memory.b...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.X64.Memory.buffer128", "Prims.nat", "Vale.Arch.HeapImpl.vale_heap", "Prims._assert", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.op_Addition", "Vale.X64.Memory.buffer_addr", "Vale.X64.Memory.vuint128", "Vale.X64.Memory.scale16", "Prims.unit", "Vale.X64.Memory_Sems.low_lemma_v...
[]
true
false
true
false
false
let low_lemma_valid_mem128_64 b i h =
reveal_opaque (`%S.valid_addr64) S.valid_addr64; reveal_opaque (`%S.valid_addr128) S.valid_addr128; low_lemma_valid_mem128 b i h; let ptr = buffer_addr b h + scale16 i in assert (buffer_addr b h + scale16 i + 8 = ptr + 8)
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.low_lemma_store_mem128_aux
val low_lemma_store_mem128_aux (b: buffer128) (heap: S.machine_heap) (i: nat{i < buffer_length b}) (v: quad32) (h: vale_heap{buffer_readable h b /\ buffer_writeable b}) : Lemma (requires IB.correct_down_p (_ih h) heap b) (ensures (let heap' = S.update_heap128 (buffer_addr...
val low_lemma_store_mem128_aux (b: buffer128) (heap: S.machine_heap) (i: nat{i < buffer_length b}) (v: quad32) (h: vale_heap{buffer_readable h b /\ buffer_writeable b}) : Lemma (requires IB.correct_down_p (_ih h) heap b) (ensures (let heap' = S.update_heap128 (buffer_addr...
let low_lemma_store_mem128_aux (b:buffer128) (heap:S.machine_heap) (i:nat{i < buffer_length b}) (v:quad32) (h:vale_heap{buffer_readable h b /\ buffer_writeable b}) : Lemma (requires IB.correct_down_p (_ih h) heap b) (ensures (let heap' = S.update_heap128 (buffer_addr b h + scale16 i) v heap in ...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 57, "end_line": 792, "start_col": 0, "start_line": 773 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": false, "full_module": "Vale.X64.BufferViewStore", "short_module": null }, { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
b: Vale.X64.Memory.buffer128 -> heap: Vale.Arch.MachineHeap_s.machine_heap -> i: Prims.nat{i < Vale.X64.Memory.buffer_length b} -> v: Vale.X64.Memory.quad32 -> h: Vale.Arch.HeapImpl.vale_heap {Vale.X64.Memory.buffer_readable h b /\ Vale.X64.Memory.buffer_writeable b} -> FStar.Pervas...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.X64.Memory.buffer128", "Vale.Arch.MachineHeap_s.machine_heap", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Vale.X64.Memory.buffer_length", "Vale.X64.Memory.vuint128", "Vale.X64.Memory.quad32", "Vale.Arch.HeapImpl.vale_heap", "Prims.l_and", "Vale.X64.Memory.buffer_readable", "Vale.X64...
[]
true
false
true
false
false
let low_lemma_store_mem128_aux (b: buffer128) (heap: S.machine_heap) (i: nat{i < buffer_length b}) (v: quad32) (h: vale_heap{buffer_readable h b /\ buffer_writeable b}) : Lemma (requires IB.correct_down_p (_ih h) heap b) (ensures (let heap' = S.update_heap128 (buffer_addr...
let ptr = buffer_addr b h + scale16 i in let heap' = S.update_heap128 ptr v heap in let h' = store_mem128 ptr v h in lemma_store_mem128 b i v h; length_t_eq TUInt128 b; bv_upd_update_heap128 b heap i v (_ih h); let db = get_downview b.bsrc in let bv = UV.mk_buffer db Vale.Interop.Views.up_view128 in assert (UV.upd (_ih...
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.low_lemma_load_mem128_full
val low_lemma_load_mem128_full (b:buffer128) (i:nat) (vfh:vale_full_heap) (t:taint) (hid:heaplet_id) : Lemma (requires ( let (h, mt) = (Map16.get vfh.vf_heaplets hid, vfh.vf_layout.vl_taint) in i < Seq.length (buffer_as_seq h b) /\ buffer_readable h b /\ valid_layout_buffer b vfh.vf_layout h false /\ ...
val low_lemma_load_mem128_full (b:buffer128) (i:nat) (vfh:vale_full_heap) (t:taint) (hid:heaplet_id) : Lemma (requires ( let (h, mt) = (Map16.get vfh.vf_heaplets hid, vfh.vf_layout.vl_taint) in i < Seq.length (buffer_as_seq h b) /\ buffer_readable h b /\ valid_layout_buffer b vfh.vf_layout h false /\ ...
let low_lemma_load_mem128_full b i vfh t hid = reveal_opaque (`%valid_layout_buffer_id) valid_layout_buffer_id; ()
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 977, "start_col": 0, "start_line": 975 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": false, "full_module": "Vale.X64.BufferViewStore", "short_module": null }, { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
b: Vale.X64.Memory.buffer128 -> i: Prims.nat -> vfh: Vale.Arch.HeapImpl.vale_full_heap -> t: Vale.Arch.HeapTypes_s.taint -> hid: Vale.Arch.HeapImpl.heaplet_id -> FStar.Pervasives.Lemma (requires (let _ = Vale.Lib.Map16.get (Mkvale_full_heap?.vf_heaplets vfh) hid, ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.X64.Memory.buffer128", "Prims.nat", "Vale.Arch.HeapImpl.vale_full_heap", "Vale.Arch.HeapTypes_s.taint", "Vale.Arch.HeapImpl.heaplet_id", "Prims.unit", "FStar.Pervasives.reveal_opaque", "Vale.Arch.HeapTypes_s.base_typ", "Vale.X64.Memory.buffer", "Vale.Arch.HeapImpl.vale_heap_layout", "FStar...
[]
true
false
true
false
false
let low_lemma_load_mem128_full b i vfh t hid =
reveal_opaque (`%valid_layout_buffer_id) valid_layout_buffer_id; ()
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.store_buffer_down128_mem
val store_buffer_down128_mem (b: buffer128{buffer_writeable b}) (i: nat{i < buffer_length b}) (v: quad32) (h: vale_heap{List.memP b (_ih h).IB.ptrs}) : Lemma (ensures (let mem1 = I.down_mem (_ih h) in let h1 = buffer_write b i v h in let mem2 = I.down_mem (_ih h1) i...
val store_buffer_down128_mem (b: buffer128{buffer_writeable b}) (i: nat{i < buffer_length b}) (v: quad32) (h: vale_heap{List.memP b (_ih h).IB.ptrs}) : Lemma (ensures (let mem1 = I.down_mem (_ih h) in let h1 = buffer_write b i v h in let mem2 = I.down_mem (_ih h1) i...
let store_buffer_down128_mem (b:buffer128{buffer_writeable b}) (i:nat{i < buffer_length b}) (v:quad32) (h:vale_heap{List.memP b (_ih h).IB.ptrs}) : Lemma (ensures ( let mem1 = I.down_mem (_ih h) in let h1 = buffer_write b i v h in let mem2 = I.down_mem (_ih h1) in let bas...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 30, "end_line": 910, "start_col": 0, "start_line": 877 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": false, "full_module": "Vale.X64.BufferViewStore", "short_module": null }, { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
b: Vale.X64.Memory.buffer128{Vale.X64.Memory.buffer_writeable b} -> i: Prims.nat{i < Vale.X64.Memory.buffer_length b} -> v: Vale.X64.Memory.quad32 -> h: Vale.Arch.HeapImpl.vale_heap {FStar.List.Tot.Base.memP b (InteropHeap?.ptrs (Vale.Arch.HeapImpl._ih h))} -> FStar.Pervasives.Lemma ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.X64.Memory.buffer128", "Vale.X64.Memory.buffer_writeable", "Vale.X64.Memory.vuint128", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Vale.X64.Memory.buffer_length", "Vale.X64.Memory.quad32", "Vale.Arch.HeapImpl.vale_heap", "FStar.List.Tot.Base.memP", "Vale.Interop.Types.b8", "Vale.Inte...
[]
false
false
true
false
false
let store_buffer_down128_mem (b: buffer128{buffer_writeable b}) (i: nat{i < buffer_length b}) (v: quad32) (h: vale_heap{List.memP b (_ih h).IB.ptrs}) : Lemma (ensures (let mem1 = I.down_mem (_ih h) in let h1 = buffer_write b i v h in let mem2 = I.down_mem (_ih h1) i...
let mem1 = I.down_mem (_ih h) in let h1 = buffer_write b i v h in let mem2 = I.down_mem (_ih h1) in let base = buffer_addr b h in let n = buffer_length b in let aux (j: int) : Lemma (j < base + scale16 i \/ j >= base + scale16 (i + 1) ==> mem1.[ j ] == mem2.[ j ]) = I.addrs_set_lemma_all (); if j >= base && j <...
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.written_buffer_down128
val written_buffer_down128 (b: buffer128) (i: nat{i < buffer_length b}) (v: quad32) (h: vale_heap) : Lemma (requires List.memP b (_ih h).IB.ptrs /\ buffer_writeable b) (ensures (let mem1 = I.down_mem (_ih h) in let h1 = buffer_write b i v h in let mem2 = I.down_mem (_ih h1) in ...
val written_buffer_down128 (b: buffer128) (i: nat{i < buffer_length b}) (v: quad32) (h: vale_heap) : Lemma (requires List.memP b (_ih h).IB.ptrs /\ buffer_writeable b) (ensures (let mem1 = I.down_mem (_ih h) in let h1 = buffer_write b i v h in let mem2 = I.down_mem (_ih h1) in ...
let written_buffer_down128 (b:buffer128) (i:nat{i < buffer_length b}) (v:quad32) (h:vale_heap) : Lemma (requires List.memP b (_ih h).IB.ptrs /\ buffer_writeable b) (ensures ( let mem1 = I.down_mem (_ih h) in let h1 = buffer_write b i v h in let mem2 = I.down_mem (_ih h1) in ...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 65, "end_line": 875, "start_col": 0, "start_line": 856 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": false, "full_module": "Vale.X64.BufferViewStore", "short_module": null }, { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
b: Vale.X64.Memory.buffer128 -> i: Prims.nat{i < Vale.X64.Memory.buffer_length b} -> v: Vale.X64.Memory.quad32 -> h: Vale.Arch.HeapImpl.vale_heap -> FStar.Pervasives.Lemma (requires FStar.List.Tot.Base.memP b (InteropHeap?.ptrs (Vale.Arch.HeapImpl._ih h)) /\ Vale.X64.Memory.buff...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.X64.Memory.buffer128", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Vale.X64.Memory.buffer_length", "Vale.X64.Memory.vuint128", "Vale.X64.Memory.quad32", "Vale.Arch.HeapImpl.vale_heap", "Vale.X64.Memory_Sems.written_buffer_down128_aux2", "Prims.op_Addition", "Prims.unit", "Vale.X64.Me...
[]
true
false
true
false
false
let written_buffer_down128 (b: buffer128) (i: nat{i < buffer_length b}) (v: quad32) (h: vale_heap) : Lemma (requires List.memP b (_ih h).IB.ptrs /\ buffer_writeable b) (ensures (let mem1 = I.down_mem (_ih h) in let h1 = buffer_write b i v h in let mem2 = I.down_mem (_ih h1) in ...
let mem1 = I.down_mem (_ih h) in let h1 = buffer_write b i v h in let mem2 = I.down_mem (_ih h1) in let base = buffer_addr b h in let n = buffer_length b in written_buffer_down128_aux1 b i v h base 0 h1 mem1 mem2; written_buffer_down128_aux2 b i v h base n (i + 1) h1 mem1 mem2
false
Vale.X64.Memory_Sems.fst
Vale.X64.Memory_Sems.written_buffer_down128_aux1
val written_buffer_down128_aux1 (b: buffer128{buffer_writeable b}) (i: nat{i < buffer_length b}) (v: quad32) (h: vale_heap{List.memP b (_ih h).IB.ptrs}) (base: nat{base == buffer_addr b h}) (k: nat) (h1: vale_heap{h1 == buffer_write b i v h}) (mem1: S.machine_heap{IB.corr...
val written_buffer_down128_aux1 (b: buffer128{buffer_writeable b}) (i: nat{i < buffer_length b}) (v: quad32) (h: vale_heap{List.memP b (_ih h).IB.ptrs}) (base: nat{base == buffer_addr b h}) (k: nat) (h1: vale_heap{h1 == buffer_write b i v h}) (mem1: S.machine_heap{IB.corr...
let rec written_buffer_down128_aux1 (b:buffer128{buffer_writeable b}) (i:nat{i < buffer_length b}) (v:quad32) (h:vale_heap{List.memP b (_ih h).IB.ptrs}) (base:nat{base == buffer_addr b h}) (k:nat) (h1:vale_heap{h1 == buffer_write b i v h}) (mem1:S.machine_heap{IB.correct_down (_ih h) mem1}) (mem2:S.mach...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 7, "end_line": 827, "start_col": 0, "start_line": 804 }
module Vale.X64.Memory_Sems open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.Def.Words_s module I = Vale.Interop module S = Vale.X64.Machine_Semantics_s module MB = LowStar.Monotonic.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Memory.fst.checked", "Vale.X64.Memory.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.BufferViewStore.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti...
[ { "abbrev": false, "full_module": "Vale.X64.BufferViewStore", "short_module": null }, { "abbrev": true, "full_module": "Vale.Interop.Base", "short_module": "IB" }, { "abbrev": false, "full_module": "Vale.Arch.Heap", "short_module": null }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "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
b: Vale.X64.Memory.buffer128{Vale.X64.Memory.buffer_writeable b} -> i: Prims.nat{i < Vale.X64.Memory.buffer_length b} -> v: Vale.X64.Memory.quad32 -> h: Vale.Arch.HeapImpl.vale_heap {FStar.List.Tot.Base.memP b (InteropHeap?.ptrs (Vale.Arch.HeapImpl._ih h))} -> base: Prims.nat{base == ...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Vale.X64.Memory.buffer128", "Vale.X64.Memory.buffer_writeable", "Vale.X64.Memory.vuint128", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Vale.X64.Memory.buffer_length", "Vale.X64.Memory.quad32", "Vale.Arch.HeapImpl.vale_heap", "FStar.List.Tot.Base.memP", "Vale.Interop.Types.b8", "Vale.Inte...
[ "recursion" ]
false
false
true
false
false
let rec written_buffer_down128_aux1 (b: buffer128{buffer_writeable b}) (i: nat{i < buffer_length b}) (v: quad32) (h: vale_heap{List.memP b (_ih h).IB.ptrs}) (base: nat{base == buffer_addr b h}) (k: nat) (h1: vale_heap{h1 == buffer_write b i v h}) (mem1: S.machine_heap{IB....
if k >= i then () else let ptr = base + scale16 k in same_mem_get_heap_val128 b i v k h h1 mem1 mem2; heap_shift mem1 mem2 ptr 16; written_buffer_down128_aux1 b i v h base (k + 1) h1 mem1 mem2
false