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
Vale.AES.GCM.fst
Vale.AES.GCM.gcm_blocks_dec_helper_simplified
val gcm_blocks_dec_helper_simplified (alg:algorithm) (key:seq nat32) (a128 a_bytes p128x6 p128 p_bytes c128x6 c128 c_bytes:seq quad32) (p_num_bytes a_num_bytes:nat) (iv:supported_iv_LE) (j0_BE h enc_hash length_quad:quad32) : Lemma (requires // Required by gcm_...
val gcm_blocks_dec_helper_simplified (alg:algorithm) (key:seq nat32) (a128 a_bytes p128x6 p128 p_bytes c128x6 c128 c_bytes:seq quad32) (p_num_bytes a_num_bytes:nat) (iv:supported_iv_LE) (j0_BE h enc_hash length_quad:quad32) : Lemma (requires // Required by gcm_...
let gcm_blocks_dec_helper_simplified (alg:algorithm) (key:seq nat32) (a128 a_bytes p128x6 p128 p_bytes c128x6 c128 c_bytes:seq quad32) (p_num_bytes a_num_bytes:nat) (iv:supported_iv_LE) (j0_BE h enc_hash length_quad:quad32) : Lemma (requires // Required by gcm_...
{ "file_name": "vale/code/crypto/aes/Vale.AES.GCM.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 1145, "start_col": 0, "start_line": 1050 }
module Vale.AES.GCM open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.AES.GCM_s open Vale.AES.AES_s open Vale.AES.GCM_helpers open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.AES.GHash_s open FStar.Mul open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Calc open Vale....
{ "checked_file": "/", "dependencies": [ "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Four_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.A...
[ { "abbrev": false, "full_module": "Vale.AES.GHash", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
alg: Vale.AES.AES_common_s.algorithm -> key: FStar.Seq.Base.seq Vale.Def.Words_s.nat32 -> a128: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> a_bytes: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> p128x6: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> p128: FStar.Seq.Base.seq Vale.Def.Types_s.qu...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.AES.AES_common_s.algorithm", "FStar.Seq.Base.seq", "Vale.Def.Words_s.nat32", "Vale.Def.Types_s.quad32", "Prims.nat", "Vale.AES.GCM_s.supported_iv_LE", "Prims.unit", "Vale.AES.GCM.lemma_length_simplifier", "FStar.Seq.Base.append", "Prims.op_GreaterThan", "FStar.Mul.op_Star", "Prims.op_Add...
[]
false
false
true
false
false
let gcm_blocks_dec_helper_simplified (alg: algorithm) (key: seq nat32) (a128 a_bytes p128x6 p128 p_bytes c128x6 c128 c_bytes: seq quad32) (p_num_bytes a_num_bytes: nat) (iv: supported_iv_LE) (j0_BE h enc_hash length_quad: quad32) : Lemma (requires length p128x6 * 16...
gcm_blocks_dec_helper alg key a128 a_bytes p128x6 p128 p_bytes c128x6 c128 c_bytes p_num_bytes a_num_bytes iv j0_BE h enc_hash length_quad; let auth_raw_quads = if a_num_bytes > (length a128) * 16 then append a128 a_bytes else a128 in let plain_raw_quads = if p_num_bytes > (length p128x6 + length p128) * 16 then ...
false
Vale.AES.GCM.fst
Vale.AES.GCM.gcm_blocks_helper_simplified
val gcm_blocks_helper_simplified (alg:algorithm) (key:seq nat32) (a128 a_bytes p128x6 p128 p_bytes c128x6 c128 c_bytes:seq quad32) (p_num_bytes a_num_bytes:nat) (iv:supported_iv_LE) (j0_BE h enc_hash length_quad:quad32) : Lemma (requires // Required by gcm_bloc...
val gcm_blocks_helper_simplified (alg:algorithm) (key:seq nat32) (a128 a_bytes p128x6 p128 p_bytes c128x6 c128 c_bytes:seq quad32) (p_num_bytes a_num_bytes:nat) (iv:supported_iv_LE) (j0_BE h enc_hash length_quad:quad32) : Lemma (requires // Required by gcm_bloc...
let gcm_blocks_helper_simplified (alg:algorithm) (key:seq nat32) (a128 a_bytes p128x6 p128 p_bytes c128x6 c128 c_bytes:seq quad32) (p_num_bytes a_num_bytes:nat) (iv:supported_iv_LE) (j0_BE h enc_hash length_quad:quad32) : Lemma (requires // Required by gcm_bloc...
{ "file_name": "vale/code/crypto/aes/Vale.AES.GCM.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 712, "start_col": 0, "start_line": 614 }
module Vale.AES.GCM open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.AES.GCM_s open Vale.AES.AES_s open Vale.AES.GCM_helpers open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.AES.GHash_s open FStar.Mul open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Calc open Vale....
{ "checked_file": "/", "dependencies": [ "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Four_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.A...
[ { "abbrev": false, "full_module": "Vale.AES.GHash", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
alg: Vale.AES.AES_common_s.algorithm -> key: FStar.Seq.Base.seq Vale.Def.Words_s.nat32 -> a128: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> a_bytes: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> p128x6: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> p128: FStar.Seq.Base.seq Vale.Def.Types_s.qu...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.AES.AES_common_s.algorithm", "FStar.Seq.Base.seq", "Vale.Def.Words_s.nat32", "Vale.Def.Types_s.quad32", "Prims.nat", "Vale.AES.GCM_s.supported_iv_LE", "Prims.unit", "Vale.AES.GCM.lemma_length_simplifier", "FStar.Seq.Base.append", "Prims.op_GreaterThan", "FStar.Mul.op_Star", "Prims.op_Add...
[]
false
false
true
false
false
let gcm_blocks_helper_simplified (alg: algorithm) (key: seq nat32) (a128 a_bytes p128x6 p128 p_bytes c128x6 c128 c_bytes: seq quad32) (p_num_bytes a_num_bytes: nat) (iv: supported_iv_LE) (j0_BE h enc_hash length_quad: quad32) : Lemma (requires length p128x6 * 16 + l...
gcm_blocks_helper alg key a128 a_bytes p128x6 p128 p_bytes c128x6 c128 c_bytes p_num_bytes a_num_bytes iv j0_BE h enc_hash length_quad; let auth_raw_quads = if a_num_bytes > (length a128) * 16 then append a128 a_bytes else a128 in let plain_raw_quads = if p_num_bytes > (length p128x6 + length p128) * 16 then appe...
false
Vale.AES.GCM.fst
Vale.AES.GCM.lemma_compute_iv_easy
val lemma_compute_iv_easy (iv_b iv_extra_b:seq quad32) (iv:supported_iv_LE) (num_bytes:nat64) (h_LE j0:quad32) : Lemma (requires length iv_extra_b == 1 /\ length iv_b * (128/8) <= num_bytes /\ num_bytes < length iv_b * (128/8) + 128/8 /\ num_bytes == 96/8 /\ (let iv_BE = reverse_bytes_quad32 (index iv...
val lemma_compute_iv_easy (iv_b iv_extra_b:seq quad32) (iv:supported_iv_LE) (num_bytes:nat64) (h_LE j0:quad32) : Lemma (requires length iv_extra_b == 1 /\ length iv_b * (128/8) <= num_bytes /\ num_bytes < length iv_b * (128/8) + 128/8 /\ num_bytes == 96/8 /\ (let iv_BE = reverse_bytes_quad32 (index iv...
let lemma_compute_iv_easy (iv_b iv_extra_b:seq quad32) (iv:supported_iv_LE) (num_bytes:nat64) (h_LE j0:quad32) : Lemma (requires length iv_extra_b == 1 /\ length iv_b * (128/8) <= num_bytes /\ num_bytes < length iv_b * (128/8) + 128/8 /\ num_bytes == 96/8 /\ (let iv_BE = reverse_bytes_quad32 (index iv...
{ "file_name": "vale/code/crypto/aes/Vale.AES.GCM.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 121, "start_col": 0, "start_line": 57 }
module Vale.AES.GCM open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.AES.GCM_s open Vale.AES.AES_s open Vale.AES.GCM_helpers open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.AES.GHash_s open FStar.Mul open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Calc open Vale....
{ "checked_file": "/", "dependencies": [ "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Four_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.A...
[ { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq_s", "short_module": null }, { "abbrev": false, "ful...
{ "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
iv_b: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> iv_extra_b: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> iv: Vale.AES.GCM_s.supported_iv_LE -> num_bytes: Vale.Def.Words_s.nat64 -> h_LE: Vale.Def.Types_s.quad32 -> j0: Vale.Def.Types_s.quad32 -> FStar.Pervasives.Lemma (requires ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.Seq.Base.seq", "Vale.Def.Types_s.quad32", "Vale.AES.GCM_s.supported_iv_LE", "Vale.Def.Words_s.nat64", "Prims.unit", "FStar.Calc.calc_finish", "Prims.eq2", "Vale.AES.GCM_s.compute_iv_BE", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", "FStar.Calc.calc_step", "Vale.AES.GCM.set_to...
[]
false
false
true
false
false
let lemma_compute_iv_easy (iv_b iv_extra_b: seq quad32) (iv: supported_iv_LE) (num_bytes: nat64) (h_LE j0: quad32) : Lemma (requires length iv_extra_b == 1 /\ length iv_b * (128 / 8) <= num_bytes /\ num_bytes < length iv_b * (128 / 8) + 128 / 8 /\ num_bytes == 96 / 8 /\...
assert (length iv == 12); assert (length iv_b == 0); lemma_empty iv_b; append_empty_l iv_extra_b; assert (append iv_b iv_extra_b == iv_extra_b); let q = index iv_extra_b 0 in le_seq_quad32_to_bytes_of_singleton q; assert (equal iv_extra_b (create 1 q)); assert (le_seq_quad32_to_bytes iv_extra_b == le_quad32_to_bytes q)...
false
Steel.ST.OnRange.fsti
Steel.ST.OnRange.on_range_snoc_with_implies
val on_range_snoc_with_implies (#opened: _) (p: (nat -> vprop)) (i j j' k: nat) : STGhost unit opened ((on_range p i j) `star` (p j')) (fun _ -> (on_range p i k) `star` ((on_range p i k) `implies_` ((on_range p i j) `star` (p j')))) (j' == j /\ k == j + 1) (fun _ -> True)
val on_range_snoc_with_implies (#opened: _) (p: (nat -> vprop)) (i j j' k: nat) : STGhost unit opened ((on_range p i j) `star` (p j')) (fun _ -> (on_range p i k) `star` ((on_range p i k) `implies_` ((on_range p i j) `star` (p j')))) (j' == j /\ k == j + 1) (fun _ -> True)
let on_range_snoc_with_implies (#opened: _) (p: (nat -> vprop)) (i j j' k: nat) : STGhost unit opened (on_range p i j `star` p j') (fun _ -> on_range p i k `star` (on_range p i k `implies_` (on_range p i j `star` p j'))) (j' == j /\ k == j + 1) (fun _ -> True) = on_range_le p i j; on_range_snoc ...
{ "file_name": "lib/steel/Steel.ST.OnRange.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 152, "start_col": 0, "start_line": 134 }
module Steel.ST.OnRange include Steel.ST.Util val on_range (p: (nat -> vprop)) (i j: nat) : vprop val on_range_le (#opened: _) (p: (nat -> vprop)) (i j: nat) : STGhost unit opened (on_range p i j) (fun _ -> on_range p i j) True (fun _ -> i <= j) val on_range_empty (#opened: _) (p: (nat -> v...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Steel.ST.OnRange.fsti" }
[ { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST", "short_module": null }, { "abbrev": false, "full_module": "FStar.Perv...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: (_: Prims.nat -> Steel.Effect.Common.vprop) -> i: Prims.nat -> j: Prims.nat -> j': Prims.nat -> k: Prims.nat -> Steel.ST.Effect.Ghost.STGhost Prims.unit
Steel.ST.Effect.Ghost.STGhost
[]
[]
[ "Steel.Memory.inames", "Prims.nat", "Steel.Effect.Common.vprop", "Steel.ST.Util.intro_implies", "Steel.ST.OnRange.on_range", "Steel.Effect.Common.star", "Steel.Effect.Common.emp", "Steel.ST.Util.rewrite", "Prims.unit", "Steel.ST.OnRange.on_range_unsnoc", "Steel.ST.OnRange.on_range_snoc", "Stee...
[]
false
true
false
false
false
let on_range_snoc_with_implies (#opened: _) (p: (nat -> vprop)) (i j j' k: nat) : STGhost unit opened ((on_range p i j) `star` (p j')) (fun _ -> (on_range p i k) `star` ((on_range p i k) `implies_` ((on_range p i j) `star` (p j')))) (j' == j /\ k == j + 1) (fun _ -> True) = ...
on_range_le p i j; on_range_snoc p i j j' k; intro_implies (on_range p i k) ((on_range p i j) `star` (p j')) emp (fun _ -> on_range_unsnoc p i j k; rewrite (p j) (p j'))
false
Spec.HMAC_DRBG.fsti
Spec.HMAC_DRBG.is_supported_alg
val is_supported_alg : _: Spec.Hash.Definitions.hash_alg -> Prims.bool
let is_supported_alg = function | SHA1 | SHA2_256 | SHA2_384 | SHA2_512 -> true | _ -> false
{ "file_name": "specs/drbg/Spec.HMAC_DRBG.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 20, "start_col": 0, "start_line": 18 }
module Spec.HMAC_DRBG open Lib.IntTypes open FStar.Seq open FStar.Mul open Spec.Hash.Definitions open Spec.Agile.HMAC /// HMAC-DRBG /// /// See 10.1.2 in /// https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-90Ar1.pdf /// #set-options "--max_fuel 0 --max_ifuel 0"
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Definitions.fst.checked", "Spec.Agile.HMAC.fsti.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file...
[ { "abbrev": false, "full_module": "Spec.Agile.HMAC", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "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
_: Spec.Hash.Definitions.hash_alg -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Prims.bool" ]
[]
false
false
false
true
false
let is_supported_alg =
function | SHA1 | SHA2_256 | SHA2_384 | SHA2_512 -> true | _ -> false
false
Spec.HMAC_DRBG.fsti
Spec.HMAC_DRBG.reseed_interval
val reseed_interval : Prims.pos
let reseed_interval = pow2 10
{ "file_name": "specs/drbg/Spec.HMAC_DRBG.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 24, "start_col": 0, "start_line": 24 }
module Spec.HMAC_DRBG open Lib.IntTypes open FStar.Seq open FStar.Mul open Spec.Hash.Definitions open Spec.Agile.HMAC /// HMAC-DRBG /// /// See 10.1.2 in /// https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-90Ar1.pdf /// #set-options "--max_fuel 0 --max_ifuel 0" let is_supported_alg = function |...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Definitions.fst.checked", "Spec.Agile.HMAC.fsti.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file...
[ { "abbrev": false, "full_module": "Spec.Agile.HMAC", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "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
Prims.pos
Prims.Tot
[ "total" ]
[]
[ "Prims.pow2" ]
[]
false
false
false
true
false
let reseed_interval =
pow2 10
false
Spec.HMAC_DRBG.fsti
Spec.HMAC_DRBG.max_output_length
val max_output_length : Prims.pos
let max_output_length = pow2 16
{ "file_name": "specs/drbg/Spec.HMAC_DRBG.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 25, "start_col": 0, "start_line": 25 }
module Spec.HMAC_DRBG open Lib.IntTypes open FStar.Seq open FStar.Mul open Spec.Hash.Definitions open Spec.Agile.HMAC /// HMAC-DRBG /// /// See 10.1.2 in /// https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-90Ar1.pdf /// #set-options "--max_fuel 0 --max_ifuel 0" let is_supported_alg = function |...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Definitions.fst.checked", "Spec.Agile.HMAC.fsti.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file...
[ { "abbrev": false, "full_module": "Spec.Agile.HMAC", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "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
Prims.pos
Prims.Tot
[ "total" ]
[]
[ "Prims.pow2" ]
[]
false
false
false
true
false
let max_output_length =
pow2 16
false
Spec.HMAC_DRBG.fsti
Spec.HMAC_DRBG.supported_alg
val supported_alg : Type0
let supported_alg = a:hash_alg{ is_supported_alg a }
{ "file_name": "specs/drbg/Spec.HMAC_DRBG.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 52, "end_line": 22, "start_col": 0, "start_line": 22 }
module Spec.HMAC_DRBG open Lib.IntTypes open FStar.Seq open FStar.Mul open Spec.Hash.Definitions open Spec.Agile.HMAC /// HMAC-DRBG /// /// See 10.1.2 in /// https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-90Ar1.pdf /// #set-options "--max_fuel 0 --max_ifuel 0" let is_supported_alg = function |...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Definitions.fst.checked", "Spec.Agile.HMAC.fsti.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file...
[ { "abbrev": false, "full_module": "Spec.Agile.HMAC", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "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
Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Spec.HMAC_DRBG.is_supported_alg" ]
[]
false
false
false
true
true
let supported_alg =
a: hash_alg{is_supported_alg a}
false
Spec.HMAC_DRBG.fsti
Spec.HMAC_DRBG.max_length
val max_length : Prims.pos
let max_length = pow2 16
{ "file_name": "specs/drbg/Spec.HMAC_DRBG.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 26, "start_col": 0, "start_line": 26 }
module Spec.HMAC_DRBG open Lib.IntTypes open FStar.Seq open FStar.Mul open Spec.Hash.Definitions open Spec.Agile.HMAC /// HMAC-DRBG /// /// See 10.1.2 in /// https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-90Ar1.pdf /// #set-options "--max_fuel 0 --max_ifuel 0" let is_supported_alg = function |...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Definitions.fst.checked", "Spec.Agile.HMAC.fsti.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file...
[ { "abbrev": false, "full_module": "Spec.Agile.HMAC", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "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
Prims.pos
Prims.Tot
[ "total" ]
[]
[ "Prims.pow2" ]
[]
false
false
false
true
false
let max_length =
pow2 16
false
Spec.HMAC_DRBG.fsti
Spec.HMAC_DRBG.max_additional_input_length
val max_additional_input_length : Prims.pos
let max_additional_input_length = pow2 16
{ "file_name": "specs/drbg/Spec.HMAC_DRBG.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 28, "start_col": 0, "start_line": 28 }
module Spec.HMAC_DRBG open Lib.IntTypes open FStar.Seq open FStar.Mul open Spec.Hash.Definitions open Spec.Agile.HMAC /// HMAC-DRBG /// /// See 10.1.2 in /// https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-90Ar1.pdf /// #set-options "--max_fuel 0 --max_ifuel 0" let is_supported_alg = function |...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Definitions.fst.checked", "Spec.Agile.HMAC.fsti.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file...
[ { "abbrev": false, "full_module": "Spec.Agile.HMAC", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "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
Prims.pos
Prims.Tot
[ "total" ]
[]
[ "Prims.pow2" ]
[]
false
false
false
true
false
let max_additional_input_length =
pow2 16
false
Spec.HMAC_DRBG.fsti
Spec.HMAC_DRBG.max_personalization_string_length
val max_personalization_string_length : Prims.pos
let max_personalization_string_length = pow2 16
{ "file_name": "specs/drbg/Spec.HMAC_DRBG.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 27, "start_col": 0, "start_line": 27 }
module Spec.HMAC_DRBG open Lib.IntTypes open FStar.Seq open FStar.Mul open Spec.Hash.Definitions open Spec.Agile.HMAC /// HMAC-DRBG /// /// See 10.1.2 in /// https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-90Ar1.pdf /// #set-options "--max_fuel 0 --max_ifuel 0" let is_supported_alg = function |...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Definitions.fst.checked", "Spec.Agile.HMAC.fsti.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file...
[ { "abbrev": false, "full_module": "Spec.Agile.HMAC", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "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
Prims.pos
Prims.Tot
[ "total" ]
[]
[ "Prims.pow2" ]
[]
false
false
false
true
false
let max_personalization_string_length =
pow2 16
false
Spec.HMAC_DRBG.fsti
Spec.HMAC_DRBG.min_length
val min_length : a: Spec.HMAC_DRBG.supported_alg -> Prims.int
let min_length (a:supported_alg) = match a with | SHA1 -> 16 | SHA2_256 | SHA2_384 | SHA2_512 -> 32
{ "file_name": "specs/drbg/Spec.HMAC_DRBG.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 40, "end_line": 35, "start_col": 0, "start_line": 32 }
module Spec.HMAC_DRBG open Lib.IntTypes open FStar.Seq open FStar.Mul open Spec.Hash.Definitions open Spec.Agile.HMAC /// HMAC-DRBG /// /// See 10.1.2 in /// https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-90Ar1.pdf /// #set-options "--max_fuel 0 --max_ifuel 0" let is_supported_alg = function |...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Definitions.fst.checked", "Spec.Agile.HMAC.fsti.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file...
[ { "abbrev": false, "full_module": "Spec.Agile.HMAC", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.HMAC_DRBG.supported_alg -> Prims.int
Prims.Tot
[ "total" ]
[]
[ "Spec.HMAC_DRBG.supported_alg", "Prims.int" ]
[]
false
false
false
true
false
let min_length (a: supported_alg) =
match a with | SHA1 -> 16 | SHA2_256 | SHA2_384 | SHA2_512 -> 32
false
Vale.AES.GCM.fst
Vale.AES.GCM.gcm_blocks_helper
val gcm_blocks_helper (alg: algorithm) (key: seq nat32) (a128 a_bytes p128x6 p128 p_bytes c128x6 c128 c_bytes: seq quad32) (p_num_bytes a_num_bytes: nat) (iv: supported_iv_LE) (j0_BE h enc_hash length_quad: quad32) : Lemma (requires length p128x6 * 16 + length p128 ...
val gcm_blocks_helper (alg: algorithm) (key: seq nat32) (a128 a_bytes p128x6 p128 p_bytes c128x6 c128 c_bytes: seq quad32) (p_num_bytes a_num_bytes: nat) (iv: supported_iv_LE) (j0_BE h enc_hash length_quad: quad32) : Lemma (requires length p128x6 * 16 + length p128 ...
let gcm_blocks_helper (alg:algorithm) (key:seq nat32) (a128 a_bytes p128x6 p128 p_bytes c128x6 c128 c_bytes:seq quad32) (p_num_bytes a_num_bytes:nat) (iv:supported_iv_LE) (j0_BE h enc_hash length_quad:quad32) : Lemma (requires // Required by gcm_blocks ...
{ "file_name": "vale/code/crypto/aes/Vale.AES.GCM.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 585, "start_col": 0, "start_line": 333 }
module Vale.AES.GCM open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.AES.GCM_s open Vale.AES.AES_s open Vale.AES.GCM_helpers open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.AES.GHash_s open FStar.Mul open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Calc open Vale....
{ "checked_file": "/", "dependencies": [ "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Four_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.A...
[ { "abbrev": false, "full_module": "Vale.AES.GHash", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_...
{ "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
alg: Vale.AES.AES_common_s.algorithm -> key: FStar.Seq.Base.seq Vale.Def.Words_s.nat32 -> a128: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> a_bytes: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> p128x6: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> p128: FStar.Seq.Base.seq Vale.Def.Types_s.qu...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.AES.AES_common_s.algorithm", "FStar.Seq.Base.seq", "Vale.Def.Words_s.nat32", "Vale.Def.Types_s.quad32", "Prims.nat", "Vale.AES.GCM_s.supported_iv_LE", "Prims.unit", "Prims.op_GreaterThan", "FStar.Mul.op_Star", "Prims.op_Addition", "FStar.Seq.Base.length", "Vale.AES.GCM.gcm_encrypt_LE_snd...
[]
false
false
true
false
false
let gcm_blocks_helper (alg: algorithm) (key: seq nat32) (a128 a_bytes p128x6 p128 p_bytes c128x6 c128 c_bytes: seq quad32) (p_num_bytes a_num_bytes: nat) (iv: supported_iv_LE) (j0_BE h enc_hash length_quad: quad32) : Lemma (requires length p128x6 * 16 + length p128 ...
let ctr_BE_1:quad32 = j0_BE in let ctr_BE_2:quad32 = inc32 j0_BE 1 in let plain:seq quad32 = if p_num_bytes > (length p128x6 + length p128) * 16 then append (append p128x6 p128) p_bytes else append p128x6 p128 in let cipher:seq quad32 = if p_num_bytes > (length p128x6 + length p128) * 16 then append (append c...
false
Vale.AES.GCM.fst
Vale.AES.GCM.gcm_blocks_dec_helper
val gcm_blocks_dec_helper (alg: algorithm) (key: seq nat32) (a128 a_bytes p128x6 p128 p_bytes c128x6 c128 c_bytes: seq quad32) (p_num_bytes a_num_bytes: nat) (iv: supported_iv_LE) (j0_BE h enc_hash length_quad: quad32) : Lemma (requires length p128x6 * 16 + length p...
val gcm_blocks_dec_helper (alg: algorithm) (key: seq nat32) (a128 a_bytes p128x6 p128 p_bytes c128x6 c128 c_bytes: seq quad32) (p_num_bytes a_num_bytes: nat) (iv: supported_iv_LE) (j0_BE h enc_hash length_quad: quad32) : Lemma (requires length p128x6 * 16 + length p...
let gcm_blocks_dec_helper (alg:algorithm) (key:seq nat32) (a128 a_bytes p128x6 p128 p_bytes c128x6 c128 c_bytes:seq quad32) (p_num_bytes a_num_bytes:nat) (iv:supported_iv_LE) (j0_BE h enc_hash length_quad:quad32) : Lemma (requires // Required by gcm_blocks ...
{ "file_name": "vale/code/crypto/aes/Vale.AES.GCM.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 1047, "start_col": 0, "start_line": 801 }
module Vale.AES.GCM open Vale.Def.Opaque_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.AES.GCM_s open Vale.AES.AES_s open Vale.AES.GCM_helpers open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.AES.GHash_s open FStar.Mul open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open FStar.Calc open Vale....
{ "checked_file": "/", "dependencies": [ "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Four_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Opaque_s.fsti.checked", "Vale.Arch.Types.fsti.checked", "Vale.A...
[ { "abbrev": false, "full_module": "Vale.AES.GHash", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "full_...
{ "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
alg: Vale.AES.AES_common_s.algorithm -> key: FStar.Seq.Base.seq Vale.Def.Words_s.nat32 -> a128: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> a_bytes: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> p128x6: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> p128: FStar.Seq.Base.seq Vale.Def.Types_s.qu...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.AES.AES_common_s.algorithm", "FStar.Seq.Base.seq", "Vale.Def.Words_s.nat32", "Vale.Def.Types_s.quad32", "Prims.nat", "Vale.AES.GCM_s.supported_iv_LE", "Prims.unit", "Prims.op_GreaterThan", "FStar.Mul.op_Star", "Prims.op_Addition", "FStar.Seq.Base.length", "FStar.Calc.calc_finish", "Pri...
[]
false
false
true
false
false
let gcm_blocks_dec_helper (alg: algorithm) (key: seq nat32) (a128 a_bytes p128x6 p128 p_bytes c128x6 c128 c_bytes: seq quad32) (p_num_bytes a_num_bytes: nat) (iv: supported_iv_LE) (j0_BE h enc_hash length_quad: quad32) : Lemma (requires length p128x6 * 16 + length p...
insert_nat64_reveal (); let ctr_BE_1:quad32 = j0_BE in let ctr_BE_2:quad32 = inc32 j0_BE 1 in let plain:seq quad32 = if p_num_bytes > (length p128x6 + length p128) * 16 then append (append p128x6 p128) p_bytes else append p128x6 p128 in let cipher:seq quad32 = if p_num_bytes > (length p128x6 + length p128) * 16...
false
EverParse3d.Util.fst
EverParse3d.Util.solve_from_ctx
val solve_from_ctx: Prims.unit -> Tac unit
val solve_from_ctx: Prims.unit -> Tac unit
let solve_from_ctx () : Tac unit = ignore (intros ()); let bs = vars_of_env (cur_env ()) in first (map (fun (b:binding) () -> exact b) bs)
{ "file_name": "src/3d/prelude/EverParse3d.Util.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 48, "end_line": 8, "start_col": 0, "start_line": 5 }
module EverParse3d.Util open FStar.Tactics.V2
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "EverParse3d.Util.fst" }
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "EverParse3d", "short_module": null }, { "abbrev": false, "full_module": "EverParse3d", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 2, "max_fuel": 0, "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.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.unit", "FStar.Tactics.V2.Derived.first", "Prims.list", "FStar.Tactics.Util.map", "FStar.Tactics.NamedView.binding", "FStar.Tactics.V2.Derived.exact", "FStar.Tactics.V2.SyntaxCoercions.binding_to_term", "FStar.Stubs.Reflection.V2.Data.binding", "FStar.Stubs.Reflection.V2.Builtins.vars_of_env",...
[]
false
true
false
false
false
let solve_from_ctx () : Tac unit =
ignore (intros ()); let bs = vars_of_env (cur_env ()) in first (map (fun (b: binding) () -> exact b) bs)
false
LowStar.PrefixFreezableBuffer.fst
LowStar.PrefixFreezableBuffer.le_to_n
val le_to_n (s:Seq.seq u8) : Tot nat
val le_to_n (s:Seq.seq u8) : Tot nat
let le_to_n s = E.le_to_n s
{ "file_name": "ulib/LowStar.PrefixFreezableBuffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 27, "end_line": 43, "start_col": 0, "start_line": 43 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Endianness.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ { "abbrev": true, "full_module": "LowStar.Endianness", "short_module": "LE" }, { "abbrev": true, "full_module": "FStar.Endianness", "short_module": "E" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "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
s: FStar.Seq.Base.seq LowStar.PrefixFreezableBuffer.u8 -> Prims.nat
Prims.Tot
[ "total" ]
[]
[ "FStar.Seq.Base.seq", "LowStar.PrefixFreezableBuffer.u8", "FStar.Endianness.le_to_n", "Prims.nat" ]
[]
false
false
false
true
false
let le_to_n s =
E.le_to_n s
false
LowStar.PrefixFreezableBuffer.fst
LowStar.PrefixFreezableBuffer.prefix_freezable_preorder
val prefix_freezable_preorder : srel u8
val prefix_freezable_preorder : srel u8
let prefix_freezable_preorder = pre
{ "file_name": "ulib/LowStar.PrefixFreezableBuffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 35, "end_line": 45, "start_col": 0, "start_line": 45 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Endianness.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ { "abbrev": true, "full_module": "LowStar.Endianness", "short_module": "LE" }, { "abbrev": true, "full_module": "FStar.Endianness", "short_module": "E" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "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
LowStar.Monotonic.Buffer.srel LowStar.PrefixFreezableBuffer.u8
Prims.Tot
[ "total" ]
[]
[ "LowStar.PrefixFreezableBuffer.pre" ]
[]
false
false
false
true
false
let prefix_freezable_preorder =
pre
false
LowStar.PrefixFreezableBuffer.fst
LowStar.PrefixFreezableBuffer.update_frozen_until_alloc
val update_frozen_until_alloc (b: mbuffer u8 prefix_freezable_preorder prefix_freezable_preorder) : Stack unit (requires fun h -> live h b /\ length b >= 4 /\ frozen_until (as_seq h b) == 0) (ensures fun h0 _ h1 -> live h1 b /\ modifies (loc_buffer b) h0 h1 /\ frozen_until (as_seq h1 b...
val update_frozen_until_alloc (b: mbuffer u8 prefix_freezable_preorder prefix_freezable_preorder) : Stack unit (requires fun h -> live h b /\ length b >= 4 /\ frozen_until (as_seq h b) == 0) (ensures fun h0 _ h1 -> live h1 b /\ modifies (loc_buffer b) h0 h1 /\ frozen_until (as_seq h1 b...
let update_frozen_until_alloc (b:mbuffer u8 prefix_freezable_preorder prefix_freezable_preorder) : Stack unit (requires fun h -> live h b /\ length b >= 4 /\ frozen_until (as_seq h b) == 0) (ensures fun h0 _ h1 -> live h1 b /\ modifies (loc_buffer b) h0 h1 /\ frozen_...
{ "file_name": "ulib/LowStar.PrefixFreezableBuffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 41, "end_line": 63, "start_col": 8, "start_line": 49 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Endianness.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ { "abbrev": true, "full_module": "LowStar.Endianness", "short_module": "LE" }, { "abbrev": true, "full_module": "FStar.Endianness", "short_module": "E" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "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
b: LowStar.Monotonic.Buffer.mbuffer LowStar.PrefixFreezableBuffer.u8 LowStar.PrefixFreezableBuffer.prefix_freezable_preorder LowStar.PrefixFreezableBuffer.prefix_freezable_preorder -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "LowStar.Monotonic.Buffer.mbuffer", "LowStar.PrefixFreezableBuffer.u8", "LowStar.PrefixFreezableBuffer.prefix_freezable_preorder", "LowStar.Monotonic.Buffer.witness_p", "LowStar.PrefixFreezableBuffer.frozen_until_at_least", "Prims.unit", "LowStar.Endianness.store32_le_i", "FStar.UInt32.__uint_to_t", ...
[]
false
true
false
false
false
let update_frozen_until_alloc (b: mbuffer u8 prefix_freezable_preorder prefix_freezable_preorder) : Stack unit (requires fun h -> live h b /\ length b >= 4 /\ frozen_until (as_seq h b) == 0) (ensures fun h0 _ h1 -> live h1 b /\ modifies (loc_buffer b) h0 h1 /\ frozen_until (as_seq h1 b...
LE.store32_le_i b 0ul 4ul; witness_p b (frozen_until_at_least 4)
false
LowStar.PrefixFreezableBuffer.fst
LowStar.PrefixFreezableBuffer.gcmalloc
val gcmalloc (r:HS.rid) (len:u32) : ST (b:lbuffer len{frameOf b == r /\ recallable b}) (requires fun _ -> malloc_pre r len) (ensures alloc_post_mem_common)
val gcmalloc (r:HS.rid) (len:u32) : ST (b:lbuffer len{frameOf b == r /\ recallable b}) (requires fun _ -> malloc_pre r len) (ensures alloc_post_mem_common)
let gcmalloc r len = let h0 = ST.get () in let b = mgcmalloc #_ #prefix_freezable_preorder r 0uy (U32.add len 4ul) in let h = ST.get () in E.le_to_n_zeros (Seq.slice (as_seq h b) 0 4); assert (fresh_loc (loc_buffer b) h0 h); //TODO: necessary for firing modifies_remove_new_locs lemma? update_frozen_unti...
{ "file_name": "ulib/LowStar.PrefixFreezableBuffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 3, "end_line": 74, "start_col": 0, "start_line": 65 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Endianness.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ { "abbrev": true, "full_module": "LowStar.Endianness", "short_module": "LE" }, { "abbrev": true, "full_module": "FStar.Endianness", "short_module": "E" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "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
r: FStar.Monotonic.HyperHeap.rid -> len: LowStar.PrefixFreezableBuffer.u32 -> FStar.HyperStack.ST.ST (b: LowStar.PrefixFreezableBuffer.lbuffer len {LowStar.Monotonic.Buffer.frameOf b == r /\ LowStar.Monotonic.Buffer.recallable b})
FStar.HyperStack.ST.ST
[]
[]
[ "FStar.Monotonic.HyperHeap.rid", "LowStar.PrefixFreezableBuffer.u32", "LowStar.PrefixFreezableBuffer.lbuffer", "Prims.l_and", "Prims.eq2", "LowStar.Monotonic.Buffer.frameOf", "LowStar.PrefixFreezableBuffer.u8", "LowStar.PrefixFreezableBuffer.prefix_freezable_preorder", "LowStar.Monotonic.Buffer.reca...
[]
false
true
false
false
false
let gcmalloc r len =
let h0 = ST.get () in let b = mgcmalloc #_ #prefix_freezable_preorder r 0uy (U32.add len 4ul) in let h = ST.get () in E.le_to_n_zeros (Seq.slice (as_seq h b) 0 4); assert (fresh_loc (loc_buffer b) h0 h); update_frozen_until_alloc b; b
false
LowStar.PrefixFreezableBuffer.fst
LowStar.PrefixFreezableBuffer.upd
val upd (b:buffer) (i:u32) (v:u8) : Stack unit (requires fun h -> live h b /\ U32.v i < length b /\ U32.v i >= frozen_until (as_seq h b)) (ensures fun h0 _ h1 -> (not (g_is_null b)) /\ modifies (loc_buffer b) h0 h1 /\ live h1 b /\ frozen_until (as_seq h0 b) == frozen_u...
val upd (b:buffer) (i:u32) (v:u8) : Stack unit (requires fun h -> live h b /\ U32.v i < length b /\ U32.v i >= frozen_until (as_seq h b)) (ensures fun h0 _ h1 -> (not (g_is_null b)) /\ modifies (loc_buffer b) h0 h1 /\ live h1 b /\ frozen_until (as_seq h0 b) == frozen_u...
let upd b i v = recall_p b (frozen_until_at_least 4); upd b i v
{ "file_name": "ulib/LowStar.PrefixFreezableBuffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 11, "end_line": 100, "start_col": 0, "start_line": 98 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Endianness.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ { "abbrev": true, "full_module": "LowStar.Endianness", "short_module": "LE" }, { "abbrev": true, "full_module": "FStar.Endianness", "short_module": "E" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "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
b: LowStar.PrefixFreezableBuffer.buffer -> i: LowStar.PrefixFreezableBuffer.u32 -> v: LowStar.PrefixFreezableBuffer.u8 -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "LowStar.PrefixFreezableBuffer.buffer", "LowStar.PrefixFreezableBuffer.u32", "LowStar.PrefixFreezableBuffer.u8", "LowStar.Monotonic.Buffer.upd", "LowStar.PrefixFreezableBuffer.prefix_freezable_preorder", "Prims.unit", "LowStar.Monotonic.Buffer.recall_p", "LowStar.PrefixFreezableBuffer.frozen_until_at_...
[]
false
true
false
false
false
let upd b i v =
recall_p b (frozen_until_at_least 4); upd b i v
false
LowStar.PrefixFreezableBuffer.fst
LowStar.PrefixFreezableBuffer.alloca
val alloca (len:u32) : StackInline (lbuffer len) (requires fun _ -> alloca_pre len) (ensures fun h0 b h1 -> alloc_post_mem_common h0 b h1 /\ frameOf b == HS.get_tip h0)
val alloca (len:u32) : StackInline (lbuffer len) (requires fun _ -> alloca_pre len) (ensures fun h0 b h1 -> alloc_post_mem_common h0 b h1 /\ frameOf b == HS.get_tip h0)
let alloca len = let h0 = ST.get () in let b = malloca #_ #prefix_freezable_preorder 0uy (U32.add len 4ul) in let h = ST.get () in E.le_to_n_zeros (Seq.slice (as_seq h b) 0 4); assert (fresh_loc (loc_buffer b) h0 h); //TODO: necessary for firing modifies_remove_new_locs lemma? update_frozen_until_alloc ...
{ "file_name": "ulib/LowStar.PrefixFreezableBuffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 3, "end_line": 96, "start_col": 0, "start_line": 87 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Endianness.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ { "abbrev": true, "full_module": "LowStar.Endianness", "short_module": "LE" }, { "abbrev": true, "full_module": "FStar.Endianness", "short_module": "E" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "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
len: LowStar.PrefixFreezableBuffer.u32 -> FStar.HyperStack.ST.StackInline (LowStar.PrefixFreezableBuffer.lbuffer len)
FStar.HyperStack.ST.StackInline
[]
[]
[ "LowStar.PrefixFreezableBuffer.u32", "LowStar.PrefixFreezableBuffer.lbuffer", "Prims.unit", "LowStar.PrefixFreezableBuffer.update_frozen_until_alloc", "Prims._assert", "LowStar.Monotonic.Buffer.fresh_loc", "LowStar.Monotonic.Buffer.loc_buffer", "LowStar.PrefixFreezableBuffer.u8", "LowStar.PrefixFree...
[]
false
true
false
false
false
let alloca len =
let h0 = ST.get () in let b = malloca #_ #prefix_freezable_preorder 0uy (U32.add len 4ul) in let h = ST.get () in E.le_to_n_zeros (Seq.slice (as_seq h b) 0 4); assert (fresh_loc (loc_buffer b) h0 h); update_frozen_until_alloc b; b
false
LowStar.PrefixFreezableBuffer.fst
LowStar.PrefixFreezableBuffer.le_pre_post_index
val le_pre_post_index (s1 s2: Seq.seq u8) : Lemma (ensures (Seq.length s1 == Seq.length s2 /\ Seq.length s1 >= 4 /\ Seq.equal (Seq.slice s1 0 0) (Seq.slice s2 0 0) /\ Seq.equal (Seq.slice s1 4 (Seq.length s1)) (Seq.slice s2 4 (Seq.length s2))) ==> (forall (i: nat). {:pattern (Seq.ind...
val le_pre_post_index (s1 s2: Seq.seq u8) : Lemma (ensures (Seq.length s1 == Seq.length s2 /\ Seq.length s1 >= 4 /\ Seq.equal (Seq.slice s1 0 0) (Seq.slice s2 0 0) /\ Seq.equal (Seq.slice s1 4 (Seq.length s1)) (Seq.slice s2 4 (Seq.length s2))) ==> (forall (i: nat). {:pattern (Seq.ind...
let le_pre_post_index (s1 s2:Seq.seq u8) : Lemma (ensures (Seq.length s1 == Seq.length s2 /\ Seq.length s1 >= 4 /\ Seq.equal (Seq.slice s1 0 0) (Seq.slice s2 0 0) /\ Seq.equal (Seq.slice s1 4 (Seq.length s1)) (Seq.slice s2 4 (Seq.length s2))) ==> (forall (i:nat...
{ "file_name": "ulib/LowStar.PrefixFreezableBuffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 77, "end_line": 125, "start_col": 0, "start_line": 108 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Endianness.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ { "abbrev": true, "full_module": "LowStar.Endianness", "short_module": "LE" }, { "abbrev": true, "full_module": "FStar.Endianness", "short_module": "E" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "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
s1: FStar.Seq.Base.seq LowStar.PrefixFreezableBuffer.u8 -> s2: FStar.Seq.Base.seq LowStar.PrefixFreezableBuffer.u8 -> FStar.Pervasives.Lemma (ensures FStar.Seq.Base.length s1 == FStar.Seq.Base.length s2 /\ FStar.Seq.Base.length s1 >= 4 /\ FStar.Seq.Base.equal (FStar.Seq.Base.slice s1 0 0) (FS...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.Seq.Base.seq", "LowStar.PrefixFreezableBuffer.u8", "Prims._assert", "Prims.l_Forall", "Prims.l_imp", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "FStar.Seq.Base.length", "Prims.nat", "Prims.l_and", "Prims.op_LessThan", "Prims.eq2", "FStar.Seq.Base.index", "FStar.Seq.Base.slice", "...
[]
false
false
true
false
false
let le_pre_post_index (s1 s2: Seq.seq u8) : Lemma (ensures (Seq.length s1 == Seq.length s2 /\ Seq.length s1 >= 4 /\ Seq.equal (Seq.slice s1 0 0) (Seq.slice s2 0 0) /\ Seq.equal (Seq.slice s1 4 (Seq.length s1)) (Seq.slice s2 4 (Seq.length s2))) ==> (forall (i: nat). {:pattern (Seq.ind...
assert (forall (s: Seq.seq u8). Seq.length s >= 4 ==> (forall (i: nat). (i >= 4 /\ i < Seq.length s) ==> Seq.index s i == Seq.index (Seq.slice s 4 (Seq.length s)) (i - 4)))
false
LowStar.PrefixFreezableBuffer.fst
LowStar.PrefixFreezableBuffer.malloc
val malloc (r:HS.rid) (len:u32) : ST (b:lbuffer len{frameOf b == r /\ freeable b}) (requires fun _ -> malloc_pre r len) (ensures alloc_post_mem_common)
val malloc (r:HS.rid) (len:u32) : ST (b:lbuffer len{frameOf b == r /\ freeable b}) (requires fun _ -> malloc_pre r len) (ensures alloc_post_mem_common)
let malloc r len = let h0 = ST.get () in let b = mmalloc #_ #prefix_freezable_preorder r 0uy (U32.add len 4ul) in let h = ST.get () in E.le_to_n_zeros (Seq.slice (as_seq h b) 0 4); assert (fresh_loc (loc_buffer b) h0 h); //TODO: necessary for firing modifies_remove_new_locs lemma? update_frozen_until_al...
{ "file_name": "ulib/LowStar.PrefixFreezableBuffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 3, "end_line": 85, "start_col": 0, "start_line": 76 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Endianness.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ { "abbrev": true, "full_module": "LowStar.Endianness", "short_module": "LE" }, { "abbrev": true, "full_module": "FStar.Endianness", "short_module": "E" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "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
r: FStar.Monotonic.HyperHeap.rid -> len: LowStar.PrefixFreezableBuffer.u32 -> FStar.HyperStack.ST.ST (b: LowStar.PrefixFreezableBuffer.lbuffer len {LowStar.Monotonic.Buffer.frameOf b == r /\ LowStar.Monotonic.Buffer.freeable b})
FStar.HyperStack.ST.ST
[]
[]
[ "FStar.Monotonic.HyperHeap.rid", "LowStar.PrefixFreezableBuffer.u32", "LowStar.PrefixFreezableBuffer.lbuffer", "Prims.l_and", "Prims.eq2", "LowStar.Monotonic.Buffer.frameOf", "LowStar.PrefixFreezableBuffer.u8", "LowStar.PrefixFreezableBuffer.prefix_freezable_preorder", "LowStar.Monotonic.Buffer.free...
[]
false
true
false
false
false
let malloc r len =
let h0 = ST.get () in let b = mmalloc #_ #prefix_freezable_preorder r 0uy (U32.add len 4ul) in let h = ST.get () in E.le_to_n_zeros (Seq.slice (as_seq h b) 0 4); assert (fresh_loc (loc_buffer b) h0 h); update_frozen_until_alloc b; b
false
LowStar.PrefixFreezableBuffer.fst
LowStar.PrefixFreezableBuffer.freeze
val freeze (b:buffer) (i:u32) : Stack unit (requires fun h -> live h b /\ U32.v i <= length b /\ U32.v i >= frozen_until (as_seq h b)) (ensures fun h0 _ h1 -> (not (g_is_null b)) /\ modifies (loc_buffer b) h0 h1 /\ live h1 b /\ frozen_until (as_seq h1 b) == U32.v...
val freeze (b:buffer) (i:u32) : Stack unit (requires fun h -> live h b /\ U32.v i <= length b /\ U32.v i >= frozen_until (as_seq h b)) (ensures fun h0 _ h1 -> (not (g_is_null b)) /\ modifies (loc_buffer b) h0 h1 /\ live h1 b /\ frozen_until (as_seq h1 b) == U32.v...
let freeze b i = recall_p b (frozen_until_at_least 4); FStar.Classical.forall_intro_2 le_pre_post_index; LE.store32_le_i b 0ul i; witness_p b (frozen_until_at_least (U32.v i))
{ "file_name": "ulib/LowStar.PrefixFreezableBuffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 47, "end_line": 131, "start_col": 0, "start_line": 127 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Endianness.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ { "abbrev": true, "full_module": "LowStar.Endianness", "short_module": "LE" }, { "abbrev": true, "full_module": "FStar.Endianness", "short_module": "E" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "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
b: LowStar.PrefixFreezableBuffer.buffer -> i: LowStar.PrefixFreezableBuffer.u32 -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "LowStar.PrefixFreezableBuffer.buffer", "LowStar.PrefixFreezableBuffer.u32", "LowStar.Monotonic.Buffer.witness_p", "LowStar.PrefixFreezableBuffer.u8", "LowStar.PrefixFreezableBuffer.prefix_freezable_preorder", "LowStar.PrefixFreezableBuffer.frozen_until_at_least", "FStar.UInt32.v", "Prims.unit", "Lo...
[]
false
true
false
false
false
let freeze b i =
recall_p b (frozen_until_at_least 4); FStar.Classical.forall_intro_2 le_pre_post_index; LE.store32_le_i b 0ul i; witness_p b (frozen_until_at_least (U32.v i))
false
LowStar.PrefixFreezableBuffer.fst
LowStar.PrefixFreezableBuffer.witness_slice
val witness_slice (b:buffer) (i j:u32) (snap:G.erased (Seq.seq u8)) : Stack unit (requires fun h -> slice_is i j snap (as_seq h b)) (ensures fun h0 _ h1 -> h0 == h1 /\ b `witnessed` slice_is i j snap)
val witness_slice (b:buffer) (i j:u32) (snap:G.erased (Seq.seq u8)) : Stack unit (requires fun h -> slice_is i j snap (as_seq h b)) (ensures fun h0 _ h1 -> h0 == h1 /\ b `witnessed` slice_is i j snap)
let witness_slice b i j snap = witness_p b (slice_is i j snap)
{ "file_name": "ulib/LowStar.PrefixFreezableBuffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 33, "end_line": 136, "start_col": 0, "start_line": 135 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Endianness.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ { "abbrev": true, "full_module": "LowStar.Endianness", "short_module": "LE" }, { "abbrev": true, "full_module": "FStar.Endianness", "short_module": "E" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "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
b: LowStar.PrefixFreezableBuffer.buffer -> i: LowStar.PrefixFreezableBuffer.u32 -> j: LowStar.PrefixFreezableBuffer.u32 -> snap: FStar.Ghost.erased (FStar.Seq.Base.seq LowStar.PrefixFreezableBuffer.u8) -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "LowStar.PrefixFreezableBuffer.buffer", "LowStar.PrefixFreezableBuffer.u32", "FStar.Ghost.erased", "FStar.Seq.Base.seq", "LowStar.PrefixFreezableBuffer.u8", "LowStar.Monotonic.Buffer.witness_p", "LowStar.PrefixFreezableBuffer.prefix_freezable_preorder", "LowStar.PrefixFreezableBuffer.slice_is", "Pri...
[]
false
true
false
false
false
let witness_slice b i j snap =
witness_p b (slice_is i j snap)
false
LowStar.PrefixFreezableBuffer.fst
LowStar.PrefixFreezableBuffer.frozen_until_st
val frozen_until_st (b:buffer) : Stack u32 (requires fun h -> live h b) (ensures fun h0 r h1 -> h0 == h1 /\ U32.v r == frozen_until (as_seq h1 b))
val frozen_until_st (b:buffer) : Stack u32 (requires fun h -> live h b) (ensures fun h0 r h1 -> h0 == h1 /\ U32.v r == frozen_until (as_seq h1 b))
let frozen_until_st b = LE.load32_le_i b 0ul
{ "file_name": "ulib/LowStar.PrefixFreezableBuffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 44, "end_line": 133, "start_col": 0, "start_line": 133 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Endianness.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ { "abbrev": true, "full_module": "LowStar.Endianness", "short_module": "LE" }, { "abbrev": true, "full_module": "FStar.Endianness", "short_module": "E" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "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
b: LowStar.PrefixFreezableBuffer.buffer -> FStar.HyperStack.ST.Stack LowStar.PrefixFreezableBuffer.u32
FStar.HyperStack.ST.Stack
[]
[]
[ "LowStar.PrefixFreezableBuffer.buffer", "LowStar.Endianness.load32_le_i", "LowStar.PrefixFreezableBuffer.prefix_freezable_preorder", "FStar.UInt32.__uint_to_t", "LowStar.Endianness.u32", "LowStar.PrefixFreezableBuffer.u32" ]
[]
false
true
false
false
false
let frozen_until_st b =
LE.load32_le_i b 0ul
false
LowStar.PrefixFreezableBuffer.fst
LowStar.PrefixFreezableBuffer.witness_frozen_until
val witness_frozen_until (b:buffer) (n:nat) : Stack unit (requires fun h -> frozen_until_at_least n (as_seq h b)) (ensures fun h0 _ h1 -> h0 == h1 /\ b `witnessed` frozen_until_at_least n)
val witness_frozen_until (b:buffer) (n:nat) : Stack unit (requires fun h -> frozen_until_at_least n (as_seq h b)) (ensures fun h0 _ h1 -> h0 == h1 /\ b `witnessed` frozen_until_at_least n)
let witness_frozen_until b n = witness_p b (frozen_until_at_least n)
{ "file_name": "ulib/LowStar.PrefixFreezableBuffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 39, "end_line": 142, "start_col": 0, "start_line": 141 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Endianness.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ { "abbrev": true, "full_module": "LowStar.Endianness", "short_module": "LE" }, { "abbrev": true, "full_module": "FStar.Endianness", "short_module": "E" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "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
b: LowStar.PrefixFreezableBuffer.buffer -> n: Prims.nat -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "LowStar.PrefixFreezableBuffer.buffer", "Prims.nat", "LowStar.Monotonic.Buffer.witness_p", "LowStar.PrefixFreezableBuffer.u8", "LowStar.PrefixFreezableBuffer.prefix_freezable_preorder", "LowStar.PrefixFreezableBuffer.frozen_until_at_least", "Prims.unit" ]
[]
false
true
false
false
false
let witness_frozen_until b n =
witness_p b (frozen_until_at_least n)
false
LowStar.PrefixFreezableBuffer.fst
LowStar.PrefixFreezableBuffer.recall_frozen_until_default
val recall_frozen_until_default (b:buffer) : Stack unit (requires fun h -> recallable b \/ live h b) (ensures fun h0 _ h1 -> h0 == h1 /\ frozen_until_at_least 4 (as_seq h1 b))
val recall_frozen_until_default (b:buffer) : Stack unit (requires fun h -> recallable b \/ live h b) (ensures fun h0 _ h1 -> h0 == h1 /\ frozen_until_at_least 4 (as_seq h1 b))
let recall_frozen_until_default b = recall_p b (frozen_until_at_least 4)
{ "file_name": "ulib/LowStar.PrefixFreezableBuffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 38, "end_line": 148, "start_col": 0, "start_line": 147 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Endianness.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ { "abbrev": true, "full_module": "LowStar.Endianness", "short_module": "LE" }, { "abbrev": true, "full_module": "FStar.Endianness", "short_module": "E" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "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
b: LowStar.PrefixFreezableBuffer.buffer -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "LowStar.PrefixFreezableBuffer.buffer", "LowStar.Monotonic.Buffer.recall_p", "LowStar.PrefixFreezableBuffer.u8", "LowStar.PrefixFreezableBuffer.prefix_freezable_preorder", "LowStar.PrefixFreezableBuffer.frozen_until_at_least", "Prims.unit" ]
[]
false
true
false
false
false
let recall_frozen_until_default b =
recall_p b (frozen_until_at_least 4)
false
LowStar.PrefixFreezableBuffer.fst
LowStar.PrefixFreezableBuffer.recall_slice
val recall_slice (b:buffer) (i j:u32) (snap:G.erased (Seq.seq u8)) : Stack unit (requires fun h -> (recallable b \/ live h b) /\ b `witnessed` slice_is i j snap) (ensures fun h0 _ h1 -> h0 == h1 /\ slice_is i j snap (as_seq h1 b))
val recall_slice (b:buffer) (i j:u32) (snap:G.erased (Seq.seq u8)) : Stack unit (requires fun h -> (recallable b \/ live h b) /\ b `witnessed` slice_is i j snap) (ensures fun h0 _ h1 -> h0 == h1 /\ slice_is i j snap (as_seq h1 b))
let recall_slice b i j snap = recall_p b (slice_is i j snap)
{ "file_name": "ulib/LowStar.PrefixFreezableBuffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 32, "end_line": 139, "start_col": 0, "start_line": 138 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Endianness.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ { "abbrev": true, "full_module": "LowStar.Endianness", "short_module": "LE" }, { "abbrev": true, "full_module": "FStar.Endianness", "short_module": "E" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "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
b: LowStar.PrefixFreezableBuffer.buffer -> i: LowStar.PrefixFreezableBuffer.u32 -> j: LowStar.PrefixFreezableBuffer.u32 -> snap: FStar.Ghost.erased (FStar.Seq.Base.seq LowStar.PrefixFreezableBuffer.u8) -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "LowStar.PrefixFreezableBuffer.buffer", "LowStar.PrefixFreezableBuffer.u32", "FStar.Ghost.erased", "FStar.Seq.Base.seq", "LowStar.PrefixFreezableBuffer.u8", "LowStar.Monotonic.Buffer.recall_p", "LowStar.PrefixFreezableBuffer.prefix_freezable_preorder", "LowStar.PrefixFreezableBuffer.slice_is", "Prim...
[]
false
true
false
false
false
let recall_slice b i j snap =
recall_p b (slice_is i j snap)
false
LowStar.PrefixFreezableBuffer.fst
LowStar.PrefixFreezableBuffer.recall_frozen_until
val recall_frozen_until (b:buffer) (n:nat) : Stack unit (requires fun h -> (recallable b \/ live h b) /\ b `witnessed` frozen_until_at_least n) (ensures fun h0 _ h1 -> h0 == h1 /\ frozen_until_at_least n (as_seq h1 b))
val recall_frozen_until (b:buffer) (n:nat) : Stack unit (requires fun h -> (recallable b \/ live h b) /\ b `witnessed` frozen_until_at_least n) (ensures fun h0 _ h1 -> h0 == h1 /\ frozen_until_at_least n (as_seq h1 b))
let recall_frozen_until b n = recall_p b (frozen_until_at_least n)
{ "file_name": "ulib/LowStar.PrefixFreezableBuffer.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 38, "end_line": 145, "start_col": 0, "start_line": 144 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "LowStar.Endianness.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", ...
[ { "abbrev": true, "full_module": "LowStar.Endianness", "short_module": "LE" }, { "abbrev": true, "full_module": "FStar.Endianness", "short_module": "E" }, { "abbrev": true, "full_module": "FStar.UInt8", "short_module": "U8" }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "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
b: LowStar.PrefixFreezableBuffer.buffer -> n: Prims.nat -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "LowStar.PrefixFreezableBuffer.buffer", "Prims.nat", "LowStar.Monotonic.Buffer.recall_p", "LowStar.PrefixFreezableBuffer.u8", "LowStar.PrefixFreezableBuffer.prefix_freezable_preorder", "LowStar.PrefixFreezableBuffer.frozen_until_at_least", "Prims.unit" ]
[]
false
true
false
false
false
let recall_frozen_until b n =
recall_p b (frozen_until_at_least n)
false
LowParse.SLow.VLGen.fst
LowParse.SLow.VLGen.serialize32_bounded_vlgen_precond
val serialize32_bounded_vlgen_precond (min: nat) (max: nat{min <= max}) (sk k: parser_kind) : GTot bool
val serialize32_bounded_vlgen_precond (min: nat) (max: nat{min <= max}) (sk k: parser_kind) : GTot bool
let serialize32_bounded_vlgen_precond (min: nat) (max: nat { min <= max } ) (sk: parser_kind) (k: parser_kind) : GTot bool = match sk.parser_kind_high with | None -> false | Some kmax -> let max' = match k.parser_kind_high with | None -> max | Some km -> if km < max then km else max in ...
{ "file_name": "src/lowparse/LowParse.SLow.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 28, "end_line": 70, "start_col": 0, "start_line": 57 }
module LowParse.SLow.VLGen include LowParse.SLow.Combinators include LowParse.SLow.FLData include LowParse.Spec.VLGen module U32 = FStar.UInt32 module B32 = LowParse.Bytes32 inline_for_extraction let parse32_bounded_vlgen (vmin: der_length_t) (min: U32.t { U32.v min == vmin } ) (vmax: der_length_t) (max: U32....
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.SLow.FLData.fst.checked", "LowParse.SLow.Combinators.fst.checked", "LowParse.Bytes32.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Per...
[ { "abbrev": true, "full_module": "LowParse.Bytes32", "short_module": "B32" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": false, "full_module": "LowParse.Spec.VLGen", "short_module": null }, { "abbrev": false, "full_mo...
{ "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
min: Prims.nat -> max: Prims.nat{min <= max} -> sk: LowParse.Spec.Base.parser_kind -> k: LowParse.Spec.Base.parser_kind -> Prims.GTot Prims.bool
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_high", "Prims.op_LessThan", "Prims.op_Addition", "Prims.int", "Prims.bool" ]
[]
false
false
false
false
false
let serialize32_bounded_vlgen_precond (min: nat) (max: nat{min <= max}) (sk k: parser_kind) : GTot bool =
match sk.parser_kind_high with | None -> false | Some kmax -> let max' = match k.parser_kind_high with | None -> max | Some km -> if km < max then km else max in kmax + max' < 4294967296
false
LowParse.SLow.VLGen.fst
LowParse.SLow.VLGen.serialize32_vlgen
val serialize32_vlgen (min: nat) (max: nat{min <= max /\ max < 4294967296}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 min max)) (#ssk: serializer pk) (ssk32: serializer32 ssk {sk.parser_kind_subkind == Some ParserStrong}) (#k: parser_kind) (#t: Type) (#p: pa...
val serialize32_vlgen (min: nat) (max: nat{min <= max /\ max < 4294967296}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 min max)) (#ssk: serializer pk) (ssk32: serializer32 ssk {sk.parser_kind_subkind == Some ParserStrong}) (#k: parser_kind) (#t: Type) (#p: pa...
let serialize32_vlgen (min: nat) (max: nat { min <= max /\ max < 4294967296 } ) (#sk: parser_kind) (#pk: parser sk (bounded_int32 min max)) (#ssk: serializer pk) (ssk32: serializer32 ssk { sk.parser_kind_subkind == Some ParserStrong } ) (#k: parser_kind) (#t: Type) (#p: parser k t) (#s: serializer p...
{ "file_name": "src/lowparse/LowParse.SLow.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 6, "end_line": 114, "start_col": 0, "start_line": 95 }
module LowParse.SLow.VLGen include LowParse.SLow.Combinators include LowParse.SLow.FLData include LowParse.Spec.VLGen module U32 = FStar.UInt32 module B32 = LowParse.Bytes32 inline_for_extraction let parse32_bounded_vlgen (vmin: der_length_t) (min: U32.t { U32.v min == vmin } ) (vmax: der_length_t) (max: U32....
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.SLow.FLData.fst.checked", "LowParse.SLow.Combinators.fst.checked", "LowParse.Bytes32.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Per...
[ { "abbrev": true, "full_module": "LowParse.Bytes32", "short_module": "B32" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": false, "full_module": "LowParse.Spec.VLGen", "short_module": null }, { "abbrev": false, "full_mo...
{ "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
min: Prims.nat -> max: Prims.nat{min <= max /\ max < 4294967296} -> ssk32: LowParse.SLow.Base.serializer32 ssk { Mkparser_kind'?.parser_kind_subkind sk == FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong } -> s32: LowParse.SLow.Base.partial_serializer32 s ...
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Spec.Base.serializer", "LowParse.SLow.Base.serializer32", "Prims.eq2", "FStar.Pervasives....
[]
false
false
false
false
false
let serialize32_vlgen (min: nat) (max: nat{min <= max /\ max < 4294967296}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 min max)) (#ssk: serializer pk) (ssk32: serializer32 ssk {sk.parser_kind_subkind == Some ParserStrong}) (#k: parser_kind) (#t: Type) (#p: pa...
serialize32_synth' _ (synth_vlgen min max s) _ (serialize32_bounded_vlgen min max ssk32 s32) (synth_vlgen_recip min max s) ()
false
LowParse.SLow.VLGen.fst
LowParse.SLow.VLGen.parse32_vlgen
val parse32_vlgen (vmin: nat) (min: U32.t{U32.v min == vmin}) (vmax: nat) (max: U32.t{U32.v max == vmax /\ U32.v min <= U32.v max}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (U32.v min) (U32.v max))) (pk32: parser32 pk) (#k: parser_kind) (#t: Type) (#p...
val parse32_vlgen (vmin: nat) (min: U32.t{U32.v min == vmin}) (vmax: nat) (max: U32.t{U32.v max == vmax /\ U32.v min <= U32.v max}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (U32.v min) (U32.v max))) (pk32: parser32 pk) (#k: parser_kind) (#t: Type) (#p...
let parse32_vlgen (vmin: nat) (min: U32.t { U32.v min == vmin } ) (vmax: nat) (max: U32.t { U32.v max == vmax /\ U32.v min <= U32.v max } ) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (U32.v min) (U32.v max))) (pk32: parser32 pk) (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p...
{ "file_name": "src/lowparse/LowParse.SLow.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 6, "end_line": 55, "start_col": 0, "start_line": 37 }
module LowParse.SLow.VLGen include LowParse.SLow.Combinators include LowParse.SLow.FLData include LowParse.Spec.VLGen module U32 = FStar.UInt32 module B32 = LowParse.Bytes32 inline_for_extraction let parse32_bounded_vlgen (vmin: der_length_t) (min: U32.t { U32.v min == vmin } ) (vmax: der_length_t) (max: U32....
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.SLow.FLData.fst.checked", "LowParse.SLow.Combinators.fst.checked", "LowParse.Bytes32.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Per...
[ { "abbrev": true, "full_module": "LowParse.Bytes32", "short_module": "B32" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": false, "full_module": "LowParse.Spec.VLGen", "short_module": null }, { "abbrev": false, "full_mo...
{ "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
vmin: Prims.nat -> min: FStar.UInt32.t{FStar.UInt32.v min == vmin} -> vmax: Prims.nat -> max: FStar.UInt32.t{FStar.UInt32.v max == vmax /\ FStar.UInt32.v min <= FStar.UInt32.v max} -> pk32: LowParse.SLow.Base.parser32 pk -> s: LowParse.Spec.Base.serializer p {LowParse.Spec.VLGen.p...
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "FStar.UInt32.t", "Prims.eq2", "Prims.int", "Prims.l_or", "FStar.UInt.size", "FStar.UInt32.n", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "FStar.UInt32.v", "Prims.l_and", "Prims.op_LessThanOrEqual", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Sp...
[]
false
false
false
false
false
let parse32_vlgen (vmin: nat) (min: U32.t{U32.v min == vmin}) (vmax: nat) (max: U32.t{U32.v max == vmax /\ U32.v min <= U32.v max}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (U32.v min) (U32.v max))) (pk32: parser32 pk) (#k: parser_kind) (#t: Type) (#p...
parse32_synth' _ (synth_vlgen (U32.v min) (U32.v max) s) (parse32_bounded_vlgen vmin min vmax max pk32 s p32) ()
false
LowParse.SLow.VLGen.fst
LowParse.SLow.VLGen.size32_vlgen
val size32_vlgen (min: nat) (max: nat{min <= max /\ max < 4294967296}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 min max)) (#ssk: serializer pk) (ssk32: size32 ssk {sk.parser_kind_subkind == Some ParserStrong}) (#k: parser_kind) (#t: Type) (#p: parser k t) ...
val size32_vlgen (min: nat) (max: nat{min <= max /\ max < 4294967296}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 min max)) (#ssk: serializer pk) (ssk32: size32 ssk {sk.parser_kind_subkind == Some ParserStrong}) (#k: parser_kind) (#t: Type) (#p: parser k t) ...
let size32_vlgen (min: nat) (max: nat { min <= max /\ max < 4294967296 } ) (#sk: parser_kind) (#pk: parser sk (bounded_int32 min max)) (#ssk: serializer pk) (ssk32: size32 ssk { sk.parser_kind_subkind == Some ParserStrong } ) (#k: parser_kind) (#t: Type) (#p: parser k t) (#s: serializer p) (s32: s...
{ "file_name": "src/lowparse/LowParse.SLow.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 6, "end_line": 157, "start_col": 0, "start_line": 138 }
module LowParse.SLow.VLGen include LowParse.SLow.Combinators include LowParse.SLow.FLData include LowParse.Spec.VLGen module U32 = FStar.UInt32 module B32 = LowParse.Bytes32 inline_for_extraction let parse32_bounded_vlgen (vmin: der_length_t) (min: U32.t { U32.v min == vmin } ) (vmax: der_length_t) (max: U32....
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.SLow.FLData.fst.checked", "LowParse.SLow.Combinators.fst.checked", "LowParse.Bytes32.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Per...
[ { "abbrev": true, "full_module": "LowParse.Bytes32", "short_module": "B32" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": false, "full_module": "LowParse.Spec.VLGen", "short_module": null }, { "abbrev": false, "full_mo...
{ "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
min: Prims.nat -> max: Prims.nat{min <= max /\ max < 4294967296} -> ssk32: LowParse.SLow.Base.size32 ssk { Mkparser_kind'?.parser_kind_subkind sk == FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong } -> s32: LowParse.SLow.Base.size32 s { LowParse.Spec.V...
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Spec.Base.serializer", "LowParse.SLow.Base.size32", "Prims.eq2", "FStar.Pervasives.Native...
[]
false
false
false
false
false
let size32_vlgen (min: nat) (max: nat{min <= max /\ max < 4294967296}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 min max)) (#ssk: serializer pk) (ssk32: size32 ssk {sk.parser_kind_subkind == Some ParserStrong}) (#k: parser_kind) (#t: Type) (#p: parser k t) ...
size32_synth' _ (synth_vlgen min max s) _ (size32_bounded_vlgen min max ssk32 s32) (synth_vlgen_recip min max s) ()
false
LowParse.SLow.VLGen.fst
LowParse.SLow.VLGen.size32_bounded_vlgen
val size32_bounded_vlgen (min: nat) (max: nat{min <= max /\ max < 4294967296}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 min max)) (#ssk: serializer pk) (ssk32: size32 ssk {sk.parser_kind_subkind == Some ParserStrong}) (#k: parser_kind) (#t: Type) (#p: parse...
val size32_bounded_vlgen (min: nat) (max: nat{min <= max /\ max < 4294967296}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 min max)) (#ssk: serializer pk) (ssk32: size32 ssk {sk.parser_kind_subkind == Some ParserStrong}) (#k: parser_kind) (#t: Type) (#p: parse...
let size32_bounded_vlgen (min: nat) (max: nat { min <= max /\ max < 4294967296 } ) (#sk: parser_kind) (#pk: parser sk (bounded_int32 min max)) (#ssk: serializer pk) (ssk32: size32 ssk { sk.parser_kind_subkind == Some ParserStrong } ) (#k: parser_kind) (#t: Type) (#p: parser k t) (#s: serializer p) ...
{ "file_name": "src/lowparse/LowParse.SLow.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 87, "end_line": 135, "start_col": 0, "start_line": 117 }
module LowParse.SLow.VLGen include LowParse.SLow.Combinators include LowParse.SLow.FLData include LowParse.Spec.VLGen module U32 = FStar.UInt32 module B32 = LowParse.Bytes32 inline_for_extraction let parse32_bounded_vlgen (vmin: der_length_t) (min: U32.t { U32.v min == vmin } ) (vmax: der_length_t) (max: U32....
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.SLow.FLData.fst.checked", "LowParse.SLow.Combinators.fst.checked", "LowParse.Bytes32.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Per...
[ { "abbrev": true, "full_module": "LowParse.Bytes32", "short_module": "B32" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": false, "full_module": "LowParse.Spec.VLGen", "short_module": null }, { "abbrev": false, "full_mo...
{ "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
min: Prims.nat -> max: Prims.nat{min <= max /\ max < 4294967296} -> ssk32: LowParse.SLow.Base.size32 ssk { Mkparser_kind'?.parser_kind_subkind sk == FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong } -> s32: LowParse.SLow.Base.size32 s {LowParse.SLow.VL...
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Spec.Base.serializer", "LowParse.SLow.Base.size32", "Prims.eq2", "FStar.Pervasives.Native...
[]
false
false
false
false
false
let size32_bounded_vlgen (min: nat) (max: nat{min <= max /\ max < 4294967296}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 min max)) (#ssk: serializer pk) (ssk32: size32 ssk {sk.parser_kind_subkind == Some ParserStrong}) (#k: parser_kind) (#t: Type) (#p: parse...
fun (input: parse_bounded_vldata_strong_t min max s) -> (([@@ inline_let ]let _ = serialize_bounded_vlgen_unfold min max ssk s input in let sp = s32 input in (ssk32 sp) `U32.add` sp) <: (res: _{size32_postcond (serialize_bounded_vlgen min max ssk s) input res}))
false
LowParse.SLow.VLGen.fst
LowParse.SLow.VLGen.serialize32_bounded_vlgen
val serialize32_bounded_vlgen (min: nat) (max: nat{min <= max /\ max < 4294967296}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 min max)) (#ssk: serializer pk) (ssk32: serializer32 ssk {sk.parser_kind_subkind == Some ParserStrong}) (#k: parser_kind) (#t: Type) ...
val serialize32_bounded_vlgen (min: nat) (max: nat{min <= max /\ max < 4294967296}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 min max)) (#ssk: serializer pk) (ssk32: serializer32 ssk {sk.parser_kind_subkind == Some ParserStrong}) (#k: parser_kind) (#t: Type) ...
let serialize32_bounded_vlgen (min: nat) (max: nat { min <= max /\ max < 4294967296 } ) (#sk: parser_kind) (#pk: parser sk (bounded_int32 min max)) (#ssk: serializer pk) (ssk32: serializer32 ssk { sk.parser_kind_subkind == Some ParserStrong } ) (#k: parser_kind) (#t: Type) (#p: parser k t) (#s: seri...
{ "file_name": "src/lowparse/LowParse.SLow.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 92, "end_line": 92, "start_col": 0, "start_line": 73 }
module LowParse.SLow.VLGen include LowParse.SLow.Combinators include LowParse.SLow.FLData include LowParse.Spec.VLGen module U32 = FStar.UInt32 module B32 = LowParse.Bytes32 inline_for_extraction let parse32_bounded_vlgen (vmin: der_length_t) (min: U32.t { U32.v min == vmin } ) (vmax: der_length_t) (max: U32....
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.SLow.FLData.fst.checked", "LowParse.SLow.Combinators.fst.checked", "LowParse.Bytes32.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Per...
[ { "abbrev": true, "full_module": "LowParse.Bytes32", "short_module": "B32" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": false, "full_module": "LowParse.Spec.VLGen", "short_module": null }, { "abbrev": false, "full_mo...
{ "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
min: Prims.nat -> max: Prims.nat{min <= max /\ max < 4294967296} -> ssk32: LowParse.SLow.Base.serializer32 ssk { Mkparser_kind'?.parser_kind_subkind sk == FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong } -> s32: LowParse.SLow.Base.partial_serializer32 s ...
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.bounded_int32", "LowParse.Spec.Base.serializer", "LowParse.SLow.Base.serializer32", "Prims.eq2", "FStar.Pervasives....
[]
false
false
false
false
false
let serialize32_bounded_vlgen (min: nat) (max: nat{min <= max /\ max < 4294967296}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 min max)) (#ssk: serializer pk) (ssk32: serializer32 ssk {sk.parser_kind_subkind == Some ParserStrong}) (#k: parser_kind) (#t: Type) ...
fun (input: parse_bounded_vldata_strong_t min max s) -> (([@@ inline_let ]let _ = serialize_bounded_vlgen_unfold min max ssk s input in let sp = s32 input in let len = B32.len sp in (ssk32 len) `B32.append` sp) <: (res: _{serializer32_correct (serialize_bounded_vlgen min max ssk s) input res...
false
LowParse.SLow.VLGen.fst
LowParse.SLow.VLGen.parse32_bounded_vlgen
val parse32_bounded_vlgen (vmin: der_length_t) (min: U32.t{U32.v min == vmin}) (vmax: der_length_t) (max: U32.t{U32.v max == vmax /\ U32.v min <= U32.v max}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (U32.v min) (U32.v max))) (pk32: parser32 pk) (#k: parser_kind) ...
val parse32_bounded_vlgen (vmin: der_length_t) (min: U32.t{U32.v min == vmin}) (vmax: der_length_t) (max: U32.t{U32.v max == vmax /\ U32.v min <= U32.v max}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (U32.v min) (U32.v max))) (pk32: parser32 pk) (#k: parser_kind) ...
let parse32_bounded_vlgen (vmin: der_length_t) (min: U32.t { U32.v min == vmin } ) (vmax: der_length_t) (max: U32.t { U32.v max == vmax /\ U32.v min <= U32.v max } ) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (U32.v min) (U32.v max))) (pk32: parser32 pk) (#k: parser_kind) (#t: Type) (#p: pars...
{ "file_name": "src/lowparse/LowParse.SLow.VLGen.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 99, "end_line": 34, "start_col": 0, "start_line": 10 }
module LowParse.SLow.VLGen include LowParse.SLow.Combinators include LowParse.SLow.FLData include LowParse.Spec.VLGen module U32 = FStar.UInt32 module B32 = LowParse.Bytes32
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.VLGen.fst.checked", "LowParse.SLow.FLData.fst.checked", "LowParse.SLow.Combinators.fst.checked", "LowParse.Bytes32.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Per...
[ { "abbrev": true, "full_module": "LowParse.Bytes32", "short_module": "B32" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": false, "full_module": "LowParse.Spec.VLGen", "short_module": null }, { "abbrev": false, "full_mo...
{ "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
vmin: LowParse.Spec.DER.der_length_t -> min: FStar.UInt32.t{FStar.UInt32.v min == vmin} -> vmax: LowParse.Spec.DER.der_length_t -> max: FStar.UInt32.t{FStar.UInt32.v max == vmax /\ FStar.UInt32.v min <= FStar.UInt32.v max} -> pk32: LowParse.SLow.Base.parser32 pk -> s: LowParse.Spec.Base.seriali...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.DER.der_length_t", "FStar.UInt32.t", "Prims.eq2", "Prims.int", "Prims.l_or", "FStar.UInt.size", "FStar.UInt32.n", "Prims.l_and", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "Prims.op_LessThanOrEqual", "LowParse.Spec.DER.der_length_max", "FStar.UInt32.v", "LowParse.Spec.Base....
[]
false
false
false
false
false
let parse32_bounded_vlgen (vmin: der_length_t) (min: U32.t{U32.v min == vmin}) (vmax: der_length_t) (max: U32.t{U32.v max == vmax /\ U32.v min <= U32.v max}) (#sk: parser_kind) (#pk: parser sk (bounded_int32 (U32.v min) (U32.v max))) (pk32: parser32 pk) (#k: parser_kind) ...
fun (input: bytes32) -> (([@@ inline_let ]let _ = parse_bounded_vlgen_unfold_aux (U32.v min) (U32.v max) pk s (B32.reveal input) in match pk32 input with | None -> None | Some (sz, consumed) -> let input' = B32.slice input consumed (B32.len input) in match parse32_fldat...
false
OPLSS.fst
OPLSS.bytes
val bytes : Type0
let bytes = Seq.seq UInt8.t
{ "file_name": "examples/crypto/OPLSS.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 27, "end_line": 6, "start_col": 0, "start_line": 6 }
module OPLSS module UInt8 = FStar.UInt8 module HS = FStar.HyperStack module ST = FStar.HyperStack.ST
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "...
{ "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.Seq.Base.seq", "FStar.UInt8.t" ]
[]
false
false
false
true
true
let bytes =
Seq.seq UInt8.t
false
Steel.ST.HigherArray.fst
Steel.ST.HigherArray.memcpy0
val memcpy0 (#t:_) (#p0:perm) (a0 a1:array t) (#s0 #s1:Ghost.erased (Seq.seq t)) (l:US.t { US.v l == length a0 /\ length a0 == length a1 } ) : STT unit (pts_to a0 p0 s0 `star` pts_to a1 full_perm s1) (fun _ -> pts_to a0 p0 s0 `star` pts_to a1 full_perm s0)
val memcpy0 (#t:_) (#p0:perm) (a0 a1:array t) (#s0 #s1:Ghost.erased (Seq.seq t)) (l:US.t { US.v l == length a0 /\ length a0 == length a1 } ) : STT unit (pts_to a0 p0 s0 `star` pts_to a1 full_perm s1) (fun _ -> pts_to a0 p0 s0 `star` pts_to a1 full_perm s0)
let memcpy0 #t #p0 a0 a1 #e0 #e1 i = pts_to_length a0 _; pts_to_length a1 _; let inv (j:Steel.ST.Loops.nat_at_most i) : vprop = pts_to a0 p0 e0 `star` pts_to a1 full_perm (prefix_copied e0 e1 j) in assert (prefix_copied e0 e1 0 `Seq.equal` e1); rewrite (pts_to a1 full_per...
{ "file_name": "lib/steel/Steel.ST.HigherArray.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 13, "end_line": 646, "start_col": 0, "start_line": 607 }
(* Copyright 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.ST.PCMReference.fsti.checked", "Steel.ST.Loops.fsti.checked", "Steel.PCMMap.fst.checked", "Steel.PCMFrac.fst.checked", "Steel.Memory.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Rea...
[ { "abbrev": true, "full_module": "Steel.PCMMap", "short_module": "PM" }, { "abbrev": true, "full_module": "FStar.Map", "short_module": "M" }, { "abbrev": true, "full_module": "Steel.ST.PCMReference", "short_module": "R" }, { "abbrev": true, "full_module": "Ste...
{ "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
a0: Steel.ST.HigherArray.array t -> a1: Steel.ST.HigherArray.array t -> l: FStar.SizeT.t { FStar.SizeT.v l == Steel.ST.HigherArray.length a0 /\ Steel.ST.HigherArray.length a0 == Steel.ST.HigherArray.length a1 } -> Steel.ST.Effect.STT Prims.unit
Steel.ST.Effect.STT
[]
[]
[ "Steel.FractionalPermission.perm", "Steel.ST.HigherArray.array", "FStar.Ghost.erased", "FStar.Seq.Base.seq", "FStar.SizeT.t", "Prims.l_and", "Prims.eq2", "Prims.nat", "FStar.SizeT.v", "Steel.ST.HigherArray.length", "Steel.ST.Util.return", "Prims.unit", "FStar.Ghost.hide", "FStar.Set.set", ...
[]
false
true
false
false
false
let memcpy0 #t #p0 a0 a1 #e0 #e1 i =
pts_to_length a0 _; pts_to_length a1 _; let inv (j: Steel.ST.Loops.nat_at_most i) : vprop = (pts_to a0 p0 e0) `star` (pts_to a1 full_perm (prefix_copied e0 e1 j)) in assert ((prefix_copied e0 e1 0) `Seq.equal` e1); rewrite (pts_to a1 full_perm e1) (pts_to a1 full_perm (prefix_copied e0 e1 0)); rewrite ((pts_to a0 _ e...
false
OPLSS.fst
OPLSS.lbytes
val lbytes : l: Prims.nat -> Type0
let lbytes l = b:bytes{Seq.length b = l}
{ "file_name": "examples/crypto/OPLSS.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 40, "end_line": 7, "start_col": 0, "start_line": 7 }
module OPLSS module UInt8 = FStar.UInt8 module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module B = LowStar.Monotonic.Buffer
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: Prims.nat -> Type0
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "OPLSS.bytes", "Prims.b2t", "Prims.op_Equality", "FStar.Seq.Base.length", "FStar.UInt8.t" ]
[]
false
false
false
true
true
let lbytes l =
b: bytes{Seq.length b = l}
false
OPLSS.fst
OPLSS.auto_lemma_mem_snoc
val auto_lemma_mem_snoc : #a:eqtype -> s:Seq.seq a -> x:a -> y:a -> Lemma (ensures (mem y (snoc s x) <==> mem y s \/ x=y)) [SMTPat (mem y (snoc s x))]
val auto_lemma_mem_snoc : #a:eqtype -> s:Seq.seq a -> x:a -> y:a -> Lemma (ensures (mem y (snoc s x) <==> mem y s \/ x=y)) [SMTPat (mem y (snoc s x))]
let auto_lemma_mem_snoc #a s x y = Seq.lemma_mem_snoc s x
{ "file_name": "examples/crypto/OPLSS.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 57, "end_line": 24, "start_col": 0, "start_line": 24 }
module OPLSS module UInt8 = FStar.UInt8 module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module B = LowStar.Monotonic.Buffer let bytes = Seq.seq UInt8.t let lbytes l = b:bytes{Seq.length b = l} assume //demo scaffolding val random (l:nat) : EXT (lbytes l) assume //demo scaffolding val byte_of_int: n:nat{n...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, ...
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": true, "full_module": "LowStar.Monotonic.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "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
s: FStar.Seq.Base.seq a -> x: a -> y: a -> FStar.Pervasives.Lemma (ensures FStar.Seq.Properties.mem y (FStar.Seq.Properties.snoc s x) <==> FStar.Seq.Properties.mem y s \/ x = y) [SMTPat (FStar.Seq.Properties.mem y (FStar.Seq.Properties.snoc s x))]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "FStar.Seq.Base.seq", "FStar.Seq.Properties.lemma_mem_snoc", "Prims.unit" ]
[]
true
false
true
false
false
let auto_lemma_mem_snoc #a s x y =
Seq.lemma_mem_snoc s x
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.parse_bounded_integer
val parse_bounded_integer (i: integer_size) : Tot (parser (parse_bounded_integer_kind i) (bounded_integer i))
val parse_bounded_integer (i: integer_size) : Tot (parser (parse_bounded_integer_kind i) (bounded_integer i))
let parse_bounded_integer (i: integer_size) : Tot (parser (parse_bounded_integer_kind i) (bounded_integer i)) = decode_bounded_integer_injective i; make_total_constant_size_parser i (bounded_integer i) (decode_bounded_integer i)
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 82, "end_line": 64, "start_col": 0, "start_line": 60 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_modul...
{ "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: LowParse.Spec.BoundedInt.integer_size -> LowParse.Spec.Base.parser (LowParse.Spec.BoundedInt.parse_bounded_integer_kind i) (LowParse.Spec.BoundedInt.bounded_integer i)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "LowParse.Spec.Combinators.make_total_constant_size_parser", "LowParse.Spec.BoundedInt.bounded_integer", "LowParse.Spec.BoundedInt.decode_bounded_integer", "Prims.unit", "LowParse.Spec.BoundedInt.decode_bounded_integer_injective", "LowParse.Spec.Base.parser", "...
[]
false
false
false
false
false
let parse_bounded_integer (i: integer_size) : Tot (parser (parse_bounded_integer_kind i) (bounded_integer i)) =
decode_bounded_integer_injective i; make_total_constant_size_parser i (bounded_integer i) (decode_bounded_integer i)
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.parse_bounded_integer_le
val parse_bounded_integer_le (i: integer_size) : Tot (parser (parse_bounded_integer_kind i) (bounded_integer i))
val parse_bounded_integer_le (i: integer_size) : Tot (parser (parse_bounded_integer_kind i) (bounded_integer i))
let parse_bounded_integer_le i = bounded_integer_of_le_injective i; make_total_constant_size_parser i (bounded_integer i) (bounded_integer_of_le i)
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 81, "end_line": 143, "start_col": 0, "start_line": 140 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_modul...
{ "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: LowParse.Spec.BoundedInt.integer_size -> LowParse.Spec.Base.parser (LowParse.Spec.BoundedInt.parse_bounded_integer_kind i) (LowParse.Spec.BoundedInt.bounded_integer i)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "LowParse.Spec.Combinators.make_total_constant_size_parser", "LowParse.Spec.BoundedInt.bounded_integer", "LowParse.Spec.BoundedInt.bounded_integer_of_le", "Prims.unit", "LowParse.Spec.BoundedInt.bounded_integer_of_le_injective", "LowParse.Spec.Base.parser", "Lo...
[]
false
false
false
false
false
let parse_bounded_integer_le i =
bounded_integer_of_le_injective i; make_total_constant_size_parser i (bounded_integer i) (bounded_integer_of_le i)
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.synth_u16_le
val synth_u16_le (x: bounded_integer 2) : Tot U16.t
val synth_u16_le (x: bounded_integer 2) : Tot U16.t
let synth_u16_le (x: bounded_integer 2) : Tot U16.t = Cast.uint32_to_uint16 x
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 25, "end_line": 149, "start_col": 0, "start_line": 146 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_module": null }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: LowParse.Spec.BoundedInt.bounded_integer 2 -> FStar.UInt16.t
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.BoundedInt.bounded_integer", "FStar.Int.Cast.uint32_to_uint16", "FStar.UInt16.t" ]
[]
false
false
false
false
false
let synth_u16_le (x: bounded_integer 2) : Tot U16.t =
Cast.uint32_to_uint16 x
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.synth_u32_le
val synth_u32_le (x: bounded_integer 4) : Tot U32.t
val synth_u32_le (x: bounded_integer 4) : Tot U32.t
let synth_u32_le (x: bounded_integer 4) : Tot U32.t = x
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 3, "end_line": 159, "start_col": 0, "start_line": 156 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_module": null }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: LowParse.Spec.BoundedInt.bounded_integer 4 -> FStar.UInt32.t
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.BoundedInt.bounded_integer", "FStar.UInt32.t" ]
[]
false
false
false
false
false
let synth_u32_le (x: bounded_integer 4) : Tot U32.t =
x
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.serialize_bounded_integer
val serialize_bounded_integer (sz: integer_size) : Tot (serializer (parse_bounded_integer sz))
val serialize_bounded_integer (sz: integer_size) : Tot (serializer (parse_bounded_integer sz))
let serialize_bounded_integer sz : Tot (serializer (parse_bounded_integer sz)) = serialize_bounded_integer_correct sz; serialize_bounded_integer' sz
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 31, "end_line": 104, "start_col": 0, "start_line": 100 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_modul...
{ "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
sz: LowParse.Spec.BoundedInt.integer_size -> LowParse.Spec.Base.serializer (LowParse.Spec.BoundedInt.parse_bounded_integer sz)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "LowParse.Spec.BoundedInt.serialize_bounded_integer'", "Prims.unit", "LowParse.Spec.BoundedInt.serialize_bounded_integer_correct", "LowParse.Spec.Base.serializer", "LowParse.Spec.BoundedInt.parse_bounded_integer_kind", "LowParse.Spec.BoundedInt.bounded_integer", ...
[]
false
false
false
false
false
let serialize_bounded_integer sz : Tot (serializer (parse_bounded_integer sz)) =
serialize_bounded_integer_correct sz; serialize_bounded_integer' sz
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.bounded_integer_prop_equiv
val bounded_integer_prop_equiv (i: integer_size) (u: U32.t) : Lemma (bounded_integer_prop i u <==> U32.v u < pow2 (8 * i))
val bounded_integer_prop_equiv (i: integer_size) (u: U32.t) : Lemma (bounded_integer_prop i u <==> U32.v u < pow2 (8 * i))
let bounded_integer_prop_equiv (i: integer_size) (u: U32.t) : Lemma (bounded_integer_prop i u <==> U32.v u < pow2 (8 * i)) = assert_norm (pow2 8 == 256); assert_norm (pow2 16 == 65536); assert_norm (pow2 24 == 16777216); assert_norm (pow2 32 == 4294967296)
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 37, "end_line": 26, "start_col": 0, "start_line": 17 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_modul...
{ "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: LowParse.Spec.BoundedInt.integer_size -> u17: FStar.UInt32.t -> FStar.Pervasives.Lemma (ensures LowParse.Spec.BoundedInt.bounded_integer_prop i u17 <==> FStar.UInt32.v u17 < Prims.pow2 (8 * i))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "FStar.UInt32.t", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "Prims.pow2", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.l_iff", "LowParse.Spec.BoundedInt.bounded_integer_prop", "Prims.b2t", "Prims.op_LessThan", "FStar.UInt32.v...
[]
true
false
true
false
false
let bounded_integer_prop_equiv (i: integer_size) (u: U32.t) : Lemma (bounded_integer_prop i u <==> U32.v u < pow2 (8 * i)) =
assert_norm (pow2 8 == 256); assert_norm (pow2 16 == 65536); assert_norm (pow2 24 == 16777216); assert_norm (pow2 32 == 4294967296)
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.parse_u32_le
val parse_u32_le : parser parse_u32_kind U32.t
val parse_u32_le : parser parse_u32_kind U32.t
let parse_u32_le = parse_bounded_integer_le 4 `parse_synth` synth_u32_le
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 72, "end_line": 161, "start_col": 0, "start_line": 161 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_modul...
{ "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.parse_synth", "LowParse.Spec.BoundedInt.parse_bounded_integer_kind", "LowParse.Spec.BoundedInt.bounded_integer", "FStar.UInt32.t", "LowParse.Spec.BoundedInt.parse_bounded_integer_le", "LowParse.Spec.BoundedInt.synth_u32_le" ]
[]
false
false
false
true
false
let parse_u32_le =
(parse_bounded_integer_le 4) `parse_synth` synth_u32_le
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.decode_bounded_integer_injective
val decode_bounded_integer_injective (i: integer_size) : Lemma (make_total_constant_size_parser_precond i (bounded_integer i) (decode_bounded_integer i))
val decode_bounded_integer_injective (i: integer_size) : Lemma (make_total_constant_size_parser_precond i (bounded_integer i) (decode_bounded_integer i))
let decode_bounded_integer_injective (i: integer_size) : Lemma (make_total_constant_size_parser_precond i (bounded_integer i) (decode_bounded_integer i)) = Classical.forall_intro_2 (decode_bounded_integer_injective' i)
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 64, "end_line": 58, "start_col": 0, "start_line": 54 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_module": null }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: LowParse.Spec.BoundedInt.integer_size -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Combinators.make_total_constant_size_parser_precond i (LowParse.Spec.BoundedInt.bounded_integer i) (LowParse.Spec.BoundedInt.decode_bounded_integer i))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "FStar.Classical.forall_intro_2", "LowParse.Bytes.bytes", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "LowParse.Bytes.byte", "Prims.l_imp", "LowParse.Spec.BoundedInt.bounded_integer", "LowParse.Spec.BoundedInt.decode_bounded_integer", "FStar.Seq.Ba...
[]
false
false
true
false
false
let decode_bounded_integer_injective (i: integer_size) : Lemma (make_total_constant_size_parser_precond i (bounded_integer i) (decode_bounded_integer i)) =
Classical.forall_intro_2 (decode_bounded_integer_injective' i)
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.bounded_integer_of_le_injective
val bounded_integer_of_le_injective (i: integer_size) : Lemma (make_total_constant_size_parser_precond i (bounded_integer i) (bounded_integer_of_le i))
val bounded_integer_of_le_injective (i: integer_size) : Lemma (make_total_constant_size_parser_precond i (bounded_integer i) (bounded_integer_of_le i))
let bounded_integer_of_le_injective (i: integer_size) : Lemma (make_total_constant_size_parser_precond i (bounded_integer i) (bounded_integer_of_le i)) = Classical.forall_intro_2 (bounded_integer_of_le_injective' i)
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 63, "end_line": 138, "start_col": 0, "start_line": 134 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_module": null }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: LowParse.Spec.BoundedInt.integer_size -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Combinators.make_total_constant_size_parser_precond i (LowParse.Spec.BoundedInt.bounded_integer i) (LowParse.Spec.BoundedInt.bounded_integer_of_le i))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "FStar.Classical.forall_intro_2", "LowParse.Bytes.bytes", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "LowParse.Bytes.byte", "Prims.l_imp", "LowParse.Spec.BoundedInt.bounded_integer", "LowParse.Spec.BoundedInt.bounded_integer_of_le", "FStar.Seq.Bas...
[]
false
false
true
false
false
let bounded_integer_of_le_injective (i: integer_size) : Lemma (make_total_constant_size_parser_precond i (bounded_integer i) (bounded_integer_of_le i)) =
Classical.forall_intro_2 (bounded_integer_of_le_injective' i)
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.serialize_u16_le
val serialize_u16_le : serializer parse_u16_le
val serialize_u16_le : serializer parse_u16_le
let serialize_u16_le : serializer parse_u16_le = serialize_synth _ synth_u16_le (serialize_bounded_integer_le 2) synth_u16_le_recip ()
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 6, "end_line": 209, "start_col": 0, "start_line": 203 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_modul...
{ "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.BoundedInt.parse_u16_le
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Combinators.serialize_synth", "LowParse.Spec.BoundedInt.parse_bounded_integer_kind", "LowParse.Spec.BoundedInt.bounded_integer", "FStar.UInt16.t", "LowParse.Spec.BoundedInt.parse_bounded_integer_le", "LowParse.Spec.BoundedInt.synth_u16_le", "LowParse.Spec.BoundedInt.serialize_bounded_inte...
[]
false
false
false
true
false
let serialize_u16_le:serializer parse_u16_le =
serialize_synth _ synth_u16_le (serialize_bounded_integer_le 2) synth_u16_le_recip ()
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.parse_u16_le
val parse_u16_le : parser parse_u16_kind U16.t
val parse_u16_le : parser parse_u16_kind U16.t
let parse_u16_le = parse_bounded_integer_le 2 `parse_synth` synth_u16_le
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 72, "end_line": 153, "start_col": 0, "start_line": 153 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_modul...
{ "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.parse_synth", "LowParse.Spec.BoundedInt.parse_bounded_integer_kind", "LowParse.Spec.BoundedInt.bounded_integer", "FStar.UInt16.t", "LowParse.Spec.BoundedInt.parse_bounded_integer_le", "LowParse.Spec.BoundedInt.synth_u16_le" ]
[]
false
false
false
true
false
let parse_u16_le =
(parse_bounded_integer_le 2) `parse_synth` synth_u16_le
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.serialize_bounded_integer_le
val serialize_bounded_integer_le (sz: integer_size) : Tot (serializer (parse_bounded_integer_le sz))
val serialize_bounded_integer_le (sz: integer_size) : Tot (serializer (parse_bounded_integer_le sz))
let serialize_bounded_integer_le sz = serialize_bounded_integer_le_correct sz; serialize_bounded_integer_le' sz
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 34, "end_line": 193, "start_col": 0, "start_line": 190 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_modul...
{ "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
sz: LowParse.Spec.BoundedInt.integer_size -> LowParse.Spec.Base.serializer (LowParse.Spec.BoundedInt.parse_bounded_integer_le sz)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "LowParse.Spec.BoundedInt.serialize_bounded_integer_le'", "Prims.unit", "LowParse.Spec.BoundedInt.serialize_bounded_integer_le_correct", "LowParse.Spec.Base.serializer", "LowParse.Spec.BoundedInt.parse_bounded_integer_kind", "LowParse.Spec.BoundedInt.bounded_inte...
[]
false
false
false
false
false
let serialize_bounded_integer_le sz =
serialize_bounded_integer_le_correct sz; serialize_bounded_integer_le' sz
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.parse_bounded_int32
val parse_bounded_int32 (min: nat) (max: nat { 0 < max /\ min <= max /\ max < 4294967296 }) : Tot (parser (parse_bounded_int32_kind max) (bounded_int32 min max))
val parse_bounded_int32 (min: nat) (max: nat { 0 < max /\ min <= max /\ max < 4294967296 }) : Tot (parser (parse_bounded_int32_kind max) (bounded_int32 min max))
let parse_bounded_int32 min max = let sz = log256' max in (parse_bounded_integer sz `parse_filter` in_bounds min max) `parse_synth` (fun x -> (x <: bounded_int32 min max))
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 115, "end_line": 228, "start_col": 0, "start_line": 225 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_modul...
{ "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
min: Prims.nat -> max: Prims.nat{0 < max /\ min <= max /\ max < 4294967296} -> LowParse.Spec.Base.parser (LowParse.Spec.BoundedInt.parse_bounded_int32_kind max) (LowParse.Spec.BoundedInt.bounded_int32 min max)
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThan", "Prims.op_LessThanOrEqual", "LowParse.Spec.Combinators.parse_synth", "LowParse.Spec.Combinators.parse_filter_kind", "LowParse.Spec.BoundedInt.parse_bounded_integer_kind", "LowParse.Spec.Combinators.parse_filter_refine", "LowParse.Spec.B...
[]
false
false
false
false
false
let parse_bounded_int32 min max =
let sz = log256' max in ((parse_bounded_integer sz) `parse_filter` (in_bounds min max)) `parse_synth` (fun x -> (x <: bounded_int32 min max))
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.synth_u16_le_recip
val synth_u16_le_recip (x: U16.t) : Tot (bounded_integer 2)
val synth_u16_le_recip (x: U16.t) : Tot (bounded_integer 2)
let synth_u16_le_recip (x: U16.t) : Tot (bounded_integer 2) = Cast.uint16_to_uint32 x
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 25, "end_line": 199, "start_col": 0, "start_line": 196 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_module": null }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.UInt16.t -> LowParse.Spec.BoundedInt.bounded_integer 2
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt16.t", "FStar.Int.Cast.uint16_to_uint32", "LowParse.Spec.BoundedInt.bounded_integer" ]
[]
false
false
false
false
false
let synth_u16_le_recip (x: U16.t) : Tot (bounded_integer 2) =
Cast.uint16_to_uint32 x
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.parse_bounded_int32_le
val parse_bounded_int32_le (min: nat) (max: nat { 0 < max /\ min <= max /\ max < 4294967296 }) : Tot (parser (parse_bounded_int32_kind max) (bounded_int32 min max))
val parse_bounded_int32_le (min: nat) (max: nat { 0 < max /\ min <= max /\ max < 4294967296 }) : Tot (parser (parse_bounded_int32_kind max) (bounded_int32 min max))
let parse_bounded_int32_le min max = let sz = log256' max in (parse_bounded_integer_le sz `parse_filter` in_bounds min max) `parse_synth` (fun x -> (x <: bounded_int32 min max))
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 118, "end_line": 243, "start_col": 0, "start_line": 240 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_modul...
{ "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
min: Prims.nat -> max: Prims.nat{0 < max /\ min <= max /\ max < 4294967296} -> LowParse.Spec.Base.parser (LowParse.Spec.BoundedInt.parse_bounded_int32_kind max) (LowParse.Spec.BoundedInt.bounded_int32 min max)
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThan", "Prims.op_LessThanOrEqual", "LowParse.Spec.Combinators.parse_synth", "LowParse.Spec.Combinators.parse_filter_kind", "LowParse.Spec.BoundedInt.parse_bounded_integer_kind", "LowParse.Spec.Combinators.parse_filter_refine", "LowParse.Spec.B...
[]
false
false
false
false
false
let parse_bounded_int32_le min max =
let sz = log256' max in ((parse_bounded_integer_le sz) `parse_filter` (in_bounds min max)) `parse_synth` (fun x -> (x <: bounded_int32 min max))
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.parse_bounded_integer_spec
val parse_bounded_integer_spec (i: integer_size) (input: bytes) : Lemma (let res = parse (parse_bounded_integer i) input in if Seq.length input < i then res == None else match res with | None -> False | Some (y, consumed) -> U32.v y == E.be_to_n (Seq.slice input 0 i) /\ consumed == ...
val parse_bounded_integer_spec (i: integer_size) (input: bytes) : Lemma (let res = parse (parse_bounded_integer i) input in if Seq.length input < i then res == None else match res with | None -> False | Some (y, consumed) -> U32.v y == E.be_to_n (Seq.slice input 0 i) /\ consumed == ...
let parse_bounded_integer_spec i input = parser_kind_prop_equiv (parse_bounded_integer_kind i) (parse_bounded_integer i); M.pow2_le_compat 32 (8 `FStar.Mul.op_Star` i); match parse (parse_bounded_integer i) input with | None -> () | Some (y, consumed) -> let input' = Seq.slice input 0 i in E.lemma_be_...
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 62, "end_line": 74, "start_col": 0, "start_line": 66 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_modul...
{ "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: LowParse.Spec.BoundedInt.integer_size -> input: LowParse.Bytes.bytes -> FStar.Pervasives.Lemma (ensures (let res = LowParse.Spec.Base.parse (LowParse.Spec.BoundedInt.parse_bounded_integer i) input in (match FStar.Seq.Base.length input < i with | true -> res == FStar.Pe...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "LowParse.Bytes.bytes", "LowParse.Spec.Base.parse", "LowParse.Spec.BoundedInt.bounded_integer", "LowParse.Spec.BoundedInt.parse_bounded_integer", "LowParse.Spec.Base.consumed_length", "LowParse.Spec.Base.parse_strong_prefix", "LowParse.Spec.BoundedInt.parse_bou...
[]
false
false
true
false
false
let parse_bounded_integer_spec i input =
parser_kind_prop_equiv (parse_bounded_integer_kind i) (parse_bounded_integer i); M.pow2_le_compat 32 (8 `FStar.Mul.op_Star` i); match parse (parse_bounded_integer i) input with | None -> () | Some (y, consumed) -> let input' = Seq.slice input 0 i in E.lemma_be_to_n_is_bounded input'; parse_strong_prefix (parse_bo...
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.serialize_u32_le
val serialize_u32_le : serializer parse_u32_le
val serialize_u32_le : serializer parse_u32_le
let serialize_u32_le = serialize_synth _ synth_u32_le (serialize_bounded_integer_le 4) synth_u32_le_recip ()
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 6, "end_line": 223, "start_col": 0, "start_line": 217 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_modul...
{ "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.BoundedInt.parse_u32_le
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Combinators.serialize_synth", "LowParse.Spec.BoundedInt.parse_bounded_integer_kind", "LowParse.Spec.BoundedInt.bounded_integer", "FStar.UInt32.t", "LowParse.Spec.BoundedInt.parse_bounded_integer_le", "LowParse.Spec.BoundedInt.synth_u32_le", "LowParse.Spec.BoundedInt.serialize_bounded_inte...
[]
false
false
false
true
false
let serialize_u32_le =
serialize_synth _ synth_u32_le (serialize_bounded_integer_le 4) synth_u32_le_recip ()
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.serialize_bounded_int32
val serialize_bounded_int32 (min: nat) (max: nat { 0 < max /\ min <= max /\ max < 4294967296 }) : Tot (serializer (parse_bounded_int32 min max))
val serialize_bounded_int32 (min: nat) (max: nat { 0 < max /\ min <= max /\ max < 4294967296 }) : Tot (serializer (parse_bounded_int32 min max))
let serialize_bounded_int32 min max = let sz = log256' max in serialize_synth (parse_bounded_integer sz `parse_filter` in_bounds min max) (fun x -> (x <: bounded_int32 min max)) (serialize_filter (serialize_bounded_integer sz) (in_bounds min max)) (fun x -> x) ()
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 6, "end_line": 238, "start_col": 0, "start_line": 230 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_modul...
{ "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
min: Prims.nat -> max: Prims.nat{0 < max /\ min <= max /\ max < 4294967296} -> LowParse.Spec.Base.serializer (LowParse.Spec.BoundedInt.parse_bounded_int32 min max)
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThan", "Prims.op_LessThanOrEqual", "LowParse.Spec.Combinators.serialize_synth", "LowParse.Spec.Combinators.parse_filter_kind", "LowParse.Spec.BoundedInt.parse_bounded_integer_kind", "LowParse.Spec.Combinators.parse_filter_refine", "LowParse.Sp...
[]
false
false
false
false
false
let serialize_bounded_int32 min max =
let sz = log256' max in serialize_synth ((parse_bounded_integer sz) `parse_filter` (in_bounds min max)) (fun x -> (x <: bounded_int32 min max)) (serialize_filter (serialize_bounded_integer sz) (in_bounds min max)) (fun x -> x) ()
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.serialize_bounded_int32_le_fixed_size
val serialize_bounded_int32_le_fixed_size (min: nat) (max: nat { min <= max }) : Tot (serializer (parse_bounded_int32_le_fixed_size min max))
val serialize_bounded_int32_le_fixed_size (min: nat) (max: nat { min <= max }) : Tot (serializer (parse_bounded_int32_le_fixed_size min max))
let serialize_bounded_int32_le_fixed_size min max = serialize_filter serialize_u32_le (in_bounds min max)
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 55, "end_line": 261, "start_col": 0, "start_line": 259 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_modul...
{ "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
min: Prims.nat -> max: Prims.nat{min <= max} -> LowParse.Spec.Base.serializer (LowParse.Spec.BoundedInt.parse_bounded_int32_le_fixed_size min max)
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "LowParse.Spec.Combinators.serialize_filter", "LowParse.Spec.Int.parse_u32_kind", "FStar.UInt32.t", "LowParse.Spec.BoundedInt.parse_u32_le", "LowParse.Spec.BoundedInt.serialize_u32_le", "LowParse.Spec.BoundedInt.in_bounds", "LowParse.Spec.Base....
[]
false
false
false
false
false
let serialize_bounded_int32_le_fixed_size min max =
serialize_filter serialize_u32_le (in_bounds min max)
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.parse_bounded_int32_le_fixed_size
val parse_bounded_int32_le_fixed_size (min: nat) (max: nat { min <= max }) : Tot (parser parse_bounded_int32_fixed_size_kind (bounded_int32 min max))
val parse_bounded_int32_le_fixed_size (min: nat) (max: nat { min <= max }) : Tot (parser parse_bounded_int32_fixed_size_kind (bounded_int32 min max))
let parse_bounded_int32_le_fixed_size min max = parse_filter parse_u32_le (in_bounds min max)
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 47, "end_line": 257, "start_col": 0, "start_line": 255 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_modul...
{ "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
min: Prims.nat -> max: Prims.nat{min <= max} -> LowParse.Spec.Base.parser LowParse.Spec.BoundedInt.parse_bounded_int32_fixed_size_kind (LowParse.Spec.BoundedInt.bounded_int32 min max)
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "LowParse.Spec.Combinators.parse_filter", "LowParse.Spec.Int.parse_u32_kind", "FStar.UInt32.t", "LowParse.Spec.BoundedInt.parse_u32_le", "LowParse.Spec.BoundedInt.in_bounds", "LowParse.Spec.Base.parser", "LowParse.Spec.BoundedInt.parse_bounded_...
[]
false
false
false
false
false
let parse_bounded_int32_le_fixed_size min max =
parse_filter parse_u32_le (in_bounds min max)
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.serialize_bounded_int32_le
val serialize_bounded_int32_le (min: nat) (max: nat { 0 < max /\ min <= max /\ max < 4294967296 }) : Tot (serializer (parse_bounded_int32_le min max))
val serialize_bounded_int32_le (min: nat) (max: nat { 0 < max /\ min <= max /\ max < 4294967296 }) : Tot (serializer (parse_bounded_int32_le min max))
let serialize_bounded_int32_le min max = let sz = log256' max in serialize_synth (parse_bounded_integer_le sz `parse_filter` in_bounds min max) (fun x -> (x <: bounded_int32 min max)) (serialize_filter (serialize_bounded_integer_le sz) (in_bounds min max)) (fun x -> x) ()
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 6, "end_line": 253, "start_col": 0, "start_line": 245 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_module": "M" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_modul...
{ "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
min: Prims.nat -> max: Prims.nat{0 < max /\ min <= max /\ max < 4294967296} -> LowParse.Spec.Base.serializer (LowParse.Spec.BoundedInt.parse_bounded_int32_le min max)
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThan", "Prims.op_LessThanOrEqual", "LowParse.Spec.Combinators.serialize_synth", "LowParse.Spec.Combinators.parse_filter_kind", "LowParse.Spec.BoundedInt.parse_bounded_integer_kind", "LowParse.Spec.Combinators.parse_filter_refine", "LowParse.Sp...
[]
false
false
false
false
false
let serialize_bounded_int32_le min max =
let sz = log256' max in serialize_synth ((parse_bounded_integer_le sz) `parse_filter` (in_bounds min max)) (fun x -> (x <: bounded_int32 min max)) (serialize_filter (serialize_bounded_integer_le sz) (in_bounds min max)) (fun x -> x) ()
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.synth_u32_le_recip
val synth_u32_le_recip (x: U32.t) : Tot (bounded_integer 4)
val synth_u32_le_recip (x: U32.t) : Tot (bounded_integer 4)
let synth_u32_le_recip (x: U32.t) : Tot (bounded_integer 4) = x
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 3, "end_line": 215, "start_col": 0, "start_line": 212 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_module": null }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: FStar.UInt32.t -> LowParse.Spec.BoundedInt.bounded_integer 4
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt32.t", "LowParse.Spec.BoundedInt.bounded_integer" ]
[]
false
false
false
false
false
let synth_u32_le_recip (x: U32.t) : Tot (bounded_integer 4) =
x
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.decode_bounded_integer_injective'
val decode_bounded_integer_injective' (i: integer_size) (b1: bytes{Seq.length b1 == i}) (b2: bytes{Seq.length b2 == i}) : Lemma (decode_bounded_integer i b1 == decode_bounded_integer i b2 ==> Seq.equal b1 b2)
val decode_bounded_integer_injective' (i: integer_size) (b1: bytes{Seq.length b1 == i}) (b2: bytes{Seq.length b2 == i}) : Lemma (decode_bounded_integer i b1 == decode_bounded_integer i b2 ==> Seq.equal b1 b2)
let decode_bounded_integer_injective' (i: integer_size) (b1: bytes { Seq.length b1 == i } ) (b2: bytes { Seq.length b2 == i } ) : Lemma (decode_bounded_integer i b1 == decode_bounded_integer i b2 ==> Seq.equal b1 b2) = if decode_bounded_integer i b1 = decode_bounded_integer i b2 then begin E.lemma_be_to_n...
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 13, "end_line": 52, "start_col": 0, "start_line": 38 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_module": null }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: LowParse.Spec.BoundedInt.integer_size -> b1: LowParse.Bytes.bytes{FStar.Seq.Base.length b1 == i} -> b2: LowParse.Bytes.bytes{FStar.Seq.Base.length b2 == i} -> FStar.Pervasives.Lemma (ensures LowParse.Spec.BoundedInt.decode_bounded_integer i b1 == LowParse.Spec.BoundedInt.decode_bounded...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "LowParse.Bytes.bytes", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "LowParse.Bytes.byte", "Prims.op_Equality", "LowParse.Spec.BoundedInt.bounded_integer", "LowParse.Spec.BoundedInt.decode_bounded_integer", "FStar.Endianness.be_to_n_inj", "Prims.un...
[]
false
false
true
false
false
let decode_bounded_integer_injective' (i: integer_size) (b1: bytes{Seq.length b1 == i}) (b2: bytes{Seq.length b2 == i}) : Lemma (decode_bounded_integer i b1 == decode_bounded_integer i b2 ==> Seq.equal b1 b2) =
if decode_bounded_integer i b1 = decode_bounded_integer i 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...
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.decode_bounded_integer
val decode_bounded_integer (i: integer_size) (b: bytes{Seq.length b == i}) : GTot (bounded_integer i)
val decode_bounded_integer (i: integer_size) (b: bytes{Seq.length b == i}) : GTot (bounded_integer i)
let decode_bounded_integer (i: integer_size) (b: bytes { Seq.length b == i } ) : GTot (bounded_integer i) = E.lemma_be_to_n_is_bounded b; M.pow2_le_compat 32 (8 `FStar.Mul.op_Star` i); U32.uint_to_t (E.be_to_n b)
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 29, "end_line": 36, "start_col": 0, "start_line": 30 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_module": null }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: LowParse.Spec.BoundedInt.integer_size -> b: LowParse.Bytes.bytes{FStar.Seq.Base.length b == i} -> Prims.GTot (LowParse.Spec.BoundedInt.bounded_integer i)
Prims.GTot
[ "sometrivial" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "LowParse.Bytes.bytes", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "LowParse.Bytes.byte", "FStar.UInt32.uint_to_t", "FStar.Endianness.be_to_n", "Prims.unit", "FStar.Math.Lemmas.pow2_le_compat", "FStar.Mul.op_Star", "FStar.Endianness.lemma_be_to_...
[]
false
false
false
false
false
let decode_bounded_integer (i: integer_size) (b: bytes{Seq.length b == i}) : GTot (bounded_integer i) =
E.lemma_be_to_n_is_bounded b; M.pow2_le_compat 32 (8 `FStar.Mul.op_Star` i); U32.uint_to_t (E.be_to_n b)
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.serialize_bounded_integer'
val serialize_bounded_integer' (sz: integer_size) : Tot (bare_serializer (bounded_integer sz))
val serialize_bounded_integer' (sz: integer_size) : Tot (bare_serializer (bounded_integer sz))
let serialize_bounded_integer' (sz: integer_size) : Tot (bare_serializer (bounded_integer sz)) = (fun (x: bounded_integer sz) -> let res = E.n_to_be sz (U32.v x) in res )
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 3, "end_line": 82, "start_col": 0, "start_line": 76 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_module": null }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
sz: LowParse.Spec.BoundedInt.integer_size -> LowParse.Spec.Base.bare_serializer (LowParse.Spec.BoundedInt.bounded_integer sz)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "LowParse.Spec.BoundedInt.bounded_integer", "FStar.Endianness.bytes", "Prims.l_and", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "FStar.UInt8.t", "FStar.UInt32.v", "FStar.Endianness.be_to_n", "FStar.Endianness.n_to_be", "LowParse.Bytes.bytes", ...
[]
false
false
false
false
false
let serialize_bounded_integer' (sz: integer_size) : Tot (bare_serializer (bounded_integer sz)) =
(fun (x: bounded_integer sz) -> let res = E.n_to_be sz (U32.v x) in res)
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.bounded_integer_of_le
val bounded_integer_of_le (i: integer_size) (b: bytes{Seq.length b == i}) : GTot (bounded_integer i)
val bounded_integer_of_le (i: integer_size) (b: bytes{Seq.length b == i}) : GTot (bounded_integer i)
let bounded_integer_of_le (i: integer_size) (b: bytes { Seq.length b == i } ) : GTot (bounded_integer i) = E.lemma_le_to_n_is_bounded b; M.pow2_le_compat 32 (8 `FStar.Mul.op_Star` i); U32.uint_to_t (E.le_to_n b)
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 29, "end_line": 114, "start_col": 0, "start_line": 108 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_module": null }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: LowParse.Spec.BoundedInt.integer_size -> b: LowParse.Bytes.bytes{FStar.Seq.Base.length b == i} -> Prims.GTot (LowParse.Spec.BoundedInt.bounded_integer i)
Prims.GTot
[ "sometrivial" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "LowParse.Bytes.bytes", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "LowParse.Bytes.byte", "FStar.UInt32.uint_to_t", "FStar.Endianness.le_to_n", "Prims.unit", "FStar.Math.Lemmas.pow2_le_compat", "FStar.Mul.op_Star", "FStar.Endianness.lemma_le_to_...
[]
false
false
false
false
false
let bounded_integer_of_le (i: integer_size) (b: bytes{Seq.length b == i}) : GTot (bounded_integer i) =
E.lemma_le_to_n_is_bounded b; M.pow2_le_compat 32 (8 `FStar.Mul.op_Star` i); U32.uint_to_t (E.le_to_n b)
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.serialize_bounded_integer_le'
val serialize_bounded_integer_le' (sz: integer_size) : Tot (bare_serializer (bounded_integer sz))
val serialize_bounded_integer_le' (sz: integer_size) : Tot (bare_serializer (bounded_integer sz))
let serialize_bounded_integer_le' (sz: integer_size) : Tot (bare_serializer (bounded_integer sz)) = (fun (x: bounded_integer sz) -> E.n_to_le sz (U32.v x) )
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 3, "end_line": 168, "start_col": 0, "start_line": 163 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_module": null }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
sz: LowParse.Spec.BoundedInt.integer_size -> LowParse.Spec.Base.bare_serializer (LowParse.Spec.BoundedInt.bounded_integer sz)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "LowParse.Spec.BoundedInt.bounded_integer", "FStar.Endianness.n_to_le", "FStar.UInt32.v", "LowParse.Bytes.bytes", "LowParse.Spec.Base.bare_serializer" ]
[]
false
false
false
false
false
let serialize_bounded_integer_le' (sz: integer_size) : Tot (bare_serializer (bounded_integer sz)) =
(fun (x: bounded_integer sz) -> E.n_to_le sz (U32.v x))
false
Steel.ST.C.Types.Array.Base.fst
Steel.ST.C.Types.Array.Base.array_domain
val array_domain (n: Ghost.erased SZ.t) : Tot eqtype
val array_domain (n: Ghost.erased SZ.t) : Tot eqtype
let array_domain (n: Ghost.erased SZ.t) : Tot eqtype = (i: SZ.t { SZ.v i < SZ.v n })
{ "file_name": "lib/steel/c/Steel.ST.C.Types.Array.Base.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 31, "end_line": 8, "start_col": 0, "start_line": 5 }
module Steel.ST.C.Types.Array.Base module SZ = FStar.SizeT
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "Steel.ST.C.Types.Array.Base.fst" }
[ { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "SZ" }, { "abbrev": false, "full_module": "Steel.ST.C.Types.Array", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST.C.Types.Array", "short_module": null }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: FStar.Ghost.erased FStar.SizeT.t -> Prims.eqtype
Prims.Tot
[ "total" ]
[]
[ "FStar.Ghost.erased", "FStar.SizeT.t", "Prims.b2t", "Prims.op_LessThan", "FStar.SizeT.v", "FStar.Ghost.reveal", "Prims.eqtype" ]
[]
false
false
false
true
false
let array_domain (n: Ghost.erased SZ.t) : Tot eqtype =
(i: SZ.t{SZ.v i < SZ.v n})
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.bounded_integer_of_le_injective'
val bounded_integer_of_le_injective' (i: integer_size) (b1: bytes{Seq.length b1 == i}) (b2: bytes{Seq.length b2 == i}) : Lemma (bounded_integer_of_le i b1 == bounded_integer_of_le i b2 ==> Seq.equal b1 b2)
val bounded_integer_of_le_injective' (i: integer_size) (b1: bytes{Seq.length b1 == i}) (b2: bytes{Seq.length b2 == i}) : Lemma (bounded_integer_of_le i b1 == bounded_integer_of_le i b2 ==> Seq.equal b1 b2)
let bounded_integer_of_le_injective' (i: integer_size) (b1: bytes { Seq.length b1 == i } ) (b2: bytes { Seq.length b2 == i } ) : Lemma (bounded_integer_of_le i b1 == bounded_integer_of_le i b2 ==> Seq.equal b1 b2) = if bounded_integer_of_le i b1 = bounded_integer_of_le i b2 then begin E.lemma_le_to_n_is_b...
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 13, "end_line": 130, "start_col": 0, "start_line": 116 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_module": null }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: LowParse.Spec.BoundedInt.integer_size -> b1: LowParse.Bytes.bytes{FStar.Seq.Base.length b1 == i} -> b2: LowParse.Bytes.bytes{FStar.Seq.Base.length b2 == i} -> FStar.Pervasives.Lemma (ensures LowParse.Spec.BoundedInt.bounded_integer_of_le i b1 == LowParse.Spec.BoundedInt.bounded_integer...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "LowParse.Bytes.bytes", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "LowParse.Bytes.byte", "Prims.op_Equality", "LowParse.Spec.BoundedInt.bounded_integer", "LowParse.Spec.BoundedInt.bounded_integer_of_le", "FStar.Endianness.le_to_n_inj", "Prims.uni...
[]
false
false
true
false
false
let bounded_integer_of_le_injective' (i: integer_size) (b1: bytes{Seq.length b1 == i}) (b2: bytes{Seq.length b2 == i}) : Lemma (bounded_integer_of_le i b1 == bounded_integer_of_le i b2 ==> Seq.equal b1 b2) =
if bounded_integer_of_le i b1 = bounded_integer_of_le i b2 then (E.lemma_le_to_n_is_bounded b1; E.lemma_le_to_n_is_bounded b2; assert (U32.v (U32.uint_to_t (E.le_to_n b1)) == E.le_to_n b1); assert (U32.v (U32.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_t...
false
Hacl.Impl.Frodo.Params.fst
Hacl.Impl.Frodo.Params.params_nbar
val params_nbar : FStar.UInt32.t
let params_nbar = 8ul
{ "file_name": "code/frodo/Hacl.Impl.Frodo.Params.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 48, "start_col": 0, "start_line": 48 }
module Hacl.Impl.Frodo.Params open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix module S = Spec.Frodo.Params #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let params_n (a:S.frodo_alg) : x:size_t{v x == S.params_n ...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Params.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.SHA3.fst.checked", "Hacl.Impl.Matrix.fst.checked", "Hacl.Impl.Frodo.Gen.fst.checked", "FStar.UInt32.fsti.checked", "FStar.P...
[ { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.Matrix", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module":...
{ "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
FStar.UInt32.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt32.__uint_to_t" ]
[]
false
false
false
true
false
let params_nbar =
8ul
false
Hacl.Impl.Frodo.Params.fst
Hacl.Impl.Frodo.Params.bytes_seed_a
val bytes_seed_a : FStar.UInt32.t
let bytes_seed_a = 16ul
{ "file_name": "code/frodo/Hacl.Impl.Frodo.Params.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 23, "end_line": 51, "start_col": 0, "start_line": 51 }
module Hacl.Impl.Frodo.Params open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix module S = Spec.Frodo.Params #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let params_n (a:S.frodo_alg) : x:size_t{v x == S.params_n ...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Params.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.SHA3.fst.checked", "Hacl.Impl.Matrix.fst.checked", "Hacl.Impl.Frodo.Gen.fst.checked", "FStar.UInt32.fsti.checked", "FStar.P...
[ { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.Matrix", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module":...
{ "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
FStar.UInt32.t
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt32.__uint_to_t" ]
[]
false
false
false
true
false
let bytes_seed_a =
16ul
false
Hacl.Impl.Frodo.Params.fst
Hacl.Impl.Frodo.Params.bytes_pkhash
val bytes_pkhash : a: Spec.Frodo.Params.frodo_alg -> x: Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB {Lib.IntTypes.v x == Spec.Frodo.Params.crypto_bytes a}
let bytes_pkhash (a:S.frodo_alg) = crypto_bytes a
{ "file_name": "code/frodo/Hacl.Impl.Frodo.Params.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 55, "start_col": 0, "start_line": 54 }
module Hacl.Impl.Frodo.Params open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix module S = Spec.Frodo.Params #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let params_n (a:S.frodo_alg) : x:size_t{v x == S.params_n ...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Params.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.SHA3.fst.checked", "Hacl.Impl.Matrix.fst.checked", "Hacl.Impl.Frodo.Gen.fst.checked", "FStar.UInt32.fsti.checked", "FStar.P...
[ { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.Matrix", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> x: Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB {Lib.IntTypes.v x == Spec.Frodo.Params.crypto_bytes a}
Prims.Tot
[ "total" ]
[]
[ "Spec.Frodo.Params.frodo_alg", "Hacl.Impl.Frodo.Params.crypto_bytes", "Lib.IntTypes.int_t", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Prims.eq2", "Prims.int", "Prims.l_or", "Lib.IntTypes.range", "Prims.l_and", "Prims.b2t", "Prims.op_GreaterThan", "Prims.op_LessThanOrEqual", "Prims.op_Subtra...
[]
false
false
false
false
false
let bytes_pkhash (a: S.frodo_alg) =
crypto_bytes a
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.serialize_bounded_integer_correct
val serialize_bounded_integer_correct (sz: integer_size) : Lemma (serializer_correct (parse_bounded_integer sz) (serialize_bounded_integer' sz))
val serialize_bounded_integer_correct (sz: integer_size) : Lemma (serializer_correct (parse_bounded_integer sz) (serialize_bounded_integer' sz))
let serialize_bounded_integer_correct (sz: integer_size) : Lemma (serializer_correct (parse_bounded_integer sz) (serialize_bounded_integer' sz)) = let prf (x: bounded_integer sz) : Lemma ( let res = serialize_bounded_integer' sz x in Seq.length res == (sz <: nat) /\ parse (parse_bounded_...
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 28, "end_line": 98, "start_col": 0, "start_line": 84 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_module": null }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
sz: LowParse.Spec.BoundedInt.integer_size -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Base.serializer_correct (LowParse.Spec.BoundedInt.parse_bounded_integer sz) (LowParse.Spec.BoundedInt.serialize_bounded_integer' sz))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "FStar.Classical.forall_intro", "LowParse.Spec.BoundedInt.bounded_integer", "Prims.l_and", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "LowParse.Bytes.byte", "LowParse.Spec.BoundedInt.serialize_bounded_integer'", "FStar.Pervasives.Native.option", "...
[]
false
false
true
false
false
let serialize_bounded_integer_correct (sz: integer_size) : Lemma (serializer_correct (parse_bounded_integer sz) (serialize_bounded_integer' sz)) =
let prf (x: bounded_integer sz) : Lemma (let res = serialize_bounded_integer' sz x in Seq.length res == (sz <: nat) /\ parse (parse_bounded_integer sz) res == Some (x, (sz <: nat)) ) = () in Classical.forall_intro prf
false
Pulse.Checker.Prover.fst
Pulse.Checker.Prover.coerce_eq
val coerce_eq: #a: Type -> #b: Type -> x: a -> squash (a == b) -> y: b{y == x}
val coerce_eq: #a: Type -> #b: Type -> x: a -> squash (a == b) -> y: b{y == x}
let coerce_eq (#a #b:Type) (x:a) (_:squash (a == b)) : y:b{y == x} = x
{ "file_name": "lib/steel/pulse/Pulse.Checker.Prover.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 70, "end_line": 40, "start_col": 0, "start_line": 40 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Metatheory.fsti.checked", "Pulse.Typing.Combinators.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Readback.fsti.checked", "Pu...
[ { "abbrev": true, "full_module": "Pulse.Checker.Prover.IntroPure", "short_module": "IntroPure" }, { "abbrev": true, "full_module": "Pulse.Checker.Prover.IntroExists", "short_module": "IntroExists" }, { "abbrev": true, "full_module": "Pulse.Checker.Prover.Match", "short_mo...
{ "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 -> _: Prims.squash (a == b) -> y: b{y == x}
Prims.Tot
[ "total" ]
[]
[ "Prims.squash", "Prims.eq2" ]
[]
false
false
false
false
false
let coerce_eq (#a: Type) (#b: Type) (x: a) (_: squash (a == b)) : y: b{y == x} =
x
false
Hacl.Impl.Frodo.Params.fst
Hacl.Impl.Frodo.Params.publicmatrixbytes_len
val publicmatrixbytes_len : a: Spec.Frodo.Params.frodo_alg -> Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB
let publicmatrixbytes_len (a:S.frodo_alg) = params_logq a *! (params_n a *! params_nbar /. 8ul)
{ "file_name": "code/frodo/Hacl.Impl.Frodo.Params.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 53, "end_line": 63, "start_col": 0, "start_line": 62 }
module Hacl.Impl.Frodo.Params open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix module S = Spec.Frodo.Params #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let params_n (a:S.frodo_alg) : x:size_t{v x == S.params_n ...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Params.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.SHA3.fst.checked", "Hacl.Impl.Matrix.fst.checked", "Hacl.Impl.Frodo.Gen.fst.checked", "FStar.UInt32.fsti.checked", "FStar.P...
[ { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.Matrix", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB
Prims.Tot
[ "total" ]
[]
[ "Spec.Frodo.Params.frodo_alg", "Lib.IntTypes.op_Star_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Frodo.Params.params_logq", "Lib.IntTypes.op_Slash_Dot", "Hacl.Impl.Frodo.Params.params_n", "Hacl.Impl.Frodo.Params.params_nbar", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.int_t" ]
[]
false
false
false
true
false
let publicmatrixbytes_len (a: S.frodo_alg) =
params_logq a *! (params_n a *! params_nbar /. 8ul)
false
Pulse.Checker.Prover.fst
Pulse.Checker.Prover.collect_pures
val collect_pures (g: env) (l: list vprop) : pures: list vprop & rest: list vprop & vprop_equiv g (list_as_vprop l) (list_as_vprop (rest @ pures))
val collect_pures (g: env) (l: list vprop) : pures: list vprop & rest: list vprop & vprop_equiv g (list_as_vprop l) (list_as_vprop (rest @ pures))
let rec collect_pures (g:env) (l:list vprop) : pures:list vprop & rest:list vprop & vprop_equiv g (list_as_vprop l) (list_as_vprop (rest @ pures)) = match l with | [] -> (| [], [], VE_Refl _ _ |) | hd::tl -> let (| pures, rest, _ |) = collect_pures g tl in match hd.t with | Tm_Pure _ -> (...
{ "file_name": "lib/steel/pulse/Pulse.Checker.Prover.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 66, "end_line": 83, "start_col": 0, "start_line": 72 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Metatheory.fsti.checked", "Pulse.Typing.Combinators.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Readback.fsti.checked", "Pu...
[ { "abbrev": true, "full_module": "Pulse.Checker.Prover.IntroPure", "short_module": "IntroPure" }, { "abbrev": true, "full_module": "Pulse.Checker.Prover.IntroExists", "short_module": "IntroExists" }, { "abbrev": true, "full_module": "Pulse.Checker.Prover.Match", "short_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
g: Pulse.Typing.Env.env -> l: Prims.list Pulse.Syntax.Base.vprop -> FStar.Pervasives.dtuple3 (Prims.list Pulse.Syntax.Base.vprop) (fun _ -> Prims.list Pulse.Syntax.Base.vprop) (fun pures rest -> Pulse.Typing.vprop_equiv g (Pulse.Typing.Combinators.list_as_vprop l) (Pulse....
Prims.Tot
[ "total" ]
[]
[ "Pulse.Typing.Env.env", "Prims.list", "Pulse.Syntax.Base.vprop", "FStar.Pervasives.Mkdtuple3", "Pulse.Typing.vprop_equiv", "Pulse.Typing.Combinators.list_as_vprop", "FStar.List.Tot.Base.op_At", "Prims.Nil", "Pulse.Typing.VE_Refl", "Pulse.Syntax.Base.__proj__Mkterm__item__t", "Pulse.Syntax.Base.t...
[ "recursion" ]
false
false
false
false
false
let rec collect_pures (g: env) (l: list vprop) : pures: list vprop & rest: list vprop & vprop_equiv g (list_as_vprop l) (list_as_vprop (rest @ pures)) =
match l with | [] -> (| [], [], VE_Refl _ _ |) | hd :: tl -> let (| pures , rest , _ |) = collect_pures g tl in match hd.t with | Tm_Pure _ -> (| hd :: pures, rest, RU.magic #(vprop_equiv _ _ _) () |) | _ -> (| pures, hd :: rest, RU.magic #(vprop_equiv _ _ _) () |)
false
Hacl.Impl.Frodo.Params.fst
Hacl.Impl.Frodo.Params.is_supported
val is_supported : a: Spec.Frodo.Params.frodo_gen_a -> Prims.bool
let is_supported (a:S.frodo_gen_a) = match a with | S.SHAKE128 -> true | S.AES128 -> false
{ "file_name": "code/frodo/Hacl.Impl.Frodo.Params.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 114, "start_col": 0, "start_line": 111 }
module Hacl.Impl.Frodo.Params open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix module S = Spec.Frodo.Params #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let params_n (a:S.frodo_alg) : x:size_t{v x == S.params_n ...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Params.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.SHA3.fst.checked", "Hacl.Impl.Matrix.fst.checked", "Hacl.Impl.Frodo.Gen.fst.checked", "FStar.UInt32.fsti.checked", "FStar.P...
[ { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.Matrix", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_gen_a -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Spec.Frodo.Params.frodo_gen_a", "Prims.bool" ]
[]
false
false
false
true
false
let is_supported (a: S.frodo_gen_a) =
match a with | S.SHAKE128 -> true | S.AES128 -> false
false
Hacl.Impl.Frodo.Params.fst
Hacl.Impl.Frodo.Params.frodo_shake_st
val frodo_shake_st : a: Spec.Frodo.Params.frodo_alg -> Type0
let frodo_shake_st (a:S.frodo_alg) = inputByteLen:size_t -> input:lbuffer uint8 inputByteLen -> outputByteLen:size_t -> output:lbuffer uint8 outputByteLen -> Stack unit (requires fun h -> live h input /\ live h output /\ disjoint input output) (ensures fun h0 _ h1 -> modifies (loc output) h0 ...
{ "file_name": "code/frodo/Hacl.Impl.Frodo.Params.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 95, "end_line": 100, "start_col": 0, "start_line": 91 }
module Hacl.Impl.Frodo.Params open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix module S = Spec.Frodo.Params #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let params_n (a:S.frodo_alg) : x:size_t{v x == S.params_n ...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Params.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.SHA3.fst.checked", "Hacl.Impl.Matrix.fst.checked", "Hacl.Impl.Frodo.Gen.fst.checked", "FStar.UInt32.fsti.checked", "FStar.P...
[ { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.Matrix", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Frodo.Params.frodo_alg", "Lib.IntTypes.size_t", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "Prims.unit", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "Lib.Buffer.live", "Lib.Buffer.MUT", "Lib.Buffer.disjoint", "Lib.Buffer.modifies", "Lib.Buffer.loc", "Prims.eq2", "Lib.Sequence.l...
[]
false
false
false
true
true
let frodo_shake_st (a: S.frodo_alg) =
inputByteLen: size_t -> input: lbuffer uint8 inputByteLen -> outputByteLen: size_t -> output: lbuffer uint8 outputByteLen -> Stack unit (requires fun h -> live h input /\ live h output /\ disjoint input output) (ensures fun h0 _ h1 -> modifies (loc output) h0 h1 /\ ...
false
Pulse.Checker.Prover.fst
Pulse.Checker.Prover.collect_exists
val collect_exists (g: env) (l: list vprop) : exs: list vprop & rest: list vprop & vprop_equiv g (list_as_vprop l) (list_as_vprop (exs @ rest))
val collect_exists (g: env) (l: list vprop) : exs: list vprop & rest: list vprop & vprop_equiv g (list_as_vprop l) (list_as_vprop (exs @ rest))
let rec collect_exists (g:env) (l:list vprop) : exs:list vprop & rest:list vprop & vprop_equiv g (list_as_vprop l) (list_as_vprop (exs @ rest)) = match l with | [] -> (| [], [], VE_Refl _ _ |) | hd::tl -> let (| exs, rest, _ |) = collect_exists g tl in match hd.t with | Tm_ExistsSL _ _ _ ...
{ "file_name": "lib/steel/pulse/Pulse.Checker.Prover.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 64, "end_line": 70, "start_col": 0, "start_line": 58 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Metatheory.fsti.checked", "Pulse.Typing.Combinators.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Readback.fsti.checked", "Pu...
[ { "abbrev": true, "full_module": "Pulse.Checker.Prover.IntroPure", "short_module": "IntroPure" }, { "abbrev": true, "full_module": "Pulse.Checker.Prover.IntroExists", "short_module": "IntroExists" }, { "abbrev": true, "full_module": "Pulse.Checker.Prover.Match", "short_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
g: Pulse.Typing.Env.env -> l: Prims.list Pulse.Syntax.Base.vprop -> FStar.Pervasives.dtuple3 (Prims.list Pulse.Syntax.Base.vprop) (fun _ -> Prims.list Pulse.Syntax.Base.vprop) (fun exs rest -> Pulse.Typing.vprop_equiv g (Pulse.Typing.Combinators.list_as_vprop l) (Pulse.Ty...
Prims.Tot
[ "total" ]
[]
[ "Pulse.Typing.Env.env", "Prims.list", "Pulse.Syntax.Base.vprop", "FStar.Pervasives.Mkdtuple3", "Pulse.Typing.vprop_equiv", "Pulse.Typing.Combinators.list_as_vprop", "FStar.List.Tot.Base.op_At", "Prims.Nil", "Pulse.Typing.VE_Refl", "Pulse.Syntax.Base.__proj__Mkterm__item__t", "Pulse.Syntax.Base.u...
[ "recursion" ]
false
false
false
false
false
let rec collect_exists (g: env) (l: list vprop) : exs: list vprop & rest: list vprop & vprop_equiv g (list_as_vprop l) (list_as_vprop (exs @ rest)) =
match l with | [] -> (| [], [], VE_Refl _ _ |) | hd :: tl -> let (| exs , rest , _ |) = collect_exists g tl in match hd.t with | Tm_ExistsSL _ _ _ -> (| hd :: exs, rest, RU.magic #(vprop_equiv _ _ _) () |) | _ -> (| exs, hd :: rest, RU.magic #(vprop_equiv _ _ _) () |)
false
Hacl.Impl.Frodo.Params.fst
Hacl.Impl.Frodo.Params.params_logq
val params_logq (a: S.frodo_alg) : x: size_t{v x == S.params_logq a}
val params_logq (a: S.frodo_alg) : x: size_t{v x == S.params_logq a}
let params_logq (a:S.frodo_alg) : x:size_t{v x == S.params_logq a} = match a with | S.Frodo64 | S.Frodo640 -> 15ul | S.Frodo976 | S.Frodo1344 -> 16ul
{ "file_name": "code/frodo/Hacl.Impl.Frodo.Params.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 36, "end_line": 28, "start_col": 0, "start_line": 25 }
module Hacl.Impl.Frodo.Params open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix module S = Spec.Frodo.Params #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let params_n (a:S.frodo_alg) : x:size_t{v x == S.params_n ...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Params.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.SHA3.fst.checked", "Hacl.Impl.Matrix.fst.checked", "Hacl.Impl.Frodo.Gen.fst.checked", "FStar.UInt32.fsti.checked", "FStar.P...
[ { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.Matrix", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> x: Lib.IntTypes.size_t{Lib.IntTypes.v x == Spec.Frodo.Params.params_logq a}
Prims.Tot
[ "total" ]
[]
[ "Spec.Frodo.Params.frodo_alg", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.size_t", "Prims.eq2", "Prims.int", "Prims.l_or", "Lib.IntTypes.range", "Lib.IntTypes.U32", "Prims.l_and", "Prims.b2t", "Prims.op_GreaterThan", "Prims.op_LessThanOrEqual", "Lib.IntTypes.max_size_t", "Lib.IntTypes.v", ...
[]
false
false
false
false
false
let params_logq (a: S.frodo_alg) : x: size_t{v x == S.params_logq a} =
match a with | S.Frodo64 | S.Frodo640 -> 15ul | S.Frodo976 | S.Frodo1344 -> 16ul
false
Hacl.Impl.Frodo.Params.fst
Hacl.Impl.Frodo.Params.secretmatrixbytes_len
val secretmatrixbytes_len : a: Spec.Frodo.Params.frodo_alg -> Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB
let secretmatrixbytes_len (a:S.frodo_alg) = 2ul *! params_n a *! params_nbar
{ "file_name": "code/frodo/Hacl.Impl.Frodo.Params.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 34, "end_line": 67, "start_col": 0, "start_line": 66 }
module Hacl.Impl.Frodo.Params open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix module S = Spec.Frodo.Params #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let params_n (a:S.frodo_alg) : x:size_t{v x == S.params_n ...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Params.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.SHA3.fst.checked", "Hacl.Impl.Matrix.fst.checked", "Hacl.Impl.Frodo.Gen.fst.checked", "FStar.UInt32.fsti.checked", "FStar.P...
[ { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.Matrix", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB
Prims.Tot
[ "total" ]
[]
[ "Spec.Frodo.Params.frodo_alg", "Lib.IntTypes.op_Star_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "FStar.UInt32.__uint_to_t", "Hacl.Impl.Frodo.Params.params_n", "Hacl.Impl.Frodo.Params.params_nbar", "Lib.IntTypes.int_t" ]
[]
false
false
false
true
false
let secretmatrixbytes_len (a: S.frodo_alg) =
2ul *! params_n a *! params_nbar
false
Hacl.Impl.Frodo.Params.fst
Hacl.Impl.Frodo.Params.crypto_publickeybytes
val crypto_publickeybytes : a: Spec.Frodo.Params.frodo_alg -> Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB
let crypto_publickeybytes (a:S.frodo_alg) = bytes_seed_a +! publicmatrixbytes_len a
{ "file_name": "code/frodo/Hacl.Impl.Frodo.Params.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 41, "end_line": 79, "start_col": 0, "start_line": 78 }
module Hacl.Impl.Frodo.Params open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix module S = Spec.Frodo.Params #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let params_n (a:S.frodo_alg) : x:size_t{v x == S.params_n ...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Params.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.SHA3.fst.checked", "Hacl.Impl.Matrix.fst.checked", "Hacl.Impl.Frodo.Gen.fst.checked", "FStar.UInt32.fsti.checked", "FStar.P...
[ { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.Matrix", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB
Prims.Tot
[ "total" ]
[]
[ "Spec.Frodo.Params.frodo_alg", "Lib.IntTypes.op_Plus_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Frodo.Params.bytes_seed_a", "Hacl.Impl.Frodo.Params.publicmatrixbytes_len", "Lib.IntTypes.int_t" ]
[]
false
false
false
true
false
let crypto_publickeybytes (a: S.frodo_alg) =
bytes_seed_a +! publicmatrixbytes_len a
false
Hacl.Impl.Frodo.Params.fst
Hacl.Impl.Frodo.Params.crypto_ciphertextbytes
val crypto_ciphertextbytes : a: Spec.Frodo.Params.frodo_alg -> Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB
let crypto_ciphertextbytes (a:S.frodo_alg) = ct1bytes_len a +! ct2bytes_len a
{ "file_name": "code/frodo/Hacl.Impl.Frodo.Params.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 34, "end_line": 87, "start_col": 0, "start_line": 86 }
module Hacl.Impl.Frodo.Params open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix module S = Spec.Frodo.Params #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let params_n (a:S.frodo_alg) : x:size_t{v x == S.params_n ...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Params.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.SHA3.fst.checked", "Hacl.Impl.Matrix.fst.checked", "Hacl.Impl.Frodo.Gen.fst.checked", "FStar.UInt32.fsti.checked", "FStar.P...
[ { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.Matrix", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB
Prims.Tot
[ "total" ]
[]
[ "Spec.Frodo.Params.frodo_alg", "Lib.IntTypes.op_Plus_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Frodo.Params.ct1bytes_len", "Hacl.Impl.Frodo.Params.ct2bytes_len", "Lib.IntTypes.int_t" ]
[]
false
false
false
true
false
let crypto_ciphertextbytes (a: S.frodo_alg) =
ct1bytes_len a +! ct2bytes_len a
false
Hacl.Impl.Frodo.Params.fst
Hacl.Impl.Frodo.Params.ct1bytes_len
val ct1bytes_len : a: Spec.Frodo.Params.frodo_alg -> Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB
let ct1bytes_len (a:S.frodo_alg) = params_logq a *! (params_nbar *! params_n a /. 8ul)
{ "file_name": "code/frodo/Hacl.Impl.Frodo.Params.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 53, "end_line": 71, "start_col": 0, "start_line": 70 }
module Hacl.Impl.Frodo.Params open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix module S = Spec.Frodo.Params #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let params_n (a:S.frodo_alg) : x:size_t{v x == S.params_n ...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Params.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.SHA3.fst.checked", "Hacl.Impl.Matrix.fst.checked", "Hacl.Impl.Frodo.Gen.fst.checked", "FStar.UInt32.fsti.checked", "FStar.P...
[ { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.Matrix", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB
Prims.Tot
[ "total" ]
[]
[ "Spec.Frodo.Params.frodo_alg", "Lib.IntTypes.op_Star_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Frodo.Params.params_logq", "Lib.IntTypes.op_Slash_Dot", "Hacl.Impl.Frodo.Params.params_nbar", "Hacl.Impl.Frodo.Params.params_n", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.int_t" ]
[]
false
false
false
true
false
let ct1bytes_len (a: S.frodo_alg) =
params_logq a *! (params_nbar *! params_n a /. 8ul)
false
Pulse.Checker.Prover.fst
Pulse.Checker.Prover.elim_exists_and_pure
val elim_exists_and_pure (#g:env) (#ctxt:vprop) (ctxt_typing:tot_typing g ctxt tm_vprop) : T.Tac (g':env { env_extends g' g } & ctxt':term & tot_typing g' ctxt' tm_vprop & continuation_elaborator g ctxt g' ctxt')
val elim_exists_and_pure (#g:env) (#ctxt:vprop) (ctxt_typing:tot_typing g ctxt tm_vprop) : T.Tac (g':env { env_extends g' g } & ctxt':term & tot_typing g' ctxt' tm_vprop & continuation_elaborator g ctxt g' ctxt')
let elim_exists_and_pure (#g:env) (#ctxt:vprop) (ctxt_typing:tot_typing g ctxt tm_vprop) : T.Tac (g':env { env_extends g' g } & ctxt':term & tot_typing g' ctxt' tm_vprop & continuation_elaborator g ctxt g' ctxt') = let (| g1, ctxt1, d1, k1 |) = ElimExists.elim_exists ctxt_typin...
{ "file_name": "lib/steel/pulse/Pulse.Checker.Prover.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 41, "end_line": 51, "start_col": 0, "start_line": 42 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Metatheory.fsti.checked", "Pulse.Typing.Combinators.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Readback.fsti.checked", "Pu...
[ { "abbrev": true, "full_module": "Pulse.Checker.Prover.IntroPure", "short_module": "IntroPure" }, { "abbrev": true, "full_module": "Pulse.Checker.Prover.IntroExists", "short_module": "IntroExists" }, { "abbrev": true, "full_module": "Pulse.Checker.Prover.Match", "short_mo...
{ "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
ctxt_typing: Pulse.Typing.tot_typing g ctxt Pulse.Syntax.Base.tm_vprop -> FStar.Tactics.Effect.Tac (FStar.Pervasives.dtuple4 (g': Pulse.Typing.Env.env{Pulse.Typing.Env.env_extends g' g}) (fun _ -> Pulse.Syntax.Base.term) (fun g' ctxt' -> Pulse.Typing.tot_typing g' ctxt' Pulse.Syntax.Base.tm_vprop)...
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "Pulse.Syntax.Base.vprop", "Pulse.Typing.tot_typing", "Pulse.Syntax.Base.tm_vprop", "Pulse.Typing.Env.env_extends", "Pulse.Syntax.Base.term", "Pulse.Checker.Base.continuation_elaborator", "FStar.Pervasives.Mkdtuple4", "Pulse.Checker.Base.k_elab_trans", "FStar.Pervasives.dtu...
[]
false
true
false
false
false
let elim_exists_and_pure (#g: env) (#ctxt: vprop) (ctxt_typing: tot_typing g ctxt tm_vprop) : T.Tac (g': env{env_extends g' g} & ctxt': term & tot_typing g' ctxt' tm_vprop & continuation_elaborator g ctxt g' ctxt') =
let (| g1 , ctxt1 , d1 , k1 |) = ElimExists.elim_exists ctxt_typing in let (| g2 , ctxt2 , d2 , k2 |) = ElimPure.elim_pure d1 in (| g2, ctxt2, d2, k_elab_trans k1 k2 |)
false
Hacl.Impl.Frodo.Params.fst
Hacl.Impl.Frodo.Params.crypto_bytes
val crypto_bytes (a: S.frodo_alg) : x: size_t{v x == S.crypto_bytes a}
val crypto_bytes (a: S.frodo_alg) : x: size_t{v x == S.crypto_bytes a}
let crypto_bytes (a:S.frodo_alg) : x:size_t{v x == S.crypto_bytes a} = match a with | S.Frodo64 | S.Frodo640 -> 16ul | S.Frodo976 -> 24ul | S.Frodo1344 -> 32ul
{ "file_name": "code/frodo/Hacl.Impl.Frodo.Params.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 23, "end_line": 44, "start_col": 0, "start_line": 40 }
module Hacl.Impl.Frodo.Params open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix module S = Spec.Frodo.Params #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let params_n (a:S.frodo_alg) : x:size_t{v x == S.params_n ...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Params.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.SHA3.fst.checked", "Hacl.Impl.Matrix.fst.checked", "Hacl.Impl.Frodo.Gen.fst.checked", "FStar.UInt32.fsti.checked", "FStar.P...
[ { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.Matrix", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> x: Lib.IntTypes.size_t{Lib.IntTypes.v x == Spec.Frodo.Params.crypto_bytes a}
Prims.Tot
[ "total" ]
[]
[ "Spec.Frodo.Params.frodo_alg", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.size_t", "Prims.eq2", "Prims.int", "Prims.l_or", "Lib.IntTypes.range", "Lib.IntTypes.U32", "Prims.l_and", "Prims.b2t", "Prims.op_GreaterThan", "Prims.op_LessThanOrEqual", "Lib.IntTypes.max_size_t", "Lib.IntTypes.v", ...
[]
false
false
false
false
false
let crypto_bytes (a: S.frodo_alg) : x: size_t{v x == S.crypto_bytes a} =
match a with | S.Frodo64 | S.Frodo640 -> 16ul | S.Frodo976 -> 24ul | S.Frodo1344 -> 32ul
false
Hacl.Impl.Frodo.Params.fst
Hacl.Impl.Frodo.Params.ct2bytes_len
val ct2bytes_len : a: Spec.Frodo.Params.frodo_alg -> Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB
let ct2bytes_len (a:S.frodo_alg) = params_logq a *! (params_nbar *! params_nbar /. 8ul)
{ "file_name": "code/frodo/Hacl.Impl.Frodo.Params.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 54, "end_line": 75, "start_col": 0, "start_line": 74 }
module Hacl.Impl.Frodo.Params open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix module S = Spec.Frodo.Params #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let params_n (a:S.frodo_alg) : x:size_t{v x == S.params_n ...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Params.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.SHA3.fst.checked", "Hacl.Impl.Matrix.fst.checked", "Hacl.Impl.Frodo.Gen.fst.checked", "FStar.UInt32.fsti.checked", "FStar.P...
[ { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.Matrix", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB
Prims.Tot
[ "total" ]
[]
[ "Spec.Frodo.Params.frodo_alg", "Lib.IntTypes.op_Star_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Frodo.Params.params_logq", "Lib.IntTypes.op_Slash_Dot", "Hacl.Impl.Frodo.Params.params_nbar", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.int_t" ]
[]
false
false
false
true
false
let ct2bytes_len (a: S.frodo_alg) =
params_logq a *! (params_nbar *! params_nbar /. 8ul)
false
Hacl.Impl.Frodo.Params.fst
Hacl.Impl.Frodo.Params.bytes_mu
val bytes_mu (a: S.frodo_alg) : x: size_t{v x == S.bytes_mu a}
val bytes_mu (a: S.frodo_alg) : x: size_t{v x == S.bytes_mu a}
let bytes_mu (a:S.frodo_alg) : x:size_t{v x == S.bytes_mu a} = params_extracted_bits a *! params_nbar *! params_nbar /. 8ul
{ "file_name": "code/frodo/Hacl.Impl.Frodo.Params.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 62, "end_line": 59, "start_col": 0, "start_line": 58 }
module Hacl.Impl.Frodo.Params open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix module S = Spec.Frodo.Params #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let params_n (a:S.frodo_alg) : x:size_t{v x == S.params_n ...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Params.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.SHA3.fst.checked", "Hacl.Impl.Matrix.fst.checked", "Hacl.Impl.Frodo.Gen.fst.checked", "FStar.UInt32.fsti.checked", "FStar.P...
[ { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.Matrix", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> x: Lib.IntTypes.size_t{Lib.IntTypes.v x == Spec.Frodo.Params.bytes_mu a}
Prims.Tot
[ "total" ]
[]
[ "Spec.Frodo.Params.frodo_alg", "Lib.IntTypes.op_Slash_Dot", "Lib.IntTypes.U32", "Lib.IntTypes.op_Star_Bang", "Lib.IntTypes.PUB", "Hacl.Impl.Frodo.Params.params_extracted_bits", "Hacl.Impl.Frodo.Params.params_nbar", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.size_t", "Prims.eq2", "Prims.int", "P...
[]
false
false
false
false
false
let bytes_mu (a: S.frodo_alg) : x: size_t{v x == S.bytes_mu a} =
params_extracted_bits a *! params_nbar *! params_nbar /. 8ul
false
Hacl.Impl.Frodo.Params.fst
Hacl.Impl.Frodo.Params.params_extracted_bits
val params_extracted_bits (a: S.frodo_alg) : x: size_t{v x == S.params_extracted_bits a}
val params_extracted_bits (a: S.frodo_alg) : x: size_t{v x == S.params_extracted_bits a}
let params_extracted_bits (a:S.frodo_alg) : x:size_t{v x == S.params_extracted_bits a} = match a with | S.Frodo64 | S.Frodo640 -> 2ul | S.Frodo976 -> 3ul | S.Frodo1344 -> 4ul
{ "file_name": "code/frodo/Hacl.Impl.Frodo.Params.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 36, "start_col": 0, "start_line": 32 }
module Hacl.Impl.Frodo.Params open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix module S = Spec.Frodo.Params #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let params_n (a:S.frodo_alg) : x:size_t{v x == S.params_n ...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Params.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.SHA3.fst.checked", "Hacl.Impl.Matrix.fst.checked", "Hacl.Impl.Frodo.Gen.fst.checked", "FStar.UInt32.fsti.checked", "FStar.P...
[ { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.Matrix", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> x: Lib.IntTypes.size_t{Lib.IntTypes.v x == Spec.Frodo.Params.params_extracted_bits a}
Prims.Tot
[ "total" ]
[]
[ "Spec.Frodo.Params.frodo_alg", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.size_t", "Prims.eq2", "Prims.int", "Prims.l_or", "Lib.IntTypes.range", "Lib.IntTypes.U32", "Prims.l_and", "Prims.b2t", "Prims.op_GreaterThan", "Prims.op_LessThanOrEqual", "Lib.IntTypes.max_size_t", "Prims.op_LessThan"...
[]
false
false
false
false
false
let params_extracted_bits (a: S.frodo_alg) : x: size_t{v x == S.params_extracted_bits a} =
match a with | S.Frodo64 | S.Frodo640 -> 2ul | S.Frodo976 -> 3ul | S.Frodo1344 -> 4ul
false
Hacl.Impl.Frodo.Params.fst
Hacl.Impl.Frodo.Params.crypto_secretkeybytes
val crypto_secretkeybytes : a: Spec.Frodo.Params.frodo_alg -> Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB
let crypto_secretkeybytes (a:S.frodo_alg) = crypto_bytes a +! crypto_publickeybytes a +! secretmatrixbytes_len a +! bytes_pkhash a
{ "file_name": "code/frodo/Hacl.Impl.Frodo.Params.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 88, "end_line": 83, "start_col": 0, "start_line": 82 }
module Hacl.Impl.Frodo.Params open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix module S = Spec.Frodo.Params #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let params_n (a:S.frodo_alg) : x:size_t{v x == S.params_n ...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Params.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.SHA3.fst.checked", "Hacl.Impl.Matrix.fst.checked", "Hacl.Impl.Frodo.Gen.fst.checked", "FStar.UInt32.fsti.checked", "FStar.P...
[ { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.Matrix", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB
Prims.Tot
[ "total" ]
[]
[ "Spec.Frodo.Params.frodo_alg", "Lib.IntTypes.op_Plus_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Frodo.Params.crypto_bytes", "Hacl.Impl.Frodo.Params.crypto_publickeybytes", "Hacl.Impl.Frodo.Params.secretmatrixbytes_len", "Hacl.Impl.Frodo.Params.bytes_pkhash", "Lib.IntTypes.int_t" ]
[]
false
false
false
true
false
let crypto_secretkeybytes (a: S.frodo_alg) =
crypto_bytes a +! crypto_publickeybytes a +! secretmatrixbytes_len a +! bytes_pkhash a
false
Hacl.Impl.Frodo.Params.fst
Hacl.Impl.Frodo.Params.frodo_shake
val frodo_shake (a: S.frodo_alg) : frodo_shake_st a
val frodo_shake (a: S.frodo_alg) : frodo_shake_st a
let frodo_shake (a:S.frodo_alg) : frodo_shake_st a = match a with | S.Frodo64 | S.Frodo640 -> Hacl.SHA3.shake128_hacl | S.Frodo976 | S.Frodo1344 -> Hacl.SHA3.shake256_hacl
{ "file_name": "code/frodo/Hacl.Impl.Frodo.Params.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 55, "end_line": 107, "start_col": 0, "start_line": 104 }
module Hacl.Impl.Frodo.Params open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix module S = Spec.Frodo.Params #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let params_n (a:S.frodo_alg) : x:size_t{v x == S.params_n ...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Params.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.SHA3.fst.checked", "Hacl.Impl.Matrix.fst.checked", "Hacl.Impl.Frodo.Gen.fst.checked", "FStar.UInt32.fsti.checked", "FStar.P...
[ { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.Matrix", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> Hacl.Impl.Frodo.Params.frodo_shake_st a
Prims.Tot
[ "total" ]
[]
[ "Spec.Frodo.Params.frodo_alg", "Hacl.SHA3.shake128_hacl", "Hacl.SHA3.shake256_hacl", "Hacl.Impl.Frodo.Params.frodo_shake_st" ]
[]
false
false
false
false
false
let frodo_shake (a: S.frodo_alg) : frodo_shake_st a =
match a with | S.Frodo64 | S.Frodo640 -> Hacl.SHA3.shake128_hacl | S.Frodo976 | S.Frodo1344 -> Hacl.SHA3.shake256_hacl
false
Pulse.Checker.Prover.fst
Pulse.Checker.Prover.get_q_at_hd
val get_q_at_hd (g: env) (l: list vprop) (q: vprop{L.existsb (fun v -> eq_tm v q) l}) : l': list vprop & vprop_equiv g (list_as_vprop l) (q * list_as_vprop l')
val get_q_at_hd (g: env) (l: list vprop) (q: vprop{L.existsb (fun v -> eq_tm v q) l}) : l': list vprop & vprop_equiv g (list_as_vprop l) (q * list_as_vprop l')
let rec get_q_at_hd (g:env) (l:list vprop) (q:vprop { L.existsb (fun v -> eq_tm v q) l }) : l':list vprop & vprop_equiv g (list_as_vprop l) (q * list_as_vprop l') = match l with | hd::tl -> if eq_tm hd q then (| tl, RU.magic #(vprop_equiv _ _ _) () |) else let (| tl', _ |) = get_q_at_hd g tl q in ...
{ "file_name": "lib/steel/pulse/Pulse.Checker.Prover.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 56, "end_line": 190, "start_col": 0, "start_line": 182 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Metatheory.fsti.checked", "Pulse.Typing.Combinators.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Readback.fsti.checked", "Pu...
[ { "abbrev": true, "full_module": "Pulse.Checker.Prover.IntroPure", "short_module": "IntroPure" }, { "abbrev": true, "full_module": "Pulse.Checker.Prover.IntroExists", "short_module": "IntroExists" }, { "abbrev": true, "full_module": "Pulse.Checker.Prover.Match", "short_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
g: Pulse.Typing.Env.env -> l: Prims.list Pulse.Syntax.Base.vprop -> q: Pulse.Syntax.Base.vprop{FStar.List.Tot.Base.existsb (fun v -> Pulse.Syntax.Base.eq_tm v q) l} -> Prims.dtuple2 (Prims.list Pulse.Syntax.Base.vprop) (fun l' -> Pulse.Typing.vprop_equiv g (Pulse.Typing.Combin...
Prims.Tot
[ "total" ]
[]
[ "Pulse.Typing.Env.env", "Prims.list", "Pulse.Syntax.Base.vprop", "Prims.b2t", "FStar.List.Tot.Base.existsb", "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.eq_tm", "Prims.bool", "Prims.Mkdtuple2", "Pulse.Typing.vprop_equiv", "Pulse.Typing.Combinators.list_as_vprop", "Pulse.Checker.Prover.Base.op...
[ "recursion" ]
false
false
false
false
false
let rec get_q_at_hd (g: env) (l: list vprop) (q: vprop{L.existsb (fun v -> eq_tm v q) l}) : l': list vprop & vprop_equiv g (list_as_vprop l) (q * list_as_vprop l') =
match l with | hd :: tl -> if eq_tm hd q then (| tl, RU.magic #(vprop_equiv _ _ _) () |) else let (| tl' , _ |) = get_q_at_hd g tl q in (| hd :: tl', RU.magic #(vprop_equiv _ _ _) () |)
false
LowParse.Spec.BoundedInt.fst
LowParse.Spec.BoundedInt.serialize_bounded_integer_le_correct
val serialize_bounded_integer_le_correct (sz: integer_size) : Lemma (serializer_correct (parse_bounded_integer_le sz) (serialize_bounded_integer_le' sz))
val serialize_bounded_integer_le_correct (sz: integer_size) : Lemma (serializer_correct (parse_bounded_integer_le sz) (serialize_bounded_integer_le' sz))
let serialize_bounded_integer_le_correct (sz: integer_size) : Lemma (serializer_correct (parse_bounded_integer_le sz) (serialize_bounded_integer_le' sz)) = let prf (x: bounded_integer sz) : Lemma ( let res = serialize_bounded_integer_le' sz x in Seq.length res == (sz <: nat) /\ parse (pa...
{ "file_name": "src/lowparse/LowParse.Spec.BoundedInt.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 28, "end_line": 186, "start_col": 0, "start_line": 172 }
module LowParse.Spec.BoundedInt open LowParse.Spec.Combinators // for make_total_constant_size_parser_precond module Seq = FStar.Seq module E = FStar.Endianness module U8 = FStar.UInt8 module U16 = FStar.UInt16 module U32 = FStar.UInt32 module M = LowParse.Math module Cast = FStar.Int.Cast (* bounded integers *) l...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.Math.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", ...
[ { "abbrev": false, "full_module": "LowParse.Spec.Combinators // for make_total_constant_size_parser_precond", "short_module": null }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowParse.Math", "short_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
sz: LowParse.Spec.BoundedInt.integer_size -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Base.serializer_correct (LowParse.Spec.BoundedInt.parse_bounded_integer_le sz) (LowParse.Spec.BoundedInt.serialize_bounded_integer_le' sz))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.BoundedInt.integer_size", "FStar.Classical.forall_intro", "LowParse.Spec.BoundedInt.bounded_integer", "Prims.l_and", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "LowParse.Bytes.byte", "LowParse.Spec.BoundedInt.serialize_bounded_integer_le'", "FStar.Pervasives.Native.option", ...
[]
false
false
true
false
false
let serialize_bounded_integer_le_correct (sz: integer_size) : Lemma (serializer_correct (parse_bounded_integer_le sz) (serialize_bounded_integer_le' sz)) =
let prf (x: bounded_integer sz) : Lemma (let res = serialize_bounded_integer_le' sz x in Seq.length res == (sz <: nat) /\ parse (parse_bounded_integer_le sz) res == Some (x, (sz <: nat))) = () in Classical.forall_intro prf
false
Hacl.Impl.Frodo.Params.fst
Hacl.Impl.Frodo.Params.params_n
val params_n (a: S.frodo_alg) : x: size_t{v x == S.params_n a}
val params_n (a: S.frodo_alg) : x: size_t{v x == S.params_n a}
let params_n (a:S.frodo_alg) : x:size_t{v x == S.params_n a} = match a with | S.Frodo64 -> 64ul | S.Frodo640 -> 640ul | S.Frodo976 -> 976ul | S.Frodo1344 -> 1344ul
{ "file_name": "code/frodo/Hacl.Impl.Frodo.Params.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 21, "start_col": 0, "start_line": 16 }
module Hacl.Impl.Frodo.Params open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix module S = Spec.Frodo.Params #set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Params.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.SHA3.fst.checked", "Hacl.Impl.Matrix.fst.checked", "Hacl.Impl.Frodo.Gen.fst.checked", "FStar.UInt32.fsti.checked", "FStar.P...
[ { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.Matrix", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> x: Lib.IntTypes.size_t{Lib.IntTypes.v x == Spec.Frodo.Params.params_n a}
Prims.Tot
[ "total" ]
[]
[ "Spec.Frodo.Params.frodo_alg", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.size_t", "Prims.eq2", "Prims.int", "Prims.l_or", "Lib.IntTypes.range", "Lib.IntTypes.U32", "Prims.l_and", "Prims.b2t", "Prims.op_GreaterThan", "Prims.op_LessThanOrEqual", "Lib.IntTypes.max_size_t", "Prims.op_Equality"...
[]
false
false
false
false
false
let params_n (a: S.frodo_alg) : x: size_t{v x == S.params_n a} =
match a with | S.Frodo64 -> 64ul | S.Frodo640 -> 640ul | S.Frodo976 -> 976ul | S.Frodo1344 -> 1344ul
false
Hacl.Impl.Frodo.Params.fst
Hacl.Impl.Frodo.Params.frodo_gen_matrix
val frodo_gen_matrix: a:S.frodo_gen_a{is_supported a} -> n:size_t{0 < v n /\ v n * v n <= max_size_t /\ v n <= maxint U16 /\ v n % 4 = 0} -> seed:lbuffer uint8 16ul -> a_matrix:matrix_t n n -> Stack unit (requires fun h -> live h seed /\ live h a_matrix /\ disjoint seed a_matrix) (ensures fun...
val frodo_gen_matrix: a:S.frodo_gen_a{is_supported a} -> n:size_t{0 < v n /\ v n * v n <= max_size_t /\ v n <= maxint U16 /\ v n % 4 = 0} -> seed:lbuffer uint8 16ul -> a_matrix:matrix_t n n -> Stack unit (requires fun h -> live h seed /\ live h a_matrix /\ disjoint seed a_matrix) (ensures fun...
let frodo_gen_matrix a n seed a_matrix = match a with | S.SHAKE128 -> Hacl.Impl.Frodo.Gen.frodo_gen_matrix_shake_4x n seed a_matrix
{ "file_name": "code/frodo/Hacl.Impl.Frodo.Params.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 79, "end_line": 131, "start_col": 0, "start_line": 129 }
module Hacl.Impl.Frodo.Params open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix module S = Spec.Frodo.Params #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let params_n (a:S.frodo_alg) : x:size_t{v x == S.params_n ...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Params.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.SHA3.fst.checked", "Hacl.Impl.Matrix.fst.checked", "Hacl.Impl.Frodo.Gen.fst.checked", "FStar.UInt32.fsti.checked", "FStar.P...
[ { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.Matrix", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_gen_a{Hacl.Impl.Frodo.Params.is_supported a} -> n: Lib.IntTypes.size_t { 0 < Lib.IntTypes.v n /\ Lib.IntTypes.v n * Lib.IntTypes.v n <= Lib.IntTypes.max_size_t /\ Lib.IntTypes.v n <= Lib.IntTypes.maxint Lib.IntTypes.U16 /\ Lib.IntTypes.v n % 4 = 0 } -> see...
FStar.HyperStack.ST.Stack
[]
[]
[ "Spec.Frodo.Params.frodo_gen_a", "Prims.b2t", "Hacl.Impl.Frodo.Params.is_supported", "Lib.IntTypes.size_t", "Prims.l_and", "Prims.op_LessThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Lib.IntTypes....
[]
false
true
false
false
false
let frodo_gen_matrix a n seed a_matrix =
match a with | S.SHAKE128 -> Hacl.Impl.Frodo.Gen.frodo_gen_matrix_shake_4x n seed a_matrix
false
Hacl.Impl.Frodo.Params.fst
Hacl.Impl.Frodo.Params.cdf_table1344
val cdf_table1344:x: glbuffer uint16 7ul {witnessed x (S.cdf_table S.Frodo1344) /\ recallable x}
val cdf_table1344:x: glbuffer uint16 7ul {witnessed x (S.cdf_table S.Frodo1344) /\ recallable x}
let cdf_table1344 :x:glbuffer uint16 7ul{witnessed x (S.cdf_table S.Frodo1344) /\ recallable x} = createL_global S.cdf_list_1344
{ "file_name": "code/frodo/Hacl.Impl.Frodo.Params.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 32, "end_line": 144, "start_col": 0, "start_line": 143 }
module Hacl.Impl.Frodo.Params open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix module S = Spec.Frodo.Params #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let params_n (a:S.frodo_alg) : x:size_t{v x == S.params_n ...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Params.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.SHA3.fst.checked", "Hacl.Impl.Matrix.fst.checked", "Hacl.Impl.Frodo.Gen.fst.checked", "FStar.UInt32.fsti.checked", "FStar.P...
[ { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.Matrix", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module":...
{ "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: (c: Lib.Buffer.lbuffer_t Lib.Buffer.CONST (Lib.IntTypes.int_t Lib.IntTypes.U16 Lib.IntTypes.SEC) (7ul <: FStar.UInt32.t) {LowStar.ConstBuffer.qual_of c == LowStar.ConstBuffer.IMMUTABLE}) { Lib.Buffer.witnessed x (Spec.Frodo.Params.cdf_table Spec.Frodo.Params.Frodo1344) /\ Lib.Buffer.recallable x }
Prims.Tot
[ "total" ]
[]
[ "Lib.Buffer.createL_global", "Lib.IntTypes.int_t", "Lib.IntTypes.U16", "Lib.IntTypes.SEC", "Spec.Frodo.Params.cdf_list_1344", "Lib.Buffer.glbuffer", "Lib.IntTypes.size", "FStar.Pervasives.normalize_term", "Lib.IntTypes.size_nat", "FStar.List.Tot.Base.length" ]
[]
false
false
false
false
false
let cdf_table1344:x: glbuffer uint16 7ul {witnessed x (S.cdf_table S.Frodo1344) /\ recallable x} =
createL_global S.cdf_list_1344
false
Pulse.Checker.Prover.fst
Pulse.Checker.Prover.unsolved_equiv_pst
val unsolved_equiv_pst (#preamble: _) (pst: prover_state preamble) (unsolved': list vprop) (d: vprop_equiv (push_env pst.pg pst.uvs) (list_as_vprop pst.unsolved) (list_as_vprop unsolved')) : prover_state preamble
val unsolved_equiv_pst (#preamble: _) (pst: prover_state preamble) (unsolved': list vprop) (d: vprop_equiv (push_env pst.pg pst.uvs) (list_as_vprop pst.unsolved) (list_as_vprop unsolved')) : prover_state preamble
let unsolved_equiv_pst (#preamble:_) (pst:prover_state preamble) (unsolved':list vprop) (d:vprop_equiv (push_env pst.pg pst.uvs) (list_as_vprop pst.unsolved) (list_as_vprop unsolved')) : prover_state preamble = { pst with unsolved = unsolved'; goals_inv = RU.magic () }
{ "file_name": "lib/steel/pulse/Pulse.Checker.Prover.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 60, "end_line": 56, "start_col": 0, "start_line": 53 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.Metatheory.fsti.checked", "Pulse.Typing.Combinators.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.Printer.fsti.checked", "Pulse.Syntax.fst.checked", "Pulse.RuntimeUtils.fsti.checked", "Pulse.Readback.fsti.checked", "Pu...
[ { "abbrev": true, "full_module": "Pulse.Checker.Prover.IntroPure", "short_module": "IntroPure" }, { "abbrev": true, "full_module": "Pulse.Checker.Prover.IntroExists", "short_module": "IntroExists" }, { "abbrev": true, "full_module": "Pulse.Checker.Prover.Match", "short_mo...
{ "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
pst: Pulse.Checker.Prover.Base.prover_state preamble -> unsolved': Prims.list Pulse.Syntax.Base.vprop -> d: Pulse.Typing.vprop_equiv (Pulse.Typing.Env.push_env (Mkprover_state?.pg pst) (Mkprover_state?.uvs pst)) (Pulse.Typing.Combinators.list_as_vprop (Mkprover_state?.unsolved pst...
Prims.Tot
[ "total" ]
[]
[ "Pulse.Checker.Prover.Base.preamble", "Pulse.Checker.Prover.Base.prover_state", "Prims.list", "Pulse.Syntax.Base.vprop", "Pulse.Typing.vprop_equiv", "Pulse.Typing.Env.push_env", "Pulse.Checker.Prover.Base.__proj__Mkprover_state__item__pg", "Pulse.Checker.Prover.Base.__proj__Mkprover_state__item__uvs",...
[]
false
false
false
false
false
let unsolved_equiv_pst (#preamble: _) (pst: prover_state preamble) (unsolved': list vprop) (d: vprop_equiv (push_env pst.pg pst.uvs) (list_as_vprop pst.unsolved) (list_as_vprop unsolved')) : prover_state preamble =
{ pst with unsolved = unsolved'; goals_inv = RU.magic () }
false
Hacl.Impl.Frodo.Params.fst
Hacl.Impl.Frodo.Params.cdf_table_len
val cdf_table_len (a: S.frodo_alg) : x: size_t{v x = S.cdf_table_len a}
val cdf_table_len (a: S.frodo_alg) : x: size_t{v x = S.cdf_table_len a}
let cdf_table_len (a:S.frodo_alg) : x:size_t{v x = S.cdf_table_len a} = allow_inversion S.frodo_alg; match a with | S.Frodo64 | S.Frodo640 -> 13ul | S.Frodo976 -> 11ul | S.Frodo1344 -> 7ul
{ "file_name": "code/frodo/Hacl.Impl.Frodo.Params.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 153, "start_col": 0, "start_line": 148 }
module Hacl.Impl.Frodo.Params open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix module S = Spec.Frodo.Params #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let params_n (a:S.frodo_alg) : x:size_t{v x == S.params_n ...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Params.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.SHA3.fst.checked", "Hacl.Impl.Matrix.fst.checked", "Hacl.Impl.Frodo.Gen.fst.checked", "FStar.UInt32.fsti.checked", "FStar.P...
[ { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.Matrix", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> x: Lib.IntTypes.size_t{Lib.IntTypes.v x = Spec.Frodo.Params.cdf_table_len a}
Prims.Tot
[ "total" ]
[]
[ "Spec.Frodo.Params.frodo_alg", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.l_or", "Lib.IntTypes.range", "Lib.IntTypes.U32", "Prims.l_and", "Prims.op_GreaterThan", "Prims.op_LessThanOrEqual", "Lib.IntTypes.max_size_t", "Lib.IntTyp...
[]
false
false
false
false
false
let cdf_table_len (a: S.frodo_alg) : x: size_t{v x = S.cdf_table_len a} =
allow_inversion S.frodo_alg; match a with | S.Frodo64 | S.Frodo640 -> 13ul | S.Frodo976 -> 11ul | S.Frodo1344 -> 7ul
false
Hacl.Impl.Frodo.Params.fst
Hacl.Impl.Frodo.Params.cdf_table640
val cdf_table640:x: glbuffer uint16 13ul {witnessed x (S.cdf_table S.Frodo640) /\ recallable x}
val cdf_table640:x: glbuffer uint16 13ul {witnessed x (S.cdf_table S.Frodo640) /\ recallable x}
let cdf_table640 :x:glbuffer uint16 13ul{witnessed x (S.cdf_table S.Frodo640) /\ recallable x} = createL_global S.cdf_list_640
{ "file_name": "code/frodo/Hacl.Impl.Frodo.Params.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 31, "end_line": 138, "start_col": 0, "start_line": 137 }
module Hacl.Impl.Frodo.Params open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Matrix module S = Spec.Frodo.Params #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let params_n (a:S.frodo_alg) : x:size_t{v x == S.params_n ...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Params.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.SHA3.fst.checked", "Hacl.Impl.Matrix.fst.checked", "Hacl.Impl.Frodo.Gen.fst.checked", "FStar.UInt32.fsti.checked", "FStar.P...
[ { "abbrev": true, "full_module": "Spec.Frodo.Params", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.Matrix", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module":...
{ "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: (c: Lib.Buffer.lbuffer_t Lib.Buffer.CONST (Lib.IntTypes.int_t Lib.IntTypes.U16 Lib.IntTypes.SEC) (13ul <: FStar.UInt32.t) {LowStar.ConstBuffer.qual_of c == LowStar.ConstBuffer.IMMUTABLE}) { Lib.Buffer.witnessed x (Spec.Frodo.Params.cdf_table Spec.Frodo.Params.Frodo640) /\ Lib.Buffer.recallable x }
Prims.Tot
[ "total" ]
[]
[ "Lib.Buffer.createL_global", "Lib.IntTypes.int_t", "Lib.IntTypes.U16", "Lib.IntTypes.SEC", "Spec.Frodo.Params.cdf_list_640", "Lib.Buffer.glbuffer", "Lib.IntTypes.size", "FStar.Pervasives.normalize_term", "Lib.IntTypes.size_nat", "FStar.List.Tot.Base.length" ]
[]
false
false
false
false
false
let cdf_table640:x: glbuffer uint16 13ul {witnessed x (S.cdf_table S.Frodo640) /\ recallable x} =
createL_global S.cdf_list_640
false