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.X64.Leakage.fst
Vale.X64.Leakage.lemma_loop_explicit_leakage_free
val lemma_loop_explicit_leakage_free: (ts:analysis_taints) -> (code:S.code{While? code}) -> (s1:S.machine_state) -> (s2:S.machine_state) -> (fuel:nat) -> Lemma (requires True) (ensures (let b, ts' = check_if_loop_consumes_fixed_time code ts in (b2t b ==> isConstantTimeGivenStates code fuel ts.lts s1 s2 /\ isExp...
val lemma_loop_explicit_leakage_free: (ts:analysis_taints) -> (code:S.code{While? code}) -> (s1:S.machine_state) -> (s2:S.machine_state) -> (fuel:nat) -> Lemma (requires True) (ensures (let b, ts' = check_if_loop_consumes_fixed_time code ts in (b2t b ==> isConstantTimeGivenStates code fuel ts.lts s1 s2 /\ isExp...
let rec lemma_code_explicit_leakage_free ts code s1 s2 fuel = match code with | Ins ins -> lemma_ins_leakage_free ts ins | Block block -> lemma_block_explicit_leakage_free ts block s1 s2 fuel | IfElse ifCond ifTrue ifFalse -> reveal_opaque (`%S.valid_ocmp_opaque) S.valid_ocmp_opaque; reveal_opaque (`%S.ev...
{ "file_name": "vale/code/arch/x64/Vale.X64.Leakage.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 431, "start_col": 0, "start_line": 350 }
module Vale.X64.Leakage open FStar.Mul open Vale.X64.Machine_s module S = Vale.X64.Machine_Semantics_s open Vale.X64.Leakage_s open Vale.X64.Leakage_Helpers open Vale.X64.Leakage_Ins unfold let machine_eval_ocmp = S.machine_eval_ocmp unfold let machine_eval_code = S.machine_eval_code unfold let machine_eval_codes = S....
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Leakage_s.fst.checked", "Vale.X64.Leakage_Ins.fsti.checked", "Vale.X64.Leakage_Helpers.fst.checked", "Vale.Lib.MapTree.fsti.checked", "prims.fst.checked", ...
[ { "abbrev": false, "full_module": "Vale.X64.Leakage_Ins", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_Helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Leakage_s", "short_module": null }, { "abbrev": true...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 2, "max_fuel": 2, "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
ts: Vale.X64.Leakage_Helpers.analysis_taints -> code: Vale.X64.Machine_Semantics_s.code{While? code} -> s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> fuel: Prims.nat -> FStar.Pervasives.Lemma (ensures (let _ = Vale.X64.Leakage.ch...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[ "lemma_code_explicit_leakage_free", "lemma_block_explicit_leakage_free", "lemma_loop_explicit_leakage_free" ]
[ "Vale.X64.Leakage_Helpers.analysis_taints", "Vale.X64.Machine_Semantics_s.code", "Prims.b2t", "Vale.X64.Machine_s.uu___is_While", "Vale.X64.Bytes_Code_s.instruction_t", "Vale.X64.Machine_Semantics_s.instr_annotation", "Vale.X64.Bytes_Code_s.ocmp", "Vale.X64.Machine_Semantics_s.machine_state", "Prims...
[ "mutual recursion" ]
false
false
true
false
false
let rec lemma_loop_explicit_leakage_free ts code s1 s2 fuel =
reveal_opaque (`%S.valid_ocmp_opaque) S.valid_ocmp_opaque; reveal_opaque (`%S.eval_ocmp_opaque) S.eval_ocmp_opaque; let ts = normalize_taints ts in if fuel = 0 then () else let b_fin, ts_fin = check_if_code_consumes_fixed_time code ts in let r1 = machine_eval_code code fuel s1 in let r2 = machine_eval_code code f...
false
Spec.Frodo.Sample.fst
Spec.Frodo.Sample.frodo_sample_fc
val frodo_sample_fc: a:frodo_alg -> t:uint16 -> i:size_nat{i <= cdf_table_len a} -> GTot (res:nat{0 <= res /\ res <= i}) (decreases i)
val frodo_sample_fc: a:frodo_alg -> t:uint16 -> i:size_nat{i <= cdf_table_len a} -> GTot (res:nat{0 <= res /\ res <= i}) (decreases i)
let rec frodo_sample_fc a t i = if i = 0 then 0 else frodo_sample_f a t (i - 1) + frodo_sample_fc a t (i - 1)
{ "file_name": "specs/frodo/Spec.Frodo.Sample.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 63, "end_line": 38, "start_col": 0, "start_line": 36 }
module Spec.Frodo.Sample open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Spec.Matrix open Spec.Frodo.Lemmas open Spec.Frodo.Params module LSeq = Lib.Sequence module Matrix = Spec.Matrix module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val frodo_sampl...
{ "checked_file": "/", "dependencies": [ "Spec.Matrix.fst.checked", "Spec.Frodo.Params.fst.checked", "Spec.Frodo.Lemmas.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", ...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Spec.Matrix", "short_module": "Matrix" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": false, "full_m...
{ "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 -> t: Lib.IntTypes.uint16 -> i: Lib.IntTypes.size_nat{i <= Spec.Frodo.Params.cdf_table_len a} -> Prims.GTot (res: Prims.nat{0 <= res /\ res <= i})
Prims.GTot
[ "sometrivial", "" ]
[]
[ "Spec.Frodo.Params.frodo_alg", "Lib.IntTypes.uint16", "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Spec.Frodo.Params.cdf_table_len", "Prims.op_Equality", "Prims.int", "Prims.bool", "Prims.op_Addition", "Spec.Frodo.Sample.frodo_sample_f", "Prims.op_Subtraction", "Spec.Fr...
[ "recursion" ]
false
false
false
false
false
let rec frodo_sample_fc a t i =
if i = 0 then 0 else frodo_sample_f a t (i - 1) + frodo_sample_fc a t (i - 1)
false
FStar.InteractiveHelpers.Base.fst
FStar.InteractiveHelpers.Base._generate_shadowed_subst
val _generate_shadowed_subst (ge: genv) (t: term) (bvl: list (bv & typ)) : Tac (genv & list (bv & typ & bv))
val _generate_shadowed_subst (ge: genv) (t: term) (bvl: list (bv & typ)) : Tac (genv & list (bv & typ & bv))
let rec _generate_shadowed_subst (ge:genv) (t:term) (bvl : list (bv & typ)) : Tac (genv & list (bv & typ & bv)) = match bvl with | [] -> ge, [] | old_bv :: bvl' -> match inspect t with | Tv_Abs b _ -> (* Introduce the new binder *) let bv = (inspect_binder b).binder_bv in let bvv = ins...
{ "file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 55, "end_line": 624, "start_col": 0, "start_line": 605 }
module FStar.InteractiveHelpers.Base open FStar.List open FStar.Tactics open FStar.Mul #push-options "--z3rlimit 15 --fuel 0 --ifuel 1" (*** Utilities *) val bv_eq : bv -> bv -> Tot bool let bv_eq (bv1 bv2 : bv) = let bvv1 = inspect_bv bv1 in let bvv2 = inspect_bv bv2 in (* We don't check for type equality: th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.fst.checked", "FStar.Sealed.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Order.fst.checked", "FStar.Mul.fst.checked", "F...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": "FStar.List", "short_module": null }, { "abbrev": false, "full_module": "FStar.I...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ge: FStar.InteractiveHelpers.Base.genv -> t: FStar.Stubs.Reflection.Types.term -> bvl: Prims.list (FStar.Stubs.Reflection.Types.bv * FStar.Stubs.Reflection.Types.typ) -> FStar.Tactics.Effect.Tac (FStar.InteractiveHelpers.Base.genv * Prims.list ((FStar.Stubs.Reflection.Types.bv * FStar.Stubs.Ref...
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.InteractiveHelpers.Base.genv", "FStar.Stubs.Reflection.Types.term", "Prims.list", "FStar.Pervasives.Native.tuple2", "FStar.Stubs.Reflection.Types.bv", "FStar.Stubs.Reflection.Types.typ", "FStar.Pervasives.Native.Mktuple2", "FStar.Pervasives.Native.tuple3", "Prims.Nil", "FStar.Stubs.Reflecti...
[ "recursion" ]
false
true
false
false
false
let rec _generate_shadowed_subst (ge: genv) (t: term) (bvl: list (bv & typ)) : Tac (genv & list (bv & typ & bv)) =
match bvl with | [] -> ge, [] | old_bv :: bvl' -> match inspect t with | Tv_Abs b _ -> let bv = (inspect_binder b).binder_bv in let bvv = inspect_bv bv in let ty = binder_sort b in let name = unseal bvv.bv_ppname in let ge1, fresh = genv_push_fresh_bv ge ("__" ^ name) ty in let t1 = mk_e_app...
false
Test.Vectors.Chacha20Poly1305.fst
Test.Vectors.Chacha20Poly1305.output7
val output7:(b: B.buffer UInt8.t {B.length b = 528 /\ B.recallable b})
val output7:(b: B.buffer UInt8.t {B.length b = 528 /\ B.recallable b})
let output7: (b: B.buffer UInt8.t { B.length b = 528 /\ B.recallable b }) = [@inline_let] let l = [ 0x14uy; 0xf6uy; 0x41uy; 0x37uy; 0xa6uy; 0xd4uy; 0x27uy; 0xcduy; 0xdbuy; 0x06uy; 0x3euy; 0x9auy; 0x4euy; 0xabuy; 0xd5uy; 0xb1uy; 0x1euy; 0x6buy; 0xd2uy; 0xbcuy; 0x11uy; 0xf4uy; 0x28uy; 0x93uy; 0x63uy; 0x54uy; 0xefuy; 0x...
{ "file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 322, "start_col": 0, "start_line": 319 }
module Test.Vectors.Chacha20Poly1305 module B = LowStar.Buffer #set-options "--max_fuel 0 --max_ifuel 0" let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) = [@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0x...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "FSt...
{ "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.Buffer.buffer FStar.UInt8.t {LowStar.Monotonic.Buffer.length b = 528 /\ LowStar.Monotonic.Buffer.recallable b}
Prims.Tot
[ "total" ]
[]
[ "LowStar.Buffer.gcmalloc_of_list", "FStar.UInt8.t", "FStar.Monotonic.HyperHeap.root", "LowStar.Monotonic.Buffer.mbuffer", "LowStar.Buffer.trivial_preorder", "Prims.l_and", "Prims.eq2", "Prims.nat", "LowStar.Monotonic.Buffer.length", "FStar.Pervasives.normalize_term", "FStar.List.Tot.Base.length"...
[]
false
false
false
false
false
let output7:(b: B.buffer UInt8.t {B.length b = 528 /\ B.recallable b}) =
[@@ inline_let ]let l = [ 0x14uy; 0xf6uy; 0x41uy; 0x37uy; 0xa6uy; 0xd4uy; 0x27uy; 0xcduy; 0xdbuy; 0x06uy; 0x3euy; 0x9auy; 0x4euy; 0xabuy; 0xd5uy; 0xb1uy; 0x1euy; 0x6buy; 0xd2uy; 0xbcuy; 0x11uy; 0xf4uy; 0x28uy; 0x93uy; 0x63uy; 0x54uy; 0xefuy; 0xbbuy; 0x5euy; 0x1duy; 0x3auy; 0x1duy; 0x37uy; 0x3cuy; 0x0auy; ...
false
Spec.Frodo.Sample.fst
Spec.Frodo.Sample.frodo_sample
val frodo_sample: a:frodo_alg -> r:uint16 -> uint16
val frodo_sample: a:frodo_alg -> r:uint16 -> uint16
let frodo_sample a r = let t = r >>. 1ul in let r0 = r &. u16 1 in mod_mask_lemma r 1ul; assert (v #U16 #SEC (mod_mask 1ul) == 1); assert (v r0 == 0 \/ v r0 == 1); let e = Loops.repeati_inductive (cdf_table_len a - 1) (fun z e -> 0 <= e /\ e <= z /\ e == frodo_sample_fc a t z) (fun z ...
{ "file_name": "specs/frodo/Spec.Frodo.Sample.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 70, "start_col": 0, "start_line": 58 }
module Spec.Frodo.Sample open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Spec.Matrix open Spec.Frodo.Lemmas open Spec.Frodo.Params module LSeq = Lib.Sequence module Matrix = Spec.Matrix module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val frodo_sampl...
{ "checked_file": "/", "dependencies": [ "Spec.Matrix.fst.checked", "Spec.Frodo.Params.fst.checked", "Spec.Frodo.Lemmas.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", ...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Spec.Matrix", "short_module": "Matrix" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Frodo.Params.frodo_alg -> r: Lib.IntTypes.uint16 -> Lib.IntTypes.uint16
Prims.Tot
[ "total" ]
[]
[ "Spec.Frodo.Params.frodo_alg", "Lib.IntTypes.uint16", "Spec.Frodo.Sample.frodo_sample_res", "Prims.int", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Subtraction", "Spec.Frodo.Params.cdf_table_len", "Prims.eq2", "Spec.Frodo.Sample.frodo_sample_fc", "Lib.LoopCombinators.rep...
[]
false
false
false
true
false
let frodo_sample a r =
let t = r >>. 1ul in let r0 = r &. u16 1 in mod_mask_lemma r 1ul; assert (v #U16 #SEC (mod_mask 1ul) == 1); assert (v r0 == 0 \/ v r0 == 1); let e = Loops.repeati_inductive (cdf_table_len a - 1) (fun z e -> 0 <= e /\ e <= z /\ e == frodo_sample_fc a t z) (fun z e -> frodo_sample_f a t z + e) 0 in frodo_sa...
false
Test.Vectors.Chacha20Poly1305.fst
Test.Vectors.Chacha20Poly1305.output8
val output8:(b: B.buffer UInt8.t {B.length b = 529 /\ B.recallable b})
val output8:(b: B.buffer UInt8.t {B.length b = 529 /\ B.recallable b})
let output8: (b: B.buffer UInt8.t { B.length b = 529 /\ B.recallable b }) = [@inline_let] let l = [ 0xfduy; 0x81uy; 0x8duy; 0xd0uy; 0x3duy; 0xb4uy; 0xd5uy; 0xdfuy; 0xd3uy; 0x42uy; 0x47uy; 0x5auy; 0x6duy; 0x19uy; 0x27uy; 0x66uy; 0x4buy; 0x2euy; 0x0cuy; 0x27uy; 0x9cuy; 0x96uy; 0x4cuy; 0x72uy; 0x02uy; 0xa3uy; 0x65uy; 0x...
{ "file_name": "providers/test/vectors/Test.Vectors.Chacha20Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 362, "start_col": 0, "start_line": 359 }
module Test.Vectors.Chacha20Poly1305 module B = LowStar.Buffer #set-options "--max_fuel 0 --max_ifuel 0" let key0: (b: B.buffer UInt8.t { B.length b = 32 /\ B.recallable b }) = [@inline_let] let l = [ 0x1cuy; 0x92uy; 0x40uy; 0xa5uy; 0xebuy; 0x55uy; 0xd3uy; 0x8auy; 0xf3uy; 0x33uy; 0x88uy; 0x86uy; 0x04uy; 0xf6uy; 0x...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "Test.Vectors", "short_module": null }, { "abbrev": false, "full_module": "FSt...
{ "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.Buffer.buffer FStar.UInt8.t {LowStar.Monotonic.Buffer.length b = 529 /\ LowStar.Monotonic.Buffer.recallable b}
Prims.Tot
[ "total" ]
[]
[ "LowStar.Buffer.gcmalloc_of_list", "FStar.UInt8.t", "FStar.Monotonic.HyperHeap.root", "LowStar.Monotonic.Buffer.mbuffer", "LowStar.Buffer.trivial_preorder", "Prims.l_and", "Prims.eq2", "Prims.nat", "LowStar.Monotonic.Buffer.length", "FStar.Pervasives.normalize_term", "FStar.List.Tot.Base.length"...
[]
false
false
false
false
false
let output8:(b: B.buffer UInt8.t {B.length b = 529 /\ B.recallable b}) =
[@@ inline_let ]let l = [ 0xfduy; 0x81uy; 0x8duy; 0xd0uy; 0x3duy; 0xb4uy; 0xd5uy; 0xdfuy; 0xd3uy; 0x42uy; 0x47uy; 0x5auy; 0x6duy; 0x19uy; 0x27uy; 0x66uy; 0x4buy; 0x2euy; 0x0cuy; 0x27uy; 0x9cuy; 0x96uy; 0x4cuy; 0x72uy; 0x02uy; 0xa3uy; 0x65uy; 0xc3uy; 0xb3uy; 0x6fuy; 0x2euy; 0xbduy; 0x63uy; 0x8auy; 0x4auy; ...
false
Spec.Frodo.Sample.fst
Spec.Frodo.Sample.frodo_sample_matrix1
val frodo_sample_matrix1: a:frodo_alg -> n1:size_nat -> n2:size_nat{2 * n1 * n2 <= max_size_t} -> r:lbytes (2 * n1 * n2) -> i:size_nat{i < n1} -> res:matrix n1 n2 -> matrix n1 n2
val frodo_sample_matrix1: a:frodo_alg -> n1:size_nat -> n2:size_nat{2 * n1 * n2 <= max_size_t} -> r:lbytes (2 * n1 * n2) -> i:size_nat{i < n1} -> res:matrix n1 n2 -> matrix n1 n2
let frodo_sample_matrix1 a n1 n2 r i res = Loops.repeati n2 (frodo_sample_matrix0 a n1 n2 r i) res
{ "file_name": "specs/frodo/Spec.Frodo.Sample.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 57, "end_line": 100, "start_col": 0, "start_line": 99 }
module Spec.Frodo.Sample open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Spec.Matrix open Spec.Frodo.Lemmas open Spec.Frodo.Params module LSeq = Lib.Sequence module Matrix = Spec.Matrix module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val frodo_sampl...
{ "checked_file": "/", "dependencies": [ "Spec.Matrix.fst.checked", "Spec.Frodo.Params.fst.checked", "Spec.Frodo.Lemmas.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", ...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Spec.Matrix", "short_module": "Matrix" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": false, "full_m...
{ "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 -> n1: Lib.IntTypes.size_nat -> n2: Lib.IntTypes.size_nat{(2 * n1) * n2 <= Lib.IntTypes.max_size_t} -> r: Lib.ByteSequence.lbytes ((2 * n1) * n2) -> i: Lib.IntTypes.size_nat{i < n1} -> res: Spec.Matrix.matrix n1 n2 -> Spec.Matrix.matrix n1 n2
Prims.Tot
[ "total" ]
[]
[ "Spec.Frodo.Params.frodo_alg", "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Lib.ByteSequence.lbytes", "Prims.op_LessThan", "Spec.Matrix.matrix", "Lib.LoopCombinators.repeati", "Spec.Frodo.Sample.frodo_sample_matrix0" ]
[]
false
false
false
false
false
let frodo_sample_matrix1 a n1 n2 r i res =
Loops.repeati n2 (frodo_sample_matrix0 a n1 n2 r i) res
false
Spec.Frodo.Sample.fst
Spec.Frodo.Sample.frodo_sample_matrix
val frodo_sample_matrix: a:frodo_alg -> n1:size_nat -> n2:size_nat{2 * n1 * n2 <= max_size_t} -> r:lbytes (2 * n1 * n2) -> matrix n1 n2
val frodo_sample_matrix: a:frodo_alg -> n1:size_nat -> n2:size_nat{2 * n1 * n2 <= max_size_t} -> r:lbytes (2 * n1 * n2) -> matrix n1 n2
let frodo_sample_matrix a n1 n2 r = let res = Matrix.create n1 n2 in Loops.repeati n1 (frodo_sample_matrix1 a n1 n2 r) res
{ "file_name": "specs/frodo/Spec.Frodo.Sample.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 55, "end_line": 112, "start_col": 0, "start_line": 110 }
module Spec.Frodo.Sample open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Spec.Matrix open Spec.Frodo.Lemmas open Spec.Frodo.Params module LSeq = Lib.Sequence module Matrix = Spec.Matrix module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val frodo_sampl...
{ "checked_file": "/", "dependencies": [ "Spec.Matrix.fst.checked", "Spec.Frodo.Params.fst.checked", "Spec.Frodo.Lemmas.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", ...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Spec.Matrix", "short_module": "Matrix" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": false, "full_m...
{ "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 -> n1: Lib.IntTypes.size_nat -> n2: Lib.IntTypes.size_nat{(2 * n1) * n2 <= Lib.IntTypes.max_size_t} -> r: Lib.ByteSequence.lbytes ((2 * n1) * n2) -> Spec.Matrix.matrix n1 n2
Prims.Tot
[ "total" ]
[]
[ "Spec.Frodo.Params.frodo_alg", "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Lib.ByteSequence.lbytes", "Lib.LoopCombinators.repeati", "Spec.Matrix.matrix", "Spec.Frodo.Sample.frodo_sample_matrix1", "Lib.Sequence.lseq", "Lib.I...
[]
false
false
false
false
false
let frodo_sample_matrix a n1 n2 r =
let res = Matrix.create n1 n2 in Loops.repeati n1 (frodo_sample_matrix1 a n1 n2 r) res
false
Spec.Frodo.Sample.fst
Spec.Frodo.Sample.frodo_sample_matrix0
val frodo_sample_matrix0: a:frodo_alg -> n1:size_nat -> n2:size_nat{2 * n1 * n2 <= max_size_t} -> r:lbytes (2 * n1 * n2) -> i:size_nat{i < n1} -> j:size_nat{j < n2} -> res:matrix n1 n2 -> matrix n1 n2
val frodo_sample_matrix0: a:frodo_alg -> n1:size_nat -> n2:size_nat{2 * n1 * n2 <= max_size_t} -> r:lbytes (2 * n1 * n2) -> i:size_nat{i < n1} -> j:size_nat{j < n2} -> res:matrix n1 n2 -> matrix n1 n2
let frodo_sample_matrix0 a n1 n2 r i j res = lemma_matrix_index_repeati1 n1 n2 i j; res.(i, j) <- frodo_sample a (uint_from_bytes_le (LSeq.sub r (2 * (i * n2 + j)) 2))
{ "file_name": "specs/frodo/Spec.Frodo.Sample.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 85, "end_line": 87, "start_col": 0, "start_line": 85 }
module Spec.Frodo.Sample open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open Spec.Matrix open Spec.Frodo.Lemmas open Spec.Frodo.Params module LSeq = Lib.Sequence module Matrix = Spec.Matrix module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val frodo_sampl...
{ "checked_file": "/", "dependencies": [ "Spec.Matrix.fst.checked", "Spec.Frodo.Params.fst.checked", "Spec.Frodo.Lemmas.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", ...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Spec.Matrix", "short_module": "Matrix" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": false, "full_m...
{ "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 -> n1: Lib.IntTypes.size_nat -> n2: Lib.IntTypes.size_nat{(2 * n1) * n2 <= Lib.IntTypes.max_size_t} -> r: Lib.ByteSequence.lbytes ((2 * n1) * n2) -> i: Lib.IntTypes.size_nat{i < n1} -> j: Lib.IntTypes.size_nat{j < n2} -> res: Spec.Matrix.matrix n1 n2 -> Spec...
Prims.Tot
[ "total" ]
[]
[ "Spec.Frodo.Params.frodo_alg", "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Lib.ByteSequence.lbytes", "Prims.op_LessThan", "Spec.Matrix.matrix", "Spec.Matrix.op_Array_Assignment", "FStar.Pervasives.Native.Mktuple2", "Spec.Fr...
[]
false
false
false
false
false
let frodo_sample_matrix0 a n1 n2 r i j res =
lemma_matrix_index_repeati1 n1 n2 i j; res.(i, j) <- frodo_sample a (uint_from_bytes_le (LSeq.sub r (2 * (i * n2 + j)) 2))
false
FStar.InteractiveHelpers.Base.fst
FStar.InteractiveHelpers.Base.deep_apply_subst_in_pattern
val deep_apply_subst_in_pattern : env -> pattern -> list (bv & term) -> Tac (pattern & list (bv & term))
val deep_apply_subst_in_pattern : env -> pattern -> list (bv & term) -> Tac (pattern & list (bv & term))
let rec deep_apply_subst e t subst = match inspect t with | Tv_Var b -> begin match bind_map_get subst b with | None -> t | Some t' -> t' end | Tv_BVar b -> (* Note: Tv_BVar shouldn't happen *) begin match bind_map_get subst b with | None -> t | Some t' -> t' end | Tv_FVar _ ...
{ "file_name": "ulib/experimental/FStar.InteractiveHelpers.Base.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 76, "end_line": 575, "start_col": 0, "start_line": 435 }
module FStar.InteractiveHelpers.Base open FStar.List open FStar.Tactics open FStar.Mul #push-options "--z3rlimit 15 --fuel 0 --ifuel 1" (*** Utilities *) val bv_eq : bv -> bv -> Tot bool let bv_eq (bv1 bv2 : bv) = let bvv1 = inspect_bv bv1 in let bvv2 = inspect_bv bv2 in (* We don't check for type equality: th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.fst.checked", "FStar.Sealed.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Order.fst.checked", "FStar.Mul.fst.checked", "F...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": "FStar.List", "short_module": null }, { "abbrev": false, "full_module": "FStar.I...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: FStar.Stubs.Reflection.Types.env -> pat: FStar.Stubs.Reflection.V1.Data.pattern -> subst: Prims.list (FStar.Stubs.Reflection.Types.bv * FStar.Stubs.Reflection.Types.term) -> FStar.Tactics.Effect.Tac (FStar.Stubs.Reflection.V1.Data.pattern * Prims.list (FStar.Stubs.Reflection.Types.bv * FStar...
FStar.Tactics.Effect.Tac
[]
[ "deep_apply_subst", "deep_apply_subst_in_bv", "deep_apply_subst_in_binder", "deep_apply_subst_in_comp", "deep_apply_subst_in_pattern" ]
[ "FStar.Stubs.Reflection.Types.env", "FStar.Stubs.Reflection.V1.Data.pattern", "Prims.list", "FStar.Pervasives.Native.tuple2", "FStar.Stubs.Reflection.Types.bv", "FStar.Stubs.Reflection.Types.term", "FStar.Stubs.Reflection.V1.Data.vconst", "FStar.Pervasives.Native.Mktuple2", "FStar.Stubs.Reflection.T...
[ "mutual recursion" ]
false
true
false
false
false
let rec deep_apply_subst_in_pattern e pat subst =
match pat with | Pat_Constant _ -> pat, subst | Pat_Cons fv us patterns -> let patterns, subst = fold_right (fun (pat, b) (pats, subst) -> let pat, subst = deep_apply_subst_in_pattern e pat subst in ((pat, b) :: pats, subst)) patterns ([], subst) in Pat_Cons fv us patterns, sub...
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.flip
val flip (#a #b: Type) (c: (a * b)) : Tot (b * a)
val flip (#a #b: Type) (c: (a * b)) : Tot (b * a)
let flip (#a #b: Type) (c: (a * b)) : Tot (b * a) = let (ca, cb) = c in (cb, ca)
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 80, "end_line": 43, "start_col": 0, "start_line": 43 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
c: (a * b) -> b * a
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.Mktuple2" ]
[]
false
false
false
true
false
let flip (#a #b: Type) (c: (a * b)) : Tot (b * a) =
let ca, cb = c in (cb, ca)
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.list_mem
val list_mem (#t: eqtype) (x: t) (l: list t) : Tot (y: bool{y == true <==> L.mem x l == true})
val list_mem (#t: eqtype) (x: t) (l: list t) : Tot (y: bool{y == true <==> L.mem x l == true})
let rec list_mem (#t: eqtype) (x: t) (l: list t) : Tot (y: bool { y == true <==> L.mem x l == true } ) = match l with | [] -> false | a :: q -> (x = a || list_mem x q)
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 37, "end_line": 29, "start_col": 0, "start_line": 22 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: t -> l: Prims.list t -> y: Prims.bool{y == true <==> FStar.List.Tot.Base.mem x l == true}
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "Prims.list", "Prims.op_BarBar", "Prims.op_Equality", "LowParse.Spec.Enum.list_mem", "Prims.bool", "Prims.l_iff", "Prims.eq2", "FStar.List.Tot.Base.mem" ]
[ "recursion" ]
false
false
false
false
false
let rec list_mem (#t: eqtype) (x: t) (l: list t) : Tot (y: bool{y == true <==> L.mem x l == true}) =
match l with | [] -> false | a :: q -> (x = a || list_mem x q)
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.make_enum_key
val make_enum_key (#key #repr: eqtype) (e: enum key repr) (k: key) : Pure (enum_key e) (requires (list_mem k (list_map fst e))) (ensures (fun k' -> k == (k' <: key)))
val make_enum_key (#key #repr: eqtype) (e: enum key repr) (k: key) : Pure (enum_key e) (requires (list_mem k (list_map fst e))) (ensures (fun k' -> k == (k' <: key)))
let make_enum_key (#key #repr: eqtype) (e: enum key repr) (k: key) : Pure (enum_key e) (requires (list_mem k (list_map fst e))) (ensures (fun k' -> k == (k' <: key))) = k
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 3, "end_line": 38, "start_col": 0, "start_line": 35 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> k: key -> Prims.Pure (LowParse.Spec.Enum.enum_key e)
Prims.Pure
[]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.enum_key", "Prims.b2t", "LowParse.Spec.Enum.list_mem", "LowParse.Spec.Enum.list_map", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.fst", "Prims.eq2" ]
[]
false
false
false
false
false
let make_enum_key (#key #repr: eqtype) (e: enum key repr) (k: key) : Pure (enum_key e) (requires (list_mem k (list_map fst e))) (ensures (fun k' -> k == (k' <: key))) =
k
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.list_map
val list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l': list b {l' == L.map f l})
val list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l': list b {l' == L.map f l})
let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 33, "end_line": 14, "start_col": 0, "start_line": 7 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: a -> b) -> l: Prims.list a -> l': Prims.list b {l' == FStar.List.Tot.Base.map f l}
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "Prims.Nil", "Prims.Cons", "LowParse.Spec.Enum.list_map", "Prims.eq2", "FStar.List.Tot.Base.map" ]
[ "recursion" ]
false
false
false
false
false
let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l': list b {l' == L.map f l}) =
match l with | [] -> [] | a :: q -> f a :: list_map f q
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.parse_enum_key_cond
val parse_enum_key_cond (#key #repr: eqtype) (e: enum key repr) (r: repr) : GTot bool
val parse_enum_key_cond (#key #repr: eqtype) (e: enum key repr) (r: repr) : GTot bool
let parse_enum_key_cond (#key #repr: eqtype) (e: enum key repr) (r: repr) : GTot bool = list_mem r (list_map snd e)
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 29, "end_line": 146, "start_col": 0, "start_line": 141 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> r: repr -> Prims.GTot Prims.bool
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.list_mem", "LowParse.Spec.Enum.list_map", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.snd", "Prims.bool" ]
[]
false
false
false
false
false
let parse_enum_key_cond (#key #repr: eqtype) (e: enum key repr) (r: repr) : GTot bool =
list_mem r (list_map snd e)
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.enum_repr
val enum_repr (#key #repr: eqtype) (e: enum key repr) : Tot eqtype
val enum_repr (#key #repr: eqtype) (e: enum key repr) : Tot eqtype
let enum_repr (#key #repr: eqtype) (e: enum key repr) : Tot eqtype = (r: repr { list_mem r (list_map snd e) } )
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 111, "end_line": 41, "start_col": 0, "start_line": 41 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> Prims.eqtype
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "Prims.b2t", "LowParse.Spec.Enum.list_mem", "LowParse.Spec.Enum.list_map", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.snd" ]
[]
false
false
false
false
false
let enum_repr (#key #repr: eqtype) (e: enum key repr) : Tot eqtype =
(r: repr{list_mem r (list_map snd e)})
false
Steel.ST.C.Types.Union.fsti
Steel.ST.C.Types.Union.union_switch_field
val union_switch_field: #tn: Type0 -> #tf: Type0 -> #n: string -> #fields: field_description_t tf -> #v: Ghost.erased (union_t0 tn n fields) -> r: ref (union0 tn n fields) -> field: field_t fields -> #t': Type0 -> #td': typedef t' -> (#[norm_fields ()] sq_t': squash (t' == fields...
val union_switch_field: #tn: Type0 -> #tf: Type0 -> #n: string -> #fields: field_description_t tf -> #v: Ghost.erased (union_t0 tn n fields) -> r: ref (union0 tn n fields) -> field: field_t fields -> #t': Type0 -> #td': typedef t' -> (#[norm_fields ()] sq_t': squash (t' == fields...
let union_switch_field (#tn: Type0) (#tf: Type0) (#n: string) (#fields: field_description_t tf) (#v: Ghost.erased (union_t0 tn n fields)) (r: ref (union0 tn n fields)) (field: field_t fields) (#t': Type0) (#td': typedef t') (# [ norm_fields () ] sq_t': squash (t' == fields.fd_type field)) (# [ no...
{ "file_name": "lib/steel/c/Steel.ST.C.Types.Union.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 7, "end_line": 525, "start_col": 0, "start_line": 503 }
module Steel.ST.C.Types.Union open Steel.ST.Util include Steel.ST.C.Types.Fields open Steel.C.Typestring module P = Steel.FractionalPermission [@@noextract_to "krml"] // primitive val define_union0 (tn: Type0) (#tf: Type0) (n: string) (fields: field_description_t tf) : Tot Type0 inline_for_extraction [@@noextract_to ...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.C.Types.Fields.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.C.Typestring.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classic...
[ { "abbrev": true, "full_module": "Steel.FractionalPermission", "short_module": "P" }, { "abbrev": false, "full_module": "Steel.C.Typestring", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST.C.Types.Fields", "short_module": null }, { "abbrev": f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Steel.ST.C.Types.Base.ref (Steel.ST.C.Types.Union.union0 tn n fields) -> field: Steel.ST.C.Types.Fields.field_t fields -> _: Prims.unit -> Steel.ST.Effect.ST (Steel.ST.C.Types.Base.ref td')
Steel.ST.Effect.ST
[]
[]
[ "Prims.string", "Steel.ST.C.Types.Fields.field_description_t", "FStar.Ghost.erased", "Steel.ST.C.Types.Union.union_t0", "Steel.ST.C.Types.Base.ref", "Steel.ST.C.Types.Union.union0", "Steel.ST.C.Types.Fields.field_t", "Steel.ST.C.Types.Base.typedef", "Prims.squash", "Prims.eq2", "Steel.ST.C.Types...
[]
false
true
false
false
false
let union_switch_field (#tn: Type0) (#tf: Type0) (#n: string) (#fields: field_description_t tf) (#v: Ghost.erased (union_t0 tn n fields)) (r: ref (union0 tn n fields)) (field: field_t fields) (#t': Type0) (#td': typedef t') (#[norm_fields ()] sq_t': squash (t'...
union_switch_field0 t' r field td'
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.enum_key
val enum_key (#key #repr: eqtype) (e: enum key repr) : Tot eqtype
val enum_key (#key #repr: eqtype) (e: enum key repr) : Tot eqtype
let enum_key (#key #repr: eqtype) (e: enum key repr) : Tot eqtype = (s: key { list_mem s (list_map fst e) } )
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 109, "end_line": 32, "start_col": 0, "start_line": 32 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> Prims.eqtype
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "Prims.b2t", "LowParse.Spec.Enum.list_mem", "LowParse.Spec.Enum.list_map", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.fst" ]
[]
false
false
false
false
false
let enum_key (#key #repr: eqtype) (e: enum key repr) : Tot eqtype =
(s: key{list_mem s (list_map fst e)})
false
Steel.ST.C.Types.Union.fsti
Steel.ST.C.Types.Union.union_switch_field1
val union_switch_field1 (#tn #tf t': Type0) (#n: string) (#fields: field_description_t tf) (#v: Ghost.erased (union_t0 tn n fields)) (r: ref (union0 tn n fields)) (field: field_t fields) (td': typedef t') (sq_t': squash (t' == fields.fd_type field)) (sq_td': squash ...
val union_switch_field1 (#tn #tf t': Type0) (#n: string) (#fields: field_description_t tf) (#v: Ghost.erased (union_t0 tn n fields)) (r: ref (union0 tn n fields)) (field: field_t fields) (td': typedef t') (sq_t': squash (t' == fields.fd_type field)) (sq_td': squash ...
let union_switch_field1 (#tn: Type0) (#tf: Type0) (t': Type0) (#n: string) (#fields: field_description_t tf) (#v: Ghost.erased (union_t0 tn n fields)) (r: ref (union0 tn n fields)) (field: field_t fields) (td': typedef t') (sq_t': squash (t' == fields.fd_type field)) (sq_td': squash (td' == field...
{ "file_name": "lib/steel/c/Steel.ST.C.Types.Union.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 36, "end_line": 500, "start_col": 0, "start_line": 483 }
module Steel.ST.C.Types.Union open Steel.ST.Util include Steel.ST.C.Types.Fields open Steel.C.Typestring module P = Steel.FractionalPermission [@@noextract_to "krml"] // primitive val define_union0 (tn: Type0) (#tf: Type0) (n: string) (fields: field_description_t tf) : Tot Type0 inline_for_extraction [@@noextract_to ...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.C.Types.Fields.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.C.Typestring.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classic...
[ { "abbrev": true, "full_module": "Steel.FractionalPermission", "short_module": "P" }, { "abbrev": false, "full_module": "Steel.C.Typestring", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST.C.Types.Fields", "short_module": null }, { "abbrev": f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t': Type0 -> r: Steel.ST.C.Types.Base.ref (Steel.ST.C.Types.Union.union0 tn n fields) -> field: Steel.ST.C.Types.Fields.field_t fields -> td': Steel.ST.C.Types.Base.typedef t' -> sq_t': Prims.squash (t' == Mkfield_description_t?.fd_type fields field) -> sq_td': Prims.squash (td' == Mkfield_desc...
Steel.ST.Effect.ST
[]
[]
[ "Prims.string", "Steel.ST.C.Types.Fields.field_description_t", "FStar.Ghost.erased", "Steel.ST.C.Types.Union.union_t0", "Steel.ST.C.Types.Base.ref", "Steel.ST.C.Types.Union.union0", "Steel.ST.C.Types.Fields.field_t", "Steel.ST.C.Types.Base.typedef", "Prims.squash", "Prims.eq2", "Steel.ST.C.Types...
[]
false
true
false
false
false
let union_switch_field1 (#tn #tf t': Type0) (#n: string) (#fields: field_description_t tf) (#v: Ghost.erased (union_t0 tn n fields)) (r: ref (union0 tn n fields)) (field: field_t fields) (td': typedef t') (sq_t': squash (t' == fields.fd_type field)) (sq_td': squash ...
union_switch_field0 t' r field td'
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.map_flip_flip
val map_flip_flip (#a #b: Type) (l: list (a * b)) : Lemma (list_map flip (list_map flip l) == l)
val map_flip_flip (#a #b: Type) (l: list (a * b)) : Lemma (list_map flip (list_map flip l) == l)
let rec map_flip_flip (#a #b: Type) (l: list (a * b)) : Lemma (list_map flip (list_map flip l) == l) = match l with | [] -> () | _ :: q -> map_flip_flip q
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 29, "end_line": 49, "start_col": 0, "start_line": 45 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: Prims.list (a * b) -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Enum.list_map LowParse.Spec.Enum.flip (LowParse.Spec.Enum.list_map LowParse.Spec.Enum.flip l) == l)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "FStar.Pervasives.Native.tuple2", "LowParse.Spec.Enum.map_flip_flip", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.eq2", "LowParse.Spec.Enum.list_map", "LowParse.Spec.Enum.flip", "Prims.Nil", "FStar.Pervasives.pattern" ]
[ "recursion" ]
false
false
true
false
false
let rec map_flip_flip (#a #b: Type) (l: list (a * b)) : Lemma (list_map flip (list_map flip l) == l) =
match l with | [] -> () | _ :: q -> map_flip_flip q
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.map_snd_flip
val map_snd_flip (#a #b: Type) (l: list (a * b)) : Lemma (list_map snd (list_map flip l) == list_map fst l)
val map_snd_flip (#a #b: Type) (l: list (a * b)) : Lemma (list_map snd (list_map flip l) == list_map fst l)
let rec map_snd_flip (#a #b: Type) (l: list (a * b)) : Lemma (list_map snd (list_map flip l) == list_map fst l) = match l with | [] -> () | _ :: q -> map_snd_flip q
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 28, "end_line": 61, "start_col": 0, "start_line": 57 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: Prims.list (a * b) -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Enum.list_map FStar.Pervasives.Native.snd (LowParse.Spec.Enum.list_map LowParse.Spec.Enum.flip l) == LowParse.Spec.Enum.list_map FStar.Pervasives.Native.fst l)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "FStar.Pervasives.Native.tuple2", "LowParse.Spec.Enum.map_snd_flip", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.eq2", "Prims.l_or", "FStar.List.Tot.Base.map", "FStar.Pervasives.Native.fst", "FStar.Pervasives.Native.snd", "LowParse.Spec.Enum.list_map", "LowParse.Spec.E...
[ "recursion" ]
false
false
true
false
false
let rec map_snd_flip (#a #b: Type) (l: list (a * b)) : Lemma (list_map snd (list_map flip l) == list_map fst l) =
match l with | [] -> () | _ :: q -> map_snd_flip q
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.assoc_mem_snd
val assoc_mem_snd (#a #b: eqtype) (l: list (a * b)) (x: a) (y: b) : Lemma (requires (L.assoc x l == Some y)) (ensures (list_mem y (list_map snd l) == true)) (decreases l)
val assoc_mem_snd (#a #b: eqtype) (l: list (a * b)) (x: a) (y: b) : Lemma (requires (L.assoc x l == Some y)) (ensures (list_mem y (list_map snd l) == true)) (decreases l)
let rec assoc_mem_snd (#a #b: eqtype) (l: list (a * b)) (x: a) (y: b) : Lemma (requires (L.assoc x l == Some y)) (ensures (list_mem y (list_map snd l) == true)) (decreases l) = let ((x', y') :: l') = l in if x' = x then () else assoc_mem_snd l' x y
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 27, "end_line": 75, "start_col": 0, "start_line": 63 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: Prims.list (a * b) -> x: a -> y: b -> FStar.Pervasives.Lemma (requires FStar.List.Tot.Base.assoc x l == FStar.Pervasives.Native.Some y) (ensures LowParse.Spec.Enum.list_mem y (LowParse.Spec.Enum.list_map FStar.Pervasives.Native.snd l) == true) (decreases l)
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.eqtype", "Prims.list", "FStar.Pervasives.Native.tuple2", "Prims.op_Equality", "Prims.bool", "LowParse.Spec.Enum.assoc_mem_snd", "Prims.unit", "Prims.eq2", "FStar.Pervasives.Native.option", "FStar.List.Tot.Base.assoc", "FStar.Pervasives.Native.Some", "Prims.squash", "LowParse.Spec.Enum...
[ "recursion" ]
false
false
true
false
false
let rec assoc_mem_snd (#a #b: eqtype) (l: list (a * b)) (x: a) (y: b) : Lemma (requires (L.assoc x l == Some y)) (ensures (list_mem y (list_map snd l) == true)) (decreases l) =
let (x', y') :: l' = l in if x' = x then () else assoc_mem_snd l' x y
false
Steel.ST.C.Types.Union.fsti
Steel.ST.C.Types.Union.union_field
val union_field: #tn: Type0 -> #tf: Type0 -> #n: string -> #fields: field_description_t tf -> #v: Ghost.erased (union_t0 tn n fields) -> r: ref (union0 tn n fields) -> field: field_t fields {union_get_case v == Some field} -> #t': Type0 -> #td': typedef t' -> (#[norm_fields ()] s...
val union_field: #tn: Type0 -> #tf: Type0 -> #n: string -> #fields: field_description_t tf -> #v: Ghost.erased (union_t0 tn n fields) -> r: ref (union0 tn n fields) -> field: field_t fields {union_get_case v == Some field} -> #t': Type0 -> #td': typedef t' -> (#[norm_fields ()] s...
let union_field (#tn: Type0) (#tf: Type0) (#n: string) (#fields: field_description_t tf) (#v: Ghost.erased (union_t0 tn n fields)) (r: ref (union0 tn n fields)) (field: field_t fields {union_get_case v == Some field}) (#t': Type0) (#td': typedef t') (# [ norm_fields () ] sq_t': squash (t' == fields...
{ "file_name": "lib/steel/c/Steel.ST.C.Types.Union.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 7, "end_line": 411, "start_col": 0, "start_line": 391 }
module Steel.ST.C.Types.Union open Steel.ST.Util include Steel.ST.C.Types.Fields open Steel.C.Typestring module P = Steel.FractionalPermission [@@noextract_to "krml"] // primitive val define_union0 (tn: Type0) (#tf: Type0) (n: string) (fields: field_description_t tf) : Tot Type0 inline_for_extraction [@@noextract_to ...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.C.Types.Fields.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.C.Typestring.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classic...
[ { "abbrev": true, "full_module": "Steel.FractionalPermission", "short_module": "P" }, { "abbrev": false, "full_module": "Steel.C.Typestring", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST.C.Types.Fields", "short_module": null }, { "abbrev": f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Steel.ST.C.Types.Base.ref (Steel.ST.C.Types.Union.union0 tn n fields) -> field: Steel.ST.C.Types.Fields.field_t fields { Steel.ST.C.Types.Union.union_get_case (FStar.Ghost.reveal v) == FStar.Pervasives.Native.Some field } -> _: Prims.unit -> Steel.ST.Effect.STT (Steel.ST.C.Type...
Steel.ST.Effect.STT
[]
[]
[ "Prims.string", "Steel.ST.C.Types.Fields.field_description_t", "FStar.Ghost.erased", "Steel.ST.C.Types.Union.union_t0", "Steel.ST.C.Types.Base.ref", "Steel.ST.C.Types.Union.union0", "Steel.ST.C.Types.Fields.field_t", "Prims.eq2", "FStar.Pervasives.Native.option", "Steel.ST.C.Types.Union.union_get_...
[]
false
true
false
false
false
let union_field (#tn: Type0) (#tf: Type0) (#n: string) (#fields: field_description_t tf) (#v: Ghost.erased (union_t0 tn n fields)) (r: ref (union0 tn n fields)) (field: field_t fields {union_get_case v == Some field}) (#t': Type0) (#td': typedef t') (#[norm_fi...
union_field0 t' r field td'
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.enum_key_of_repr
val enum_key_of_repr (#key #repr: eqtype) (e: enum key repr) (r: enum_repr e) : Pure (enum_key e) (requires True) (ensures (fun y -> L.assoc y e == Some r))
val enum_key_of_repr (#key #repr: eqtype) (e: enum key repr) (r: enum_repr e) : Pure (enum_key e) (requires True) (ensures (fun y -> L.assoc y e == Some r))
let enum_key_of_repr (#key #repr: eqtype) (e: enum key repr) (r: enum_repr e) : Pure (enum_key e) (requires True) (ensures (fun y -> L.assoc y e == Some r)) = map_fst_flip e; let e' = list_map #(key * repr) #(repr * key) flip e in L.assoc_mem r e'; let k = Some?.v (L.assoc r e') in assoc_flip_elim e r...
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 19, "end_line": 139, "start_col": 0, "start_line": 126 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> r: LowParse.Spec.Enum.enum_repr e -> Prims.Pure (LowParse.Spec.Enum.enum_key e)
Prims.Pure
[]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.enum_repr", "LowParse.Spec.Enum.enum_key", "Prims.unit", "FStar.List.Tot.Properties.assoc_mem", "LowParse.Spec.Enum.assoc_flip_elim", "FStar.Pervasives.Native.__proj__Some__item__v", "FStar.List.Tot.Base.assoc", "Prims.list", "FStar....
[]
false
false
false
false
false
let enum_key_of_repr (#key #repr: eqtype) (e: enum key repr) (r: enum_repr e) : Pure (enum_key e) (requires True) (ensures (fun y -> L.assoc y e == Some r)) =
map_fst_flip e; let e' = list_map #(key * repr) #(repr * key) flip e in L.assoc_mem r e'; let k = Some?.v (L.assoc r e') in assoc_flip_elim e r k; L.assoc_mem k e; (k <: enum_key e)
false
Steel.ST.C.Types.Union.fsti
Steel.ST.C.Types.Union.union_field1
val union_field1 (#tn #tf t': Type0) (#n: string) (#fields: field_description_t tf) (#v: Ghost.erased (union_t0 tn n fields)) (r: ref (union0 tn n fields)) (field: field_t fields {union_get_case v == Some field}) (td': typedef t') (sq_t': squash (t' == fields.fd_type fiel...
val union_field1 (#tn #tf t': Type0) (#n: string) (#fields: field_description_t tf) (#v: Ghost.erased (union_t0 tn n fields)) (r: ref (union0 tn n fields)) (field: field_t fields {union_get_case v == Some field}) (td': typedef t') (sq_t': squash (t' == fields.fd_type fiel...
let union_field1 (#tn: Type0) (#tf: Type0) (t': Type0) (#n: string) (#fields: field_description_t tf) (#v: Ghost.erased (union_t0 tn n fields)) (r: ref (union0 tn n fields)) (field: field_t fields {union_get_case v == Some field}) (td': typedef t') (sq_t': squash (t' == fields.fd_type field)) (sq...
{ "file_name": "lib/steel/c/Steel.ST.C.Types.Union.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 29, "end_line": 388, "start_col": 0, "start_line": 373 }
module Steel.ST.C.Types.Union open Steel.ST.Util include Steel.ST.C.Types.Fields open Steel.C.Typestring module P = Steel.FractionalPermission [@@noextract_to "krml"] // primitive val define_union0 (tn: Type0) (#tf: Type0) (n: string) (fields: field_description_t tf) : Tot Type0 inline_for_extraction [@@noextract_to ...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.C.Types.Fields.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.C.Typestring.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classic...
[ { "abbrev": true, "full_module": "Steel.FractionalPermission", "short_module": "P" }, { "abbrev": false, "full_module": "Steel.C.Typestring", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST.C.Types.Fields", "short_module": null }, { "abbrev": f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t': Type0 -> r: Steel.ST.C.Types.Base.ref (Steel.ST.C.Types.Union.union0 tn n fields) -> field: Steel.ST.C.Types.Fields.field_t fields { Steel.ST.C.Types.Union.union_get_case (FStar.Ghost.reveal v) == FStar.Pervasives.Native.Some field } -> td': Steel.ST.C.Types.Base.typedef t' ...
Steel.ST.Effect.STT
[]
[]
[ "Prims.string", "Steel.ST.C.Types.Fields.field_description_t", "FStar.Ghost.erased", "Steel.ST.C.Types.Union.union_t0", "Steel.ST.C.Types.Base.ref", "Steel.ST.C.Types.Union.union0", "Steel.ST.C.Types.Fields.field_t", "Prims.eq2", "FStar.Pervasives.Native.option", "Steel.ST.C.Types.Union.union_get_...
[]
false
true
false
false
false
let union_field1 (#tn #tf t': Type0) (#n: string) (#fields: field_description_t tf) (#v: Ghost.erased (union_t0 tn n fields)) (r: ref (union0 tn n fields)) (field: field_t fields {union_get_case v == Some field}) (td': typedef t') (sq_t': squash (t' == fields.fd_type fiel...
union_field0 t' r field td'
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.map_fst_flip
val map_fst_flip (#a #b: Type) (l: list (a * b)) : Lemma (list_map fst (list_map flip l) == list_map snd l)
val map_fst_flip (#a #b: Type) (l: list (a * b)) : Lemma (list_map fst (list_map flip l) == list_map snd l)
let rec map_fst_flip (#a #b: Type) (l: list (a * b)) : Lemma (list_map fst (list_map flip l) == list_map snd l) = match l with | [] -> () | _ :: q -> map_fst_flip q
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 28, "end_line": 55, "start_col": 0, "start_line": 51 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: Prims.list (a * b) -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Enum.list_map FStar.Pervasives.Native.fst (LowParse.Spec.Enum.list_map LowParse.Spec.Enum.flip l) == LowParse.Spec.Enum.list_map FStar.Pervasives.Native.snd l)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "FStar.Pervasives.Native.tuple2", "LowParse.Spec.Enum.map_fst_flip", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.eq2", "Prims.l_or", "FStar.List.Tot.Base.map", "FStar.Pervasives.Native.snd", "FStar.Pervasives.Native.fst", "LowParse.Spec.Enum.list_map", "LowParse.Spec.E...
[ "recursion" ]
false
false
true
false
false
let rec map_fst_flip (#a #b: Type) (l: list (a * b)) : Lemma (list_map fst (list_map flip l) == list_map snd l) =
match l with | [] -> () | _ :: q -> map_fst_flip q
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.assoc_flip_intro
val assoc_flip_intro (#a #b: eqtype) (l: list (a * b)) (y: b) (x: a) : Lemma (requires (L.noRepeats (list_map fst l) /\ L.noRepeats (list_map snd l) /\ L.assoc x l == Some y)) (ensures (L.assoc y (list_map flip l) == Some x))
val assoc_flip_intro (#a #b: eqtype) (l: list (a * b)) (y: b) (x: a) : Lemma (requires (L.noRepeats (list_map fst l) /\ L.noRepeats (list_map snd l) /\ L.assoc x l == Some y)) (ensures (L.assoc y (list_map flip l) == Some x))
let rec assoc_flip_intro (#a #b: eqtype) (l: list (a * b)) (y: b) (x: a) : Lemma (requires ( L.noRepeats (list_map fst l) /\ L.noRepeats (list_map snd l) /\ L.assoc x l == Some y )) (ensures ( L.assoc y (list_map flip l) == Some x )) = map_fst_flip l; map_snd_flip l; map_flip_flip l;...
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 39, "end_line": 124, "start_col": 0, "start_line": 107 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: Prims.list (a * b) -> y: b -> x: a -> FStar.Pervasives.Lemma (requires FStar.List.Tot.Base.noRepeats (LowParse.Spec.Enum.list_map FStar.Pervasives.Native.fst l) /\ FStar.List.Tot.Base.noRepeats (LowParse.Spec.Enum.list_map FStar.Pervasives.Native.snd l) /\ FStar.List.Tot.Base.assoc x ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "Prims.list", "FStar.Pervasives.Native.tuple2", "LowParse.Spec.Enum.assoc_flip_elim", "LowParse.Spec.Enum.list_map", "LowParse.Spec.Enum.flip", "Prims.unit", "LowParse.Spec.Enum.map_flip_flip", "LowParse.Spec.Enum.map_snd_flip", "LowParse.Spec.Enum.map_fst_flip", "Prims.l_and", ...
[ "recursion" ]
false
false
true
false
false
let rec assoc_flip_intro (#a #b: eqtype) (l: list (a * b)) (y: b) (x: a) : Lemma (requires (L.noRepeats (list_map fst l) /\ L.noRepeats (list_map snd l) /\ L.assoc x l == Some y)) (ensures (L.assoc y (list_map flip l) == Some x)) =
map_fst_flip l; map_snd_flip l; map_flip_flip l; assoc_flip_elim (list_map flip l) x y
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.assoc_flip_elim
val assoc_flip_elim (#a #b: eqtype) (l: list (a * b)) (y: b) (x: a) : Lemma (requires (L.noRepeats (list_map fst l) /\ L.noRepeats (list_map snd l) /\ L.assoc y (list_map flip l) == Some x)) (ensures (L.assoc x l == Some y)) (decreases l)
val assoc_flip_elim (#a #b: eqtype) (l: list (a * b)) (y: b) (x: a) : Lemma (requires (L.noRepeats (list_map fst l) /\ L.noRepeats (list_map snd l) /\ L.assoc y (list_map flip l) == Some x)) (ensures (L.assoc x l == Some y)) (decreases l)
let rec assoc_flip_elim (#a #b: eqtype) (l: list (a * b)) (y: b) (x: a) : Lemma (requires ( L.noRepeats (list_map fst l) /\ L.noRepeats (list_map snd l) /\ L.assoc y (list_map flip l) == Some x )) (ensures ( L.assoc x l == Some y )) (decreases l) = let ((x', y') :: l') = l in if y' =...
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 5, "end_line": 105, "start_col": 0, "start_line": 77 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: Prims.list (a * b) -> y: b -> x: a -> FStar.Pervasives.Lemma (requires FStar.List.Tot.Base.noRepeats (LowParse.Spec.Enum.list_map FStar.Pervasives.Native.fst l) /\ FStar.List.Tot.Base.noRepeats (LowParse.Spec.Enum.list_map FStar.Pervasives.Native.snd l) /\ FStar.List.Tot.Base.assoc y ...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.eqtype", "Prims.list", "FStar.Pervasives.Native.tuple2", "Prims.op_Equality", "Prims.bool", "Prims._assert", "Prims.l_False", "Prims.unit", "LowParse.Spec.Enum.map_snd_flip", "LowParse.Spec.Enum.assoc_mem_snd", "LowParse.Spec.Enum.list_map", "LowParse.Spec.Enum.flip", "Prims.eq2", "...
[ "recursion" ]
false
false
true
false
false
let rec assoc_flip_elim (#a #b: eqtype) (l: list (a * b)) (y: b) (x: a) : Lemma (requires (L.noRepeats (list_map fst l) /\ L.noRepeats (list_map snd l) /\ L.assoc y (list_map flip l) == Some x)) (ensures (L.assoc x l == Some y)) (decreases l) =
let (x', y') :: l' = l in if y' = y then () else if x' = x then (assert (list_mem x' (list_map fst l') == false); assoc_mem_snd (list_map flip l') y x; map_snd_flip l'; assert False) else assoc_flip_elim l' y x
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.parse_enum_key
val parse_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (e: enum key repr) : Tot (parser (parse_filter_kind k) (enum_key e))
val parse_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (e: enum key repr) : Tot (parser (parse_filter_kind k) (enum_key e))
let parse_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (e: enum key repr) : Tot (parser (parse_filter_kind k) (enum_key e)) = (p `parse_filter` parse_enum_key_cond e ) `parse_synth` parse_enum_key_synth e
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 24, "end_line": 166, "start_col": 0, "start_line": 155 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: LowParse.Spec.Base.parser k repr -> e: LowParse.Spec.Enum.enum key repr -> LowParse.Spec.Base.parser (LowParse.Spec.Combinators.parse_filter_kind k) (LowParse.Spec.Enum.enum_key e)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "Prims.eqtype", "LowParse.Spec.Base.parser", "LowParse.Spec.Enum.enum", "LowParse.Spec.Combinators.parse_synth", "LowParse.Spec.Combinators.parse_filter_kind", "LowParse.Spec.Combinators.parse_filter_refine", "LowParse.Spec.Enum.parse_enum_key_cond", "LowParse.Spec....
[]
false
false
false
false
false
let parse_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (e: enum key repr) : Tot (parser (parse_filter_kind k) (enum_key e)) =
(p `parse_filter` (parse_enum_key_cond e)) `parse_synth` (parse_enum_key_synth e)
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.is_total_enum
val is_total_enum (#key #repr: eqtype) (l: list (key * repr)) : GTot Type0
val is_total_enum (#key #repr: eqtype) (l: list (key * repr)) : GTot Type0
let is_total_enum (#key: eqtype) (#repr: eqtype) (l: list (key * repr)) : GTot Type0 = forall (k: key) . {:pattern (list_mem k (list_map fst l))} list_mem k (list_map fst l)
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 88, "end_line": 333, "start_col": 0, "start_line": 332 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: Prims.list (key * repr) -> Prims.GTot Type0
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.eqtype", "Prims.list", "FStar.Pervasives.Native.tuple2", "Prims.l_Forall", "Prims.b2t", "LowParse.Spec.Enum.list_mem", "LowParse.Spec.Enum.list_map", "FStar.Pervasives.Native.fst" ]
[]
false
false
false
false
true
let is_total_enum (#key #repr: eqtype) (l: list (key * repr)) : GTot Type0 =
forall (k: key). {:pattern (list_mem k (list_map fst l))} list_mem k (list_map fst l)
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.serialize_enum_key_synth_recip
val serialize_enum_key_synth_recip (#key #repr: eqtype) (e: enum key repr) (k: enum_key e) : GTot (r: repr{parse_enum_key_cond e r == true})
val serialize_enum_key_synth_recip (#key #repr: eqtype) (e: enum key repr) (k: enum_key e) : GTot (r: repr{parse_enum_key_cond e r == true})
let serialize_enum_key_synth_recip (#key #repr: eqtype) (e: enum key repr) (k: enum_key e) : GTot (r: repr { parse_enum_key_cond e r == true } ) = enum_repr_of_key e k
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 22, "end_line": 203, "start_col": 0, "start_line": 198 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> k: LowParse.Spec.Enum.enum_key e -> Prims.GTot (r: repr{LowParse.Spec.Enum.parse_enum_key_cond e r == true})
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Enum.enum_repr_of_key", "Prims.eq2", "Prims.bool", "LowParse.Spec.Enum.parse_enum_key_cond" ]
[]
false
false
false
false
false
let serialize_enum_key_synth_recip (#key #repr: eqtype) (e: enum key repr) (k: enum_key e) : GTot (r: repr{parse_enum_key_cond e r == true}) =
enum_repr_of_key e k
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.parse_enum_key_synth
val parse_enum_key_synth (#key #repr: eqtype) (e: enum key repr) (r: repr{parse_enum_key_cond e r == true}) : GTot (enum_key e)
val parse_enum_key_synth (#key #repr: eqtype) (e: enum key repr) (r: repr{parse_enum_key_cond e r == true}) : GTot (enum_key e)
let parse_enum_key_synth (#key #repr: eqtype) (e: enum key repr) (r: repr { parse_enum_key_cond e r == true } ) : GTot (enum_key e) = enum_key_of_repr e r
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 22, "end_line": 153, "start_col": 0, "start_line": 148 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> r: repr{LowParse.Spec.Enum.parse_enum_key_cond e r == true} -> Prims.GTot (LowParse.Spec.Enum.enum_key e)
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "Prims.eq2", "Prims.bool", "LowParse.Spec.Enum.parse_enum_key_cond", "LowParse.Spec.Enum.enum_key_of_repr", "LowParse.Spec.Enum.enum_key" ]
[]
false
false
false
false
false
let parse_enum_key_synth (#key #repr: eqtype) (e: enum key repr) (r: repr{parse_enum_key_cond e r == true}) : GTot (enum_key e) =
enum_key_of_repr e r
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.synth_total_enum_key
val synth_total_enum_key (#key #repr: eqtype) (l: total_enum key repr) (k: enum_key l) : Tot key
val synth_total_enum_key (#key #repr: eqtype) (l: total_enum key repr) (k: enum_key l) : Tot key
let synth_total_enum_key (#key: eqtype) (#repr: eqtype) (l: total_enum key repr) (k: enum_key l) : Tot key = let k' : key = k in k'
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 4, "end_line": 345, "start_col": 0, "start_line": 338 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: LowParse.Spec.Enum.total_enum key repr -> k: LowParse.Spec.Enum.enum_key l -> key
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.total_enum", "LowParse.Spec.Enum.enum_key" ]
[]
false
false
false
false
false
let synth_total_enum_key (#key #repr: eqtype) (l: total_enum key repr) (k: enum_key l) : Tot key =
let k':key = k in k'
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.enum_repr_of_key
val enum_repr_of_key (#key #repr: eqtype) (e: enum key repr) (k: enum_key e) : Pure (enum_repr e) (requires True) (ensures (fun r -> L.assoc k e == Some r))
val enum_repr_of_key (#key #repr: eqtype) (e: enum key repr) (k: enum_key e) : Pure (enum_repr e) (requires True) (ensures (fun r -> L.assoc k e == Some r))
let enum_repr_of_key (#key #repr: eqtype) (e: enum key repr) (k: enum_key e) : Pure (enum_repr e) (requires True) (ensures (fun r -> L.assoc k e == Some r)) = L.assoc_mem k e; let r = Some?.v (L.assoc k e) in assoc_flip_intro e r k; L.assoc_mem r (list_map flip e); map_fst_flip e; (r <: enum_repr e)
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 20, "end_line": 180, "start_col": 0, "start_line": 168 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> k: LowParse.Spec.Enum.enum_key e -> Prims.Pure (LowParse.Spec.Enum.enum_repr e)
Prims.Pure
[]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Enum.enum_repr", "Prims.unit", "LowParse.Spec.Enum.map_fst_flip", "FStar.List.Tot.Properties.assoc_mem", "LowParse.Spec.Enum.list_map", "FStar.Pervasives.Native.tuple2", "LowParse.Spec.Enum.flip", "LowParse....
[]
false
false
false
false
false
let enum_repr_of_key (#key #repr: eqtype) (e: enum key repr) (k: enum_key e) : Pure (enum_repr e) (requires True) (ensures (fun r -> L.assoc k e == Some r)) =
L.assoc_mem k e; let r = Some?.v (L.assoc k e) in assoc_flip_intro e r k; L.assoc_mem r (list_map flip e); map_fst_flip e; (r <: enum_repr e)
false
Pulse.Checker.Prover.Substs.fst
Pulse.Checker.Prover.Substs.ss_to_nt_substs
val ss_to_nt_substs (g:env) (uvs:env) (ss:ss_t) : T.Tac (either (nts:nt_substs & effect_labels:list T.tot_or_ghost { well_typed_nt_substs g uvs nts effect_labels /\ is_permutation nts ss }) string)
val ss_to_nt_substs (g:env) (uvs:env) (ss:ss_t) : T.Tac (either (nts:nt_substs & effect_labels:list T.tot_or_ghost { well_typed_nt_substs g uvs nts effect_labels /\ is_permutation nts ss }) string)
let rec ss_to_nt_substs (g:env) (uvs:env) (ss:ss_t) : T.Tac (either (nts:nt_substs & effect_labels:list T.tot_or_ghost { well_typed_nt_substs g uvs nts effect_labels /\ is_permutation nts ss }) string) = let g = Env.p...
{ "file_name": "lib/steel/pulse/Pulse.Checker.Prover.Substs.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 66, "end_line": 315, "start_col": 0, "start_line": 282 }
(* 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.Env.fsti.checked", "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Checker.Pure.fsti.checked", "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Set.fsti.checked", ...
[ { "abbrev": true, "full_module": "Pulse.Typing.Metatheory", "short_module": "Metatheory" }, { "abbrev": true, "full_module": "Pulse.Typing.Env", "short_module": "Env" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
g: Pulse.Typing.Env.env -> uvs: Pulse.Typing.Env.env -> ss: Pulse.Checker.Prover.Substs.ss_t -> FStar.Tactics.Effect.Tac (FStar.Pervasives.either (Prims.dtuple2 Pulse.Checker.Prover.Substs.nt_substs (fun nts -> effect_labels: Prims.list FStar.Stubs.TypeChecker.Core.tot_...
FStar.Tactics.Effect.Tac
[]
[]
[ "Pulse.Typing.Env.env", "Pulse.Checker.Prover.Substs.ss_t", "Pulse.Typing.Env.bindings", "Pulse.Checker.Prover.Substs.__proj__Mkss_t__item__l", "FStar.Pervasives.Inl", "Prims.dtuple2", "Pulse.Checker.Prover.Substs.nt_substs", "Prims.list", "FStar.Stubs.TypeChecker.Core.tot_or_ghost", "Prims.l_and"...
[ "recursion" ]
false
true
false
false
false
let rec ss_to_nt_substs (g uvs: env) (ss: ss_t) : T.Tac (either (nts: nt_substs & effect_labels: list T.tot_or_ghost {well_typed_nt_substs g uvs nts effect_labels /\ is_permutation nts ss}) string) =
let g = Env.push_context g "ss_to_nt_substs" (range_of_env g) in match bindings uvs with | [] -> (match ss.l with | [] -> Inl (| [], [] |) | x :: _ -> Inr (Printf.sprintf "extra uvars in the substitutions collected by the prover, e.g._#%d" x)) | _ -> let x, ty, rest_uvs = remove_binding uvs in if Ma...
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.serialize_enum_key
val serialize_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (s: serializer p) (e: enum key repr) : Tot (serializer (parse_enum_key p e))
val serialize_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (s: serializer p) (e: enum key repr) : Tot (serializer (parse_enum_key p e))
let serialize_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (s: serializer p) (e: enum key repr) : Tot (serializer (parse_enum_key p e)) = serialize_enum_key_synth_inverse e; serialize_synth (parse_filter p (parse_enum_key_cond e)) (parse_enum_key_synth e) (serialize_filter ...
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 6, "end_line": 225, "start_col": 0, "start_line": 212 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: LowParse.Spec.Base.parser k repr -> s: LowParse.Spec.Base.serializer p -> e: LowParse.Spec.Enum.enum key repr -> LowParse.Spec.Base.serializer (LowParse.Spec.Enum.parse_enum_key p e)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "Prims.eqtype", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.Spec.Enum.enum", "LowParse.Spec.Combinators.serialize_synth", "LowParse.Spec.Combinators.parse_filter_kind", "LowParse.Spec.Combinators.parse_filter_refine", "LowParse.Spec.Enum....
[]
false
false
false
false
false
let serialize_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (s: serializer p) (e: enum key repr) : Tot (serializer (parse_enum_key p e)) =
serialize_enum_key_synth_inverse e; serialize_synth (parse_filter p (parse_enum_key_cond e)) (parse_enum_key_synth e) (serialize_filter s (parse_enum_key_cond e)) (serialize_enum_key_synth_recip e) ()
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.serialize_enum_key_synth_inverse
val serialize_enum_key_synth_inverse (#key #repr: eqtype) (e: enum key repr) : Lemma (synth_inverse (parse_enum_key_synth e) (serialize_enum_key_synth_recip e))
val serialize_enum_key_synth_inverse (#key #repr: eqtype) (e: enum key repr) : Lemma (synth_inverse (parse_enum_key_synth e) (serialize_enum_key_synth_recip e))
let serialize_enum_key_synth_inverse (#key #repr: eqtype) (e: enum key repr) : Lemma (synth_inverse (parse_enum_key_synth e) (serialize_enum_key_synth_recip e)) = Classical.forall_intro (enum_key_of_repr_of_key e)
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 52, "end_line": 210, "start_col": 0, "start_line": 205 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Combinators.synth_inverse (LowParse.Spec.Enum.parse_enum_key_synth e) (LowParse.Spec.Enum.serialize_enum_key_synth_recip e))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "FStar.Classical.forall_intro", "LowParse.Spec.Enum.enum_key", "Prims.eq2", "LowParse.Spec.Enum.enum_key_of_repr", "LowParse.Spec.Enum.enum_repr_of_key", "LowParse.Spec.Enum.enum_key_of_repr_of_key", "Prims.unit", "Prims.l_True", "Prims.squash", "LowP...
[]
false
false
true
false
false
let serialize_enum_key_synth_inverse (#key #repr: eqtype) (e: enum key repr) : Lemma (synth_inverse (parse_enum_key_synth e) (serialize_enum_key_synth_recip e)) =
Classical.forall_intro (enum_key_of_repr_of_key e)
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.r_reflexive_prop
val r_reflexive_prop (t: Type) (r: (t -> t -> GTot Type0)) : GTot Type0
val r_reflexive_prop (t: Type) (r: (t -> t -> GTot Type0)) : GTot Type0
let r_reflexive_prop (t: Type) (r: (t -> t -> GTot Type0)) : GTot Type0 = forall (x: t) . {:pattern (r x x)} r x x
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 42, "end_line": 464, "start_col": 0, "start_line": 460 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Type -> r: (_: t -> _: t -> Prims.GTot Type0) -> Prims.GTot Type0
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.l_Forall" ]
[]
false
false
false
false
true
let r_reflexive_prop (t: Type) (r: (t -> t -> GTot Type0)) : GTot Type0 =
forall (x: t). {:pattern (r x x)} r x x
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.serialize_maybe_enum_key_eq
val serialize_maybe_enum_key_eq (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (s: serializer p) (e: enum key repr) (x: maybe_enum_key e) : Lemma (serialize (serialize_maybe_enum_key p s e) x == serialize s (repr_of_maybe_enum_key e x))
val serialize_maybe_enum_key_eq (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (s: serializer p) (e: enum key repr) (x: maybe_enum_key e) : Lemma (serialize (serialize_maybe_enum_key p s e) x == serialize s (repr_of_maybe_enum_key e x))
let serialize_maybe_enum_key_eq (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (s: serializer p) (e: enum key repr) (x: maybe_enum_key e) : Lemma (serialize (serialize_maybe_enum_key p s e) x == serialize s (repr_of_maybe_enum_key e x)) = serialize_synth_eq p (maybe_enum_key_of_repr e) s (repr...
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 83, "end_line": 330, "start_col": 0, "start_line": 321 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: LowParse.Spec.Base.serializer p -> e: LowParse.Spec.Enum.enum key repr -> x: LowParse.Spec.Enum.maybe_enum_key e -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Base.serialize (LowParse.Spec.Enum.serialize_maybe_enum_key p s e) x == LowParse.Spec.Base.serialize s (LowParse.Spec.Enum.r...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Base.parser_kind", "Prims.eqtype", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.maybe_enum_key", "LowParse.Spec.Combinators.serialize_synth_eq", "LowParse.Spec.Enum.maybe_enum_key_of_repr", "LowParse.Spec.Enum.repr_of_may...
[]
true
false
true
false
false
let serialize_maybe_enum_key_eq (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (s: serializer p) (e: enum key repr) (x: maybe_enum_key e) : Lemma (serialize (serialize_maybe_enum_key p s e) x == serialize s (repr_of_maybe_enum_key e x)) =
serialize_synth_eq p (maybe_enum_key_of_repr e) s (repr_of_maybe_enum_key e) () x
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.enum_key_of_repr_of_key
val enum_key_of_repr_of_key (#key #repr: eqtype) (e: enum key repr) (k: enum_key e) : Lemma (enum_key_of_repr e (enum_repr_of_key e k) == k)
val enum_key_of_repr_of_key (#key #repr: eqtype) (e: enum key repr) (k: enum_key e) : Lemma (enum_key_of_repr e (enum_repr_of_key e k) == k)
let enum_key_of_repr_of_key (#key #repr: eqtype) (e: enum key repr) (k: enum_key e) : Lemma (enum_key_of_repr e (enum_repr_of_key e k) == k) = assoc_flip_intro e (enum_repr_of_key e k) k
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 45, "end_line": 196, "start_col": 0, "start_line": 190 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> k: LowParse.Spec.Enum.enum_key e -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Enum.enum_key_of_repr e (LowParse.Spec.Enum.enum_repr_of_key e k) == k)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Enum.assoc_flip_intro", "LowParse.Spec.Enum.enum_repr_of_key", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.eq2", "LowParse.Spec.Enum.enum_key_of_repr", "Prims.Nil", "FStar.Pervasives.pattern" ]
[]
true
false
true
false
false
let enum_key_of_repr_of_key (#key #repr: eqtype) (e: enum key repr) (k: enum_key e) : Lemma (enum_key_of_repr e (enum_repr_of_key e k) == k) =
assoc_flip_intro e (enum_repr_of_key e k) k
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.r_transitive_prop
val r_transitive_prop (t: Type) (r: (t -> t -> GTot Type0)) : GTot Type0
val r_transitive_prop (t: Type) (r: (t -> t -> GTot Type0)) : GTot Type0
let r_transitive_prop (t: Type) (r: (t -> t -> GTot Type0)) : GTot Type0 = forall (x y z: t) . {:pattern (r x y); (r y z)} (r x y /\ r y z) ==> r x z
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 76, "end_line": 485, "start_col": 0, "start_line": 481 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Type -> r: (_: t -> _: t -> Prims.GTot Type0) -> Prims.GTot Type0
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.l_Forall", "Prims.l_imp", "Prims.l_and" ]
[]
false
false
false
false
true
let r_transitive_prop (t: Type) (r: (t -> t -> GTot Type0)) : GTot Type0 =
forall (x: t) (y: t) (z: t). {:pattern (r x y); (r y z)} (r x y /\ r y z) ==> r x z
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.serialize_enum_key_eq
val serialize_enum_key_eq (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (s: serializer p) (e: enum key repr) (x: enum_key e) : Lemma (serialize (serialize_enum_key p s e) x == serialize s (enum_repr_of_key e x))
val serialize_enum_key_eq (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (s: serializer p) (e: enum key repr) (x: enum_key e) : Lemma (serialize (serialize_enum_key p s e) x == serialize s (enum_repr_of_key e x))
let serialize_enum_key_eq (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (s: serializer p) (e: enum key repr) (x: enum_key e) : Lemma (serialize (serialize_enum_key p s e) x == serialize s (enum_repr_of_key e x)) = serialize_enum_key_synth_inverse e; serialize_synth_eq (parse_filter p (p...
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 5, "end_line": 243, "start_col": 0, "start_line": 227 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: LowParse.Spec.Base.serializer p -> e: LowParse.Spec.Enum.enum key repr -> x: LowParse.Spec.Enum.enum_key e -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Base.serialize (LowParse.Spec.Enum.serialize_enum_key p s e) x == LowParse.Spec.Base.serialize s (LowParse.Spec.Enum.enum_repr_of_...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Base.parser_kind", "Prims.eqtype", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Combinators.serialize_synth_eq", "LowParse.Spec.Combinators.parse_filter_kind", "LowParse.Spec.Combinators.parse_fi...
[]
true
false
true
false
false
let serialize_enum_key_eq (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (s: serializer p) (e: enum key repr) (x: enum_key e) : Lemma (serialize (serialize_enum_key p s e) x == serialize s (enum_repr_of_key e x)) =
serialize_enum_key_synth_inverse e; serialize_synth_eq (parse_filter p (parse_enum_key_cond e)) (parse_enum_key_synth e) (serialize_filter s (parse_enum_key_cond e)) (serialize_enum_key_synth_recip e) () x
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.parse_enum_key_eq
val parse_enum_key_eq (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (e: enum key repr) (input: bytes) : Lemma (parse (parse_enum_key p e) input == (match parse p input with | Some (x, consumed) -> (match maybe_enum_key_of_repr e x with ...
val parse_enum_key_eq (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (e: enum key repr) (input: bytes) : Lemma (parse (parse_enum_key p e) input == (match parse p input with | Some (x, consumed) -> (match maybe_enum_key_of_repr e x with ...
let parse_enum_key_eq (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (e: enum key repr) (input: bytes) : Lemma (parse (parse_enum_key p e) input == (match parse p input with | Some (x, consumed) -> begin match maybe_enum_key_of_repr e x with | Known k -> Some (k, consumed) | _ -> No...
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 88, "end_line": 299, "start_col": 0, "start_line": 283 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: LowParse.Spec.Base.parser k repr -> e: LowParse.Spec.Enum.enum key repr -> input: LowParse.Bytes.bytes -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Base.parse (LowParse.Spec.Enum.parse_enum_key p e) input == (match LowParse.Spec.Base.parse p input with | FStar.Pervasives.Na...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Base.parser_kind", "Prims.eqtype", "LowParse.Spec.Base.parser", "LowParse.Spec.Enum.enum", "LowParse.Bytes.bytes", "LowParse.Spec.Combinators.parse_synth_eq", "LowParse.Spec.Combinators.parse_filter_kind", "LowParse.Spec.Combinators.parse_filter_refine", "LowParse.Spec.Enum.parse_enum...
[]
true
false
true
false
false
let parse_enum_key_eq (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (e: enum key repr) (input: bytes) : Lemma (parse (parse_enum_key p e) input == (match parse p input with | Some (x, consumed) -> (match maybe_enum_key_of_repr e x with ...
parse_filter_eq p (parse_enum_key_cond e) input; parse_synth_eq (p `parse_filter` (parse_enum_key_cond e)) (parse_enum_key_synth e) input
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.repr_of_maybe_enum_key
val repr_of_maybe_enum_key (#key #repr: eqtype) (e: enum key repr) (x: maybe_enum_key e) : Tot (r: repr{maybe_enum_key_of_repr e r == x})
val repr_of_maybe_enum_key (#key #repr: eqtype) (e: enum key repr) (x: maybe_enum_key e) : Tot (r: repr{maybe_enum_key_of_repr e r == x})
let repr_of_maybe_enum_key (#key #repr: eqtype) (e: enum key repr) (x: maybe_enum_key e) : Tot (r: repr { maybe_enum_key_of_repr e r == x } ) = match x with | Known k' -> enum_key_of_repr_of_key e k' ; enum_repr_of_key e k' | Unknown r -> r
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 18, "end_line": 310, "start_col": 0, "start_line": 301 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> x: LowParse.Spec.Enum.maybe_enum_key e -> r: repr{LowParse.Spec.Enum.maybe_enum_key_of_repr e r == x}
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.maybe_enum_key", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Enum.enum_repr_of_key", "Prims.unit", "LowParse.Spec.Enum.enum_key_of_repr_of_key", "LowParse.Spec.Enum.unknown_enum_repr", "Prims.eq2", "LowParse.Spec.Enum.maybe_enum_key_...
[]
false
false
false
false
false
let repr_of_maybe_enum_key (#key #repr: eqtype) (e: enum key repr) (x: maybe_enum_key e) : Tot (r: repr{maybe_enum_key_of_repr e r == x}) =
match x with | Known k' -> enum_key_of_repr_of_key e k'; enum_repr_of_key e k' | Unknown r -> r
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.synth_total_enum_key_recip
val synth_total_enum_key_recip (#key #repr: eqtype) (l: total_enum key repr) (k: key) : Tot (k': enum_key l {synth_total_enum_key l k' == k})
val synth_total_enum_key_recip (#key #repr: eqtype) (l: total_enum key repr) (k: key) : Tot (k': enum_key l {synth_total_enum_key l k' == k})
let synth_total_enum_key_recip (#key: eqtype) (#repr: eqtype) (l: total_enum key repr) (k: key) : Tot (k' : enum_key l { synth_total_enum_key l k' == k } ) = k
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 3, "end_line": 362, "start_col": 0, "start_line": 356 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: LowParse.Spec.Enum.total_enum key repr -> k: key -> k': LowParse.Spec.Enum.enum_key l {LowParse.Spec.Enum.synth_total_enum_key l k' == k}
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.total_enum", "LowParse.Spec.Enum.enum_key", "Prims.eq2", "LowParse.Spec.Enum.synth_total_enum_key" ]
[]
false
false
false
false
false
let synth_total_enum_key_recip (#key #repr: eqtype) (l: total_enum key repr) (k: key) : Tot (k': enum_key l {synth_total_enum_key l k' == k}) =
k
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.serialize_maybe_enum_key
val serialize_maybe_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (s: serializer p) (e: enum key repr) : Tot (serializer (parse_maybe_enum_key p e))
val serialize_maybe_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (s: serializer p) (e: enum key repr) : Tot (serializer (parse_maybe_enum_key p e))
let serialize_maybe_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (s: serializer p) (e: enum key repr) : Tot (serializer (parse_maybe_enum_key p e)) = serialize_synth p (maybe_enum_key_of_repr e) s (repr_of_maybe_enum_key e) ()
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 78, "end_line": 319, "start_col": 0, "start_line": 312 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: LowParse.Spec.Base.parser k repr -> s: LowParse.Spec.Base.serializer p -> e: LowParse.Spec.Enum.enum key repr -> LowParse.Spec.Base.serializer (LowParse.Spec.Enum.parse_maybe_enum_key p e)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "Prims.eqtype", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.Spec.Enum.enum", "LowParse.Spec.Combinators.serialize_synth", "LowParse.Spec.Enum.maybe_enum_key", "LowParse.Spec.Enum.maybe_enum_key_of_repr", "LowParse.Spec.Enum.repr_of_maybe_...
[]
false
false
false
false
false
let serialize_maybe_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (s: serializer p) (e: enum key repr) : Tot (serializer (parse_maybe_enum_key p e)) =
serialize_synth p (maybe_enum_key_of_repr e) s (repr_of_maybe_enum_key e) ()
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.parse_maybe_enum_key
val parse_maybe_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (e: enum key repr) : Tot (parser k (maybe_enum_key e))
val parse_maybe_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (e: enum key repr) : Tot (parser k (maybe_enum_key e))
let parse_maybe_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (e: enum key repr) : Tot (parser k (maybe_enum_key e)) = p `parse_synth` (maybe_enum_key_of_repr e)
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 44, "end_line": 268, "start_col": 0, "start_line": 262 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: LowParse.Spec.Base.parser k repr -> e: LowParse.Spec.Enum.enum key repr -> LowParse.Spec.Base.parser k (LowParse.Spec.Enum.maybe_enum_key e)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "Prims.eqtype", "LowParse.Spec.Base.parser", "LowParse.Spec.Enum.enum", "LowParse.Spec.Combinators.parse_synth", "LowParse.Spec.Enum.maybe_enum_key", "LowParse.Spec.Enum.maybe_enum_key_of_repr" ]
[]
false
false
false
false
false
let parse_maybe_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (e: enum key repr) : Tot (parser k (maybe_enum_key e)) =
p `parse_synth` (maybe_enum_key_of_repr e)
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.total_enum
val total_enum (key repr: eqtype) : Tot eqtype
val total_enum (key repr: eqtype) : Tot eqtype
let total_enum (key: eqtype) (repr: eqtype) : Tot eqtype = (l: enum key repr { is_total_enum l } )
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 41, "end_line": 336, "start_col": 0, "start_line": 335 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
key: Prims.eqtype -> repr: Prims.eqtype -> Prims.eqtype
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.is_total_enum" ]
[]
false
false
false
true
false
let total_enum (key repr: eqtype) : Tot eqtype =
(l: enum key repr {is_total_enum l})
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.maybe_enum_key_of_total
val maybe_enum_key_of_total (#key #repr: eqtype) (e: total_enum key repr) (k: maybe_total_enum_key e) : Tot (maybe_enum_key e)
val maybe_enum_key_of_total (#key #repr: eqtype) (e: total_enum key repr) (k: maybe_total_enum_key e) : Tot (maybe_enum_key e)
let maybe_enum_key_of_total (#key #repr: eqtype) (e: total_enum key repr) (k: maybe_total_enum_key e) : Tot (maybe_enum_key e) = match k with | TotalKnown ek -> Known (ek <: key) | TotalUnknown r -> Unknown r
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 31, "end_line": 423, "start_col": 0, "start_line": 416 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.total_enum key repr -> k: LowParse.Spec.Enum.maybe_total_enum_key e -> LowParse.Spec.Enum.maybe_enum_key e
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.total_enum", "LowParse.Spec.Enum.maybe_total_enum_key", "LowParse.Spec.Enum.Known", "LowParse.Spec.Enum.unknown_enum_repr", "LowParse.Spec.Enum.Unknown", "LowParse.Spec.Enum.maybe_enum_key" ]
[]
false
false
false
false
false
let maybe_enum_key_of_total (#key #repr: eqtype) (e: total_enum key repr) (k: maybe_total_enum_key e) : Tot (maybe_enum_key e) =
match k with | TotalKnown ek -> Known (ek <: key) | TotalUnknown r -> Unknown r
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.maybe_enum_key_of_repr
val maybe_enum_key_of_repr (#key #repr: eqtype) (e: enum key repr) (r: repr) : Tot (maybe_enum_key e)
val maybe_enum_key_of_repr (#key #repr: eqtype) (e: enum key repr) (r: repr) : Tot (maybe_enum_key e)
let maybe_enum_key_of_repr (#key #repr: eqtype) (e: enum key repr) (r: repr) : Tot (maybe_enum_key e) = if list_mem r (list_map snd e) then Known (enum_key_of_repr e r) else Unknown r
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 16, "end_line": 260, "start_col": 0, "start_line": 253 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> r: repr -> LowParse.Spec.Enum.maybe_enum_key e
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.list_mem", "LowParse.Spec.Enum.list_map", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.snd", "LowParse.Spec.Enum.Known", "LowParse.Spec.Enum.enum_key_of_repr", "Prims.bool", "LowParse.Spec.Enum.Unknown", "LowParse.Spec....
[]
false
false
false
false
false
let maybe_enum_key_of_repr (#key #repr: eqtype) (e: enum key repr) (r: repr) : Tot (maybe_enum_key e) =
if list_mem r (list_map snd e) then Known (enum_key_of_repr e r) else Unknown r
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.repr_of_maybe_total_enum_key
val repr_of_maybe_total_enum_key (#key #repr: eqtype) (e: total_enum key repr) (k: maybe_total_enum_key e) : Tot (r: repr{maybe_total_enum_key_of_repr e r == k})
val repr_of_maybe_total_enum_key (#key #repr: eqtype) (e: total_enum key repr) (k: maybe_total_enum_key e) : Tot (r: repr{maybe_total_enum_key_of_repr e r == k})
let repr_of_maybe_total_enum_key (#key #repr: eqtype) (e: total_enum key repr) (k: maybe_total_enum_key e) : Tot (r: repr { maybe_total_enum_key_of_repr e r == k } ) = match k with | TotalKnown k' -> enum_key_of_repr_of_key e k' ; enum_repr_of_key e k' | TotalUnknown r -> r
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 23, "end_line": 404, "start_col": 0, "start_line": 395 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.total_enum key repr -> k: LowParse.Spec.Enum.maybe_total_enum_key e -> r: repr{LowParse.Spec.Enum.maybe_total_enum_key_of_repr e r == k}
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.total_enum", "LowParse.Spec.Enum.maybe_total_enum_key", "LowParse.Spec.Enum.enum_repr_of_key", "Prims.unit", "LowParse.Spec.Enum.enum_key_of_repr_of_key", "LowParse.Spec.Enum.unknown_enum_repr", "Prims.eq2", "LowParse.Spec.Enum.maybe_total_enum_key_of_repr" ]
[]
false
false
false
false
false
let repr_of_maybe_total_enum_key (#key #repr: eqtype) (e: total_enum key repr) (k: maybe_total_enum_key e) : Tot (r: repr{maybe_total_enum_key_of_repr e r == k}) =
match k with | TotalKnown k' -> enum_key_of_repr_of_key e k'; enum_repr_of_key e k' | TotalUnknown r -> r
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.maybe_total_enum_key_of_repr
val maybe_total_enum_key_of_repr (#key #repr: eqtype) (e: total_enum key repr) (r: repr) : Tot (maybe_total_enum_key e)
val maybe_total_enum_key_of_repr (#key #repr: eqtype) (e: total_enum key repr) (r: repr) : Tot (maybe_total_enum_key e)
let maybe_total_enum_key_of_repr (#key #repr: eqtype) (e: total_enum key repr) (r: repr) : Tot (maybe_total_enum_key e) = if list_mem r (list_map snd e) then TotalKnown (enum_key_of_repr e r) else TotalUnknown r
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 21, "end_line": 385, "start_col": 0, "start_line": 378 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.total_enum key repr -> r: repr -> LowParse.Spec.Enum.maybe_total_enum_key e
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.total_enum", "LowParse.Spec.Enum.list_mem", "LowParse.Spec.Enum.list_map", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.snd", "LowParse.Spec.Enum.TotalKnown", "LowParse.Spec.Enum.enum_key_of_repr", "Prims.bool", "LowParse.Spec.Enum.TotalUnknown", ...
[]
false
false
false
false
false
let maybe_total_enum_key_of_repr (#key #repr: eqtype) (e: total_enum key repr) (r: repr) : Tot (maybe_total_enum_key e) =
if list_mem r (list_map snd e) then TotalKnown (enum_key_of_repr e r) else TotalUnknown r
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.serialize_total_enum_key
val serialize_total_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (s: serializer p) (l: total_enum key repr) : Tot (serializer (parse_total_enum_key p l))
val serialize_total_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (s: serializer p) (l: total_enum key repr) : Tot (serializer (parse_total_enum_key p l))
let serialize_total_enum_key (#k: parser_kind) (#key: eqtype) (#repr: eqtype) (p: parser k repr) (s: serializer p) (l: total_enum key repr) : Tot (serializer (parse_total_enum_key p l)) = serialize_synth (parse_enum_key p l) (synth_total_enum_key l) (serialize_enum_key p s l) (synth_total_enum_key_recip l) ...
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 124, "end_line": 372, "start_col": 0, "start_line": 364 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: LowParse.Spec.Base.parser k repr -> s: LowParse.Spec.Base.serializer p -> l: LowParse.Spec.Enum.total_enum key repr -> LowParse.Spec.Base.serializer (LowParse.Spec.Enum.parse_total_enum_key p l)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "Prims.eqtype", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.Spec.Enum.total_enum", "LowParse.Spec.Combinators.serialize_synth", "LowParse.Spec.Combinators.parse_filter_kind", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Enum.parse_enum_k...
[]
false
false
false
false
false
let serialize_total_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (s: serializer p) (l: total_enum key repr) : Tot (serializer (parse_total_enum_key p l)) =
serialize_synth (parse_enum_key p l) (synth_total_enum_key l) (serialize_enum_key p s l) (synth_total_enum_key_recip l) ()
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.parse_maybe_enum_key_eq
val parse_maybe_enum_key_eq (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (e: enum key repr) (input: bytes) : Lemma (parse (parse_maybe_enum_key p e) input == (match parse p input with | Some (x, consumed) -> Some (maybe_enum_key_of_repr e x, consumed) ...
val parse_maybe_enum_key_eq (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (e: enum key repr) (input: bytes) : Lemma (parse (parse_maybe_enum_key p e) input == (match parse p input with | Some (x, consumed) -> Some (maybe_enum_key_of_repr e x, consumed) ...
let parse_maybe_enum_key_eq (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (e: enum key repr) (input: bytes) : Lemma (parse (parse_maybe_enum_key p e) input == (match parse p input with | Some (x, consumed) -> Some (maybe_enum_key_of_repr e x, consumed) | _ -> None )) = parse_synth_eq p (ma...
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 51, "end_line": 281, "start_col": 0, "start_line": 270 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: LowParse.Spec.Base.parser k repr -> e: LowParse.Spec.Enum.enum key repr -> input: LowParse.Bytes.bytes -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Base.parse (LowParse.Spec.Enum.parse_maybe_enum_key p e) input == (match LowParse.Spec.Base.parse p input with | FStar.Pervasi...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Base.parser_kind", "Prims.eqtype", "LowParse.Spec.Base.parser", "LowParse.Spec.Enum.enum", "LowParse.Bytes.bytes", "LowParse.Spec.Combinators.parse_synth_eq", "LowParse.Spec.Enum.maybe_enum_key", "LowParse.Spec.Enum.maybe_enum_key_of_repr", "Prims.unit", "Prims.l_True", "Prims.squ...
[]
true
false
true
false
false
let parse_maybe_enum_key_eq (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (e: enum key repr) (input: bytes) : Lemma (parse (parse_maybe_enum_key p e) input == (match parse p input with | Some (x, consumed) -> Some (maybe_enum_key_of_repr e x, consumed) ...
parse_synth_eq p (maybe_enum_key_of_repr e) input
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.feq
val feq (u v: Type) (eq: (v -> v -> GTot Type0)) (f1 f2: (u -> Tot v)) : GTot Type0
val feq (u v: Type) (eq: (v -> v -> GTot Type0)) (f1 f2: (u -> Tot v)) : GTot Type0
let feq (u v: Type) (eq: (v -> v -> GTot Type0)) (f1 f2: (u -> Tot v)) : GTot Type0 = (forall (x: u) . {:pattern (f1 x); (f2 x)} eq (f1 x) (f2 x))
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 62, "end_line": 529, "start_col": 0, "start_line": 524 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
u626: Type -> v: Type -> eq: (_: v -> _: v -> Prims.GTot Type0) -> f1: (_: u626 -> v) -> f2: (_: u626 -> v) -> Prims.GTot Type0
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.l_Forall" ]
[]
false
false
false
false
true
let feq (u v: Type) (eq: (v -> v -> GTot Type0)) (f1 f2: (u -> Tot v)) : GTot Type0 =
(forall (x: u). {:pattern (f1 x); (f2 x)} eq (f1 x) (f2 x))
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.enum_tail
val enum_tail (#key #repr: eqtype) (e: enum key repr) : Tot (enum key repr)
val enum_tail (#key #repr: eqtype) (e: enum key repr) : Tot (enum key repr)
let enum_tail (#key #repr: eqtype) (e: enum key repr) : Tot (enum key repr) = enum_tail' e
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 14, "end_line": 612, "start_col": 0, "start_line": 608 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> LowParse.Spec.Enum.enum key repr
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.enum_tail'" ]
[]
false
false
false
false
false
let enum_tail (#key #repr: eqtype) (e: enum key repr) : Tot (enum key repr) =
enum_tail' e
false
LowParse.Repr.fsti
LowParse.Repr.get_field
val get_field (#k1: strong_parser_kind) (#t1: _) (#p1: LP.parser k1 t1) (#k2: strong_parser_kind) (#t2: Type) (#p2: LP.parser k2 t2) (f: field_accessor p1 p2) : field_accessor_t f
val get_field (#k1: strong_parser_kind) (#t1: _) (#p1: LP.parser k1 t1) (#k2: strong_parser_kind) (#t2: Type) (#p2: LP.parser k2 t2) (f: field_accessor p1 p2) : field_accessor_t f
let get_field (#k1:strong_parser_kind) #t1 (#p1:LP.parser k1 t1) (#k2: strong_parser_kind) (#t2:Type) (#p2:LP.parser k2 t2) (f:field_accessor p1 p2) : field_accessor_t f = reveal_valid (); fun p -> [@inline_let] let FieldAccessor acc jump p2' = f in let b = temp_slice_of...
{ "file_name": "src/lowparse/LowParse.Repr.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 6, "end_line": 661, "start_col": 0, "start_line": 646 }
(* Copyright 2015--2019 INRIA and Microsoft Corporation 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 o...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.ImmutableBuffer.fst.checked", "LowStar.ConstBuffer.fsti.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.Base.fsti.checked", "LowParse.SLow.Base.fst.checked", "LowParse.Low.Base.fst.checked", "FStar.UInt32.f...
[ { "abbrev": true, "full_module": "LowStar.ImmutableBuffer", "short_module": "I" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "FStar.HyperStack.ST", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "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
f: LowParse.Repr.field_accessor p1 p2 -> LowParse.Repr.field_accessor_t f
Prims.Tot
[ "total" ]
[]
[ "LowParse.Repr.strong_parser_kind", "LowParse.Spec.Base.parser", "LowParse.Repr.field_accessor", "LowParse.Repr.repr_ptr_p", "LowParse.Low.Base.Spec.clens", "LowParse.Low.Base.Spec.gaccessor", "LowParse.Low.Base.accessor", "LowParse.Low.Base.jumper", "LowParse.SLow.Base.parser32", "Prims.unit", ...
[]
false
false
false
false
false
let get_field (#k1: strong_parser_kind) #t1 (#p1: LP.parser k1 t1) (#k2: strong_parser_kind) (#t2: Type) (#p2: LP.parser k2 t2) (f: field_accessor p1 p2) : field_accessor_t f =
reveal_valid (); fun p -> [@@ inline_let ]let FieldAccessor acc jump p2' = f in let b = temp_slice_of_repr_ptr p in let pos = acc b 0ul in let pos_to = jump b pos in let q = mk p2' b pos pos_to in let h = get () in assert (C.const_sub_buffer pos (pos_to - pos) q.b p.b); assert (q `sub_ptr` p); assert ...
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.parse_total_enum_key
val parse_total_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (l: total_enum key repr) : Tot (parser (parse_filter_kind k) key)
val parse_total_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (l: total_enum key repr) : Tot (parser (parse_filter_kind k) key)
let parse_total_enum_key (#k: parser_kind) (#key: eqtype) (#repr: eqtype) (p: parser k repr) (l: total_enum key repr) : Tot (parser (parse_filter_kind k) key) = parse_enum_key p l `parse_synth` (synth_total_enum_key l)
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 59, "end_line": 354, "start_col": 0, "start_line": 347 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: LowParse.Spec.Base.parser k repr -> l: LowParse.Spec.Enum.total_enum key repr -> LowParse.Spec.Base.parser (LowParse.Spec.Combinators.parse_filter_kind k) key
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "Prims.eqtype", "LowParse.Spec.Base.parser", "LowParse.Spec.Enum.total_enum", "LowParse.Spec.Combinators.parse_synth", "LowParse.Spec.Combinators.parse_filter_kind", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Enum.parse_enum_key", "LowParse.Spec.Enum.synth_total_...
[]
false
false
false
false
false
let parse_total_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (l: total_enum key repr) : Tot (parser (parse_filter_kind k) key) =
(parse_enum_key p l) `parse_synth` (synth_total_enum_key l)
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.maybe_enum_key_of_repr_not_in
val maybe_enum_key_of_repr_not_in (#key #repr: eqtype) (e: enum key repr) (l: list (key * repr)) (x: repr) : GTot Type0
val maybe_enum_key_of_repr_not_in (#key #repr: eqtype) (e: enum key repr) (l: list (key * repr)) (x: repr) : GTot Type0
let maybe_enum_key_of_repr_not_in (#key #repr: eqtype) (e: enum key repr) (l: list (key * repr)) (x: repr) : GTot Type0 = (~ (L.mem x (L.map snd l)))
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 29, "end_line": 792, "start_col": 0, "start_line": 791 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> l: Prims.list (key * repr) -> x: repr -> Prims.GTot Type0
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "Prims.list", "FStar.Pervasives.Native.tuple2", "Prims.l_not", "Prims.b2t", "FStar.List.Tot.Base.mem", "FStar.List.Tot.Base.map", "FStar.Pervasives.Native.snd" ]
[]
false
false
false
false
true
let maybe_enum_key_of_repr_not_in (#key #repr: eqtype) (e: enum key repr) (l: list (key * repr)) (x: repr) : GTot Type0 =
(~(L.mem x (L.map snd l)))
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.parse_maybe_total_enum_key
val parse_maybe_total_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (e: total_enum key repr) : Tot (parser k (maybe_total_enum_key e))
val parse_maybe_total_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (e: total_enum key repr) : Tot (parser k (maybe_total_enum_key e))
let parse_maybe_total_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (e: total_enum key repr) : Tot (parser k (maybe_total_enum_key e)) = p `parse_synth` (maybe_total_enum_key_of_repr e)
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 50, "end_line": 393, "start_col": 0, "start_line": 387 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: LowParse.Spec.Base.parser k repr -> e: LowParse.Spec.Enum.total_enum key repr -> LowParse.Spec.Base.parser k (LowParse.Spec.Enum.maybe_total_enum_key e)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "Prims.eqtype", "LowParse.Spec.Base.parser", "LowParse.Spec.Enum.total_enum", "LowParse.Spec.Combinators.parse_synth", "LowParse.Spec.Enum.maybe_total_enum_key", "LowParse.Spec.Enum.maybe_total_enum_key_of_repr" ]
[]
false
false
false
false
false
let parse_maybe_total_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (e: total_enum key repr) : Tot (parser k (maybe_total_enum_key e)) =
p `parse_synth` (maybe_total_enum_key_of_repr e)
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.total_of_maybe_enum_key
val total_of_maybe_enum_key (#key #repr: eqtype) (e: total_enum key repr) (k: maybe_enum_key e) : Tot (maybe_total_enum_key e)
val total_of_maybe_enum_key (#key #repr: eqtype) (e: total_enum key repr) (k: maybe_enum_key e) : Tot (maybe_total_enum_key e)
let total_of_maybe_enum_key (#key #repr: eqtype) (e: total_enum key repr) (k: maybe_enum_key e) : Tot (maybe_total_enum_key e) = match k with | Known ek -> TotalKnown (ek <: key) | Unknown r -> TotalUnknown r
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 31, "end_line": 433, "start_col": 0, "start_line": 426 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.total_enum key repr -> k: LowParse.Spec.Enum.maybe_enum_key e -> LowParse.Spec.Enum.maybe_total_enum_key e
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.total_enum", "LowParse.Spec.Enum.maybe_enum_key", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Enum.TotalKnown", "LowParse.Spec.Enum.unknown_enum_repr", "LowParse.Spec.Enum.TotalUnknown", "LowParse.Spec.Enum.maybe_total_enum_key" ]
[]
false
false
false
false
false
let total_of_maybe_enum_key (#key #repr: eqtype) (e: total_enum key repr) (k: maybe_enum_key e) : Tot (maybe_total_enum_key e) =
match k with | Known ek -> TotalKnown (ek <: key) | Unknown r -> TotalUnknown r
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.serialize_maybe_total_enum_key
val serialize_maybe_total_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (s: serializer p) (e: total_enum key repr) : Tot (serializer (parse_maybe_total_enum_key p e))
val serialize_maybe_total_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (s: serializer p) (e: total_enum key repr) : Tot (serializer (parse_maybe_total_enum_key p e))
let serialize_maybe_total_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (s: serializer p) (e: total_enum key repr) : Tot (serializer (parse_maybe_total_enum_key p e)) = serialize_synth p (maybe_total_enum_key_of_repr e) s (repr_of_maybe_total_enum_key e) ()
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 90, "end_line": 413, "start_col": 0, "start_line": 406 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: LowParse.Spec.Base.parser k repr -> s: LowParse.Spec.Base.serializer p -> e: LowParse.Spec.Enum.total_enum key repr -> LowParse.Spec.Base.serializer (LowParse.Spec.Enum.parse_maybe_total_enum_key p e)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "Prims.eqtype", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.Spec.Enum.total_enum", "LowParse.Spec.Combinators.serialize_synth", "LowParse.Spec.Enum.maybe_total_enum_key", "LowParse.Spec.Enum.maybe_total_enum_key_of_repr", "LowParse.Spec.E...
[]
false
false
false
false
false
let serialize_maybe_total_enum_key (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (s: serializer p) (e: total_enum key repr) : Tot (serializer (parse_maybe_total_enum_key p e)) =
serialize_synth p (maybe_total_enum_key_of_repr e) s (repr_of_maybe_total_enum_key e) ()
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.parse_maybe_total_enum_key_eq
val parse_maybe_total_enum_key_eq (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (e: total_enum key repr) (input: bytes) : Lemma (parse (parse_maybe_total_enum_key p e) input == (parse ((parse_maybe_enum_key p e) `parse_synth` (total_of_maybe_enum_key e)) input))
val parse_maybe_total_enum_key_eq (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (e: total_enum key repr) (input: bytes) : Lemma (parse (parse_maybe_total_enum_key p e) input == (parse ((parse_maybe_enum_key p e) `parse_synth` (total_of_maybe_enum_key e)) input))
let parse_maybe_total_enum_key_eq (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (e: total_enum key repr) (input: bytes) : Lemma (parse (parse_maybe_total_enum_key p e) input == (parse (parse_maybe_enum_key p e `parse_synth` total_of_maybe_enum_key e) input)) = parse_synth_eq p (maybe_total_enum_...
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 51, "end_line": 453, "start_col": 0, "start_line": 443 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: LowParse.Spec.Base.parser k repr -> e: LowParse.Spec.Enum.total_enum key repr -> input: LowParse.Bytes.bytes -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Base.parse (LowParse.Spec.Enum.parse_maybe_total_enum_key p e) input == LowParse.Spec.Base.parse (LowParse.Spec.Combinators.pars...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Base.parser_kind", "Prims.eqtype", "LowParse.Spec.Base.parser", "LowParse.Spec.Enum.total_enum", "LowParse.Bytes.bytes", "LowParse.Spec.Combinators.parse_synth_eq", "LowParse.Spec.Enum.maybe_enum_key", "LowParse.Spec.Enum.maybe_enum_key_of_repr", "Prims.unit", "LowParse.Spec.Enum.ma...
[]
true
false
true
false
false
let parse_maybe_total_enum_key_eq (#k: parser_kind) (#key #repr: eqtype) (p: parser k repr) (e: total_enum key repr) (input: bytes) : Lemma (parse (parse_maybe_total_enum_key p e) input == (parse ((parse_maybe_enum_key p e) `parse_synth` (total_of_maybe_enum_key e)) input)) =...
parse_synth_eq p (maybe_total_enum_key_of_repr e) input; parse_synth_eq (parse_maybe_enum_key p e) (total_of_maybe_enum_key e) input; parse_synth_eq p (maybe_enum_key_of_repr e) input
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.r_reflexive_t_elim
val r_reflexive_t_elim (t: Type) (r: (t -> t -> GTot Type0)) (phi: r_reflexive_t t r) : Lemma (r_reflexive_prop t r)
val r_reflexive_t_elim (t: Type) (r: (t -> t -> GTot Type0)) (phi: r_reflexive_t t r) : Lemma (r_reflexive_prop t r)
let r_reflexive_t_elim (t: Type) (r: (t -> t -> GTot Type0)) (phi: r_reflexive_t t r) : Lemma (r_reflexive_prop t r) = Classical.forall_intro phi
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 28, "end_line": 479, "start_col": 0, "start_line": 473 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Type -> r: (_: t -> _: t -> Prims.GTot Type0) -> phi: LowParse.Spec.Enum.r_reflexive_t t r -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Enum.r_reflexive_prop t r)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Enum.r_reflexive_t", "FStar.Classical.forall_intro", "Prims.unit", "Prims.l_True", "Prims.squash", "LowParse.Spec.Enum.r_reflexive_prop", "Prims.Nil", "FStar.Pervasives.pattern" ]
[]
false
false
true
false
false
let r_reflexive_t_elim (t: Type) (r: (t -> t -> GTot Type0)) (phi: r_reflexive_t t r) : Lemma (r_reflexive_prop t r) =
Classical.forall_intro phi
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.default_if
val default_if (t: Type) : Tot (if_combinator t (eq2 #t))
val default_if (t: Type) : Tot (if_combinator t (eq2 #t))
let default_if (t: Type) : Tot (if_combinator t (eq2 #t)) = fun (cond: bool) (s_true: (cond_true cond -> Tot t)) (s_false: (cond_false cond -> Tot t)) -> (if cond then s_true () else s_false ()) <: (y: t { y == (if cond then s_true () else s_false ()) } )
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 79, "end_line": 522, "start_col": 0, "start_line": 513 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Type -> LowParse.Spec.Enum.if_combinator t Prims.eq2
Prims.Tot
[ "total" ]
[]
[ "Prims.bool", "LowParse.Spec.Combinators.cond_true", "LowParse.Spec.Combinators.cond_false", "Prims.eq2", "LowParse.Spec.Enum.if_combinator" ]
[]
false
false
false
true
false
let default_if (t: Type) : Tot (if_combinator t (eq2 #t)) =
fun (cond: bool) (s_true: (cond_true cond -> Tot t)) (s_false: (cond_false cond -> Tot t)) -> (if cond then s_true () else s_false ()) <: (y: t{y == (if cond then s_true () else s_false ())})
false
Steel.ST.Array.fsti
Steel.ST.Array.join
val join (#opened: _) (#elt: Type) (#x1 #x2: Ghost.erased (Seq.seq elt)) (#p: P.perm) (a1: array elt) (a2: Ghost.erased (array elt)) : STAtomicBase (array elt) false opened Unobservable ((pts_to a1 p x1) `star` (pts_to a2 p x2)) (fun res -> pts_to re...
val join (#opened: _) (#elt: Type) (#x1 #x2: Ghost.erased (Seq.seq elt)) (#p: P.perm) (a1: array elt) (a2: Ghost.erased (array elt)) : STAtomicBase (array elt) false opened Unobservable ((pts_to a1 p x1) `star` (pts_to a2 p x2)) (fun res -> pts_to re...
let join (#opened: _) (#elt: Type) (#x1 #x2: Ghost.erased (Seq.seq elt)) (#p: P.perm) (a1: array elt) (a2: Ghost.erased (array elt)) : STAtomicBase (array elt) false opened Unobservable (pts_to a1 p x1 `star` pts_to a2 p x2) (fun res -> pts_to res p (x1 `Seq.append` x2)) (adjacent a1 a2) (fu...
{ "file_name": "lib/steel/Steel.ST.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 12, "end_line": 362, "start_col": 0, "start_line": 344 }
(* Copyright 2020, 2021, 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law ...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.PtrdiffT.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Int.fsti.checked", "FS...
[ { "abbrev": true, "full_module": "Steel.ST.HigherArray", "short_module": "H" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "US" }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": true, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a1: Steel.ST.Array.array elt -> a2: FStar.Ghost.erased (Steel.ST.Array.array elt) -> Steel.ST.Effect.Atomic.STAtomicBase (Steel.ST.Array.array elt)
Steel.ST.Effect.Atomic.STAtomicBase
[]
[]
[ "Steel.Memory.inames", "FStar.Ghost.erased", "FStar.Seq.Base.seq", "Steel.FractionalPermission.perm", "Steel.ST.Array.array", "Steel.ST.Util.return", "Steel.ST.Array.pts_to", "FStar.Seq.Base.append", "FStar.Ghost.reveal", "Steel.Effect.Common.vprop", "Prims.unit", "Steel.ST.Util.rewrite", "S...
[]
false
true
false
false
false
let join (#opened: _) (#elt: Type) (#x1 #x2: Ghost.erased (Seq.seq elt)) (#p: P.perm) (a1: array elt) (a2: Ghost.erased (array elt)) : STAtomicBase (array elt) false opened Unobservable ((pts_to a1 p x1) `star` (pts_to a2 p x2)) (fun res -> pts_to re...
let _:squash (adjacent a1 a2) = () in ghost_join a1 a2 (); let res = merge a1 a2 in rewrite (pts_to (merge a1 (Ghost.hide (Ghost.reveal a2))) p (x1 `Seq.append` x2)) (pts_to res p (x1 `Seq.append` x2)); return res
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.r_transitive_t_elim
val r_transitive_t_elim (t: Type) (r: (t -> t -> GTot Type0)) (phi: r_transitive_t t r) : Lemma (r_transitive_prop t r)
val r_transitive_t_elim (t: Type) (r: (t -> t -> GTot Type0)) (phi: r_transitive_t t r) : Lemma (r_transitive_prop t r)
let r_transitive_t_elim (t: Type) (r: (t -> t -> GTot Type0)) (phi: r_transitive_t t r) : Lemma (r_transitive_prop t r) = Classical.forall_intro_3 phi
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 30, "end_line": 500, "start_col": 0, "start_line": 494 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Type -> r: (_: t -> _: t -> Prims.GTot Type0) -> phi: LowParse.Spec.Enum.r_transitive_t t r -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Enum.r_transitive_prop t r)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Enum.r_transitive_t", "FStar.Classical.forall_intro_3", "Prims.l_imp", "Prims.l_and", "Prims.unit", "Prims.l_True", "Prims.squash", "LowParse.Spec.Enum.r_transitive_prop", "Prims.Nil", "FStar.Pervasives.pattern" ]
[]
false
false
true
false
false
let r_transitive_t_elim (t: Type) (r: (t -> t -> GTot Type0)) (phi: r_transitive_t t r) : Lemma (r_transitive_prop t r) =
Classical.forall_intro_3 phi
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.enum_tail'
val enum_tail' (#key #repr: eqtype) (e: enum key repr) : Pure (enum key repr) (requires True) (ensures (fun y -> Cons? e ==> (let _ :: y' = e in y == y')))
val enum_tail' (#key #repr: eqtype) (e: enum key repr) : Pure (enum key repr) (requires True) (ensures (fun y -> Cons? e ==> (let _ :: y' = e in y == y')))
let enum_tail' (#key #repr: eqtype) (e: enum key repr) : Pure (enum key repr) (requires True) (ensures (fun y -> Cons? e ==> (let (_ :: y') = e in y == y'))) = match e with _ :: y -> y | _ -> []
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 36, "end_line": 605, "start_col": 0, "start_line": 599 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> Prims.Pure (LowParse.Spec.Enum.enum key repr)
Prims.Pure
[]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "FStar.Pervasives.Native.tuple2", "Prims.list", "Prims.Nil", "Prims.l_True", "Prims.l_imp", "Prims.b2t", "Prims.uu___is_Cons", "Prims.eq2", "Prims.logical" ]
[]
false
false
false
false
false
let enum_tail' (#key #repr: eqtype) (e: enum key repr) : Pure (enum key repr) (requires True) (ensures (fun y -> Cons? e ==> (let _ :: y' = e in y == y'))) =
match e with | _ :: y -> y | _ -> []
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.enum_destr_cons'
val enum_destr_cons' (t: Type) (key repr: eqtype) (e: enum key repr) (u: unit{Cons? e}) (g: enum_destr_t t (enum_tail e)) : Tot (enum_destr_t t e)
val enum_destr_cons' (t: Type) (key repr: eqtype) (e: enum key repr) (u: unit{Cons? e}) (g: enum_destr_t t (enum_tail e)) : Tot (enum_destr_t t e)
let enum_destr_cons' (t: Type) (key repr: eqtype) (e: enum key repr) (u: unit { Cons? e } ) (g: enum_destr_t t (enum_tail e)) : Tot (enum_destr_t t e) = enum_destr_cons t e g
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 23, "end_line": 661, "start_col": 0, "start_line": 654 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Type -> key: Prims.eqtype -> repr: Prims.eqtype -> e: LowParse.Spec.Enum.enum key repr -> u724: u726: Prims.unit{Cons? e} -> g: LowParse.Spec.Enum.enum_destr_t t (LowParse.Spec.Enum.enum_tail e) -> LowParse.Spec.Enum.enum_destr_t t e
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "Prims.unit", "Prims.b2t", "Prims.uu___is_Cons", "FStar.Pervasives.Native.tuple2", "LowParse.Spec.Enum.enum_destr_t", "LowParse.Spec.Enum.enum_tail", "LowParse.Spec.Enum.enum_destr_cons" ]
[]
false
false
false
false
false
let enum_destr_cons' (t: Type) (key repr: eqtype) (e: enum key repr) (u: unit{Cons? e}) (g: enum_destr_t t (enum_tail e)) : Tot (enum_destr_t t e) =
enum_destr_cons t e g
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.feq_intro
val feq_intro (u v: Type) (eq: (v -> v -> GTot Type0)) (f1 f2: (u -> Tot v)) (phi: (x: u -> Lemma ((f1 x) `eq` (f2 x)))) : Lemma (feq _ _ eq f1 f2)
val feq_intro (u v: Type) (eq: (v -> v -> GTot Type0)) (f1 f2: (u -> Tot v)) (phi: (x: u -> Lemma ((f1 x) `eq` (f2 x)))) : Lemma (feq _ _ eq f1 f2)
let feq_intro (u v: Type) (eq: (v -> v -> GTot Type0)) (f1 f2: (u -> Tot v)) (phi: (x: u) -> Lemma (f1 x `eq` f2 x)) : Lemma (feq _ _ eq f1 f2) = Classical.forall_intro phi
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 28, "end_line": 549, "start_col": 0, "start_line": 543 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
u662: Type -> v: Type -> eq: (_: v -> _: v -> Prims.GTot Type0) -> f1: (_: u662 -> v) -> f2: (_: u662 -> v) -> phi: (x: u662 -> FStar.Pervasives.Lemma (ensures eq (f1 x) (f2 x))) -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Enum.feq u662 v eq f1 f2)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.Nil", "FStar.Pervasives.pattern", "FStar.Classical.forall_intro", "LowParse.Spec.Enum.feq" ]
[]
false
false
true
false
false
let feq_intro (u v: Type) (eq: (v -> v -> GTot Type0)) (f1 f2: (u -> Tot v)) (phi: (x: u -> Lemma ((f1 x) `eq` (f2 x)))) : Lemma (feq _ _ eq f1 f2) =
Classical.forall_intro phi
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.enum_destr_cons_nil
val enum_destr_cons_nil (t: Type) (#key #repr: eqtype) (e: enum key repr) : Pure (enum_destr_t t e) (requires (Cons? e /\ Nil? (enum_tail' e))) (ensures (fun _ -> True))
val enum_destr_cons_nil (t: Type) (#key #repr: eqtype) (e: enum key repr) : Pure (enum_destr_t t e) (requires (Cons? e /\ Nil? (enum_tail' e))) (ensures (fun _ -> True))
let enum_destr_cons_nil (t: Type) (#key #repr: eqtype) (e: enum key repr) : Pure (enum_destr_t t e) (requires (Cons? e /\ Nil? (enum_tail' e))) (ensures (fun _ -> True)) = fun (eq: (t -> t -> GTot Type0)) (ift: if_combinator t eq) (eq_refl: r_reflexive_t _ eq) (eq_trans: r_transitive_t _ eq) -> [@inline_let...
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 5, "end_line": 679, "start_col": 0, "start_line": 664 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Type -> e: LowParse.Spec.Enum.enum key repr -> Prims.Pure (LowParse.Spec.Enum.enum_destr_t t e)
Prims.Pure
[]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.if_combinator", "LowParse.Spec.Enum.r_reflexive_t", "LowParse.Spec.Enum.r_transitive_t", "Prims.list", "FStar.Pervasives.Native.tuple2", "LowParse.Spec.Enum.enum_key", "Prims.unit", "LowParse.Spec.Enum.r_reflexive_t_elim", "LowParse....
[]
false
false
false
false
false
let enum_destr_cons_nil (t: Type) (#key #repr: eqtype) (e: enum key repr) : Pure (enum_destr_t t e) (requires (Cons? e /\ Nil? (enum_tail' e))) (ensures (fun _ -> True)) =
fun (eq: (t -> t -> GTot Type0)) (ift: if_combinator t eq) (eq_refl: r_reflexive_t _ eq) (eq_trans: r_transitive_t _ eq) -> [@@ inline_let ]let _ = r_reflexive_t_elim _ _ eq_refl in (fun (e': list (key * repr) {e' == e}) -> match e' with | (k, _) :: _ -> (fun (f: (enum_key e -> Tot t))...
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.fif
val fif (u v: Type) (eq: (v -> v -> GTot Type0)) (ifc: if_combinator v eq) : Tot (if_combinator (u -> Tot v) (feq u v eq))
val fif (u v: Type) (eq: (v -> v -> GTot Type0)) (ifc: if_combinator v eq) : Tot (if_combinator (u -> Tot v) (feq u v eq))
let fif (u v: Type) (eq: (v -> v -> GTot Type0)) (ifc: if_combinator v eq) : Tot (if_combinator (u -> Tot v) (feq u v eq)) = fun (cond: bool) (s_true: (cond_true cond -> u -> Tot v)) (s_false: (cond_false cond -> u -> Tot v)) (x: u) -> ifc cond (fun h -> s_true () x) (fun h -> s_false () x)
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 29, "end_line": 582, "start_col": 0, "start_line": 573 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
u678: Type -> v: Type -> eq: (_: v -> _: v -> Prims.GTot Type0) -> ifc: LowParse.Spec.Enum.if_combinator v eq -> LowParse.Spec.Enum.if_combinator (_: u678 -> v) (LowParse.Spec.Enum.feq u678 v eq)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Enum.if_combinator", "Prims.bool", "LowParse.Spec.Combinators.cond_true", "LowParse.Spec.Combinators.cond_false", "LowParse.Spec.Enum.feq" ]
[]
false
false
false
false
false
let fif (u v: Type) (eq: (v -> v -> GTot Type0)) (ifc: if_combinator v eq) : Tot (if_combinator (u -> Tot v) (feq u v eq)) =
fun (cond: bool) (s_true: (cond_true cond -> u -> Tot v)) (s_false: (cond_false cond -> u -> Tot v)) (x: u) -> ifc cond (fun h -> s_true () x) (fun h -> s_false () x)
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.enum_destr_cons
val enum_destr_cons (t: Type) (#key #repr: eqtype) (e: enum key repr) (g: enum_destr_t t (enum_tail' e)) : Pure (enum_destr_t t e) (requires (Cons? e)) (ensures (fun _ -> True))
val enum_destr_cons (t: Type) (#key #repr: eqtype) (e: enum key repr) (g: enum_destr_t t (enum_tail' e)) : Pure (enum_destr_t t e) (requires (Cons? e)) (ensures (fun _ -> True))
let enum_destr_cons (t: Type) (#key #repr: eqtype) (e: enum key repr) (g: enum_destr_t t (enum_tail' e)) : Pure (enum_destr_t t e) (requires (Cons? e)) (ensures (fun _ -> True)) = fun (eq: (t -> t -> GTot Type0)) (ift: if_combinator t eq) (eq_refl: r_reflexive_t _ eq) (eq_trans: r_transitive_t _ eq) -> [@...
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 5, "end_line": 651, "start_col": 0, "start_line": 615 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Type -> e: LowParse.Spec.Enum.enum key repr -> g: LowParse.Spec.Enum.enum_destr_t t (LowParse.Spec.Enum.enum_tail' e) -> Prims.Pure (LowParse.Spec.Enum.enum_destr_t t e)
Prims.Pure
[]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.enum_destr_t", "LowParse.Spec.Enum.enum_tail'", "LowParse.Spec.Enum.if_combinator", "LowParse.Spec.Enum.r_reflexive_t", "LowParse.Spec.Enum.r_transitive_t", "Prims.list", "FStar.Pervasives.Native.tuple2", "LowParse.Spec.Enum.enum_key",...
[]
false
false
false
false
false
let enum_destr_cons (t: Type) (#key #repr: eqtype) (e: enum key repr) (g: enum_destr_t t (enum_tail' e)) : Pure (enum_destr_t t e) (requires (Cons? e)) (ensures (fun _ -> True)) =
fun (eq: (t -> t -> GTot Type0)) (ift: if_combinator t eq) (eq_refl: r_reflexive_t _ eq) (eq_trans: r_transitive_t _ eq) -> [@@ inline_let ]let _ = r_reflexive_t_elim _ _ eq_refl in [@@ inline_let ]let _ = r_transitive_t_elim _ _ eq_trans in (fun (e': list (key * repr) {e' == e}) -> match e' with ...
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.destr_maybe_total_enum_repr
val destr_maybe_total_enum_repr (#t: Type) (#key #repr: eqtype) (e: total_enum key repr) (destr: maybe_enum_destr_t t e) (eq: (t -> t -> GTot Type0)) (ift: if_combinator t eq) (eq_refl: r_reflexive_t _ eq) (eq_trans: r_transitive_t _ eq) (f: (x: maybe_total_enum_key...
val destr_maybe_total_enum_repr (#t: Type) (#key #repr: eqtype) (e: total_enum key repr) (destr: maybe_enum_destr_t t e) (eq: (t -> t -> GTot Type0)) (ift: if_combinator t eq) (eq_refl: r_reflexive_t _ eq) (eq_trans: r_transitive_t _ eq) (f: (x: maybe_total_enum_key...
let destr_maybe_total_enum_repr (#t: Type) (#key #repr: eqtype) (e: total_enum key repr) (destr: maybe_enum_destr_t t e) (eq: (t -> t -> GTot Type0)) (ift: if_combinator t eq) (eq_refl: r_reflexive_t _ eq) (eq_trans: r_transitive_t _ eq) (f: ((x: maybe_total_enum_key e) -> Tot t)) (x: repr) : Tot (y...
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 76, "end_line": 868, "start_col": 0, "start_line": 856 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.total_enum key repr -> destr: LowParse.Spec.Enum.maybe_enum_destr_t t e -> eq: (_: t -> _: t -> Prims.GTot Type0) -> ift: LowParse.Spec.Enum.if_combinator t eq -> eq_refl: LowParse.Spec.Enum.r_reflexive_t t eq -> eq_trans: LowParse.Spec.Enum.r_transitive_t t eq -> f: (...
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.total_enum", "LowParse.Spec.Enum.maybe_enum_destr_t", "LowParse.Spec.Enum.if_combinator", "LowParse.Spec.Enum.r_reflexive_t", "LowParse.Spec.Enum.r_transitive_t", "LowParse.Spec.Enum.maybe_total_enum_key", "LowParse.Spec.Enum.maybe_enum_key", "LowParse.Spec.Enum.t...
[]
false
false
false
false
false
let destr_maybe_total_enum_repr (#t: Type) (#key #repr: eqtype) (e: total_enum key repr) (destr: maybe_enum_destr_t t e) (eq: (t -> t -> GTot Type0)) (ift: if_combinator t eq) (eq_refl: r_reflexive_t _ eq) (eq_trans: r_transitive_t _ eq) (f: (x: maybe_total_enum_key...
destr eq ift eq_refl eq_trans (fun y -> f (total_of_maybe_enum_key e y)) x
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.list_append_rev_cons
val list_append_rev_cons (#t: Type) (l1: list t) (x: t) (l2: list t) : Lemma (L.append (L.rev l1) (x :: l2) == L.append (L.rev (x :: l1)) l2)
val list_append_rev_cons (#t: Type) (l1: list t) (x: t) (l2: list t) : Lemma (L.append (L.rev l1) (x :: l2) == L.append (L.rev (x :: l1)) l2)
let list_append_rev_cons (#t: Type) (l1: list t) (x: t) (l2: list t) : Lemma (L.append (L.rev l1) (x :: l2) == L.append (L.rev (x :: l1)) l2) = list_rev_cons x l1; L.append_assoc (L.rev l1) [x] l2
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 34, "end_line": 806, "start_col": 0, "start_line": 803 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l1: Prims.list t -> x: t -> l2: Prims.list t -> FStar.Pervasives.Lemma (ensures FStar.List.Tot.Base.rev l1 @ x :: l2 == FStar.List.Tot.Base.rev (x :: l1) @ l2)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "FStar.List.Tot.Properties.append_assoc", "FStar.List.Tot.Base.rev", "Prims.Cons", "Prims.Nil", "Prims.unit", "LowParse.Spec.Enum.list_rev_cons", "Prims.l_True", "Prims.squash", "Prims.eq2", "FStar.List.Tot.Base.append", "FStar.Pervasives.pattern" ]
[]
true
false
true
false
false
let list_append_rev_cons (#t: Type) (l1: list t) (x: t) (l2: list t) : Lemma (L.append (L.rev l1) (x :: l2) == L.append (L.rev (x :: l1)) l2) =
list_rev_cons x l1; L.append_assoc (L.rev l1) [x] l2
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.dep_enum_destr_cons_nil
val dep_enum_destr_cons_nil (#key #repr: eqtype) (e: enum key repr) (u: squash (Cons? e /\ Nil? (enum_tail e))) (v: (enum_key e -> Tot Type)) : Tot (dep_enum_destr e v)
val dep_enum_destr_cons_nil (#key #repr: eqtype) (e: enum key repr) (u: squash (Cons? e /\ Nil? (enum_tail e))) (v: (enum_key e -> Tot Type)) : Tot (dep_enum_destr e v)
let dep_enum_destr_cons_nil (#key #repr: eqtype) (e: enum key repr) (u: squash (Cons? e /\ Nil? (enum_tail e))) (v: (enum_key e -> Tot Type)) : Tot (dep_enum_destr e v) = match e with | ((k, _) :: _) -> fun (v_eq: ((k: enum_key e) -> v k -> v k -> GTot Type0)) (v_if: ((k: enum_key e) -> Tot (if_co...
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 42, "end_line": 786, "start_col": 0, "start_line": 765 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> u773: Prims.squash (Cons? e /\ Nil? (LowParse.Spec.Enum.enum_tail e)) -> v: (_: LowParse.Spec.Enum.enum_key e -> Type) -> LowParse.Spec.Enum.dep_enum_destr e v
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "Prims.squash", "Prims.l_and", "Prims.b2t", "Prims.uu___is_Cons", "FStar.Pervasives.Native.tuple2", "Prims.uu___is_Nil", "LowParse.Spec.Enum.enum_tail", "LowParse.Spec.Enum.enum_key", "Prims.list", "LowParse.Spec.Enum.if_combinator", "LowParse.Spec....
[]
false
false
false
false
false
let dep_enum_destr_cons_nil (#key #repr: eqtype) (e: enum key repr) (u: squash (Cons? e /\ Nil? (enum_tail e))) (v: (enum_key e -> Tot Type)) : Tot (dep_enum_destr e v) =
match e with | (k, _) :: _ -> fun (v_eq: (k: enum_key e -> v k -> v k -> GTot Type0)) (v_if: (k: enum_key e -> Tot (if_combinator (v k) (v_eq k)))) (v_eq_refl: (k: enum_key e -> Tot (r_reflexive_t _ (v_eq k)))) (v_eq_trans: (k: enum_key e -> Tot (r_transitive_t _ (v_eq k)))) (f: (k: enum_key e -> ...
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.mk_maybe_enum_destr
val mk_maybe_enum_destr (t: Type) (#key #repr: eqtype) (e: enum key repr) : Tot (maybe_enum_destr_t t e)
val mk_maybe_enum_destr (t: Type) (#key #repr: eqtype) (e: enum key repr) : Tot (maybe_enum_destr_t t e)
let mk_maybe_enum_destr (t: Type) (#key #repr: eqtype) (e: enum key repr) : Tot (maybe_enum_destr_t t e) = maybe_enum_destr_t_intro t e (mk_maybe_enum_destr' t e [] e ())
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 65, "end_line": 1003, "start_col": 0, "start_line": 998 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Type -> e: LowParse.Spec.Enum.enum key repr -> LowParse.Spec.Enum.maybe_enum_destr_t t e
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.maybe_enum_destr_t_intro", "LowParse.Spec.Enum.mk_maybe_enum_destr'", "Prims.Nil", "FStar.Pervasives.Native.tuple2", "LowParse.Spec.Enum.maybe_enum_destr_t" ]
[]
false
false
false
false
false
let mk_maybe_enum_destr (t: Type) (#key #repr: eqtype) (e: enum key repr) : Tot (maybe_enum_destr_t t e) =
maybe_enum_destr_t_intro t e (mk_maybe_enum_destr' t e [] e ())
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.list_rev_cons
val list_rev_cons (#t: Type) (a: t) (q: list t) : Lemma (L.rev (a :: q) == (L.rev q) `L.append` [a])
val list_rev_cons (#t: Type) (a: t) (q: list t) : Lemma (L.rev (a :: q) == (L.rev q) `L.append` [a])
let list_rev_cons (#t: Type) (a: t) (q: list t) : Lemma (L.rev (a :: q) == L.rev q `L.append` [a]) = L.rev_rev' (a :: q); L.rev_rev' q
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 14, "end_line": 801, "start_col": 0, "start_line": 794 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: t -> q: Prims.list t -> FStar.Pervasives.Lemma (ensures FStar.List.Tot.Base.rev (a :: q) == FStar.List.Tot.Base.rev q @ [a])
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "FStar.List.Tot.Properties.rev_rev'", "Prims.unit", "Prims.Cons", "Prims.l_True", "Prims.squash", "Prims.eq2", "FStar.List.Tot.Base.rev", "FStar.List.Tot.Base.append", "Prims.Nil", "FStar.Pervasives.pattern" ]
[]
true
false
true
false
false
let list_rev_cons (#t: Type) (a: t) (q: list t) : Lemma (L.rev (a :: q) == (L.rev q) `L.append` [a]) =
L.rev_rev' (a :: q); L.rev_rev' q
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.list_hd
val list_hd : l: Prims.list t {Cons? l} -> t
let list_hd (#t: Type) (l: list t { Cons? l } ) = match l with | a :: _ -> a
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 15, "end_line": 897, "start_col": 0, "start_line": 893 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: Prims.list t {Cons? l} -> t
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "Prims.b2t", "Prims.uu___is_Cons" ]
[]
false
false
false
false
false
let list_hd (#t: Type) (l: list t {Cons? l}) =
match l with | a :: _ -> a
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.list_rev_map
val list_rev_map (#t1 #t2: Type) (f: (t1 -> Tot t2)) (l: list t1) : Lemma (L.rev (L.map f l) == L.map f (L.rev l))
val list_rev_map (#t1 #t2: Type) (f: (t1 -> Tot t2)) (l: list t1) : Lemma (L.rev (L.map f l) == L.map f (L.rev l))
let rec list_rev_map (#t1 #t2: Type) (f: t1 -> Tot t2) (l: list t1) : Lemma (L.rev (L.map f l) == L.map f (L.rev l)) = match l with | [] -> () | a :: q -> list_rev_cons a q; list_rev_cons (f a) (L.map f q); list_rev_map f q; L.map_append f (L.rev q) [a]
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 32, "end_line": 957, "start_col": 0, "start_line": 945 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: t1 -> t2) -> l: Prims.list t1 -> FStar.Pervasives.Lemma (ensures FStar.List.Tot.Base.rev (FStar.List.Tot.Base.map f l) == FStar.List.Tot.Base.map f (FStar.List.Tot.Base.rev l))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "FStar.List.Tot.Properties.map_append", "FStar.List.Tot.Base.rev", "Prims.Cons", "Prims.Nil", "Prims.unit", "LowParse.Spec.Enum.list_rev_map", "LowParse.Spec.Enum.list_rev_cons", "FStar.List.Tot.Base.map", "Prims.l_True", "Prims.squash", "Prims.eq2", "FStar.Pervasives.pattern" ...
[ "recursion" ]
false
false
true
false
false
let rec list_rev_map (#t1 #t2: Type) (f: (t1 -> Tot t2)) (l: list t1) : Lemma (L.rev (L.map f l) == L.map f (L.rev l)) =
match l with | [] -> () | a :: q -> list_rev_cons a q; list_rev_cons (f a) (L.map f q); list_rev_map f q; L.map_append f (L.rev q) [a]
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.mk_dep_maybe_enum_destr'
val mk_dep_maybe_enum_destr' (#key #repr: eqtype) (e: enum key repr) (v: (maybe_enum_key e -> Tot Type)) (l1 l2: list (key * repr)) (u1: squash (e == L.append (L.rev l1) l2)) : Tot (dep_maybe_enum_destr_t' e v l1 l2 u1) (decreases l2)
val mk_dep_maybe_enum_destr' (#key #repr: eqtype) (e: enum key repr) (v: (maybe_enum_key e -> Tot Type)) (l1 l2: list (key * repr)) (u1: squash (e == L.append (L.rev l1) l2)) : Tot (dep_maybe_enum_destr_t' e v l1 l2 u1) (decreases l2)
let rec mk_dep_maybe_enum_destr' (#key #repr: eqtype) (e: enum key repr) (v: (maybe_enum_key e -> Tot Type)) (l1: list (key * repr)) (l2: list (key * repr)) (u1: squash (e == L.append (L.rev l1) l2)) : Tot (dep_maybe_enum_destr_t' e v l1 l2 u1) (decreases l2) = match l2 with | [] -> dep_maybe_enum_destr...
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 162, "end_line": 1138, "start_col": 0, "start_line": 1127 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> v: (_: LowParse.Spec.Enum.maybe_enum_key e -> Type) -> l1: Prims.list (key * repr) -> l2: Prims.list (key * repr) -> u1: Prims.squash (e == FStar.List.Tot.Base.rev l1 @ l2) -> Prims.Tot (LowParse.Spec.Enum.dep_maybe_enum_destr_t' e v l1 l2 u1)
Prims.Tot
[ "total", "" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.maybe_enum_key", "Prims.list", "FStar.Pervasives.Native.tuple2", "Prims.squash", "Prims.eq2", "FStar.List.Tot.Base.append", "FStar.List.Tot.Base.rev", "LowParse.Spec.Enum.dep_maybe_enum_destr_nil", "LowParse.Spec.Enum.dep_maybe_enum_...
[ "recursion" ]
false
false
false
false
false
let rec mk_dep_maybe_enum_destr' (#key #repr: eqtype) (e: enum key repr) (v: (maybe_enum_key e -> Tot Type)) (l1 l2: list (key * repr)) (u1: squash (e == L.append (L.rev l1) l2)) : Tot (dep_maybe_enum_destr_t' e v l1 l2 u1) (decreases l2) =
match l2 with | [] -> dep_maybe_enum_destr_nil e v l1 l2 u1 | _ -> dep_maybe_enum_destr_cons e v l1 l2 u1 (mk_dep_maybe_enum_destr' e v (list_hd l2 :: l1) (list_tl l2) (list_append_rev_cons l1 (list_hd l2) (list_tl l2)))
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.enum_destr_cons_nil'
val enum_destr_cons_nil' (t: Type) (key repr: eqtype) (e: enum key repr) (u1: unit{Cons? e}) (u2: unit{Nil? (enum_tail e)}) : Tot (enum_destr_t t e)
val enum_destr_cons_nil' (t: Type) (key repr: eqtype) (e: enum key repr) (u1: unit{Cons? e}) (u2: unit{Nil? (enum_tail e)}) : Tot (enum_destr_t t e)
let enum_destr_cons_nil' (t: Type) (key repr: eqtype) (e: enum key repr) (u1: unit { Cons? e } ) (u2: unit { Nil? (enum_tail e) } ) : Tot (enum_destr_t t e) = enum_destr_cons_nil t e
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 25, "end_line": 689, "start_col": 0, "start_line": 682 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Spec", "short_module": null }, { "abbrev": false, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Type -> key: Prims.eqtype -> repr: Prims.eqtype -> e: LowParse.Spec.Enum.enum key repr -> u1: Prims.unit{Cons? e} -> u2: Prims.unit{Nil? (LowParse.Spec.Enum.enum_tail e)} -> LowParse.Spec.Enum.enum_destr_t t e
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "Prims.unit", "Prims.b2t", "Prims.uu___is_Cons", "FStar.Pervasives.Native.tuple2", "Prims.uu___is_Nil", "LowParse.Spec.Enum.enum_tail", "LowParse.Spec.Enum.enum_destr_cons_nil", "LowParse.Spec.Enum.enum_destr_t" ]
[]
false
false
false
false
false
let enum_destr_cons_nil' (t: Type) (key repr: eqtype) (e: enum key repr) (u1: unit{Cons? e}) (u2: unit{Nil? (enum_tail e)}) : Tot (enum_destr_t t e) =
enum_destr_cons_nil t e
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.assoc_append_flip_l_intro
val assoc_append_flip_l_intro (#key #repr: eqtype) (l1 l2: list (key * repr)) (y: repr) (x: key) : Lemma (requires (L.noRepeats (L.map snd (L.append l1 l2)) /\ L.assoc y (L.map flip l2) == Some x)) (ensures (L.assoc y (L.map flip (l1 `L.append` l2)) == Some x))
val assoc_append_flip_l_intro (#key #repr: eqtype) (l1 l2: list (key * repr)) (y: repr) (x: key) : Lemma (requires (L.noRepeats (L.map snd (L.append l1 l2)) /\ L.assoc y (L.map flip l2) == Some x)) (ensures (L.assoc y (L.map flip (l1 `L.append` l2)) == Some x))
let rec assoc_append_flip_l_intro (#key #repr: eqtype) (l1 l2: list (key * repr)) (y: repr) (x: key) : Lemma (requires (L.noRepeats (L.map snd (L.append l1 l2)) /\ L.assoc y (L.map flip l2) == Some x)) (ensures (L.assoc y (L.map flip (l1 `L.append` l2)) == Some x)) = match l1 with | [] -> () | (_, r') :...
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 38, "end_line": 823, "start_col": 0, "start_line": 808 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l1: Prims.list (key * repr) -> l2: Prims.list (key * repr) -> y: repr -> x: key -> FStar.Pervasives.Lemma (requires FStar.List.Tot.Base.noRepeats (FStar.List.Tot.Base.map FStar.Pervasives.Native.snd (l1 @ l2) ) /\ FStar.List.Tot.Base.assoc y (FStar.List.Tot.Base.map LowParse.Spec.Enum....
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "Prims.list", "FStar.Pervasives.Native.tuple2", "LowParse.Spec.Enum.assoc_append_flip_l_intro", "Prims.unit", "FStar.List.Tot.Properties.noRepeats_append_elim", "FStar.List.Tot.Base.map", "FStar.Pervasives.Native.snd", "FStar.List.Tot.Properties.map_append", "LowParse.Spec.Enum.map...
[ "recursion" ]
false
false
true
false
false
let rec assoc_append_flip_l_intro (#key #repr: eqtype) (l1 l2: list (key * repr)) (y: repr) (x: key) : Lemma (requires (L.noRepeats (L.map snd (L.append l1 l2)) /\ L.assoc y (L.map flip l2) == Some x)) (ensures (L.assoc y (L.map flip (l1 `L.append` l2)) == Some x)) =
match l1 with | [] -> () | (_, r') :: q -> L.assoc_mem y (L.map flip l2); map_fst_flip l2; L.map_append snd l1 l2; L.noRepeats_append_elim (L.map snd l1) (L.map snd l2); assoc_append_flip_l_intro q l2 y x
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.list_forallp_mem
val list_forallp_mem (#t: eqtype) (p: (t -> GTot Type0)) (l: list t) : Lemma (list_forallp p l <==> (forall x. L.mem x l ==> p x))
val list_forallp_mem (#t: eqtype) (p: (t -> GTot Type0)) (l: list t) : Lemma (list_forallp p l <==> (forall x. L.mem x l ==> p x))
let rec list_forallp_mem (#t: eqtype) (p: t -> GTot Type0) (l: list t) : Lemma (list_forallp p l <==> (forall x . L.mem x l ==> p x)) = match l with | [] -> () | _ :: q -> list_forallp_mem p q
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 34, "end_line": 1158, "start_col": 0, "start_line": 1154 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: (_: t -> Prims.GTot Type0) -> l: Prims.list t -> FStar.Pervasives.Lemma (ensures LowParse.Spec.Enum.list_forallp p l <==> (forall (x: t). FStar.List.Tot.Base.mem x l ==> p x))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.eqtype", "Prims.list", "LowParse.Spec.Enum.list_forallp_mem", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.l_iff", "LowParse.Spec.Enum.list_forallp", "Prims.l_Forall", "Prims.l_imp", "Prims.b2t", "FStar.List.Tot.Base.mem", "Prims.Nil", "FStar.Pervasives.pattern" ]
[ "recursion" ]
false
false
true
false
false
let rec list_forallp_mem (#t: eqtype) (p: (t -> GTot Type0)) (l: list t) : Lemma (list_forallp p l <==> (forall x. L.mem x l ==> p x)) =
match l with | [] -> () | _ :: q -> list_forallp_mem p q
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.maybe_enum_destr_t_intro
val maybe_enum_destr_t_intro (t: Type) (#key #repr: eqtype) (e: enum key repr) (f: maybe_enum_destr_t' t e [] e ()) : Tot (maybe_enum_destr_t t e)
val maybe_enum_destr_t_intro (t: Type) (#key #repr: eqtype) (e: enum key repr) (f: maybe_enum_destr_t' t e [] e ()) : Tot (maybe_enum_destr_t t e)
let maybe_enum_destr_t_intro (t: Type) (#key #repr: eqtype) (e: enum key repr) (f: maybe_enum_destr_t' t e [] e ()) : Tot (maybe_enum_destr_t t e) = f
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 3, "end_line": 877, "start_col": 0, "start_line": 871 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Type -> e: LowParse.Spec.Enum.enum key repr -> f: LowParse.Spec.Enum.maybe_enum_destr_t' t e [] e () -> LowParse.Spec.Enum.maybe_enum_destr_t t e
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.maybe_enum_destr_t'", "Prims.Nil", "FStar.Pervasives.Native.tuple2", "LowParse.Spec.Enum.maybe_enum_destr_t" ]
[]
false
false
false
false
false
let maybe_enum_destr_t_intro (t: Type) (#key #repr: eqtype) (e: enum key repr) (f: maybe_enum_destr_t' t e [] e ()) : Tot (maybe_enum_destr_t t e) =
f
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.mk_dep_maybe_enum_destr
val mk_dep_maybe_enum_destr : e: LowParse.Spec.Enum.enum key repr -> v: (_: LowParse.Spec.Enum.maybe_enum_key e -> Type) -> LowParse.Spec.Enum.dep_maybe_enum_destr_t e v
let mk_dep_maybe_enum_destr (#key #repr: eqtype) (e: enum key repr) (v: (maybe_enum_key e -> Tot Type)) = dep_maybe_enum_destr_t_intro e v (mk_dep_maybe_enum_destr' e v [] e ())
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 73, "end_line": 1145, "start_col": 0, "start_line": 1141 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> v: (_: LowParse.Spec.Enum.maybe_enum_key e -> Type) -> LowParse.Spec.Enum.dep_maybe_enum_destr_t e v
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.maybe_enum_key", "LowParse.Spec.Enum.dep_maybe_enum_destr_t_intro", "LowParse.Spec.Enum.mk_dep_maybe_enum_destr'", "Prims.Nil", "FStar.Pervasives.Native.tuple2", "LowParse.Spec.Enum.dep_maybe_enum_destr_t" ]
[]
false
false
false
false
false
let mk_dep_maybe_enum_destr (#key #repr: eqtype) (e: enum key repr) (v: (maybe_enum_key e -> Tot Type)) =
dep_maybe_enum_destr_t_intro e v (mk_dep_maybe_enum_destr' e v [] e ())
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.dep_maybe_enum_destr_cons
val dep_maybe_enum_destr_cons (#key #repr: eqtype) (e: enum key repr) (v: (maybe_enum_key e -> Tot Type)) (l1 l2: list (key * repr)) (u1: squash (Cons? l2 /\ e == L.append (L.rev l1) l2)) (g: (dep_maybe_enum_destr_t' e v (list_hd l2 :: l1) ...
val dep_maybe_enum_destr_cons (#key #repr: eqtype) (e: enum key repr) (v: (maybe_enum_key e -> Tot Type)) (l1 l2: list (key * repr)) (u1: squash (Cons? l2 /\ e == L.append (L.rev l1) l2)) (g: (dep_maybe_enum_destr_t' e v (list_hd l2 :: l1) ...
let dep_maybe_enum_destr_cons (#key #repr: eqtype) (e: enum key repr) (v: (maybe_enum_key e -> Tot Type)) (l1: list (key * repr)) (l2: list (key * repr)) (u1: squash (Cons? l2 /\ e == L.append (L.rev l1) l2)) (g: (dep_maybe_enum_destr_t' e v (list_hd l2 :: l1) (list_tl l2) (list_append_rev_cons l1 (list_h...
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 120, "end_line": 1095, "start_col": 0, "start_line": 1047 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> v: (_: LowParse.Spec.Enum.maybe_enum_key e -> Type) -> l1: Prims.list (key * repr) -> l2: Prims.list (key * repr) -> u1: Prims.squash (Cons? l2 /\ e == FStar.List.Tot.Base.rev l1 @ l2) -> g: LowParse.Spec.Enum.dep_maybe_enum_destr_t' e v ...
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.maybe_enum_key", "Prims.list", "FStar.Pervasives.Native.tuple2", "Prims.squash", "Prims.l_and", "Prims.b2t", "Prims.uu___is_Cons", "Prims.eq2", "FStar.List.Tot.Base.append", "FStar.List.Tot.Base.rev", "LowParse.Spec.Enum.dep_mayb...
[]
false
false
false
false
false
let dep_maybe_enum_destr_cons (#key #repr: eqtype) (e: enum key repr) (v: (maybe_enum_key e -> Tot Type)) (l1 l2: list (key * repr)) (u1: squash (Cons? l2 /\ e == L.append (L.rev l1) l2)) (g: (dep_maybe_enum_destr_t' e v (list_hd l2 :: l1) ...
fun (v_eq: (k: maybe_enum_key e -> v k -> v k -> GTot Type0)) (v_if: (k: maybe_enum_key e -> Tot (if_combinator (v k) (v_eq k)))) (v_eq_refl: (k: maybe_enum_key e -> Tot (r_reflexive_t _ (v_eq k)))) (v_eq_trans: (k: maybe_enum_key e -> Tot (r_transitive_t _ (v_eq k)))) (f: (k: maybe_enum_key e -> Tot (v k))) ...
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.list_tl
val list_tl : l: Prims.list t {Cons? l} -> Prims.list t
let list_tl (#t: Type) (l: list t { Cons? l } ) = match l with | _ :: q -> q
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 15, "end_line": 905, "start_col": 0, "start_line": 901 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: Prims.list t {Cons? l} -> Prims.list t
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "Prims.b2t", "Prims.uu___is_Cons" ]
[]
false
false
false
false
false
let list_tl (#t: Type) (l: list t {Cons? l}) =
match l with | _ :: q -> q
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.dep_maybe_enum_destr_t_intro
val dep_maybe_enum_destr_t_intro (#key #repr: eqtype) (e: enum key repr) (v: (maybe_enum_key e -> Tot Type)) (d: dep_maybe_enum_destr_t' e v [] e ()) : Tot (dep_maybe_enum_destr_t e v)
val dep_maybe_enum_destr_t_intro (#key #repr: eqtype) (e: enum key repr) (v: (maybe_enum_key e -> Tot Type)) (d: dep_maybe_enum_destr_t' e v [] e ()) : Tot (dep_maybe_enum_destr_t e v)
let dep_maybe_enum_destr_t_intro (#key #repr: eqtype) (e: enum key repr) (v: (maybe_enum_key e -> Tot Type)) (d: dep_maybe_enum_destr_t' e v [] e ()) : Tot (dep_maybe_enum_destr_t e v) = d
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 3, "end_line": 1044, "start_col": 0, "start_line": 1038 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> v: (_: LowParse.Spec.Enum.maybe_enum_key e -> Type) -> d: LowParse.Spec.Enum.dep_maybe_enum_destr_t' e v [] e () -> LowParse.Spec.Enum.dep_maybe_enum_destr_t e v
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.maybe_enum_key", "LowParse.Spec.Enum.dep_maybe_enum_destr_t'", "Prims.Nil", "FStar.Pervasives.Native.tuple2", "LowParse.Spec.Enum.dep_maybe_enum_destr_t" ]
[]
false
false
false
false
false
let dep_maybe_enum_destr_t_intro (#key #repr: eqtype) (e: enum key repr) (v: (maybe_enum_key e -> Tot Type)) (d: dep_maybe_enum_destr_t' e v [] e ()) : Tot (dep_maybe_enum_destr_t e v) =
d
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.mk_maybe_enum_destr'
val mk_maybe_enum_destr' (t: Type) (#key #repr: eqtype) (e: enum key repr) (l1 l2: list (key * repr)) (u: squash (e == (L.rev l1) `L.append` l2)) : Tot (maybe_enum_destr_t' t e l1 l2 u) (decreases l2)
val mk_maybe_enum_destr' (t: Type) (#key #repr: eqtype) (e: enum key repr) (l1 l2: list (key * repr)) (u: squash (e == (L.rev l1) `L.append` l2)) : Tot (maybe_enum_destr_t' t e l1 l2 u) (decreases l2)
let rec mk_maybe_enum_destr' (t: Type) (#key #repr: eqtype) (e: enum key repr) (l1: list (key * repr)) (l2: list (key * repr)) (u: squash (e == L.rev l1 `L.append` l2)) : Tot (maybe_enum_destr_t' t e l1 l2 u) (decreases l2) = match l2 with | [] -> maybe_enum_destr_nil t e l1 l2 u | _ -> [@inline_l...
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 98, "end_line": 995, "start_col": 0, "start_line": 981 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Type -> e: LowParse.Spec.Enum.enum key repr -> l1: Prims.list (key * repr) -> l2: Prims.list (key * repr) -> u954: Prims.squash (e == FStar.List.Tot.Base.rev l1 @ l2) -> Prims.Tot (LowParse.Spec.Enum.maybe_enum_destr_t' t e l1 l2 u954)
Prims.Tot
[ "total", "" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "Prims.list", "FStar.Pervasives.Native.tuple2", "Prims.squash", "Prims.eq2", "FStar.List.Tot.Base.append", "FStar.List.Tot.Base.rev", "LowParse.Spec.Enum.maybe_enum_destr_nil", "LowParse.Spec.Enum.maybe_enum_destr_cons", "LowParse.Spec.Enum.mk_maybe_enu...
[ "recursion" ]
false
false
false
false
false
let rec mk_maybe_enum_destr' (t: Type) (#key #repr: eqtype) (e: enum key repr) (l1 l2: list (key * repr)) (u: squash (e == (L.rev l1) `L.append` l2)) : Tot (maybe_enum_destr_t' t e l1 l2 u) (decreases l2) =
match l2 with | [] -> maybe_enum_destr_nil t e l1 l2 u | _ -> [@@ inline_let ]let _ = list_append_rev_cons l1 (list_hd l2) (list_tl l2) in maybe_enum_destr_cons t e l1 l2 u (mk_maybe_enum_destr' t e (list_hd l2 :: l1) (list_tl l2) u)
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.maybe_enum_key_of_repr'_t_cons_nil
val maybe_enum_key_of_repr'_t_cons_nil (#key #repr: eqtype) (e: enum key repr) : Pure (maybe_enum_key_of_repr'_t e) (requires (Cons? e /\ Nil? (enum_tail' e))) (ensures (fun _ -> True))
val maybe_enum_key_of_repr'_t_cons_nil (#key #repr: eqtype) (e: enum key repr) : Pure (maybe_enum_key_of_repr'_t e) (requires (Cons? e /\ Nil? (enum_tail' e))) (ensures (fun _ -> True))
let maybe_enum_key_of_repr'_t_cons_nil (#key #repr: eqtype) (e: enum key repr) : Pure (maybe_enum_key_of_repr'_t e) (requires (Cons? e /\ Nil? (enum_tail' e))) (ensures (fun _ -> True)) = (fun (e' : list (key * repr) { e' == e } ) -> match e' with | [(k, r)] -> (fun x -> (( if r = x then Known...
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 5, "end_line": 1303, "start_col": 0, "start_line": 1290 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> Prims.Pure (LowParse.Spec.Enum.maybe_enum_key_of_repr'_t e)
Prims.Pure
[]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "Prims.op_Equality", "LowParse.Spec.Enum.Known", "Prims.bool", "LowParse.Spec.Enum.Unknown", "LowParse.Spec.Enum.maybe_enum_key", "Prims.eq2", "LowParse.Spec.Enum.maybe_enum_key_of_repr", "LowParse.Spec.Enum.maybe_enum_key_of_repr'_t", "Prims.l_and", ...
[]
false
false
false
false
false
let maybe_enum_key_of_repr'_t_cons_nil (#key #repr: eqtype) (e: enum key repr) : Pure (maybe_enum_key_of_repr'_t e) (requires (Cons? e /\ Nil? (enum_tail' e))) (ensures (fun _ -> True)) =
(fun (e': list (key * repr) {e' == e}) -> match e' with | [k, r] -> (fun x -> ((if r = x then Known k else Unknown x) <: (k: maybe_enum_key e {k == maybe_enum_key_of_repr e x})))) e
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.maybe_enum_key_of_repr'_t_cons'
val maybe_enum_key_of_repr'_t_cons' (key repr: eqtype) (e: enum key repr) (u: unit{Cons? e}) (g: maybe_enum_key_of_repr'_t (enum_tail' e)) : Tot (maybe_enum_key_of_repr'_t e)
val maybe_enum_key_of_repr'_t_cons' (key repr: eqtype) (e: enum key repr) (u: unit{Cons? e}) (g: maybe_enum_key_of_repr'_t (enum_tail' e)) : Tot (maybe_enum_key_of_repr'_t e)
let maybe_enum_key_of_repr'_t_cons' (key repr: eqtype) (e: enum key repr ) (u: unit { Cons? e } ) (g : maybe_enum_key_of_repr'_t (enum_tail' e)) : Tot (maybe_enum_key_of_repr'_t e) = maybe_enum_key_of_repr'_t_cons e g
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 36, "end_line": 1342, "start_col": 0, "start_line": 1336 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
key: Prims.eqtype -> repr: Prims.eqtype -> e: LowParse.Spec.Enum.enum key repr -> u1179: u1181: Prims.unit{Cons? e} -> g: LowParse.Spec.Enum.maybe_enum_key_of_repr'_t (LowParse.Spec.Enum.enum_tail' e) -> LowParse.Spec.Enum.maybe_enum_key_of_repr'_t e
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "Prims.unit", "Prims.b2t", "Prims.uu___is_Cons", "FStar.Pervasives.Native.tuple2", "LowParse.Spec.Enum.maybe_enum_key_of_repr'_t", "LowParse.Spec.Enum.enum_tail'", "LowParse.Spec.Enum.maybe_enum_key_of_repr'_t_cons" ]
[]
false
false
false
false
false
let maybe_enum_key_of_repr'_t_cons' (key repr: eqtype) (e: enum key repr) (u: unit{Cons? e}) (g: maybe_enum_key_of_repr'_t (enum_tail' e)) : Tot (maybe_enum_key_of_repr'_t e) =
maybe_enum_key_of_repr'_t_cons e g
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.maybe_enum_destr_nil
val maybe_enum_destr_nil (t: Type) (#key #repr: eqtype) (e: enum key repr) (l1 l2: list (key * repr)) (u1: squash (Nil? l2 /\ e == L.append (L.rev l1) [])) : Tot (maybe_enum_destr_t' t e l1 l2 u1)
val maybe_enum_destr_nil (t: Type) (#key #repr: eqtype) (e: enum key repr) (l1 l2: list (key * repr)) (u1: squash (Nil? l2 /\ e == L.append (L.rev l1) [])) : Tot (maybe_enum_destr_t' t e l1 l2 u1)
let maybe_enum_destr_nil (t: Type) (#key #repr: eqtype) (e: enum key repr) (l1: list (key * repr)) (l2: list (key * repr)) (u1: squash (Nil? l2 /\ e == L.append (L.rev l1) [])) : Tot (maybe_enum_destr_t' t e l1 l2 u1) = fun (eq: (t -> t -> GTot Type0)) (ift: if_combinator t eq) (eq_refl: r_reflexive_t _ eq)...
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 57, "end_line": 978, "start_col": 0, "start_line": 960 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Type -> e: LowParse.Spec.Enum.enum key repr -> l1: Prims.list (key * repr) -> l2: Prims.list (key * repr) -> u1: Prims.squash (Nil? l2 /\ e == FStar.List.Tot.Base.rev l1 @ []) -> LowParse.Spec.Enum.maybe_enum_destr_t' t e l1 l2 u1
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "Prims.list", "FStar.Pervasives.Native.tuple2", "Prims.squash", "Prims.l_and", "Prims.b2t", "Prims.uu___is_Nil", "Prims.eq2", "FStar.List.Tot.Base.append", "FStar.List.Tot.Base.rev", "Prims.Nil", "LowParse.Spec.Enum.if_combinator", "LowParse.Spec....
[]
false
false
false
false
false
let maybe_enum_destr_nil (t: Type) (#key #repr: eqtype) (e: enum key repr) (l1 l2: list (key * repr)) (u1: squash (Nil? l2 /\ e == L.append (L.rev l1) [])) : Tot (maybe_enum_destr_t' t e l1 l2 u1) =
fun (eq: (t -> t -> GTot Type0)) (ift: if_combinator t eq) (eq_refl: r_reflexive_t _ eq) (eq_trans: r_transitive_t _ eq) (f: (maybe_enum_key e -> Tot t)) -> [@@ inline_let ]let _ = r_reflexive_t_elim _ _ eq_refl in [@@ inline_let ]let _ = r_transitive_t_elim _ _ eq_trans in fun (x: repr{maybe_enum_key...
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.dep_maybe_enum_destr_nil
val dep_maybe_enum_destr_nil (#key #repr: eqtype) (e: enum key repr) (v: (maybe_enum_key e -> Tot Type)) (l1 l2: list (key * repr)) (u1: squash (Nil? l2 /\ e == L.append (L.rev l1) [])) : Tot (dep_maybe_enum_destr_t' e v l1 l2 u1)
val dep_maybe_enum_destr_nil (#key #repr: eqtype) (e: enum key repr) (v: (maybe_enum_key e -> Tot Type)) (l1 l2: list (key * repr)) (u1: squash (Nil? l2 /\ e == L.append (L.rev l1) [])) : Tot (dep_maybe_enum_destr_t' e v l1 l2 u1)
let dep_maybe_enum_destr_nil (#key #repr: eqtype) (e: enum key repr) (v: (maybe_enum_key e -> Tot Type)) (l1: list (key * repr)) (l2: list (key * repr)) (u1: squash (Nil? l2 /\ e == L.append (L.rev l1) [])) : Tot (dep_maybe_enum_destr_t' e v l1 l2 u1) = fun (v_eq: ((k: maybe_enum_key e) -> v k -> v k -> G...
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 117, "end_line": 1124, "start_col": 0, "start_line": 1098 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> v: (_: LowParse.Spec.Enum.maybe_enum_key e -> Type) -> l1: Prims.list (key * repr) -> l2: Prims.list (key * repr) -> u1: Prims.squash (Nil? l2 /\ e == FStar.List.Tot.Base.rev l1 @ []) -> LowParse.Spec.Enum.dep_maybe_enum_destr_t' e v l1 l2 u1
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.maybe_enum_key", "Prims.list", "FStar.Pervasives.Native.tuple2", "Prims.squash", "Prims.l_and", "Prims.b2t", "Prims.uu___is_Nil", "Prims.eq2", "FStar.List.Tot.Base.append", "FStar.List.Tot.Base.rev", "Prims.Nil", "LowParse.Spec...
[]
false
false
false
false
false
let dep_maybe_enum_destr_nil (#key #repr: eqtype) (e: enum key repr) (v: (maybe_enum_key e -> Tot Type)) (l1 l2: list (key * repr)) (u1: squash (Nil? l2 /\ e == L.append (L.rev l1) [])) : Tot (dep_maybe_enum_destr_t' e v l1 l2 u1) =
fun (v_eq: (k: maybe_enum_key e -> v k -> v k -> GTot Type0)) (v_if: (k: maybe_enum_key e -> Tot (if_combinator (v k) (v_eq k)))) (v_eq_refl: (k: maybe_enum_key e -> Tot (r_reflexive_t _ (v_eq k)))) (v_eq_trans: (k: maybe_enum_key e -> Tot (r_transitive_t _ (v_eq k)))) (f: (k: maybe_enum_key e -> Tot (v k))) ...
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.list_forallp
val list_forallp (#t: Type) (p: (t -> GTot Type0)) (l: list t) : GTot Type0
val list_forallp (#t: Type) (p: (t -> GTot Type0)) (l: list t) : GTot Type0
let rec list_forallp (#t: Type) (p: t -> GTot Type0) (l: list t) : GTot Type0 = match l with | [] -> True | a :: q -> p a /\ list_forallp p q
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 37, "end_line": 1152, "start_col": 0, "start_line": 1149 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: (_: t -> Prims.GTot Type0) -> l: Prims.list t -> Prims.GTot Type0
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.list", "Prims.l_True", "Prims.l_and", "LowParse.Spec.Enum.list_forallp" ]
[ "recursion" ]
false
false
false
false
true
let rec list_forallp (#t: Type) (p: (t -> GTot Type0)) (l: list t) : GTot Type0 =
match l with | [] -> True | a :: q -> p a /\ list_forallp p q
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.maybe_enum_key_of_repr'_t_cons_nil'
val maybe_enum_key_of_repr'_t_cons_nil' (key repr: eqtype) (e: enum key repr) (u1: unit{Cons? e}) (u2: unit{Nil? (enum_tail' e)}) : Tot (maybe_enum_key_of_repr'_t e)
val maybe_enum_key_of_repr'_t_cons_nil' (key repr: eqtype) (e: enum key repr) (u1: unit{Cons? e}) (u2: unit{Nil? (enum_tail' e)}) : Tot (maybe_enum_key_of_repr'_t e)
let maybe_enum_key_of_repr'_t_cons_nil' (key repr: eqtype) (e: enum key repr) (u1: unit { Cons? e } ) (u2: unit { Nil? (enum_tail' e) } ) : Tot (maybe_enum_key_of_repr'_t e) = maybe_enum_key_of_repr'_t_cons_nil e
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 38, "end_line": 1312, "start_col": 0, "start_line": 1306 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
key: Prims.eqtype -> repr: Prims.eqtype -> e: LowParse.Spec.Enum.enum key repr -> u1: Prims.unit{Cons? e} -> u2: Prims.unit{Nil? (LowParse.Spec.Enum.enum_tail' e)} -> LowParse.Spec.Enum.maybe_enum_key_of_repr'_t e
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "Prims.unit", "Prims.b2t", "Prims.uu___is_Cons", "FStar.Pervasives.Native.tuple2", "Prims.uu___is_Nil", "LowParse.Spec.Enum.enum_tail'", "LowParse.Spec.Enum.maybe_enum_key_of_repr'_t_cons_nil", "LowParse.Spec.Enum.maybe_enum_key_of_repr'_t" ]
[]
false
false
false
false
false
let maybe_enum_key_of_repr'_t_cons_nil' (key repr: eqtype) (e: enum key repr) (u1: unit{Cons? e}) (u2: unit{Nil? (enum_tail' e)}) : Tot (maybe_enum_key_of_repr'_t e) =
maybe_enum_key_of_repr'_t_cons_nil e
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.forall_maybe_enum_key
val forall_maybe_enum_key (#key #value: eqtype) (e: enum key value) (f: (maybe_enum_key e -> GTot Type0)) (f_known: squash (list_forallp (fun (x: key) -> list_mem x (list_map fst e) /\ f (Known x)) (list_map fst e))) (f_unknown: (x: value -> Tot (squash ...
val forall_maybe_enum_key (#key #value: eqtype) (e: enum key value) (f: (maybe_enum_key e -> GTot Type0)) (f_known: squash (list_forallp (fun (x: key) -> list_mem x (list_map fst e) /\ f (Known x)) (list_map fst e))) (f_unknown: (x: value -> Tot (squash ...
let forall_maybe_enum_key (#key #value: eqtype) (e: enum key value) (f: maybe_enum_key e -> GTot Type0) (f_known: squash (list_forallp (fun (x: key) -> list_mem x (list_map fst e) /\ f (Known x)) (list_map fst e))) (f_unknown: ( (x: value) -> Tot (squash (list_mem x (list_map snd e) == false ==> f (Un...
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 26, "end_line": 1204, "start_col": 0, "start_line": 1181 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key value -> f: (_: LowParse.Spec.Enum.maybe_enum_key e -> Prims.GTot Type0) -> f_known: Prims.squash (LowParse.Spec.Enum.list_forallp (fun x -> LowParse.Spec.Enum.list_mem x (LowParse.Spec.Enum.list_map FStar.Pervasives.Native.fst e) /\ ...
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.maybe_enum_key", "Prims.squash", "LowParse.Spec.Enum.list_forallp", "Prims.l_and", "Prims.b2t", "LowParse.Spec.Enum.list_mem", "LowParse.Spec.Enum.list_map", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.fst", "LowPars...
[]
false
false
true
false
false
let forall_maybe_enum_key (#key #value: eqtype) (e: enum key value) (f: (maybe_enum_key e -> GTot Type0)) (f_known: squash (list_forallp (fun (x: key) -> list_mem x (list_map fst e) /\ f (Known x)) (list_map fst e))) (f_unknown: (x: value -> Tot (squash ...
let g (x: maybe_enum_key e) : Lemma (f x) = let u:squash (f x) = destruct_maybe_enum_key e (fun y -> squash (f y)) (fun x' u -> list_forallp_mem (fun (x: key) -> list_mem x (list_map fst e) /\ f (Known x)) (list_map fst e)) (fun x' u -> f_unknown x') x in assert (...
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.maybe_enum_key_of_repr'_t_cons
val maybe_enum_key_of_repr'_t_cons (#key #repr: eqtype) (e: enum key repr) (g: maybe_enum_key_of_repr'_t (enum_tail' e)) : Pure (maybe_enum_key_of_repr'_t e) (requires (Cons? e)) (ensures (fun _ -> True))
val maybe_enum_key_of_repr'_t_cons (#key #repr: eqtype) (e: enum key repr) (g: maybe_enum_key_of_repr'_t (enum_tail' e)) : Pure (maybe_enum_key_of_repr'_t e) (requires (Cons? e)) (ensures (fun _ -> True))
let maybe_enum_key_of_repr'_t_cons (#key #repr: eqtype) (e: enum key repr ) (g : maybe_enum_key_of_repr'_t (enum_tail' e)) : Pure (maybe_enum_key_of_repr'_t e) (requires (Cons? e)) (ensures (fun _ -> True)) = (fun (e' : list (key * repr) { e' == e } ) -> match e' with | (k, r) :: _ -> (fun x -> (( ...
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 7, "end_line": 1333, "start_col": 0, "start_line": 1315 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> g: LowParse.Spec.Enum.maybe_enum_key_of_repr'_t (LowParse.Spec.Enum.enum_tail' e) -> Prims.Pure (LowParse.Spec.Enum.maybe_enum_key_of_repr'_t e)
Prims.Pure
[]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.maybe_enum_key_of_repr'_t", "LowParse.Spec.Enum.enum_tail'", "Prims.list", "FStar.Pervasives.Native.tuple2", "Prims.op_Equality", "LowParse.Spec.Enum.Known", "Prims.bool", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Enum.unknown_en...
[]
false
false
false
false
false
let maybe_enum_key_of_repr'_t_cons (#key #repr: eqtype) (e: enum key repr) (g: maybe_enum_key_of_repr'_t (enum_tail' e)) : Pure (maybe_enum_key_of_repr'_t e) (requires (Cons? e)) (ensures (fun _ -> True)) =
(fun (e': list (key * repr) {e' == e}) -> match e' with | (k, r) :: _ -> (fun x -> ((if r = x then Known k else let y:maybe_enum_key (enum_tail' e) = g x in match y with | Known k' -> Known (k' <: key) | ...
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.dep_enum_destr_cons
val dep_enum_destr_cons (#key #repr: eqtype) (e: enum key repr) (u: squash (Cons? e)) (v: (enum_key e -> Tot Type)) (destr: dep_enum_destr (enum_tail e) (fun (k': enum_key (enum_tail e)) -> v (k' <: key))) : Tot (dep_enum_destr e v)
val dep_enum_destr_cons (#key #repr: eqtype) (e: enum key repr) (u: squash (Cons? e)) (v: (enum_key e -> Tot Type)) (destr: dep_enum_destr (enum_tail e) (fun (k': enum_key (enum_tail e)) -> v (k' <: key))) : Tot (dep_enum_destr e v)
let dep_enum_destr_cons (#key #repr: eqtype) (e: enum key repr) (u: squash (Cons? e)) (v: (enum_key e -> Tot Type)) (destr: dep_enum_destr (enum_tail e) (fun (k' : enum_key (enum_tail e)) -> v (k' <: key))) : Tot (dep_enum_destr e v) = match e with | ((k, _) :: _) -> fun (v_eq: ((k: enum_key e) -> v...
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 42, "end_line": 762, "start_col": 0, "start_line": 710 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: LowParse.Spec.Enum.enum key repr -> u763: Prims.squash (Cons? e) -> v: (_: LowParse.Spec.Enum.enum_key e -> Type) -> destr: LowParse.Spec.Enum.dep_enum_destr (LowParse.Spec.Enum.enum_tail e) (fun k' -> v k') -> LowParse.Spec.Enum.dep_enum_destr e v
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "Prims.squash", "Prims.b2t", "Prims.uu___is_Cons", "FStar.Pervasives.Native.tuple2", "LowParse.Spec.Enum.enum_key", "LowParse.Spec.Enum.dep_enum_destr", "LowParse.Spec.Enum.enum_tail", "Prims.list", "LowParse.Spec.Enum.if_combinator", "LowParse.Spec.E...
[]
false
false
false
false
false
let dep_enum_destr_cons (#key #repr: eqtype) (e: enum key repr) (u: squash (Cons? e)) (v: (enum_key e -> Tot Type)) (destr: dep_enum_destr (enum_tail e) (fun (k': enum_key (enum_tail e)) -> v (k' <: key))) : Tot (dep_enum_destr e v) =
match e with | (k, _) :: _ -> fun (v_eq: (k: enum_key e -> v k -> v k -> GTot Type0)) (v_if: (k: enum_key e -> Tot (if_combinator (v k) (v_eq k)))) (v_eq_refl: (k: enum_key e -> Tot (r_reflexive_t _ (v_eq k)))) (v_eq_trans: (k: enum_key e -> Tot (r_transitive_t _ (v_eq k)))) (f: (k: enum_key e -> ...
false
LowParse.Spec.Enum.fst
LowParse.Spec.Enum.enum_repr_of_key_cons_nil'
val enum_repr_of_key_cons_nil' (key repr: eqtype) (e: enum key repr) (u1: unit{Cons? e}) (u2: unit{Nil? (enum_tail' e)}) : Tot (enum_repr_of_key'_t e)
val enum_repr_of_key_cons_nil' (key repr: eqtype) (e: enum key repr) (u1: unit{Cons? e}) (u2: unit{Nil? (enum_tail' e)}) : Tot (enum_repr_of_key'_t e)
let enum_repr_of_key_cons_nil' (key repr: eqtype) (e: enum key repr) (u1: unit { Cons? e } ) (u2: unit { Nil? (enum_tail' e) } ) : Tot (enum_repr_of_key'_t e) = enum_repr_of_key_cons_nil e
{ "file_name": "src/lowparse/LowParse.Spec.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 29, "end_line": 1261, "start_col": 0, "start_line": 1255 }
module LowParse.Spec.Enum include LowParse.Spec.Combinators module L = FStar.List.Tot [@Norm] let rec list_map (#a #b: Type) (f: (a -> Tot b)) (l: list a) : Tot (l' : list b { l' == L.map f l } ) = match l with | [] -> [] | a :: q -> f a :: list_map f q type enum (key: eqtype) (repr: eqtype) = (l: list (ke...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "LowPa...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
key: Prims.eqtype -> repr: Prims.eqtype -> e: LowParse.Spec.Enum.enum key repr -> u1: Prims.unit{Cons? e} -> u2: Prims.unit{Nil? (LowParse.Spec.Enum.enum_tail' e)} -> LowParse.Spec.Enum.enum_repr_of_key'_t e
Prims.Tot
[ "total" ]
[]
[ "Prims.eqtype", "LowParse.Spec.Enum.enum", "Prims.unit", "Prims.b2t", "Prims.uu___is_Cons", "FStar.Pervasives.Native.tuple2", "Prims.uu___is_Nil", "LowParse.Spec.Enum.enum_tail'", "LowParse.Spec.Enum.enum_repr_of_key_cons_nil", "LowParse.Spec.Enum.enum_repr_of_key'_t" ]
[]
false
false
false
false
false
let enum_repr_of_key_cons_nil' (key repr: eqtype) (e: enum key repr) (u1: unit{Cons? e}) (u2: unit{Nil? (enum_tail' e)}) : Tot (enum_repr_of_key'_t e) =
enum_repr_of_key_cons_nil e
false