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.Stdcalls.X64.AesHash.fst | Vale.Stdcalls.X64.AesHash.code_key256 | val code_key256 : Vale.X64.Decls.va_code | let code_key256 = GF.va_code_Keyhash_init IA.win AES_256 | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.AesHash.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 56,
"end_line": 177,
"start_col": 0,
"start_line": 177
} | module Vale.Stdcalls.X64.AesHash
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": true,
"full_module": "Vale.AES.X64.GF128_Init",
"short_module": "GF"
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Vale.X64.Decls.va_code | Prims.Tot | [
"total"
] | [] | [
"Vale.AES.X64.GF128_Init.va_code_Keyhash_init",
"Vale.Interop.Assumptions.win",
"Vale.AES.AES_common_s.AES_256"
] | [] | false | false | false | true | false | let code_key256 =
| GF.va_code_Keyhash_init IA.win AES_256 | false | |
Vale.Stdcalls.X64.AesHash.fst | Vale.Stdcalls.X64.AesHash.key256_post | val key256_post: (Ghost.erased (Seq.seq nat32)) -> VSig.vale_post dom | val key256_post: (Ghost.erased (Seq.seq nat32)) -> VSig.vale_post dom | let key256_post : (Ghost.erased (Seq.seq nat32)) -> VSig.vale_post dom =
fun (s:Ghost.erased (Seq.seq nat32))
(c:V.va_code)
(input_b:b128)
(output_b:b128)
(va_s0:V.va_state)
(va_s1:V.va_state)
(f:V.va_fuel) ->
GF.va_ens_Keyhash_init c va_s0 IA.win AES_256 (Ghost.reveal s)
(as_val... | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.AesHash.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 66,
"end_line": 145,
"start_col": 0,
"start_line": 136
} | module Vale.Stdcalls.X64.AesHash
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": true,
"full_module": "Vale.AES.X64.GF128_Init",
"short_module": "GF"
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: FStar.Ghost.erased (FStar.Seq.Base.seq Vale.Def.Words_s.nat32)
-> Vale.AsLowStar.ValeSig.vale_post Vale.Stdcalls.X64.AesHash.dom | Prims.Tot | [
"total"
] | [] | [
"FStar.Ghost.erased",
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.nat32",
"Vale.X64.Decls.va_code",
"Vale.Stdcalls.X64.AesHash.b128",
"Vale.X64.Decls.va_state",
"Vale.X64.Decls.va_fuel",
"Vale.AES.X64.GF128_Init.va_ens_Keyhash_init",
"Vale.Interop.Assumptions.win",
"Vale.AES.AES_common_s.AES_256",
"... | [] | false | false | false | true | false | let key256_post: (Ghost.erased (Seq.seq nat32)) -> VSig.vale_post dom =
| fun
(s: Ghost.erased (Seq.seq nat32))
(c: V.va_code)
(input_b: b128)
(output_b: b128)
(va_s0: V.va_state)
(va_s1: V.va_state)
(f: V.va_fuel)
->
GF.va_ens_Keyhash_init c
va_s0
IA.win
AES_256
(Ghost.reveal s)
(as_vale_buffer input_b)
(as_vale_buffer output_b)
va_s1
f | false |
Vale.Stdcalls.X64.AesHash.fst | Vale.Stdcalls.X64.AesHash.key256_pre | val key256_pre: (Ghost.erased (Seq.seq nat32)) -> VSig.vale_pre dom | val key256_pre: (Ghost.erased (Seq.seq nat32)) -> VSig.vale_pre dom | let key256_pre : (Ghost.erased (Seq.seq nat32)) -> VSig.vale_pre dom =
fun (s:Ghost.erased (Seq.seq nat32))
(c:V.va_code)
(input_b:b128)
(output_b:b128)
(va_s0:V.va_state) ->
GF.va_req_Keyhash_init c va_s0 IA.win AES_256 (Ghost.reveal s)
(as_vale_buffer input_b) (as_vale_buffer output_b) | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.AesHash.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 58,
"end_line": 133,
"start_col": 0,
"start_line": 126
} | module Vale.Stdcalls.X64.AesHash
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": true,
"full_module": "Vale.AES.X64.GF128_Init",
"short_module": "GF"
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: FStar.Ghost.erased (FStar.Seq.Base.seq Vale.Def.Words_s.nat32)
-> Vale.AsLowStar.ValeSig.vale_pre Vale.Stdcalls.X64.AesHash.dom | Prims.Tot | [
"total"
] | [] | [
"FStar.Ghost.erased",
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.nat32",
"Vale.X64.Decls.va_code",
"Vale.Stdcalls.X64.AesHash.b128",
"Vale.X64.Decls.va_state",
"Vale.AES.X64.GF128_Init.va_req_Keyhash_init",
"Vale.Interop.Assumptions.win",
"Vale.AES.AES_common_s.AES_256",
"FStar.Ghost.reveal",
"Vale... | [] | false | false | false | true | false | let key256_pre: (Ghost.erased (Seq.seq nat32)) -> VSig.vale_pre dom =
| fun
(s: Ghost.erased (Seq.seq nat32))
(c: V.va_code)
(input_b: b128)
(output_b: b128)
(va_s0: V.va_state)
->
GF.va_req_Keyhash_init c
va_s0
IA.win
AES_256
(Ghost.reveal s)
(as_vale_buffer input_b)
(as_vale_buffer output_b) | false |
Vale.Wrapper.X64.AES.fsti | Vale.Wrapper.X64.AES.key_offset | val key_offset : a:
Vale.AES.AES_common_s.algorithm
{a = Vale.AES.AES_common_s.AES_128 \/ a = Vale.AES.AES_common_s.AES_256}
-> Prims.int | let key_offset (a: algorithm { a = AES_128 \/ a = AES_256 }) =
match a with
| AES_128 -> 176
| AES_256 -> 240 | {
"file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.AES.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 18,
"end_line": 35,
"start_col": 0,
"start_line": 32
} | module Vale.Wrapper.X64.AES
open Vale.X64.CPU_Features_s
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open FStar.Mul
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.AES.AES_s
open Vale.Interop.Base
open V... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.AES.AES_s.fst.checked",
"prims.fst.checked",
"LowStar.BufferVie... | [
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_s",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a:
Vale.AES.AES_common_s.algorithm
{a = Vale.AES.AES_common_s.AES_128 \/ a = Vale.AES.AES_common_s.AES_256}
-> Prims.int | Prims.Tot | [
"total"
] | [] | [
"Vale.AES.AES_common_s.algorithm",
"Prims.l_or",
"Prims.b2t",
"Prims.op_Equality",
"Vale.AES.AES_common_s.AES_128",
"Vale.AES.AES_common_s.AES_256",
"Prims.int"
] | [] | false | false | false | false | false | let key_offset (a: algorithm{a = AES_128 \/ a = AES_256}) =
| match a with
| AES_128 -> 176
| AES_256 -> 240 | false | |
Vale.Stdcalls.X64.AesHash.fst | Vale.Stdcalls.X64.AesHash.code_key128 | val code_key128 : Vale.X64.Decls.va_code | let code_key128 = GF.va_code_Keyhash_init IA.win AES_128 | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.AesHash.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 56,
"end_line": 101,
"start_col": 0,
"start_line": 101
} | module Vale.Stdcalls.X64.AesHash
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": true,
"full_module": "Vale.AES.X64.GF128_Init",
"short_module": "GF"
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Vale.X64.Decls.va_code | Prims.Tot | [
"total"
] | [] | [
"Vale.AES.X64.GF128_Init.va_code_Keyhash_init",
"Vale.Interop.Assumptions.win",
"Vale.AES.AES_common_s.AES_128"
] | [] | false | false | false | true | false | let code_key128 =
| GF.va_code_Keyhash_init IA.win AES_128 | false | |
Vale.Wrapper.X64.AES.fsti | Vale.Wrapper.X64.AES.key_expansion_st | val key_expansion_st : a:
Vale.AES.AES_common_s.algorithm
{a = Vale.AES.AES_common_s.AES_128 \/ a = Vale.AES.AES_common_s.AES_256}
-> Type0 | let key_expansion_st (a: algorithm { a = AES_128 \/ a = AES_256 }) =
(input_key_b:uint8_p) ->
(output_key_expansion_b:uint8_p) ->
Stack unit
(requires fun h0 ->
B.disjoint input_key_b output_key_expansion_b /\
B.live h0 input_key_b /\ B.live h0 output_key_expansion_b /\
B.length input_key_... | {
"file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.AES.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 88,
"end_line": 62,
"start_col": 0,
"start_line": 44
} | module Vale.Wrapper.X64.AES
open Vale.X64.CPU_Features_s
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open FStar.Mul
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.AES.AES_s
open Vale.Interop.Base
open V... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.CPU_Features_s.fst.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.AES.AES_s.fst.checked",
"prims.fst.checked",
"LowStar.BufferVie... | [
{
"abbrev": false,
"full_module": "Vale.Def.Types_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Interop.Base",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_s",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a:
Vale.AES.AES_common_s.algorithm
{a = Vale.AES.AES_common_s.AES_128 \/ a = Vale.AES.AES_common_s.AES_256}
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Vale.AES.AES_common_s.algorithm",
"Prims.l_or",
"Prims.b2t",
"Prims.op_Equality",
"Vale.AES.AES_common_s.AES_128",
"Vale.AES.AES_common_s.AES_256",
"Vale.Wrapper.X64.AES.uint8_p",
"Prims.unit",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"LowStar.Monotonic.Buffer.disjoint",
"FStar.UInt8.... | [] | false | false | false | false | true | let key_expansion_st (a: algorithm{a = AES_128 \/ a = AES_256}) =
| input_key_b: uint8_p -> output_key_expansion_b: uint8_p
-> Stack unit
(requires
fun h0 ->
B.disjoint input_key_b output_key_expansion_b /\ B.live h0 input_key_b /\
B.live h0 output_key_expansion_b /\ B.length input_key_b = key_length a /\
B.length output_key_expansion_b = k... | false | |
Vale.Stdcalls.X64.AesHash.fst | Vale.Stdcalls.X64.AesHash.aes128_keyhash_init | val aes128_keyhash_init : Vale.Interop.Base.normal (s: FStar.Ghost.erased (FStar.Seq.Base.seq Vale.Def.Types_s.nat32)
-> Vale.Stdcalls.X64.AesHash.lowstar_key128_t s) | let aes128_keyhash_init //: normal ((s:Ghost.erased (Seq.seq nat32)) -> lowstar_key128_t s)
= as_normal_t #((s:Ghost.erased (Seq.seq nat32)) -> lowstar_key128_t s) (fun (s:Ghost.erased (Seq.seq nat32)) -> lowstar_key128 s) | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.AesHash.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 132,
"end_line": 202,
"start_col": 0,
"start_line": 201
} | module Vale.Stdcalls.X64.AesHash
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": true,
"full_module": "Vale.AES.X64.GF128_Init",
"short_module": "GF"
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Vale.Interop.Base.normal (s: FStar.Ghost.erased (FStar.Seq.Base.seq Vale.Def.Types_s.nat32)
-> Vale.Stdcalls.X64.AesHash.lowstar_key128_t s) | Prims.Tot | [
"total"
] | [] | [
"Vale.Stdcalls.X64.AesHash.as_normal_t",
"FStar.Ghost.erased",
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.nat32",
"Vale.Stdcalls.X64.AesHash.lowstar_key128_t",
"Vale.Stdcalls.X64.AesHash.lowstar_key128"
] | [] | false | false | false | false | false | let aes128_keyhash_init =
| as_normal_t #(s: Ghost.erased (Seq.seq nat32) -> lowstar_key128_t s)
(fun (s: Ghost.erased (Seq.seq nat32)) -> lowstar_key128 s) | false | |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.walk | val walk (#kt #vt: _) (repr: repr_t kt vt) (idx: nat) (k: kt) (off: nat{off <= repr.sz}) : option vt | val walk (#kt #vt: _) (repr: repr_t kt vt) (idx: nat) (k: kt) (off: nat{off <= repr.sz}) : option vt | let walk #kt #vt (repr : repr_t kt vt) (idx:nat) (k : kt) (off:nat{off <= repr.sz}) : option vt
= match walk_get_idx repr idx k off with
| Some (v,_) -> Some v
| _ -> None | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 15,
"end_line": 119,
"start_col": 0,
"start_line": 116
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
repr: Pulse.Lib.HashTable.Spec.repr_t kt vt ->
idx: Prims.nat ->
k: kt ->
off: Prims.nat{off <= Mkrepr_t?.sz repr}
-> FStar.Pervasives.Native.option vt | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"Pulse.Lib.HashTable.Spec.repr_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Pulse.Lib.HashTable.Spec.__proj__Mkrepr_t__item__sz",
"Pulse.Lib.HashTable.Spec.walk_get_idx",
"FStar.Pervasives.Native.Some",
"FStar.Pervasives.Native.option",
"FStar.Pervasives.Native.tuple2... | [] | false | false | false | false | false | let walk #kt #vt (repr: repr_t kt vt) (idx: nat) (k: kt) (off: nat{off <= repr.sz}) : option vt =
| match walk_get_idx repr idx k off with
| Some (v, _) -> Some v
| _ -> None | false |
Vale.Stdcalls.X64.AesHash.fst | Vale.Stdcalls.X64.AesHash.aes256_keyhash_init | val aes256_keyhash_init : Vale.Interop.Base.normal (s: FStar.Ghost.erased (FStar.Seq.Base.seq Vale.Def.Types_s.nat32)
-> Vale.Stdcalls.X64.AesHash.lowstar_key256_t s) | let aes256_keyhash_init //: normal ((s:Ghost.erased (Seq.seq nat32)) -> lowstar_key256_t s)
= as_normal_t #((s:Ghost.erased (Seq.seq nat32)) -> lowstar_key256_t s) (fun (s:Ghost.erased (Seq.seq nat32)) -> lowstar_key256 s) | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.AesHash.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 132,
"end_line": 206,
"start_col": 0,
"start_line": 205
} | module Vale.Stdcalls.X64.AesHash
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": true,
"full_module": "Vale.AES.X64.GF128_Init",
"short_module": "GF"
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Vale.Interop.Base.normal (s: FStar.Ghost.erased (FStar.Seq.Base.seq Vale.Def.Types_s.nat32)
-> Vale.Stdcalls.X64.AesHash.lowstar_key256_t s) | Prims.Tot | [
"total"
] | [] | [
"Vale.Stdcalls.X64.AesHash.as_normal_t",
"FStar.Ghost.erased",
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.nat32",
"Vale.Stdcalls.X64.AesHash.lowstar_key256_t",
"Vale.Stdcalls.X64.AesHash.lowstar_key256"
] | [] | false | false | false | false | false | let aes256_keyhash_init =
| as_normal_t #(s: Ghost.erased (Seq.seq nat32) -> lowstar_key256_t s)
(fun (s: Ghost.erased (Seq.seq nat32)) -> lowstar_key256 s) | false | |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.repr_t_sz | val repr_t_sz : kt: Prims.eqtype -> vt: Type -> sz: Prims.pos -> Type | let repr_t_sz kt vt sz = r:repr_t kt vt { r.sz == sz} | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 53,
"end_line": 182,
"start_col": 0,
"start_line": 182
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | kt: Prims.eqtype -> vt: Type -> sz: Prims.pos -> Type | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"Prims.pos",
"Pulse.Lib.HashTable.Spec.repr_t",
"Prims.eq2",
"Pulse.Lib.HashTable.Spec.__proj__Mkrepr_t__item__sz"
] | [] | false | false | false | true | true | let repr_t_sz kt vt sz =
| r: repr_t kt vt {r.sz == sz} | false | |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.repr_related | val repr_related : r1: Pulse.Lib.HashTable.Spec.repr_t kt vt -> r2: Pulse.Lib.HashTable.Spec.repr_t kt vt
-> Prims.logical | let repr_related #kt #vt (r1 r2:repr_t kt vt) =
r1.hashf == r2.hashf /\ r1.sz == r2.sz | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 40,
"end_line": 180,
"start_col": 0,
"start_line": 179
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r1: Pulse.Lib.HashTable.Spec.repr_t kt vt -> r2: Pulse.Lib.HashTable.Spec.repr_t kt vt
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"Pulse.Lib.HashTable.Spec.repr_t",
"Prims.l_and",
"Prims.eq2",
"Prims.nat",
"Pulse.Lib.HashTable.Spec.__proj__Mkrepr_t__item__hashf",
"Prims.pos",
"Pulse.Lib.HashTable.Spec.__proj__Mkrepr_t__item__sz",
"Prims.logical"
] | [] | false | false | false | false | true | let repr_related #kt #vt (r1: repr_t kt vt) (r2: repr_t kt vt) =
| r1.hashf == r2.hashf /\ r1.sz == r2.sz | false | |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.canonical_index | val canonical_index (#kt: eqtype) (#vt: _) (key: kt) (repr: repr_t kt vt) : nat | val canonical_index (#kt: eqtype) (#vt: _) (key: kt) (repr: repr_t kt vt) : nat | let canonical_index (#kt:eqtype) #vt (key:kt) (repr:repr_t kt vt) : nat =
repr.hashf key % repr.sz | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 26,
"end_line": 56,
"start_col": 0,
"start_line": 55
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | key: kt -> repr: Pulse.Lib.HashTable.Spec.repr_t kt vt -> Prims.nat | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"Pulse.Lib.HashTable.Spec.repr_t",
"Prims.op_Modulus",
"Pulse.Lib.HashTable.Spec.__proj__Mkrepr_t__item__hashf",
"Pulse.Lib.HashTable.Spec.__proj__Mkrepr_t__item__sz",
"Prims.nat"
] | [] | false | false | false | false | false | let canonical_index (#kt: eqtype) #vt (key: kt) (repr: repr_t kt vt) : nat =
| repr.hashf key % repr.sz | false |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.used_not_by | val used_not_by (#kt #kv: _) (repr: repr_t kt kv) (k: kt) (i: nat{i < repr.sz}) : prop | val used_not_by (#kt #kv: _) (repr: repr_t kt kv) (k: kt) (i: nat{i < repr.sz}) : prop | let used_not_by #kt #kv (repr : repr_t kt kv) (k : kt) (i : nat{i < repr.sz}): prop =
strong_used_not_by repr k i \/ Zombie? (repr @@ i) | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 52,
"end_line": 327,
"start_col": 0,
"start_line": 326
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | repr: Pulse.Lib.HashTable.Spec.repr_t kt kv -> k: kt -> i: Prims.nat{i < Mkrepr_t?.sz repr}
-> Prims.prop | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"Pulse.Lib.HashTable.Spec.repr_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Pulse.Lib.HashTable.Spec.__proj__Mkrepr_t__item__sz",
"Prims.l_or",
"Pulse.Lib.HashTable.Spec.strong_used_not_by",
"Pulse.Lib.HashTable.Spec.uu___is_Zombie",
"Pulse.Lib.HashTable.Spec.op_At_At",
"P... | [] | false | false | false | false | true | let used_not_by #kt #kv (repr: repr_t kt kv) (k: kt) (i: nat{i < repr.sz}) : prop =
| strong_used_not_by repr k i \/ Zombie? (repr @@ i) | false |
Vale.Stdcalls.X64.AesHash.fst | Vale.Stdcalls.X64.AesHash.as_t | val as_t (#a: Type) (x: normal a) : a | val as_t (#a: Type) (x: normal a) : a | let as_t (#a:Type) (x:normal a) : a = x | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.AesHash.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 39,
"end_line": 31,
"start_col": 0,
"start_line": 31
} | module Vale.Stdcalls.X64.AesHash
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": true,
"full_module": "Vale.AES.X64.GF128_Init",
"short_module": "GF"
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: Vale.Interop.Base.normal a -> a | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.Base.normal"
] | [] | false | false | false | true | false | let as_t (#a: Type) (x: normal a) : a =
| x | false |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.strong_used_not_by | val strong_used_not_by (#kt #kv: _) (repr: repr_t kt kv) (k: kt) (i: nat{i < repr.sz}) : prop | val strong_used_not_by (#kt #kv: _) (repr: repr_t kt kv) (k: kt) (i: nat{i < repr.sz}) : prop | let strong_used_not_by #kt #kv (repr : repr_t kt kv) (k : kt) (i : nat{i < repr.sz}): prop =
(Used? (repr @@ i) /\ Used?.k (repr @@ i) <> k) | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 49,
"end_line": 324,
"start_col": 0,
"start_line": 323
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | repr: Pulse.Lib.HashTable.Spec.repr_t kt kv -> k: kt -> i: Prims.nat{i < Mkrepr_t?.sz repr}
-> Prims.prop | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"Pulse.Lib.HashTable.Spec.repr_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Pulse.Lib.HashTable.Spec.__proj__Mkrepr_t__item__sz",
"Prims.l_and",
"Pulse.Lib.HashTable.Spec.uu___is_Used",
"Pulse.Lib.HashTable.Spec.op_At_At",
"Prims.op_disEquality",
"Pulse.Lib.HashTable.Spec.... | [] | false | false | false | false | true | let strong_used_not_by #kt #kv (repr: repr_t kt kv) (k: kt) (i: nat{i < repr.sz}) : prop =
| (Used? (repr @@ i) /\ Used?.k (repr @@ i) <> k) | false |
Vale.Stdcalls.X64.AesHash.fst | Vale.Stdcalls.X64.AesHash.as_normal_t | val as_normal_t (#a: Type) (x: a) : normal a | val as_normal_t (#a: Type) (x: a) : normal a | let as_normal_t (#a:Type) (x:a) : normal a = x | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.AesHash.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 46,
"end_line": 33,
"start_col": 0,
"start_line": 33
} | module Vale.Stdcalls.X64.AesHash
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": true,
"full_module": "Vale.AES.X64.GF128_Init",
"short_module": "GF"
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: a -> Vale.Interop.Base.normal a | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.Base.normal"
] | [] | false | false | false | true | false | let as_normal_t (#a: Type) (x: a) : normal a =
| x | false |
Vale.Stdcalls.X64.AesHash.fst | Vale.Stdcalls.X64.AesHash.dom | val dom:IX64.arity_ok_stdcall td | val dom:IX64.arity_ok_stdcall td | let dom: IX64.arity_ok_stdcall td =
let y = [t128_no_mod; t128_mod] in
assert_norm (List.length y = 2);
y | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.AesHash.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 46,
"start_col": 0,
"start_line": 43
} | module Vale.Stdcalls.X64.AesHash
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": true,
"full_module": "Vale.AES.X64.GF128_Init",
"short_module": "GF"
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Vale.Interop.X64.arity_ok_stdcall Vale.Interop.Base.td | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.List.Tot.Base.length",
"Vale.Interop.Base.td",
"Prims.list",
"Prims.Cons",
"Vale.Stdcalls.X64.AesHash.t128_no_mod",
"Vale.Stdcalls.X64.AesHash.t128_mod",
"Prims.Nil"
] | [] | false | false | false | true | false | let dom:IX64.arity_ok_stdcall td =
| let y = [t128_no_mod; t128_mod] in
assert_norm (List.length y = 2);
y | false |
Steel.HigherReference.fst | Steel.HigherReference.pts_to_perm | val pts_to_perm (#a: _) (#u: _) (#p: _) (#v: _) (r: ref a)
: SteelGhost unit u
(pts_to r p v)
(fun _ -> pts_to r p v)
(fun _ -> True)
(fun _ _ _ -> p `lesser_equal_perm` full_perm) | val pts_to_perm (#a: _) (#u: _) (#p: _) (#v: _) (r: ref a)
: SteelGhost unit u
(pts_to r p v)
(fun _ -> pts_to r p v)
(fun _ -> True)
(fun _ _ _ -> p `lesser_equal_perm` full_perm) | let pts_to_perm
#_ #_ #p #v r
= rewrite_slprop (pts_to r p v) (pts_to' r p v) (fun _ -> ());
elim_pure (perm_ok p);
intro_pure (perm_ok p);
rewrite_slprop (pts_to' r p v) (pts_to r p v) (fun _ -> ()) | {
"file_name": "lib/steel/Steel.HigherReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 61,
"end_line": 130,
"start_col": 0,
"start_line": 125
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.PCMReference.fsti.checked",
"Steel.PCMFrac.fst.checked",
"Steel.Memory.fsti.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "Mem"
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "RP"
},
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Steel.HigherReference.ref a -> Steel.Effect.Atomic.SteelGhost Prims.unit | Steel.Effect.Atomic.SteelGhost | [] | [] | [
"Steel.Memory.inames",
"Steel.FractionalPermission.perm",
"Steel.HigherReference.ref",
"Steel.Effect.Atomic.rewrite_slprop",
"Steel.HigherReference.pts_to'",
"FStar.Ghost.hide",
"Steel.HigherReference.pts_to",
"Steel.Memory.mem",
"Prims.unit",
"Steel.Effect.Atomic.intro_pure",
"Steel.HigherRefer... | [] | false | true | false | false | false | let pts_to_perm #_ #_ #p #v r =
| rewrite_slprop (pts_to r p v) (pts_to' r p v) (fun _ -> ());
elim_pure (perm_ok p);
intro_pure (perm_ok p);
rewrite_slprop (pts_to' r p v) (pts_to r p v) (fun _ -> ()) | false |
Vale.Stdcalls.X64.AesHash.fst | Vale.Stdcalls.X64.AesHash.lowstar_key128 | val lowstar_key128 (s: Ghost.erased (Seq.seq nat32)) : lowstar_key128_t s | val lowstar_key128 (s: Ghost.erased (Seq.seq nat32)) : lowstar_key128_t s | let lowstar_key128 (s:Ghost.erased (Seq.seq nat32)) : lowstar_key128_t s =
assert_norm (List.length dom + List.length ([]<:list arg) <= 4);
IX64.wrap_weak_stdcall
code_key128
dom
(W.mk_prediction code_key128 dom [] ((key128_lemma s) code_key128 IA.win)) | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.AesHash.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 78,
"end_line": 121,
"start_col": 0,
"start_line": 116
} | module Vale.Stdcalls.X64.AesHash
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": true,
"full_module": "Vale.AES.X64.GF128_Init",
"short_module": "GF"
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: FStar.Ghost.erased (FStar.Seq.Base.seq Vale.Def.Types_s.nat32)
-> Vale.Stdcalls.X64.AesHash.lowstar_key128_t s | Prims.Tot | [
"total"
] | [] | [
"FStar.Ghost.erased",
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.nat32",
"Vale.Interop.X64.wrap_weak_stdcall",
"Vale.Stdcalls.X64.AesHash.code_key128",
"Vale.Stdcalls.X64.AesHash.dom",
"Vale.AsLowStar.Wrapper.pre_rel_generic",
"Vale.Interop.X64.max_stdcall",
"Vale.Interop.X64.arg_reg_stdcall",
"Prims... | [] | false | false | false | false | false | let lowstar_key128 (s: Ghost.erased (Seq.seq nat32)) : lowstar_key128_t s =
| assert_norm (List.length dom + List.length ([] <: list arg) <= 4);
IX64.wrap_weak_stdcall code_key128
dom
(W.mk_prediction code_key128 dom [] ((key128_lemma s) code_key128 IA.win)) | false |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.not_full | val not_full (#kt #vt: _) (r: repr_t kt vt) : Type0 | val not_full (#kt #vt: _) (r: repr_t kt vt) : Type0 | let not_full #kt #vt (r:repr_t kt vt) : Type0 =
exists i. ~(Used? (r @@ i )) | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 30,
"end_line": 555,
"start_col": 0,
"start_line": 554
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Pulse.Lib.HashTable.Spec.repr_t kt vt -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"Pulse.Lib.HashTable.Spec.repr_t",
"Prims.l_Exists",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Pulse.Lib.HashTable.Spec.__proj__Mkrepr_t__item__sz",
"Prims.l_not",
"Pulse.Lib.HashTable.Spec.uu___is_Used",
"Pulse.Lib.HashTable.Spec.op_At_At"
] | [] | false | false | false | false | true | let not_full #kt #vt (r: repr_t kt vt) : Type0 =
| exists i. ~(Used? (r @@ i)) | false |
Vale.Stdcalls.X64.AesHash.fst | Vale.Stdcalls.X64.AesHash.lowstar_key256_t | val lowstar_key256_t : s: FStar.Ghost.erased (FStar.Seq.Base.seq Vale.Def.Types_s.nat32) -> Type0 | let lowstar_key256_t (s:Ghost.erased (Seq.seq nat32)) =
assert_norm (List.length dom + List.length ([]<:list arg) <= 4);
IX64.as_lowstar_sig_t_weak_stdcall
code_key256
dom
[]
_
_
(W.mk_prediction code_key256 dom [] ((key256_lemma s) code_key256 IA.win)) | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.AesHash.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 78,
"end_line": 188,
"start_col": 0,
"start_line": 180
} | module Vale.Stdcalls.X64.AesHash
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": true,
"full_module": "Vale.AES.X64.GF128_Init",
"short_module": "GF"
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: FStar.Ghost.erased (FStar.Seq.Base.seq Vale.Def.Types_s.nat32) -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Ghost.erased",
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.nat32",
"Vale.Interop.X64.as_lowstar_sig_t_weak_stdcall",
"Vale.Stdcalls.X64.AesHash.code_key256",
"Vale.Stdcalls.X64.AesHash.dom",
"Prims.Nil",
"Vale.Interop.Base.arg",
"Vale.AsLowStar.Wrapper.pre_rel_generic",
"Vale.Interop.X64.max_st... | [] | false | false | false | true | true | let lowstar_key256_t (s: Ghost.erased (Seq.seq nat32)) =
| assert_norm (List.length dom + List.length ([] <: list arg) <= 4);
IX64.as_lowstar_sig_t_weak_stdcall code_key256
dom
[]
_
_
(W.mk_prediction code_key256 dom [] ((key256_lemma s) code_key256 IA.win)) | false | |
Vale.Stdcalls.X64.AesHash.fst | Vale.Stdcalls.X64.AesHash.lowstar_key128_t | val lowstar_key128_t : s: FStar.Ghost.erased (FStar.Seq.Base.seq Vale.Def.Types_s.nat32) -> Type0 | let lowstar_key128_t (s:Ghost.erased (Seq.seq nat32)) =
assert_norm (List.length dom + List.length ([]<:list arg) <= 4);
IX64.as_lowstar_sig_t_weak_stdcall
code_key128
dom
[]
_
_
(W.mk_prediction code_key128 dom [] ((key128_lemma s) code_key128 IA.win)) | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.AesHash.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 78,
"end_line": 112,
"start_col": 0,
"start_line": 104
} | module Vale.Stdcalls.X64.AesHash
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": true,
"full_module": "Vale.AES.X64.GF128_Init",
"short_module": "GF"
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: FStar.Ghost.erased (FStar.Seq.Base.seq Vale.Def.Types_s.nat32) -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Ghost.erased",
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.nat32",
"Vale.Interop.X64.as_lowstar_sig_t_weak_stdcall",
"Vale.Stdcalls.X64.AesHash.code_key128",
"Vale.Stdcalls.X64.AesHash.dom",
"Prims.Nil",
"Vale.Interop.Base.arg",
"Vale.AsLowStar.Wrapper.pre_rel_generic",
"Vale.Interop.X64.max_st... | [] | false | false | false | true | true | let lowstar_key128_t (s: Ghost.erased (Seq.seq nat32)) =
| assert_norm (List.length dom + List.length ([] <: list arg) <= 4);
IX64.as_lowstar_sig_t_weak_stdcall code_key128
dom
[]
_
_
(W.mk_prediction code_key128 dom [] ((key128_lemma s) code_key128 IA.win)) | false | |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.lookup_repr_index | val lookup_repr_index (#kt #vt: _) (repr: repr_t kt vt) (k: kt) : option (vt & nat) | val lookup_repr_index (#kt #vt: _) (repr: repr_t kt vt) (k: kt) : option (vt & nat) | let lookup_repr_index #kt #vt (repr : repr_t kt vt) (k : kt)
: option (vt & nat)
= let idx = canonical_index k repr in
walk_get_idx repr idx k 0 | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 29,
"end_line": 131,
"start_col": 0,
"start_line": 128
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | repr: Pulse.Lib.HashTable.Spec.repr_t kt vt -> k: kt
-> FStar.Pervasives.Native.option (vt * Prims.nat) | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"Pulse.Lib.HashTable.Spec.repr_t",
"Pulse.Lib.HashTable.Spec.walk_get_idx",
"Prims.nat",
"Pulse.Lib.HashTable.Spec.canonical_index",
"FStar.Pervasives.Native.option",
"FStar.Pervasives.Native.tuple2"
] | [] | false | false | false | false | false | let lookup_repr_index #kt #vt (repr: repr_t kt vt) (k: kt) : option (vt & nat) =
| let idx = canonical_index k repr in
walk_get_idx repr idx k 0 | false |
Vale.Stdcalls.X64.AesHash.fst | Vale.Stdcalls.X64.AesHash.key128_lemma | val key128_lemma : s: FStar.Ghost.erased (FStar.Seq.Base.seq Vale.Def.Types_s.nat32)
-> Vale.AsLowStar.ValeSig.vale_sig_stdcall (Vale.Stdcalls.X64.AesHash.key128_pre s)
(Vale.Stdcalls.X64.AesHash.key128_post s) | let key128_lemma (s:Ghost.erased (Seq.seq nat32)) = as_t #(VSig.vale_sig_stdcall (key128_pre s) (key128_post s)) (key128_lemma' s) | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.AesHash.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 131,
"end_line": 98,
"start_col": 0,
"start_line": 98
} | module Vale.Stdcalls.X64.AesHash
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": true,
"full_module": "Vale.AES.X64.GF128_Init",
"short_module": "GF"
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: FStar.Ghost.erased (FStar.Seq.Base.seq Vale.Def.Types_s.nat32)
-> Vale.AsLowStar.ValeSig.vale_sig_stdcall (Vale.Stdcalls.X64.AesHash.key128_pre s)
(Vale.Stdcalls.X64.AesHash.key128_post s) | Prims.Tot | [
"total"
] | [] | [
"FStar.Ghost.erased",
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.nat32",
"Vale.Stdcalls.X64.AesHash.as_t",
"Vale.AsLowStar.ValeSig.vale_sig_stdcall",
"Vale.Stdcalls.X64.AesHash.dom",
"Vale.Stdcalls.X64.AesHash.key128_pre",
"Vale.Stdcalls.X64.AesHash.key128_post",
"Vale.Stdcalls.X64.AesHash.key128_lemma... | [] | false | false | false | false | false | let key128_lemma (s: Ghost.erased (Seq.seq nat32)) =
| as_t #(VSig.vale_sig_stdcall (key128_pre s) (key128_post s)) (key128_lemma' s) | false | |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.walk_get_idx | val walk_get_idx (#kt #vt: _) (repr: repr_t kt vt) (idx: nat) (k: kt) (off: nat{off <= repr.sz})
: Tot
(o:
(option (vt & nat))
{ match o with
| Some (v, i) -> i < repr.sz /\ repr @@ i == Used k v
| None -> true }) (decreases repr.sz - off) | val walk_get_idx (#kt #vt: _) (repr: repr_t kt vt) (idx: nat) (k: kt) (off: nat{off <= repr.sz})
: Tot
(o:
(option (vt & nat))
{ match o with
| Some (v, i) -> i < repr.sz /\ repr @@ i == Used k v
| None -> true }) (decreases repr.sz - off) | let rec walk_get_idx #kt #vt (repr : repr_t kt vt) (idx:nat) (k:kt) (off:nat{off<=repr.sz})
: Tot (o:(option (vt & nat))
{match o with
| Some (v,i) -> i<repr.sz /\ repr @@ i == Used k v
| None -> true})
(decreases repr.sz - off) =
if off = repr.sz then None
else
let idx... | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 37,
"end_line": 86,
"start_col": 0,
"start_line": 70
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
repr: Pulse.Lib.HashTable.Spec.repr_t kt vt ->
idx: Prims.nat ->
k: kt ->
off: Prims.nat{off <= Mkrepr_t?.sz repr}
-> Prims.Tot
(o:
FStar.Pervasives.Native.option (vt * Prims.nat)
{ (match o with
| FStar.Pervasives.Native.Some #_ (FStar.Pervasives.Native.Mktuple2 #_ #_ v... | Prims.Tot | [
"total",
""
] | [] | [
"Prims.eqtype",
"Pulse.Lib.HashTable.Spec.repr_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Pulse.Lib.HashTable.Spec.__proj__Mkrepr_t__item__sz",
"Prims.op_Equality",
"Prims.int",
"Prims.l_or",
"Prims.l_and",
"Prims.op_GreaterThanOrEqual",
"Prims.op_GreaterThan",
"FStar.Pervasi... | [
"recursion"
] | false | false | false | false | false | let rec walk_get_idx #kt #vt (repr: repr_t kt vt) (idx: nat) (k: kt) (off: nat{off <= repr.sz})
: Tot
(o:
(option (vt & nat))
{ match o with
| Some (v, i) -> i < repr.sz /\ repr @@ i == Used k v
| None -> true }) (decreases repr.sz - off) =
| if off = repr.sz
then None
else
let idx' = (idx + off) % repr.sz in
match repr @@ idx' with
| Clean -> None
| Used k' v -> if k = k' then Some (v, idx') else walk_get_idx repr idx k (off + 1)
| Zombie -> walk_get_idx repr idx k (off + 1) | false |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.all_used_not_by | val all_used_not_by
(#kt #kv: _)
(repr: repr_t kt kv)
(idx: (n: nat{n < repr.sz}))
(len: nat)
(k: kt)
: prop | val all_used_not_by
(#kt #kv: _)
(repr: repr_t kt kv)
(idx: (n: nat{n < repr.sz}))
(len: nat)
(k: kt)
: prop | let all_used_not_by #kt #kv (repr : repr_t kt kv) (idx : (n:nat{n < repr.sz})) (len : nat) (k : kt) : prop =
forall (i:nat{i < len}). used_not_by repr k ((idx+i) % repr.sz) | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 65,
"end_line": 330,
"start_col": 0,
"start_line": 329
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
repr: Pulse.Lib.HashTable.Spec.repr_t kt kv ->
idx: n: Prims.nat{n < Mkrepr_t?.sz repr} ->
len: Prims.nat ->
k: kt
-> Prims.prop | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"Pulse.Lib.HashTable.Spec.repr_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Pulse.Lib.HashTable.Spec.__proj__Mkrepr_t__item__sz",
"Prims.l_Forall",
"Pulse.Lib.HashTable.Spec.used_not_by",
"Prims.op_Modulus",
"Prims.op_Addition",
"Prims.prop"
] | [] | false | false | false | false | true | let all_used_not_by #kt #kv (repr: repr_t kt kv) (idx: (n: nat{n < repr.sz})) (len: nat) (k: kt)
: prop =
| forall (i: nat{i < len}). used_not_by repr k ((idx + i) % repr.sz) | false |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.lookup_index | val lookup_index (#kt #vt: _) (ht: pht_t kt vt) (k: kt) : option (vt & nat) | val lookup_index (#kt #vt: _) (ht: pht_t kt vt) (k: kt) : option (vt & nat) | let lookup_index #kt #vt (ht : pht_t kt vt) (k : kt)
: option (vt & nat)
=
lookup_repr_index ht.repr k | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 29,
"end_line": 709,
"start_col": 0,
"start_line": 706
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ht: Pulse.Lib.HashTable.Spec.pht_t kt vt -> k: kt -> FStar.Pervasives.Native.option (vt * Prims.nat) | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"Pulse.Lib.HashTable.Spec.pht_t",
"Pulse.Lib.HashTable.Spec.lookup_repr_index",
"Pulse.Lib.HashTable.Spec.__proj__Mkpht_t__item__repr",
"FStar.Pervasives.Native.option",
"FStar.Pervasives.Native.tuple2",
"Prims.nat"
] | [] | false | false | false | false | false | let lookup_index #kt #vt (ht: pht_t kt vt) (k: kt) : option (vt & nat) =
| lookup_repr_index ht.repr k | false |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.lookup_repr | val lookup_repr (#kt #vt: _) (repr: repr_t kt vt) (k: kt) : option vt | val lookup_repr (#kt #vt: _) (repr: repr_t kt vt) (k: kt) : option vt | let lookup_repr #kt #vt (repr : repr_t kt vt) (k : kt) : option vt =
let idx = canonical_index k repr in
walk repr idx k 0 | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 19,
"end_line": 124,
"start_col": 0,
"start_line": 122
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | repr: Pulse.Lib.HashTable.Spec.repr_t kt vt -> k: kt -> FStar.Pervasives.Native.option vt | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"Pulse.Lib.HashTable.Spec.repr_t",
"Pulse.Lib.HashTable.Spec.walk",
"Prims.nat",
"Pulse.Lib.HashTable.Spec.canonical_index",
"FStar.Pervasives.Native.option"
] | [] | false | false | false | false | false | let lookup_repr #kt #vt (repr: repr_t kt vt) (k: kt) : option vt =
| let idx = canonical_index k repr in
walk repr idx k 0 | false |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.strong_all_used_not_by | val strong_all_used_not_by
(#kt #kv: _)
(repr: repr_t kt kv)
(idx: (n: nat{n < repr.sz}))
(len: nat)
(k: kt)
: prop | val strong_all_used_not_by
(#kt #kv: _)
(repr: repr_t kt kv)
(idx: (n: nat{n < repr.sz}))
(len: nat)
(k: kt)
: prop | let strong_all_used_not_by #kt #kv (repr : repr_t kt kv) (idx : (n:nat{n < repr.sz})) (len : nat) (k : kt) : prop =
forall (i:nat{i < len}). strong_used_not_by repr k ((idx+i) % repr.sz) | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 72,
"end_line": 333,
"start_col": 0,
"start_line": 332
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
repr: Pulse.Lib.HashTable.Spec.repr_t kt kv ->
idx: n: Prims.nat{n < Mkrepr_t?.sz repr} ->
len: Prims.nat ->
k: kt
-> Prims.prop | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"Pulse.Lib.HashTable.Spec.repr_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Pulse.Lib.HashTable.Spec.__proj__Mkrepr_t__item__sz",
"Prims.l_Forall",
"Pulse.Lib.HashTable.Spec.strong_used_not_by",
"Prims.op_Modulus",
"Prims.op_Addition",
"Prims.prop"
] | [] | false | false | false | false | true | let strong_all_used_not_by
#kt
#kv
(repr: repr_t kt kv)
(idx: (n: nat{n < repr.sz}))
(len: nat)
(k: kt)
: prop =
| forall (i: nat{i < len}). strong_used_not_by repr k ((idx + i) % repr.sz) | false |
Vale.Stdcalls.X64.AesHash.fst | Vale.Stdcalls.X64.AesHash.key128_lemma' | val key128_lemma'
(s: Ghost.erased (Seq.seq nat32))
(code: V.va_code)
(_win: bool)
(input_b output_b: b128)
(va_s0: V.va_state)
: Ghost (V.va_state & V.va_fuel)
(requires key128_pre s code input_b output_b va_s0)
(ensures
(fun (va_s1, f) ->
V.eval_code c... | val key128_lemma'
(s: Ghost.erased (Seq.seq nat32))
(code: V.va_code)
(_win: bool)
(input_b output_b: b128)
(va_s0: V.va_state)
: Ghost (V.va_state & V.va_fuel)
(requires key128_pre s code input_b output_b va_s0)
(ensures
(fun (va_s1, f) ->
V.eval_code c... | let key128_lemma'
(s:Ghost.erased (Seq.seq nat32))
(code:V.va_code)
(_win:bool)
(input_b:b128)
(output_b:b128)
(va_s0:V.va_state)
: Ghost (V.va_state & V.va_fuel)
(requires
key128_pre s code input_b output_b va_s0)
(ensures (fun (va_s1, f) ->
V.eval_code code va_s0 f va_... | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.AesHash.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 95,
"start_col": 0,
"start_line": 74
} | module Vale.Stdcalls.X64.AesHash
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": true,
"full_module": "Vale.AES.X64.GF128_Init",
"short_module": "GF"
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
s: FStar.Ghost.erased (FStar.Seq.Base.seq Vale.Def.Types_s.nat32) ->
code: Vale.X64.Decls.va_code ->
_win: Prims.bool ->
input_b: Vale.Stdcalls.X64.AesHash.b128 ->
output_b: Vale.Stdcalls.X64.AesHash.b128 ->
va_s0: Vale.X64.Decls.va_state
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Dec... | Prims.Ghost | [] | [] | [
"FStar.Ghost.erased",
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.nat32",
"Vale.X64.Decls.va_code",
"Prims.bool",
"Vale.Stdcalls.X64.AesHash.b128",
"Vale.X64.Decls.va_state",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple2",
"Prims.unit",
"Vale.AsLowStar.MemoryHelpers.buffer_writeable_re... | [] | false | false | false | false | false | let key128_lemma'
(s: Ghost.erased (Seq.seq nat32))
(code: V.va_code)
(_win: bool)
(input_b output_b: b128)
(va_s0: V.va_state)
: Ghost (V.va_state & V.va_fuel)
(requires key128_pre s code input_b output_b va_s0)
(ensures
(fun (va_s1, f) ->
V.eval_code c... | let va_s1, f =
GF.va_lemma_Keyhash_init code
va_s0
IA.win
AES_128
(Ghost.reveal s)
(as_vale_buffer input_b)
(as_vale_buffer output_b)
in
Vale.AsLowStar.MemoryHelpers.buffer_writeable_reveal ME.TUInt8 ME.TUInt128 input_b;
Vale.AsLowStar.MemoryHelpers.buffer_writeable_reveal ME.TUInt8 ME.TUInt12... | false |
Vale.Stdcalls.X64.AesHash.fst | Vale.Stdcalls.X64.AesHash.lowstar_key256 | val lowstar_key256 (s: Ghost.erased (Seq.seq nat32)) : lowstar_key256_t s | val lowstar_key256 (s: Ghost.erased (Seq.seq nat32)) : lowstar_key256_t s | let lowstar_key256 (s:Ghost.erased (Seq.seq nat32)) : lowstar_key256_t s =
assert_norm (List.length dom + List.length ([]<:list arg) <= 4);
IX64.wrap_weak_stdcall
code_key256
dom
(W.mk_prediction code_key256 dom [] ((key256_lemma s) code_key256 IA.win)) | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.AesHash.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 78,
"end_line": 197,
"start_col": 0,
"start_line": 192
} | module Vale.Stdcalls.X64.AesHash
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": true,
"full_module": "Vale.AES.X64.GF128_Init",
"short_module": "GF"
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: FStar.Ghost.erased (FStar.Seq.Base.seq Vale.Def.Types_s.nat32)
-> Vale.Stdcalls.X64.AesHash.lowstar_key256_t s | Prims.Tot | [
"total"
] | [] | [
"FStar.Ghost.erased",
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.nat32",
"Vale.Interop.X64.wrap_weak_stdcall",
"Vale.Stdcalls.X64.AesHash.code_key256",
"Vale.Stdcalls.X64.AesHash.dom",
"Vale.AsLowStar.Wrapper.pre_rel_generic",
"Vale.Interop.X64.max_stdcall",
"Vale.Interop.X64.arg_reg_stdcall",
"Prims... | [] | false | false | false | false | false | let lowstar_key256 (s: Ghost.erased (Seq.seq nat32)) : lowstar_key256_t s =
| assert_norm (List.length dom + List.length ([] <: list arg) <= 4);
IX64.wrap_weak_stdcall code_key256
dom
(W.mk_prediction code_key256 dom [] ((key256_lemma s) code_key256 IA.win)) | false |
Vale.Stdcalls.X64.AesHash.fst | Vale.Stdcalls.X64.AesHash.key256_lemma | val key256_lemma : s: FStar.Ghost.erased (FStar.Seq.Base.seq Vale.Def.Types_s.nat32)
-> Vale.AsLowStar.ValeSig.vale_sig_stdcall (Vale.Stdcalls.X64.AesHash.key256_pre s)
(Vale.Stdcalls.X64.AesHash.key256_post s) | let key256_lemma (s:Ghost.erased (Seq.seq nat32)) = as_t #(VSig.vale_sig_stdcall (key256_pre s) (key256_post s)) (key256_lemma' s) | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.AesHash.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 131,
"end_line": 174,
"start_col": 0,
"start_line": 174
} | module Vale.Stdcalls.X64.AesHash
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": true,
"full_module": "Vale.AES.X64.GF128_Init",
"short_module": "GF"
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: FStar.Ghost.erased (FStar.Seq.Base.seq Vale.Def.Types_s.nat32)
-> Vale.AsLowStar.ValeSig.vale_sig_stdcall (Vale.Stdcalls.X64.AesHash.key256_pre s)
(Vale.Stdcalls.X64.AesHash.key256_post s) | Prims.Tot | [
"total"
] | [] | [
"FStar.Ghost.erased",
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.nat32",
"Vale.Stdcalls.X64.AesHash.as_t",
"Vale.AsLowStar.ValeSig.vale_sig_stdcall",
"Vale.Stdcalls.X64.AesHash.dom",
"Vale.Stdcalls.X64.AesHash.key256_pre",
"Vale.Stdcalls.X64.AesHash.key256_post",
"Vale.Stdcalls.X64.AesHash.key256_lemma... | [] | false | false | false | false | false | let key256_lemma (s: Ghost.erased (Seq.seq nat32)) =
| as_t #(VSig.vale_sig_stdcall (key256_pre s) (key256_post s)) (key256_lemma' s) | false | |
Steel.ST.HigherArray.fst | Steel.ST.HigherArray.gather | val gather
(#opened: _)
(#elt: Type)
(a: array elt)
(#x1: Seq.seq elt) (p1: P.perm)
(#x2: Seq.seq elt) (p2: P.perm)
: STGhost unit opened
(pts_to a p1 x1 `star` pts_to a p2 x2)
(fun _ -> pts_to a (p1 `P.sum_perm` p2) x1)
(True)
(fun _ -> x1 == x2) | val gather
(#opened: _)
(#elt: Type)
(a: array elt)
(#x1: Seq.seq elt) (p1: P.perm)
(#x2: Seq.seq elt) (p2: P.perm)
: STGhost unit opened
(pts_to a p1 x1 `star` pts_to a p2 x2)
(fun _ -> pts_to a (p1 `P.sum_perm` p2) x1)
(True)
(fun _ -> x1 == x2) | let gather
a #x1 p1 #x2 p2
= elim_pts_to a p1 x1;
elim_pts_to a p2 x2;
let _ = R.gather (ptr_of a).base
(mk_carrier (US.v (ptr_of a).base_len) ((ptr_of a).offset) x1 p1)
(mk_carrier (US.v (ptr_of a).base_len) ((ptr_of a).offset) x2 p2)
in
mk_carrier_gather (US.v (ptr_of a).base_len) ((ptr_of a).offset... | {
"file_name": "lib/steel/Steel.ST.HigherArray.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 40,
"end_line": 409,
"start_col": 0,
"start_line": 399
} | (*
Copyright 2022 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.PCMReference.fsti.checked",
"Steel.ST.Loops.fsti.checked",
"Steel.PCMMap.fst.checked",
"Steel.PCMFrac.fst.checked",
"Steel.Memory.fsti.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Rea... | [
{
"abbrev": true,
"full_module": "Steel.PCMMap",
"short_module": "PM"
},
{
"abbrev": true,
"full_module": "FStar.Map",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Steel.ST.PCMReference",
"short_module": "R"
},
{
"abbrev": true,
"full_module": "Ste... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Steel.ST.HigherArray.array elt ->
p1: Steel.FractionalPermission.perm ->
p2: Steel.FractionalPermission.perm
-> Steel.ST.Effect.Ghost.STGhost Prims.unit | Steel.ST.Effect.Ghost.STGhost | [] | [] | [
"Steel.Memory.inames",
"Steel.ST.HigherArray.array",
"FStar.Seq.Base.seq",
"Steel.FractionalPermission.perm",
"Steel.ST.HigherArray.intro_pts_to",
"FStar.PCM.op",
"Steel.ST.HigherArray.carrier",
"FStar.Ghost.hide",
"Prims.nat",
"FStar.SizeT.v",
"FStar.Ghost.reveal",
"FStar.SizeT.t",
"Steel.S... | [] | false | true | false | false | false | let gather a #x1 p1 #x2 p2 =
| elim_pts_to a p1 x1;
elim_pts_to a p2 x2;
let _ =
R.gather (ptr_of a).base
(mk_carrier (US.v (ptr_of a).base_len) ((ptr_of a).offset) x1 p1)
(mk_carrier (US.v (ptr_of a).base_len) ((ptr_of a).offset) x2 p2)
in
mk_carrier_gather (US.v (ptr_of a).base_len) ((ptr_of a).offset) x1 x2 p1 p2;
mk_carrier_valid_sum_p... | false |
PulseByExample.fst | PulseByExample.fstar_five | val fstar_five:int | val fstar_five:int | let fstar_five : int = 5 | {
"file_name": "share/steel/examples/pulse/by-example/PulseByExample.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 24,
"end_line": 30,
"start_col": 0,
"start_line": 30
} | (*
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.Main.fsti.checked",
"Pulse.Lib.Reference.fsti.checked",
"Pulse.Lib.Core.fsti.checked",
"Pulse.Lib.BoundedIntegers.fst.checked",
"Pulse.Lib.Array.fsti.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Pervasives.fsti.chec... | [
{
"abbrev": false,
"full_module": "Pulse.Lib.Core",
"short_module": null
},
{
"abbrev": true,
"full_module": "Pulse.Main",
"short_module": "PM"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Prims.int | Prims.Tot | [
"total"
] | [] | [] | [] | false | false | false | true | false | let fstar_five:int =
| 5 | false |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.aunb_shrink | val aunb_shrink (#kt #kv: _) (repr: repr_t kt kv) (idx: (n: nat{n < repr.sz})) (off: nat) (k: kt)
: Lemma (requires all_used_not_by repr idx off k /\ off > 0)
(ensures all_used_not_by repr ((idx + 1) % repr.sz) (off - 1) k) | val aunb_shrink (#kt #kv: _) (repr: repr_t kt kv) (idx: (n: nat{n < repr.sz})) (off: nat) (k: kt)
: Lemma (requires all_used_not_by repr idx off k /\ off > 0)
(ensures all_used_not_by repr ((idx + 1) % repr.sz) (off - 1) k) | let aunb_shrink #kt #kv (repr : repr_t kt kv) (idx : (n:nat{n < repr.sz})) (off : nat) (k : kt)
: Lemma (requires all_used_not_by repr idx off k /\ off > 0)
(ensures all_used_not_by repr ((idx+1) % repr.sz) (off-1) k)
= let sz = repr.sz in
let sidx = (idx+1) % sz in
let open FStar.Math.Lemmas in
... | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 6,
"end_line": 361,
"start_col": 0,
"start_line": 340
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
repr: Pulse.Lib.HashTable.Spec.repr_t kt kv ->
idx: n: Prims.nat{n < Mkrepr_t?.sz repr} ->
off: Prims.nat ->
k: kt
-> FStar.Pervasives.Lemma
(requires Pulse.Lib.HashTable.Spec.all_used_not_by repr idx off k /\ off > 0)
(ensures
Pulse.Lib.HashTable.Spec.all_used_not_by repr ((idx +... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.eqtype",
"Pulse.Lib.HashTable.Spec.repr_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Pulse.Lib.HashTable.Spec.__proj__Mkrepr_t__item__sz",
"Prims.unit",
"FStar.Classical.forall_intro",
"Prims.op_Subtraction",
"Pulse.Lib.HashTable.Spec.used_not_by",
"Prims.op_Modulus",
"Prims.op_A... | [] | false | false | true | false | false | let aunb_shrink #kt #kv (repr: repr_t kt kv) (idx: (n: nat{n < repr.sz})) (off: nat) (k: kt)
: Lemma (requires all_used_not_by repr idx off k /\ off > 0)
(ensures all_used_not_by repr ((idx + 1) % repr.sz) (off - 1) k) =
| let sz = repr.sz in
let sidx = (idx + 1) % sz in
let open FStar.Math.Lemmas in
let aux (i: nat{i < off - 1}) : Lemma (used_not_by repr k ((sidx + i) % sz)) =
assert (used_not_by repr k ((idx + (i + 1)) % repr.sz));
calc ( == ) {
(sidx + i) % sz;
( == ) { () }
(((idx + 1) % sz) + i) % sz;
( == ) { (l... | false |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.delete_repr | val delete_repr
(#kt #vt #sz: _)
(#spec: erased (spec_t kt vt))
(repr: repr_t_sz kt vt sz {pht_models spec repr})
(k: kt)
: r': repr_t_sz kt vt sz {pht_models (spec -- k) r' /\ repr_related repr r'} | val delete_repr
(#kt #vt #sz: _)
(#spec: erased (spec_t kt vt))
(repr: repr_t_sz kt vt sz {pht_models spec repr})
(k: kt)
: r': repr_t_sz kt vt sz {pht_models (spec -- k) r' /\ repr_related repr r'} | let delete_repr #kt #vt #sz (#spec : erased (spec_t kt vt))
(repr : repr_t_sz kt vt sz{pht_models spec repr})
(k : kt)
: r':repr_t_sz kt vt sz{
pht_models (spec -- k) r' /\
repr_related repr r'
}
= let cidx = canonical_index k repr in
let res = delete_repr_walk #kt #vt #sz #spec ... | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 5,
"end_line": 680,
"start_col": 0,
"start_line": 671
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
repr:
Pulse.Lib.HashTable.Spec.repr_t_sz kt vt sz
{Pulse.Lib.HashTable.Spec.pht_models (FStar.Ghost.reveal spec) repr} ->
k: kt
-> r':
Pulse.Lib.HashTable.Spec.repr_t_sz kt vt sz
{ Pulse.Lib.HashTable.Spec.pht_models (FStar.Ghost.reveal spec -- k) r' /\
Pulse.Lib.HashTable.Spe... | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"Prims.pos",
"FStar.Ghost.erased",
"Pulse.Lib.HashTable.Spec.spec_t",
"Pulse.Lib.HashTable.Spec.repr_t_sz",
"Pulse.Lib.HashTable.Spec.pht_models",
"FStar.Ghost.reveal",
"Prims.l_and",
"Pulse.Lib.HashTable.Spec.op_Subtraction_Subtraction",
"Pulse.Lib.HashTable.Spec.repr_related",
... | [] | false | false | false | false | false | let delete_repr
#kt
#vt
#sz
(#spec: erased (spec_t kt vt))
(repr: repr_t_sz kt vt sz {pht_models spec repr})
(k: kt)
: r': repr_t_sz kt vt sz {pht_models (spec -- k) r' /\ repr_related repr r'} =
| let cidx = canonical_index k repr in
let res = delete_repr_walk #kt #vt #sz #spec repr k 0 cidx () () in
res | false |
PulseByExample.fst | PulseByExample.pulse_five_in_fstar | val pulse_five_in_fstar : Pulse.Lib.Core.stt Prims.int Pulse.Lib.Core.emp (fun x -> Pulse.Lib.Core.pure (x == 5)) | let pulse_five_in_fstar = five () | {
"file_name": "share/steel/examples/pulse/by-example/PulseByExample.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 33,
"end_line": 42,
"start_col": 0,
"start_line": 42
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Main.fsti.checked",
"Pulse.Lib.Reference.fsti.checked",
"Pulse.Lib.Core.fsti.checked",
"Pulse.Lib.BoundedIntegers.fst.checked",
"Pulse.Lib.Array.fsti.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Pervasives.fsti.chec... | [
{
"abbrev": false,
"full_module": "Pulse.Lib.Core",
"short_module": null
},
{
"abbrev": true,
"full_module": "Pulse.Main",
"short_module": "PM"
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Pulse.Lib.Core.stt Prims.int Pulse.Lib.Core.emp (fun x -> Pulse.Lib.Core.pure (x == 5)) | Prims.Tot | [
"total"
] | [] | [
"PulseByExample.five"
] | [] | false | false | false | false | false | let pulse_five_in_fstar =
| five () | false | |
Steel.HigherReference.fst | Steel.HigherReference.cas_action | val cas_action (#t:Type) (eq: (x:t -> y:t -> b:bool{b <==> (x == y)}))
(#uses:inames)
(r:ref t)
(v:erased t)
(v_old:t)
(v_new:t)
: action_except (b:bool{b <==> (Ghost.reveal v == v_old)})
uses
(pts_to_sl ... | val cas_action (#t:Type) (eq: (x:t -> y:t -> b:bool{b <==> (x == y)}))
(#uses:inames)
(r:ref t)
(v:erased t)
(v_old:t)
(v_new:t)
: action_except (b:bool{b <==> (Ghost.reveal v == v_old)})
uses
(pts_to_sl ... | let cas_action (#t:Type) (eq: (x:t -> y:t -> b:bool{b <==> (x == y)}))
(#uses:inames)
(r:ref t)
(v:Ghost.erased t)
(v_old:t)
(v_new:t)
(fr:slprop)
: MstTot
(b:bool{b <==> (Ghost.reveal v == v_old)})
uses
... | {
"file_name": "lib/steel/Steel.HigherReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 6,
"end_line": 385,
"start_col": 0,
"start_line": 349
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.PCMReference.fsti.checked",
"Steel.PCMFrac.fst.checked",
"Steel.Memory.fsti.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "Mem"
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "RP"
},
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
eq: (x: t -> y: t -> b: Prims.bool{b <==> x == y}) ->
r: Steel.HigherReference.ref t ->
v: FStar.Ghost.erased t ->
v_old: t ->
v_new: t
-> Steel.Memory.action_except (b: Prims.bool{b <==> FStar.Ghost.reveal v == v_old})
uses
(Steel.HigherReference.pts_to_sl r Steel.FractionalPermissio... | Prims.Tot | [
"total"
] | [] | [
"Prims.bool",
"Prims.l_iff",
"Prims.b2t",
"Prims.eq2",
"Steel.Memory.inames",
"Steel.HigherReference.ref",
"FStar.Ghost.erased",
"Steel.Memory.slprop",
"Steel.FractionalPermission.perm",
"FStar.Ghost.reveal",
"Prims.unit",
"Steel.Memory.frame",
"Steel.Memory.pts_to",
"Steel.PCMFrac.fractio... | [] | false | false | false | false | false | let cas_action
(#t: Type)
(eq: (x: t -> y: t -> b: bool{b <==> (x == y)}))
(#uses: inames)
(r: ref t)
(v: Ghost.erased t)
(v_old v_new: t)
(fr: slprop)
: MstTot (b: bool{b <==> (Ghost.reveal v == v_old)})
uses
(pts_to_sl r full_perm v)
(cas_provides r v v_... | let m0:full_mem = NMSTTotal.get () in
let fv = Ghost.hide (Some (Ghost.reveal v, full_perm)) in
let fv' = Some (v_new, full_perm) in
assert (interp Mem.(((pts_to_sl r full_perm v) `star` fr) `star` (locks_invariant uses m0)) m0);
assert (interp Mem.((((pts_to r fv) `star` (pure (perm_ok full_perm))) `star` fr)
... | false |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.lemma_walk_from_canonical_all_used | val lemma_walk_from_canonical_all_used
(#kt #kv: _)
(repr: repr_t kt kv)
(off: nat{off < repr.sz})
(k v: _)
: Lemma
(requires
all_used_not_by repr (canonical_index k repr) off k /\
repr @@ ((canonical_index k repr + off) % repr.sz) == Used k v)
(ensures lookup_rep... | val lemma_walk_from_canonical_all_used
(#kt #kv: _)
(repr: repr_t kt kv)
(off: nat{off < repr.sz})
(k v: _)
: Lemma
(requires
all_used_not_by repr (canonical_index k repr) off k /\
repr @@ ((canonical_index k repr + off) % repr.sz) == Used k v)
(ensures lookup_rep... | let lemma_walk_from_canonical_all_used #kt #kv (repr : repr_t kt kv) (off : nat{off < repr.sz}) k v
: Lemma (requires all_used_not_by repr (canonical_index k repr) off k
/\ repr @@ ((canonical_index k repr + off) % repr.sz) == Used k v)
(ensures lookup_repr repr k == Some v)
= let sz = rep... | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 4,
"end_line": 388,
"start_col": 0,
"start_line": 364
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
repr: Pulse.Lib.HashTable.Spec.repr_t kt kv ->
off: Prims.nat{off < Mkrepr_t?.sz repr} ->
k: kt ->
v: kv
-> FStar.Pervasives.Lemma
(requires
Pulse.Lib.HashTable.Spec.all_used_not_by repr
(Pulse.Lib.HashTable.Spec.canonical_index k repr)
off
k /\
rep... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.eqtype",
"Pulse.Lib.HashTable.Spec.repr_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Pulse.Lib.HashTable.Spec.__proj__Mkrepr_t__item__sz",
"Prims.unit",
"Prims._assert",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"Pulse.Lib.HashTable.Spec.lookup_repr",
"FStar.Pervasives.Nativ... | [] | false | false | true | false | false | let lemma_walk_from_canonical_all_used #kt #kv (repr: repr_t kt kv) (off: nat{off < repr.sz}) k v
: Lemma
(requires
all_used_not_by repr (canonical_index k repr) off k /\
repr @@ ((canonical_index k repr + off) % repr.sz) == Used k v)
(ensures lookup_repr repr k == Some v) =
| let sz = repr.sz in
let cidx = canonical_index k repr in
let rec aux
(off': nat{off' <= off})
(_: squash (all_used_not_by repr ((cidx + off') % sz) (off - off') k))
: Lemma (ensures walk repr cidx k off' == Some v) (decreases off - off') =
if off' = off
then ()
else
(Math.Lemmas.modulo_distrib... | false |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.walk_get_idx_upd | val walk_get_idx_upd
(#kt #vt: _)
(repr1 repr2: repr_t kt vt)
(idx: nat)
(k: kt)
(off: nat{off <= repr1.sz})
(idx': nat{idx' < repr1.sz /\ Used? (repr1 @@ idx')})
(v: vt)
: Lemma
(requires
(let Used k' v' = repr1 @@ idx' in
repr2 == { repr1 with seq ... | val walk_get_idx_upd
(#kt #vt: _)
(repr1 repr2: repr_t kt vt)
(idx: nat)
(k: kt)
(off: nat{off <= repr1.sz})
(idx': nat{idx' < repr1.sz /\ Used? (repr1 @@ idx')})
(v: vt)
: Lemma
(requires
(let Used k' v' = repr1 @@ idx' in
repr2 == { repr1 with seq ... | let rec walk_get_idx_upd #kt #vt (repr1 repr2:repr_t kt vt) (idx:nat) (k:kt) (off:nat{off <= repr1.sz})
(idx':nat { idx' < repr1.sz /\ Used? (repr1 @@ idx') })
(v:vt)
: Lemma
(requires (let Used k' v' = repr1 @@ idx' in
repr2 == { repr1 with seq = Seq.upd repr1.seq idx' (Used k' v) }))
... | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 65,
"end_line": 112,
"start_col": 0,
"start_line": 88
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
repr1: Pulse.Lib.HashTable.Spec.repr_t kt vt ->
repr2: Pulse.Lib.HashTable.Spec.repr_t kt vt ->
idx: Prims.nat ->
k: kt ->
off: Prims.nat{off <= Mkrepr_t?.sz repr1} ->
idx': Prims.nat{idx' < Mkrepr_t?.sz repr1 /\ Used? (repr1 @@ idx')} ->
v: vt
-> FStar.Pervasives.Lemma
(requires
... | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"Prims.eqtype",
"Pulse.Lib.HashTable.Spec.repr_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Pulse.Lib.HashTable.Spec.__proj__Mkrepr_t__item__sz",
"Prims.l_and",
"Prims.op_LessThan",
"Pulse.Lib.HashTable.Spec.uu___is_Used",
"Pulse.Lib.HashTable.Spec.op_At_At",
"Prims.op_Equality",
... | [
"recursion"
] | false | false | true | false | false | let rec walk_get_idx_upd
#kt
#vt
(repr1: repr_t kt vt)
(repr2: repr_t kt vt)
(idx: nat)
(k: kt)
(off: nat{off <= repr1.sz})
(idx': nat{idx' < repr1.sz /\ Used? (repr1 @@ idx')})
(v: vt)
: Lemma
(requires
(let Used k' v' = repr1 @@ idx' in
... | if off = repr1.sz
then ()
else
let idx'' = (idx + off) % repr1.sz in
match repr1 @@ idx'' with
| Clean -> ()
| Used k' v' -> if k' = k then () else walk_get_idx_upd repr1 repr2 idx k (off + 1) idx' v
| Zombie -> walk_get_idx_upd repr1 repr2 idx k (off + 1) idx' v | false |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.lemma_del_lookup_walk | val lemma_del_lookup_walk
(#kt #vt #sz: _)
(spec1 spec2: spec_t kt vt)
(repr1 repr2: repr_t_sz kt vt sz)
(upos k v: _)
(k': _{k =!= k'})
: Lemma
(requires
repr_related repr1 repr2 /\ (forall i. i < sz /\ i <> upos ==> repr1 @@ i == repr2 @@ i) /\
pht_models spec1 ... | val lemma_del_lookup_walk
(#kt #vt #sz: _)
(spec1 spec2: spec_t kt vt)
(repr1 repr2: repr_t_sz kt vt sz)
(upos k v: _)
(k': _{k =!= k'})
: Lemma
(requires
repr_related repr1 repr2 /\ (forall i. i < sz /\ i <> upos ==> repr1 @@ i == repr2 @@ i) /\
pht_models spec1 ... | let lemma_del_lookup_walk #kt #vt #sz
(spec1 spec2 : spec_t kt vt)
(repr1 repr2 : repr_t_sz kt vt sz)
upos k v (k':_{k =!= k'})
: Lemma (requires
repr_related repr1 repr2 /\
(forall i. i < sz /\ i <> upos ==> repr1 @@ i == repr2 @@ i) /\
pht_models spec1 repr1 /\
repr1 @@ up... | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 7,
"end_line": 288,
"start_col": 0,
"start_line": 256
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
spec1: Pulse.Lib.HashTable.Spec.spec_t kt vt ->
spec2: Pulse.Lib.HashTable.Spec.spec_t kt vt ->
repr1: Pulse.Lib.HashTable.Spec.repr_t_sz kt vt sz ->
repr2: Pulse.Lib.HashTable.Spec.repr_t_sz kt vt sz ->
upos: i: Prims.int{i >= 0 /\ i < Mkrepr_t?.sz repr2 /\ (i >= 0) /\ (i < Mkrepr_t?.sz repr1)} ->... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.eqtype",
"Prims.pos",
"Pulse.Lib.HashTable.Spec.spec_t",
"Pulse.Lib.HashTable.Spec.repr_t_sz",
"Prims.int",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"Prims.op_LessThan",
"Pulse.Lib.HashTable.Spec.__proj__Mkrepr_t__item__sz",
"Prims.l_not",
"Prims.eq2",
"Prims.nat",
... | [] | false | false | true | false | false | let lemma_del_lookup_walk
#kt
#vt
#sz
(spec1: spec_t kt vt)
(spec2: spec_t kt vt)
(repr1: repr_t_sz kt vt sz)
(repr2: repr_t_sz kt vt sz)
upos
k
v
(k': _{k =!= k'})
: Lemma
(requires
repr_related repr1 repr2 /\ (forall i. i < sz /\ i <>... | let idx' = canonical_index k' repr1 in
let rec aux (off: nat{off <= sz})
: Lemma
(requires
walk repr1 idx' k' off == lookup_repr repr1 k' /\
walk repr2 idx' k' off == lookup_repr repr2 k')
(ensures walk repr1 idx' k' off == walk repr2 idx' k' off)
(decreases sz - off) =
if off = ... | false |
Vale.Stdcalls.X64.AesHash.fst | Vale.Stdcalls.X64.AesHash.key256_lemma' | val key256_lemma'
(s: Ghost.erased (Seq.seq nat32))
(code: V.va_code)
(_win: bool)
(input_b output_b: b128)
(va_s0: V.va_state)
: Ghost (V.va_state & V.va_fuel)
(requires key256_pre s code input_b output_b va_s0)
(ensures
(fun (va_s1, f) ->
V.eval_code c... | val key256_lemma'
(s: Ghost.erased (Seq.seq nat32))
(code: V.va_code)
(_win: bool)
(input_b output_b: b128)
(va_s0: V.va_state)
: Ghost (V.va_state & V.va_fuel)
(requires key256_pre s code input_b output_b va_s0)
(ensures
(fun (va_s1, f) ->
V.eval_code c... | let key256_lemma'
(s:Ghost.erased (Seq.seq nat32))
(code:V.va_code)
(_win:bool)
(input_b:b128)
(output_b:b128)
(va_s0:V.va_state)
: Ghost (V.va_state & V.va_fuel)
(requires
key256_pre s code input_b output_b va_s0)
(ensures (fun (va_s1, f) ->
V.eval_code code va_s0 f va_... | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.AesHash.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 171,
"start_col": 0,
"start_line": 150
} | module Vale.Stdcalls.X64.AesHash
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop.Base
module IX64 = Vale.Interop.X64
module VSig = Vale.AsLowStar.ValeSig
module... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": true,
"full_module": "Vale.AES.X64.GF128_Init",
"short_module": "GF"
},
{
"abbrev": false,
"full_module": "Vale.AES.AES_s",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_s",
"short_module": "MS"
},
{
"abbrev": true,
"fu... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
s: FStar.Ghost.erased (FStar.Seq.Base.seq Vale.Def.Types_s.nat32) ->
code: Vale.X64.Decls.va_code ->
_win: Prims.bool ->
input_b: Vale.Stdcalls.X64.AesHash.b128 ->
output_b: Vale.Stdcalls.X64.AesHash.b128 ->
va_s0: Vale.X64.Decls.va_state
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Dec... | Prims.Ghost | [] | [] | [
"FStar.Ghost.erased",
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.nat32",
"Vale.X64.Decls.va_code",
"Prims.bool",
"Vale.Stdcalls.X64.AesHash.b128",
"Vale.X64.Decls.va_state",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple2",
"Prims.unit",
"Vale.AsLowStar.MemoryHelpers.buffer_writeable_re... | [] | false | false | false | false | false | let key256_lemma'
(s: Ghost.erased (Seq.seq nat32))
(code: V.va_code)
(_win: bool)
(input_b output_b: b128)
(va_s0: V.va_state)
: Ghost (V.va_state & V.va_fuel)
(requires key256_pre s code input_b output_b va_s0)
(ensures
(fun (va_s1, f) ->
V.eval_code c... | let va_s1, f =
GF.va_lemma_Keyhash_init code
va_s0
IA.win
AES_256
(Ghost.reveal s)
(as_vale_buffer input_b)
(as_vale_buffer output_b)
in
Vale.AsLowStar.MemoryHelpers.buffer_writeable_reveal ME.TUInt8 ME.TUInt128 input_b;
Vale.AsLowStar.MemoryHelpers.buffer_writeable_reveal ME.TUInt8 ME.TUInt12... | false |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.delete | val delete (#kt #vt: _) (ht: pht_t kt vt) (k: kt)
: ht': (pht_t kt vt){ht'.spec == Ghost.hide (ht.spec -- k)} | val delete (#kt #vt: _) (ht: pht_t kt vt) (k: kt)
: ht': (pht_t kt vt){ht'.spec == Ghost.hide (ht.spec -- k)} | let delete #kt #vt (ht : pht_t kt vt) (k : kt)
: ht':(pht_t kt vt){ht'.spec == Ghost.hide (ht.spec -- k) }
=
{ ht with spec = Ghost.hide (ht.spec -- k);
repr = delete_repr #_ #_ #ht.repr.sz #ht.spec ht.repr k;
inv = () } | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 22,
"end_line": 699,
"start_col": 0,
"start_line": 694
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ht: Pulse.Lib.HashTable.Spec.pht_t kt vt -> k: kt
-> ht':
Pulse.Lib.HashTable.Spec.pht_t kt vt
{Mkpht_t?.spec ht' == FStar.Ghost.hide (FStar.Ghost.reveal (Mkpht_t?.spec ht) -- k)} | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"Pulse.Lib.HashTable.Spec.pht_t",
"Pulse.Lib.HashTable.Spec.Mkpht_t",
"FStar.Ghost.hide",
"Pulse.Lib.HashTable.Spec.spec_t",
"Pulse.Lib.HashTable.Spec.op_Subtraction_Subtraction",
"FStar.Ghost.reveal",
"Pulse.Lib.HashTable.Spec.__proj__Mkpht_t__item__spec",
"Pulse.Lib.HashTable.Spec.... | [] | false | false | false | false | false | let delete #kt #vt (ht: pht_t kt vt) (k: kt)
: ht': (pht_t kt vt){ht'.spec == Ghost.hide (ht.spec -- k)} =
| {
ht with
spec = Ghost.hide (ht.spec -- k);
repr = delete_repr #_ #_ #ht.repr.sz #ht.spec ht.repr k;
inv = ()
} | false |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.lookup | val lookup (#kt #vt: _) (ht: pht_t kt vt) (k: kt) : o: (option vt){o == lookup_spec ht.spec k} | val lookup (#kt #vt: _) (ht: pht_t kt vt) (k: kt) : o: (option vt){o == lookup_spec ht.spec k} | let lookup #kt #vt (ht : pht_t kt vt) (k : kt)
: o:(option vt){o == lookup_spec ht.spec k}
=
lookup_repr ht.repr k | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 23,
"end_line": 704,
"start_col": 0,
"start_line": 701
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ht: Pulse.Lib.HashTable.Spec.pht_t kt vt -> k: kt
-> o:
FStar.Pervasives.Native.option vt
{o == Pulse.Lib.HashTable.Spec.lookup_spec (FStar.Ghost.reveal (Mkpht_t?.spec ht)) k} | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"Pulse.Lib.HashTable.Spec.pht_t",
"Pulse.Lib.HashTable.Spec.lookup_repr",
"Pulse.Lib.HashTable.Spec.__proj__Mkpht_t__item__repr",
"FStar.Pervasives.Native.option",
"Prims.eq2",
"Pulse.Lib.HashTable.Spec.lookup_spec",
"FStar.Ghost.reveal",
"Pulse.Lib.HashTable.Spec.spec_t",
"Pulse.L... | [] | false | false | false | false | false | let lookup #kt #vt (ht: pht_t kt vt) (k: kt) : o: (option vt){o == lookup_spec ht.spec k} =
| lookup_repr ht.repr k | false |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.lookup_index_us | val lookup_index_us (#kt #vt: _) (ht: pht_t kt vt) (k: kt) : option US.t | val lookup_index_us (#kt #vt: _) (ht: pht_t kt vt) (k: kt) : option US.t | let lookup_index_us #kt #vt (ht : pht_t kt vt) (k : kt)
: option US.t
= let o = lookup_repr_index ht.repr k in
match o with
| Some (_, i) -> Some (US.uint_to_t i)
| None -> None | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 16,
"end_line": 723,
"start_col": 0,
"start_line": 718
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ht: Pulse.Lib.HashTable.Spec.pht_t kt vt -> k: kt -> FStar.Pervasives.Native.option FStar.SizeT.t | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"Pulse.Lib.HashTable.Spec.pht_t",
"Prims.nat",
"FStar.Pervasives.Native.Some",
"FStar.SizeT.t",
"FStar.SizeT.uint_to_t",
"FStar.Pervasives.Native.None",
"FStar.Pervasives.Native.option",
"FStar.Pervasives.Native.tuple2",
"Pulse.Lib.HashTable.Spec.lookup_repr_index",
"Pulse.Lib.Ha... | [] | false | false | false | false | false | let lookup_index_us #kt #vt (ht: pht_t kt vt) (k: kt) : option US.t =
| let o = lookup_repr_index ht.repr k in
match o with
| Some (_, i) -> Some (US.uint_to_t i)
| None -> None | false |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.lemma_used_upd_lookup_walk | val lemma_used_upd_lookup_walk
(#kt #vt #sz: _)
(spec1 spec2: spec_t kt vt)
(repr1 repr2: repr_t_sz kt vt sz)
(idx k: _)
(k': _{k =!= k'})
(v v': vt)
: Lemma
(requires
repr_related repr1 repr2 /\
(forall i. i < repr1.sz /\ i <> idx ==> repr1 @@ i == repr2 @@... | val lemma_used_upd_lookup_walk
(#kt #vt #sz: _)
(spec1 spec2: spec_t kt vt)
(repr1 repr2: repr_t_sz kt vt sz)
(idx k: _)
(k': _{k =!= k'})
(v v': vt)
: Lemma
(requires
repr_related repr1 repr2 /\
(forall i. i < repr1.sz /\ i <> idx ==> repr1 @@ i == repr2 @@... | let lemma_used_upd_lookup_walk #kt #vt #sz
(spec1 spec2 : spec_t kt vt)
(repr1 repr2 : repr_t_sz kt vt sz)
idx k (k':_{k =!= k'})
(v v' : vt)
: Lemma (requires
repr_related repr1 repr2
/\ (forall i. i < repr1.sz /\ i <> idx ==> repr1 @@ i == repr2 @@ i)
/\ pht_models spec1... | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 7,
"end_line": 254,
"start_col": 0,
"start_line": 218
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
spec1: Pulse.Lib.HashTable.Spec.spec_t kt vt ->
spec2: Pulse.Lib.HashTable.Spec.spec_t kt vt ->
repr1: Pulse.Lib.HashTable.Spec.repr_t_sz kt vt sz ->
repr2: Pulse.Lib.HashTable.Spec.repr_t_sz kt vt sz ->
idx: i: Prims.int{i >= 0 /\ i < Mkrepr_t?.sz repr2 /\ (i >= 0) /\ (i < Mkrepr_t?.sz repr1)} ->
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.eqtype",
"Prims.pos",
"Pulse.Lib.HashTable.Spec.spec_t",
"Pulse.Lib.HashTable.Spec.repr_t_sz",
"Prims.int",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"Prims.op_LessThan",
"Pulse.Lib.HashTable.Spec.__proj__Mkrepr_t__item__sz",
"Prims.l_not",
"Prims.eq2",
"Prims.nat",
... | [] | false | false | true | false | false | let lemma_used_upd_lookup_walk
#kt
#vt
#sz
(spec1: spec_t kt vt)
(spec2: spec_t kt vt)
(repr1: repr_t_sz kt vt sz)
(repr2: repr_t_sz kt vt sz)
idx
k
(k': _{k =!= k'})
(v: vt)
(v': vt)
: Lemma
(requires
repr_related repr1 repr2 /\
... | let idx' = canonical_index k' repr1 in
let rec aux (off: nat{off <= sz})
: Lemma
(requires
walk repr1 idx' k' off == lookup_repr repr1 k' /\
walk repr2 idx' k' off == lookup_repr repr2 k')
(ensures walk repr1 idx' k' off == walk repr2 idx' k' off)
(decreases sz - off) =
if off = ... | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.validate_sum_cases_t_eq | val validate_sum_cases_t_eq
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
(x y: validate_sum_cases_t t pc k)
: GTot Type0 | val validate_sum_cases_t_eq
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
(x y: validate_sum_cases_t t pc k)
: GTot Type0 | let validate_sum_cases_t_eq
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
(x y : validate_sum_cases_t t pc k)
: GTot Type0
= True | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 6,
"end_line": 43,
"start_col": 0,
"start_line": 37
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
t: LowParse.Spec.Sum.sum ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
k: LowParse.Spec.Sum.sum_key t ->
x: LowParse.Low.Sum.validate_sum_cases_t t p... | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Low.Sum.validate_sum_cases_t",
"Prims.l_True"
] | [] | false | false | false | false | true | let validate_sum_cases_t_eq
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
(x y: validate_sum_cases_t t pc k)
: GTot Type0 =
| True | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.validate_sum_aux_payload_eq | val validate_sum_aux_payload_eq
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: maybe_enum_key (sum_enum t))
: Tot (validate_sum_aux_payload_t t pc k -> validate_sum_aux_payload_t t pc k -> GTot Type0) | val validate_sum_aux_payload_eq
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: maybe_enum_key (sum_enum t))
: Tot (validate_sum_aux_payload_t t pc k -> validate_sum_aux_payload_t t pc k -> GTot Type0) | let validate_sum_aux_payload_eq
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: maybe_enum_key (sum_enum t))
: Tot (validate_sum_aux_payload_t t pc k -> validate_sum_aux_payload_t t pc k -> GTot Type0)
= fun _ _ -> True | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 17,
"end_line": 100,
"start_col": 0,
"start_line": 95
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
t: LowParse.Spec.Sum.sum ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
k: LowParse.Spec.Enum.maybe_enum_key (LowParse.Spec.Sum.sum_enum t) ->
_: LowP... | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Spec.Enum.maybe_enum_key",
"LowParse.Spec.Sum.sum_key_type",
"LowParse.Spec.Sum.sum_repr_type",
"LowParse.Spec.Sum.su... | [] | false | false | false | false | true | let validate_sum_aux_payload_eq
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: maybe_enum_key (sum_enum t))
: Tot (validate_sum_aux_payload_t t pc k -> validate_sum_aux_payload_t t pc k -> GTot Type0) =
| fun _ _ -> True | false |
DoublyLinkedListIface.fst | DoublyLinkedListIface.dll_insert_before | val dll_insert_before (#t:Type0) (n':node t) (d:dll t) (n:node t) :
HST.Stack unit
(requires (fun h0 -> dll_valid h0 d /\ node_valid h0 n /\ (fp_node n `B.loc_disjoint` fp_dll h0 d) /\ n' `L.memP` as_list h0 d))
(ensures (fun h0 () h1 ->
B.modifies (fp_dll h1 d) h0 h1 /\
fp_dll h1 d `loc_equ... | val dll_insert_before (#t:Type0) (n':node t) (d:dll t) (n:node t) :
HST.Stack unit
(requires (fun h0 -> dll_valid h0 d /\ node_valid h0 n /\ (fp_node n `B.loc_disjoint` fp_dll h0 d) /\ n' `L.memP` as_list h0 d))
(ensures (fun h0 () h1 ->
B.modifies (fp_dll h1 d) h0 h1 /\
fp_dll h1 d `loc_equ... | let dll_insert_before #t n' d n =
let h00 = HST.get () in
HST.push_frame ();
let h0 = HST.get () in
let y = DLL.dll_insert_before (!*d) n' n in
let h' = HST.get () in
d *= y;
let h1 = HST.get () in
assert (_pred_nl_disjoint h0 (as_list h1 d)); // OBSERVE
_lemma_unchanged_node_vals_transitive h0 h' h1 ... | {
"file_name": "examples/doublylinkedlist/DoublyLinkedListIface.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 4,
"end_line": 696,
"start_col": 0,
"start_line": 609
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Pure.fst.checked",
"FStar.HyperStack.ST.fsti.c... | [
{
"abbrev": false,
"full_module": "LowStar.BufferOps",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.List.Pure",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Ghost",
"short_module": "G"
},
{
"abbrev": true,
"full_module": "D... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 2,
"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 |
n': DoublyLinkedListIface.node t ->
d: DoublyLinkedListIface.dll t ->
n: DoublyLinkedListIface.node t
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"DoublyLinkedListIface.node",
"DoublyLinkedListIface.dll",
"Prims.unit",
"DoublyLinkedListIface._lemma_append_g_node_vals",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"FStar.List.Tot.Properties.split_using",
"DoublyLinkedListIface.as_list",
"Prims.Cons",
"DoublyLinkedListIface._lemma_extract_... | [] | false | true | false | false | false | let dll_insert_before #t n' d n =
| let h00 = HST.get () in
HST.push_frame ();
let h0 = HST.get () in
let y = DLL.dll_insert_before (!*d) n' n in
let h' = HST.get () in
d *= y;
let h1 = HST.get () in
assert (_pred_nl_disjoint h0 (as_list h1 d));
_lemma_unchanged_node_vals_transitive h0 h' h1 (as_list h1 d);
_lemma_insertion_maintains_memP (as_list h0 d) ... | false |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.lemma_clean_upd | val lemma_clean_upd (#kt #vt spec: _) (repr: repr_t kt vt) (off: nat{off < repr.sz}) (k v: _)
: Lemma
(requires
pht_models spec repr /\ None? (lookup_repr repr k) /\
repr @@ (canonical_index k repr + off) % repr.sz == Clean /\
all_used_not_by repr (canonical_index k repr) off k)
... | val lemma_clean_upd (#kt #vt spec: _) (repr: repr_t kt vt) (off: nat{off < repr.sz}) (k v: _)
: Lemma
(requires
pht_models spec repr /\ None? (lookup_repr repr k) /\
repr @@ (canonical_index k repr + off) % repr.sz == Clean /\
all_used_not_by repr (canonical_index k repr) off k)
... | let lemma_clean_upd #kt #vt spec (repr : repr_t kt vt) (off:nat{off < repr.sz}) k v
: Lemma
(requires pht_models spec repr
/\ None? (lookup_repr repr k)
/\ repr @@ (canonical_index k repr + off) % repr.sz == Clean
/\ all_used_not_by repr (canonical_index k repr) off k... | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 61,
"end_line": 425,
"start_col": 0,
"start_line": 391
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
spec: Pulse.Lib.HashTable.Spec.spec_t kt vt ->
repr: Pulse.Lib.HashTable.Spec.repr_t kt vt ->
off: Prims.nat{off < Mkrepr_t?.sz repr} ->
k: kt ->
v: vt
-> FStar.Pervasives.Lemma
(requires
Pulse.Lib.HashTable.Spec.pht_models spec repr /\
None? (Pulse.Lib.HashTable.Spec.lookup... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.eqtype",
"Pulse.Lib.HashTable.Spec.spec_t",
"Pulse.Lib.HashTable.Spec.repr_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Pulse.Lib.HashTable.Spec.__proj__Mkrepr_t__item__sz",
"FStar.Classical.forall_intro_3",
"Prims.l_imp",
"Prims.eq2",
"Pulse.Lib.HashTable.Spec.cell",
"Pulse.Lib.... | [] | false | false | true | false | false | let lemma_clean_upd #kt #vt spec (repr: repr_t kt vt) (off: nat{off < repr.sz}) k v
: Lemma
(requires
pht_models spec repr /\ None? (lookup_repr repr k) /\
repr @@ (canonical_index k repr + off) % repr.sz == Clean /\
all_used_not_by repr (canonical_index k repr) off k)
(ensures
... | let sz = repr.sz in
let spec' = spec ++ (k, v) in
let idx = (canonical_index k repr + off) % sz in
let repr' = upd_ repr idx k v in
let aux1 (k': kt)
: Lemma (requires (Some? (lookup_spec spec' k')))
(ensures (lookup_repr repr' k' == lookup_spec spec' k')) =
if k' = k
then lemma_walk_from_canonical_all_us... | false |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.lemma_del | val lemma_del (#kt #vt #sz spec: _) (repr: repr_t_sz kt vt sz) (idx k v: _)
: Lemma (requires pht_models spec repr /\ Some? (lookup_repr repr k) /\ repr @@ idx == Used k v)
(ensures pht_models (spec -- k) (del_ repr idx)) | val lemma_del (#kt #vt #sz spec: _) (repr: repr_t_sz kt vt sz) (idx k v: _)
: Lemma (requires pht_models spec repr /\ Some? (lookup_repr repr k) /\ repr @@ idx == Used k v)
(ensures pht_models (spec -- k) (del_ repr idx)) | let lemma_del #kt #vt #sz spec (repr : repr_t_sz kt vt sz) idx k v
: Lemma
(requires pht_models spec repr
/\ Some? (lookup_repr repr k)
/\ repr @@ idx == Used k v)
(ensures pht_models (spec -- k) (del_ repr idx))
= let spec' = spec -- k in
let repr' = del_ repr idx in
... | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 61,
"end_line": 552,
"start_col": 0,
"start_line": 514
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
spec: Pulse.Lib.HashTable.Spec.spec_t kt vt ->
repr: Pulse.Lib.HashTable.Spec.repr_t_sz kt vt sz ->
idx: n: Prims.nat{n < FStar.Seq.Base.length (Mkrepr_t?.seq repr)} ->
k: kt ->
v: vt
-> FStar.Pervasives.Lemma
(requires
Pulse.Lib.HashTable.Spec.pht_models spec repr /\
Some? ... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.eqtype",
"Prims.pos",
"Pulse.Lib.HashTable.Spec.spec_t",
"Pulse.Lib.HashTable.Spec.repr_t_sz",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Seq.Base.length",
"Pulse.Lib.HashTable.Spec.cell",
"Pulse.Lib.HashTable.Spec.__proj__Mkrepr_t__item__seq",
"FStar.Classical.forall_intro_3",... | [] | false | false | true | false | false | let lemma_del #kt #vt #sz spec (repr: repr_t_sz kt vt sz) idx k v
: Lemma (requires pht_models spec repr /\ Some? (lookup_repr repr k) /\ repr @@ idx == Used k v)
(ensures pht_models (spec -- k) (del_ repr idx)) =
| let spec' = spec -- k in
let repr' = del_ repr idx in
let aux1 (k': kt)
: Lemma (requires (Some? (lookup_spec spec' k')))
(ensures (lookup_repr repr' k' == lookup_spec spec' k')) =
if k' = k then () else lemma_del_lookup_walk spec spec' repr repr' idx k v k'
in
let aux2 (k': kt)
: Lemma (requires (Some?... | false |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.delete_repr_walk | val delete_repr_walk:
#kt: _ ->
#vt: _ ->
#sz: _ ->
#spec: erased (spec_t kt vt) ->
repr: repr_t_sz kt vt sz {pht_models spec repr} ->
k: kt ->
off: nat{off <= sz} ->
cidx: nat{cidx = canonical_index k repr} ->
squash (all_used_not_by repr cidx off k) ->
squash (walk repr cidx k ... | val delete_repr_walk:
#kt: _ ->
#vt: _ ->
#sz: _ ->
#spec: erased (spec_t kt vt) ->
repr: repr_t_sz kt vt sz {pht_models spec repr} ->
k: kt ->
off: nat{off <= sz} ->
cidx: nat{cidx = canonical_index k repr} ->
squash (all_used_not_by repr cidx off k) ->
squash (walk repr cidx k ... | let rec delete_repr_walk #kt #vt #sz (#spec : erased (spec_t kt vt))
(repr : repr_t_sz kt vt sz{pht_models spec repr}) (k : kt)
(off:nat{off <= sz}) (cidx:nat{cidx = canonical_index k repr})
(_ : squash (all_used_not_by repr cidx off k))
(_ : squash (walk repr cidx k off == lookup_repr repr k))
: Tot (repr':... | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 76,
"end_line": 669,
"start_col": 0,
"start_line": 642
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
repr:
Pulse.Lib.HashTable.Spec.repr_t_sz kt vt sz
{Pulse.Lib.HashTable.Spec.pht_models (FStar.Ghost.reveal spec) repr} ->
k: kt ->
off: Prims.nat{off <= sz} ->
cidx: Prims.nat{cidx = Pulse.Lib.HashTable.Spec.canonical_index k repr} ->
_: Prims.squash (Pulse.Lib.HashTable.Spec.all_used... | Prims.Tot | [
"total",
""
] | [] | [
"Prims.eqtype",
"Prims.pos",
"FStar.Ghost.erased",
"Pulse.Lib.HashTable.Spec.spec_t",
"Pulse.Lib.HashTable.Spec.repr_t_sz",
"Pulse.Lib.HashTable.Spec.pht_models",
"FStar.Ghost.reveal",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Equality",
"Pulse.Lib.HashTable.Spec.canonica... | [
"recursion"
] | false | false | false | false | false | let rec delete_repr_walk
#kt
#vt
#sz
(#spec: erased (spec_t kt vt))
(repr: repr_t_sz kt vt sz {pht_models spec repr})
(k: kt)
(off: nat{off <= sz})
(cidx: nat{cidx = canonical_index k repr})
(_: squash (all_used_not_by repr cidx off k))
(_: squash (walk repr c... | if off = sz
then repr
else
let idx = (cidx + off) % sz in
match repr @@ idx with
| Used k' v' ->
if k = k'
then
(lemma_del spec repr idx k v';
del_ repr idx)
else
(assert (all_used_not_by repr cidx (off + 1) k);
delete_repr_walk #kt #vt #sz #spec repr k (off + 1) cidx () ()... | false |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.upd_pht | val upd_pht:
#kt: eqtype ->
#vt: Type ->
pht: pht_t kt vt ->
idx: _ ->
k: kt ->
v: vt ->
squash (lookup_index_us pht k == Some idx)
-> pht_t kt vt | val upd_pht:
#kt: eqtype ->
#vt: Type ->
pht: pht_t kt vt ->
idx: _ ->
k: kt ->
v: vt ->
squash (lookup_index_us pht k == Some idx)
-> pht_t kt vt | let upd_pht (#kt:eqtype) (#vt:Type) (pht:pht_t kt vt) idx (k:kt) (v:vt)
(_:squash (lookup_index_us pht k == Some idx)) : pht_t kt vt =
let spec' = Ghost.hide (pht.spec ++ (k, v)) in
let repr' = upd_ pht.repr (US.v idx) k v in
let Used k v' = pht.repr @@ US.v idx in
let cidx = canonical_index #kt #vt k pht.r... | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 23,
"end_line": 741,
"start_col": 0,
"start_line": 725
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
pht: Pulse.Lib.HashTable.Spec.pht_t kt vt ->
idx: FStar.SizeT.t ->
k: kt ->
v: vt ->
_:
Prims.squash (Pulse.Lib.HashTable.Spec.lookup_index_us pht k ==
FStar.Pervasives.Native.Some idx)
-> Pulse.Lib.HashTable.Spec.pht_t kt vt | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"Pulse.Lib.HashTable.Spec.pht_t",
"FStar.SizeT.t",
"Prims.squash",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"Pulse.Lib.HashTable.Spec.lookup_index_us",
"FStar.Pervasives.Native.Some",
"Pulse.Lib.HashTable.Spec.Mkpht_t",
"Prims.unit",
"FStar.Classical.Sugar.forall_intro",
... | [] | false | false | false | false | false | let upd_pht
(#kt: eqtype)
(#vt: Type)
(pht: pht_t kt vt)
idx
(k: kt)
(v: vt)
(_: squash (lookup_index_us pht k == Some idx))
: pht_t kt vt =
| let spec' = Ghost.hide (pht.spec ++ (k, v)) in
let repr' = upd_ pht.repr (US.v idx) k v in
let Used k v' = pht.repr @@ US.v idx in
let cidx = canonical_index #kt #vt k pht.repr in
walk_get_idx_upd pht.repr repr' cidx k 0 (US.v idx) v;
assert (lookup_repr_index repr' k == Some (v, US.v idx));
introduce forall (k': kt{k'... | false |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.lemma_zombie_upd_lookup_walk | val lemma_zombie_upd_lookup_walk
(#kt #vt #sz: _)
(spec spec': spec_t kt vt)
(repr repr': repr_t_sz kt vt sz)
(idx k v: _)
(k': _{k =!= k'})
: Lemma
(requires
repr_related repr repr' /\ (forall i. i < sz /\ i <> idx ==> repr @@ i == repr' @@ i) /\
pht_models spec ... | val lemma_zombie_upd_lookup_walk
(#kt #vt #sz: _)
(spec spec': spec_t kt vt)
(repr repr': repr_t_sz kt vt sz)
(idx k v: _)
(k': _{k =!= k'})
: Lemma
(requires
repr_related repr repr' /\ (forall i. i < sz /\ i <> idx ==> repr @@ i == repr' @@ i) /\
pht_models spec ... | let lemma_zombie_upd_lookup_walk #kt #vt #sz
(spec spec' : spec_t kt vt)
(repr repr' : repr_t_sz kt vt sz)
idx k v (k':_{k =!= k'})
: Lemma (requires
repr_related repr repr'
/\ (forall i. i < sz /\ i <> idx ==> repr @@ i == repr' @@ i)
/\ pht_models spec repr
/\ repr' == upd_... | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 7,
"end_line": 321,
"start_col": 0,
"start_line": 290
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
spec: Pulse.Lib.HashTable.Spec.spec_t kt vt ->
spec': Pulse.Lib.HashTable.Spec.spec_t kt vt ->
repr: Pulse.Lib.HashTable.Spec.repr_t_sz kt vt sz ->
repr': Pulse.Lib.HashTable.Spec.repr_t_sz kt vt sz ->
idx: i: Prims.int{i >= 0 /\ i < Mkrepr_t?.sz repr' /\ (i >= 0) /\ (i < Mkrepr_t?.sz repr)} ->
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.eqtype",
"Prims.pos",
"Pulse.Lib.HashTable.Spec.spec_t",
"Pulse.Lib.HashTable.Spec.repr_t_sz",
"Prims.int",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"Prims.op_LessThan",
"Pulse.Lib.HashTable.Spec.__proj__Mkrepr_t__item__sz",
"Prims.l_not",
"Prims.eq2",
"Prims.nat",
... | [] | false | false | true | false | false | let lemma_zombie_upd_lookup_walk
#kt
#vt
#sz
(spec: spec_t kt vt)
(spec': spec_t kt vt)
(repr: repr_t_sz kt vt sz)
(repr': repr_t_sz kt vt sz)
idx
k
v
(k': _{k =!= k'})
: Lemma
(requires
repr_related repr repr' /\ (forall i. i < sz /\ i... | let idx' = canonical_index k' repr in
let rec aux (off: nat{off <= sz})
: Lemma
(requires
walk repr idx' k' off == lookup_repr repr k' /\
walk repr' idx' k' off == lookup_repr repr' k')
(ensures walk repr idx' k' off == walk repr' idx' k' off)
(decreases sz - off) =
if off = sz
... | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.validate_sum | val validate_sum
(t: sum)
(#kt: parser_kind)
(#p: parser kt (sum_repr_type t))
(v: validator p)
(p32: leaf_reader p)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: (x: sum_key t -> Tot (validator (dsnd (pc x)))))
(destr: dep_maybe_enu... | val validate_sum
(t: sum)
(#kt: parser_kind)
(#p: parser kt (sum_repr_type t))
(v: validator p)
(p32: leaf_reader p)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: (x: sum_key t -> Tot (validator (dsnd (pc x)))))
(destr: dep_maybe_enu... | let validate_sum
(t: sum)
(#kt: parser_kind)
(#p: parser kt (sum_repr_type t))
(v: validator p)
(p32: leaf_reader p)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: ((x: sum_key t) -> Tot (validator (dsnd (pc x)))))
(destr: dep_maybe_enum_destr_t (sum_enum t) (vali... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 72,
"end_line": 202,
"start_col": 0,
"start_line": 192
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
t: LowParse.Spec.Sum.sum ->
v: LowParse.Low.Base.validator p ->
p32: LowParse.Low.Base.leaf_reader p ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_repr_type",
"LowParse.Low.Base.validator",
"LowParse.Low.Base.leaf_reader",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Sum.sum_type_of_tag",
"Prims.__proj__Mkdtuple2__it... | [] | false | false | false | false | false | let validate_sum
(t: sum)
(#kt: parser_kind)
(#p: parser kt (sum_repr_type t))
(v: validator p)
(p32: leaf_reader p)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: (x: sum_key t -> Tot (validator (dsnd (pc x)))))
(destr: dep_maybe_enu... | validate_sum_aux t v p32 pc (validate_sum_aux_payload t pc pc32 destr) | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.jump_sum_cases_t_eq | val jump_sum_cases_t_eq
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
(x y: jump_sum_cases_t t pc k)
: GTot Type0 | val jump_sum_cases_t_eq
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
(x y: jump_sum_cases_t t pc k)
: GTot Type0 | let jump_sum_cases_t_eq
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
(x y : jump_sum_cases_t t pc k)
: GTot Type0
= True | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 6,
"end_line": 306,
"start_col": 0,
"start_line": 300
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"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 |
t: LowParse.Spec.Sum.sum ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
k: LowParse.Spec.Sum.sum_key t ->
x: LowParse.Low.Sum.jump_sum_cases_t t pc k ... | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Low.Sum.jump_sum_cases_t",
"Prims.l_True"
] | [] | false | false | false | false | true | let jump_sum_cases_t_eq
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
(x y: jump_sum_cases_t t pc k)
: GTot Type0 =
| True | false |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.lemma_used_upd | val lemma_used_upd
(#kt #vt #sz spec: _)
(repr: repr_t_sz kt vt sz)
(off: nat{off < sz})
(k: _)
(v v': vt)
: Lemma
(requires
pht_models spec repr /\ Some? (lookup_repr repr k) /\
repr @@ (canonical_index k repr + off) % sz == Used k v' /\
all_used_not_by r... | val lemma_used_upd
(#kt #vt #sz spec: _)
(repr: repr_t_sz kt vt sz)
(off: nat{off < sz})
(k: _)
(v v': vt)
: Lemma
(requires
pht_models spec repr /\ Some? (lookup_repr repr k) /\
repr @@ (canonical_index k repr + off) % sz == Used k v' /\
all_used_not_by r... | let lemma_used_upd #kt #vt #sz spec (repr : repr_t_sz kt vt sz) (off:nat{off < sz}) k (v v' : vt)
: Lemma
(requires pht_models spec repr
/\ Some? (lookup_repr repr k)
/\ repr @@ (canonical_index k repr + off)%sz == Used k v'
/\ all_used_not_by repr (canonical_index k ... | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 61,
"end_line": 463,
"start_col": 0,
"start_line": 427
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
spec: Pulse.Lib.HashTable.Spec.spec_t kt vt ->
repr: Pulse.Lib.HashTable.Spec.repr_t_sz kt vt sz ->
off: Prims.nat{off < sz} ->
k: kt ->
v: vt ->
v': vt
-> FStar.Pervasives.Lemma
(requires
Pulse.Lib.HashTable.Spec.pht_models spec repr /\
Some? (Pulse.Lib.HashTable.Spec.l... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.eqtype",
"Prims.pos",
"Pulse.Lib.HashTable.Spec.spec_t",
"Pulse.Lib.HashTable.Spec.repr_t_sz",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Classical.forall_intro_3",
"Prims.l_imp",
"Prims.eq2",
"Pulse.Lib.HashTable.Spec.cell",
"Pulse.Lib.HashTable.Spec.op_At_At",
"Pulse.Lib.... | [] | false | false | true | false | false | let lemma_used_upd
#kt
#vt
#sz
spec
(repr: repr_t_sz kt vt sz)
(off: nat{off < sz})
k
(v: vt)
(v': vt)
: Lemma
(requires
pht_models spec repr /\ Some? (lookup_repr repr k) /\
repr @@ (canonical_index k repr + off) % sz == Used k v' /\
... | let spec' = spec ++ (k, v) in
let idx = (canonical_index k repr + off) % sz in
let repr' = upd_ repr idx k v in
let aux1 (k': kt)
: Lemma (requires (Some? (lookup_spec spec' k')))
(ensures (lookup_repr repr' k' == lookup_spec spec' k')) =
if k' = k
then lemma_walk_from_canonical_all_used repr' off k v
e... | false |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.full_not_full | val full_not_full (#kt #vt: _) (r: repr_t kt vt) (k: kt)
: Lemma (requires not_full r /\ strong_all_used_not_by r (canonical_index k r) r.sz k)
(ensures False) | val full_not_full (#kt #vt: _) (r: repr_t kt vt) (k: kt)
: Lemma (requires not_full r /\ strong_all_used_not_by r (canonical_index k r) r.sz k)
(ensures False) | let full_not_full #kt #vt (r:repr_t kt vt) (k:kt)
: Lemma
(requires
not_full r /\
strong_all_used_not_by r (canonical_index k r) r.sz k)
(ensures False)
= eliminate exists (i:nat { i < r.sz }). ~(Used? (r @@ i))
returns False
with _ . (
assert (~(Used? (r@@i)));
eliminate_st... | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 5,
"end_line": 778,
"start_col": 0,
"start_line": 767
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Pulse.Lib.HashTable.Spec.repr_t kt vt -> k: kt
-> FStar.Pervasives.Lemma
(requires
Pulse.Lib.HashTable.Spec.not_full r /\
Pulse.Lib.HashTable.Spec.strong_all_used_not_by r
(Pulse.Lib.HashTable.Spec.canonical_index k r)
(Mkrepr_t?.sz r)
k) (ensures Prims.l_False) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.eqtype",
"Pulse.Lib.HashTable.Spec.repr_t",
"FStar.Classical.Sugar.exists_elim",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Pulse.Lib.HashTable.Spec.__proj__Mkrepr_t__item__sz",
"Prims.l_not",
"Pulse.Lib.HashTable.Spec.uu___is_Used",
"Pulse.Lib.HashTable.Spec.op_At_At",
"Prims.l_Fals... | [] | false | false | true | false | false | let full_not_full #kt #vt (r: repr_t kt vt) (k: kt)
: Lemma (requires not_full r /\ strong_all_used_not_by r (canonical_index k r) r.sz k)
(ensures False) =
| eliminate exists (i: nat{i < r.sz}).
~(Used? (r @@ i))
returns False
with _.
(assert (~(Used? (r @@ i)));
eliminate_strong_all_used_not_by r k i) | false |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.lemma_zombie_upd | val lemma_zombie_upd (#kt #vt #sz spec: _) (repr: repr_t_sz kt vt sz) (off: nat{off < sz}) (k v: _)
: Lemma
(requires
pht_models spec repr /\ None? (lookup_repr repr k) /\
repr @@ (canonical_index k repr + off) % sz == Zombie /\
all_used_not_by repr (canonical_index k repr) off k)
... | val lemma_zombie_upd (#kt #vt #sz spec: _) (repr: repr_t_sz kt vt sz) (off: nat{off < sz}) (k v: _)
: Lemma
(requires
pht_models spec repr /\ None? (lookup_repr repr k) /\
repr @@ (canonical_index k repr + off) % sz == Zombie /\
all_used_not_by repr (canonical_index k repr) off k)
... | let lemma_zombie_upd #kt #vt #sz spec (repr : repr_t_sz kt vt sz) (off:nat{off < sz}) k v
: Lemma
(requires pht_models spec repr
/\ None? (lookup_repr repr k)
/\ repr @@ (canonical_index k repr + off) % sz == Zombie
/\ all_used_not_by repr (canonical_index k repr) off... | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 61,
"end_line": 512,
"start_col": 0,
"start_line": 465
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
spec: Pulse.Lib.HashTable.Spec.spec_t kt vt ->
repr: Pulse.Lib.HashTable.Spec.repr_t_sz kt vt sz ->
off: Prims.nat{off < sz} ->
k: kt ->
v: vt
-> FStar.Pervasives.Lemma
(requires
Pulse.Lib.HashTable.Spec.pht_models spec repr /\
None? (Pulse.Lib.HashTable.Spec.lookup_repr rep... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.eqtype",
"Prims.pos",
"Pulse.Lib.HashTable.Spec.spec_t",
"Pulse.Lib.HashTable.Spec.repr_t_sz",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Classical.forall_intro_3",
"Prims.l_imp",
"Prims.eq2",
"Pulse.Lib.HashTable.Spec.cell",
"Pulse.Lib.HashTable.Spec.op_At_At",
"Pulse.Lib.... | [] | false | false | true | false | false | let lemma_zombie_upd #kt #vt #sz spec (repr: repr_t_sz kt vt sz) (off: nat{off < sz}) k v
: Lemma
(requires
pht_models spec repr /\ None? (lookup_repr repr k) /\
repr @@ (canonical_index k repr + off) % sz == Zombie /\
all_used_not_by repr (canonical_index k repr) off k)
(ensures... | let spec' = spec ++ (k, v) in
let idx = (canonical_index k repr + off) % sz in
let repr' = upd_ repr idx k v in
let aux (i: nat{i < off}) : Lemma (used_not_by repr' k ((canonical_index k repr + i) % sz)) =
calc ( ==> ) {
(canonical_index k repr + i) % sz == idx;
( ==> ) { () }
(canonical_index k repr + i)... | false |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.lemma_clean_upd_lookup_walk | val lemma_clean_upd_lookup_walk
(#kt #vt #sz: _)
(spec1 spec2: spec_t kt vt)
(repr1 repr2: repr_t_sz kt vt sz)
(idx k v: _)
(k': _{k =!= k'})
: Lemma
(requires
repr_related repr1 repr2 /\
(forall i. i < repr1.sz /\ i <> idx ==> repr1 @@ i == repr2 @@ i) /\
... | val lemma_clean_upd_lookup_walk
(#kt #vt #sz: _)
(spec1 spec2: spec_t kt vt)
(repr1 repr2: repr_t_sz kt vt sz)
(idx k v: _)
(k': _{k =!= k'})
: Lemma
(requires
repr_related repr1 repr2 /\
(forall i. i < repr1.sz /\ i <> idx ==> repr1 @@ i == repr2 @@ i) /\
... | let lemma_clean_upd_lookup_walk #kt #vt #sz
(spec1 spec2 : spec_t kt vt)
(repr1 repr2 : repr_t_sz kt vt sz)
idx k v (k':_{k =!= k'})
: Lemma (requires
repr_related repr1 repr2
/\ (forall i. i < repr1.sz /\ i <> idx ==> repr1 @@ i == repr2 @@ i)
/\ None? (lookup_repr repr1 k)
... | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 7,
"end_line": 216,
"start_col": 0,
"start_line": 184
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
spec1: Pulse.Lib.HashTable.Spec.spec_t kt vt ->
spec2: Pulse.Lib.HashTable.Spec.spec_t kt vt ->
repr1: Pulse.Lib.HashTable.Spec.repr_t_sz kt vt sz ->
repr2: Pulse.Lib.HashTable.Spec.repr_t_sz kt vt sz ->
idx: i: Prims.int{i >= 0 /\ i < Mkrepr_t?.sz repr2 /\ (i >= 0) /\ (i < Mkrepr_t?.sz repr1)} ->
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.eqtype",
"Prims.pos",
"Pulse.Lib.HashTable.Spec.spec_t",
"Pulse.Lib.HashTable.Spec.repr_t_sz",
"Prims.int",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"Prims.op_LessThan",
"Pulse.Lib.HashTable.Spec.__proj__Mkrepr_t__item__sz",
"Prims.l_not",
"Prims.eq2",
"Prims.nat",
... | [] | false | false | true | false | false | let lemma_clean_upd_lookup_walk
#kt
#vt
#sz
(spec1: spec_t kt vt)
(spec2: spec_t kt vt)
(repr1: repr_t_sz kt vt sz)
(repr2: repr_t_sz kt vt sz)
idx
k
v
(k': _{k =!= k'})
: Lemma
(requires
repr_related repr1 repr2 /\
(forall i. i... | let idx' = canonical_index k' repr1 in
let rec aux (off: nat{off <= sz})
: Lemma
(requires
walk repr1 idx' k' off == lookup_repr repr1 k' /\
walk repr2 idx' k' off == lookup_repr repr2 k')
(ensures walk repr1 idx' k' off == walk repr2 idx' k' off)
(decreases repr1.sz - off) =
if ... | false |
Steel.ST.HigherArray.fst | Steel.ST.HigherArray.index0 | val index0 (#t: Type) (#p: P.perm) (a: array t) (#s: Ghost.erased (Seq.seq t)) (i: US.t)
: ST t
(pts_to a p s)
(fun _ -> pts_to a p s)
(US.v i < length a \/ US.v i < Seq.length s)
(fun res -> Seq.length s == length a /\ US.v i < Seq.length s /\ res == Seq.index s (US.v i)) | val index0 (#t: Type) (#p: P.perm) (a: array t) (#s: Ghost.erased (Seq.seq t)) (i: US.t)
: ST t
(pts_to a p s)
(fun _ -> pts_to a p s)
(US.v i < length a \/ US.v i < Seq.length s)
(fun res -> Seq.length s == length a /\ US.v i < Seq.length s /\ res == Seq.index s (US.v i)) | let index0
(#t: Type) (#p: P.perm)
(a: array t)
(#s: Ghost.erased (Seq.seq t))
(i: US.t)
: ST t
(pts_to a p s)
(fun _ -> pts_to a p s)
(US.v i < length a \/ US.v i < Seq.length s)
(fun res -> Seq.length s == length a /\ US.v i < Seq.length s /\ res == Seq.index s (US.v i))
= elim_pts_to a p s;
... | {
"file_name": "lib/steel/Steel.ST.HigherArray.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 12,
"end_line": 428,
"start_col": 0,
"start_line": 414
} | (*
Copyright 2022 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.PCMReference.fsti.checked",
"Steel.ST.Loops.fsti.checked",
"Steel.PCMMap.fst.checked",
"Steel.PCMFrac.fst.checked",
"Steel.Memory.fsti.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Rea... | [
{
"abbrev": true,
"full_module": "Steel.PCMMap",
"short_module": "PM"
},
{
"abbrev": true,
"full_module": "FStar.Map",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Steel.ST.PCMReference",
"short_module": "R"
},
{
"abbrev": true,
"full_module": "Ste... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Steel.ST.HigherArray.array t -> i: FStar.SizeT.t -> Steel.ST.Effect.ST t | Steel.ST.Effect.ST | [] | [] | [
"Steel.FractionalPermission.perm",
"Steel.ST.HigherArray.array",
"FStar.Ghost.erased",
"FStar.Seq.Base.seq",
"FStar.SizeT.t",
"Steel.ST.Util.return",
"FStar.Ghost.hide",
"FStar.Set.set",
"Steel.Memory.iname",
"FStar.Set.empty",
"Steel.ST.HigherArray.pts_to",
"FStar.Ghost.reveal",
"Steel.Effe... | [] | false | true | false | false | false | let index0 (#t: Type) (#p: P.perm) (a: array t) (#s: Ghost.erased (Seq.seq t)) (i: US.t)
: ST t
(pts_to a p s)
(fun _ -> pts_to a p s)
(US.v i < length a \/ US.v i < Seq.length s)
(fun res -> Seq.length s == length a /\ US.v i < Seq.length s /\ res == Seq.index s (US.v i)) =
| elim_pts_to a p s;
let s' = R.read (ptr_of a).base _ in
let res = fst (Some?.v (M.sel s' ((ptr_of a).offset + US.v i))) in
intro_pts_to a p s;
return res | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.jump_sum_aux_payload_eq | val jump_sum_aux_payload_eq
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: maybe_enum_key (sum_enum t))
: Tot (jump_sum_aux_payload_t t pc k -> jump_sum_aux_payload_t t pc k -> GTot Type0) | val jump_sum_aux_payload_eq
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: maybe_enum_key (sum_enum t))
: Tot (jump_sum_aux_payload_t t pc k -> jump_sum_aux_payload_t t pc k -> GTot Type0) | let jump_sum_aux_payload_eq
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: maybe_enum_key (sum_enum t))
: Tot (jump_sum_aux_payload_t t pc k -> jump_sum_aux_payload_t t pc k -> GTot Type0)
= fun _ _ -> True | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 17,
"end_line": 363,
"start_col": 0,
"start_line": 358
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"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 |
t: LowParse.Spec.Sum.sum ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
k: LowParse.Spec.Enum.maybe_enum_key (LowParse.Spec.Sum.sum_enum t) ->
_: LowP... | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Spec.Enum.maybe_enum_key",
"LowParse.Spec.Sum.sum_key_type",
"LowParse.Spec.Sum.sum_repr_type",
"LowParse.Spec.Sum.su... | [] | false | false | false | false | true | let jump_sum_aux_payload_eq
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: maybe_enum_key (sum_enum t))
: Tot (jump_sum_aux_payload_t t pc k -> jump_sum_aux_payload_t t pc k -> GTot Type0) =
| fun _ _ -> True | false |
Vale.FDefMulx.X64.fst | Vale.FDefMulx.X64.va_lemma_MulAdd18 | val va_lemma_MulAdd18 : va_b0:va_code -> va_s0:va_state -> r0:va_operand_reg_opr64 ->
r1:va_operand_reg_opr64 -> r2:va_operand_reg_opr64 -> r3:va_operand_reg_opr64 ->
r4:va_operand_reg_opr64 -> r5:va_operand_reg_opr64 -> r6:va_operand_reg_opr64 ->
r7:va_operand_reg_opr64 -> regRotate:nat -> bA:buffer64 -> bB:buff... | val va_lemma_MulAdd18 : va_b0:va_code -> va_s0:va_state -> r0:va_operand_reg_opr64 ->
r1:va_operand_reg_opr64 -> r2:va_operand_reg_opr64 -> r3:va_operand_reg_opr64 ->
r4:va_operand_reg_opr64 -> r5:va_operand_reg_opr64 -> r6:va_operand_reg_opr64 ->
r7:va_operand_reg_opr64 -> regRotate:nat -> bA:buffer64 -> bB:buff... | let va_lemma_MulAdd18 va_b0 va_s0 r0 r1 r2 r3 r4 r5 r6 r7 regRotate bA bB bD =
va_reveal_opaque (`%va_code_MulAdd18) (va_code_MulAdd18 r0 r1 r2 r3 r4 r5 r6 r7);
let (va_old_s:va_state) = va_s0 in
let (va_b1:va_codes) = va_get_block va_b0 in
let (as0:(FStar.Seq.Base.seq Vale.Def.Types_s.nat64)) = Vale.X64.Decls.... | {
"file_name": "obj/Vale.FDefMulx.X64.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 413,
"start_col": 0,
"start_line": 215
} | module Vale.FDefMulx.X64
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsMem
open Vale.X64.InsStack
open Vale.X64.QuickCode
open Vale.X64.QuickCodes
open Vale.X64.CPU_Features_s
... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsStack.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "Vale.Def.Words_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Seq",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"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 |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
r0: Vale.X64.Decls.va_operand_reg_opr64 ->
r1: Vale.X64.Decls.va_operand_reg_opr64 ->
r2: Vale.X64.Decls.va_operand_reg_opr64 ->
r3: Vale.X64.Decls.va_operand_reg_opr64 ->
r4: Vale.X64.Decls.va_operand_reg_opr64 ->
r5: V... | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Vale.X64.Decls.va_operand_reg_opr64",
"Prims.nat",
"Vale.X64.Memory.buffer64",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple2",
"Vale.X64.Decls.va_lemma_merge_total",
"FStar.Pervasives.Native.tuple2",
"Vale.X64.State.vale_state",
... | [] | false | false | false | false | false | let va_lemma_MulAdd18 va_b0 va_s0 r0 r1 r2 r3 r4 r5 r6 r7 regRotate bA bB bD =
| va_reveal_opaque (`%va_code_MulAdd18) (va_code_MulAdd18 r0 r1 r2 r3 r4 r5 r6 r7);
let va_old_s:va_state = va_s0 in
let va_b1:va_codes = va_get_block va_b0 in
let as0:(FStar.Seq.Base.seq Vale.Def.Types_s.nat64) =
Vale.X64.Decls.s64 (va_get_mem_heaplet 0 va_s0) bA
in
let rs:(seq nat64) =
make_seq9 #nat64 (va_eval_reg... | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.jump_sum | val jump_sum
(t: sum)
(#kt: parser_kind)
(#p: parser kt (sum_repr_type t))
(v: jumper p)
(p32: leaf_reader p)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: (x: sum_key t -> Tot (jumper (dsnd (pc x)))))
(destr: dep_maybe_enum_destr_t ... | val jump_sum
(t: sum)
(#kt: parser_kind)
(#p: parser kt (sum_repr_type t))
(v: jumper p)
(p32: leaf_reader p)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: (x: sum_key t -> Tot (jumper (dsnd (pc x)))))
(destr: dep_maybe_enum_destr_t ... | let jump_sum
(t: sum)
(#kt: parser_kind)
(#p: parser kt (sum_repr_type t))
(v: jumper p)
(p32: leaf_reader p)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: ((x: sum_key t) -> Tot (jumper (dsnd (pc x)))))
(destr: dep_maybe_enum_destr_t (sum_enum t) (jump_sum_aux_p... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 64,
"end_line": 580,
"start_col": 0,
"start_line": 570
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"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 |
t: LowParse.Spec.Sum.sum ->
v: LowParse.Low.Base.jumper p ->
p32: LowParse.Low.Base.leaf_reader p ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
p... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_repr_type",
"LowParse.Low.Base.jumper",
"LowParse.Low.Base.leaf_reader",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Sum.sum_type_of_tag",
"Prims.__proj__Mkdtuple2__item_... | [] | false | false | false | false | false | let jump_sum
(t: sum)
(#kt: parser_kind)
(#p: parser kt (sum_repr_type t))
(v: jumper p)
(p32: leaf_reader p)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: (x: sum_key t -> Tot (jumper (dsnd (pc x)))))
(destr: dep_maybe_enum_destr_t ... | jump_sum_aux t v p32 pc (jump_sum_aux_payload t pc pc32 destr) | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.validate_sum_aux_payload_if | val validate_sum_aux_payload_if
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: maybe_enum_key (sum_enum t))
: Tot (if_combinator _ (validate_sum_aux_payload_eq t pc k)) | val validate_sum_aux_payload_if
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: maybe_enum_key (sum_enum t))
: Tot (if_combinator _ (validate_sum_aux_payload_eq t pc k)) | let validate_sum_aux_payload_if
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: maybe_enum_key (sum_enum t))
: Tot (if_combinator _ (validate_sum_aux_payload_eq t pc k))
= validate_sum_aux_payload_if' t pc k | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 37,
"end_line": 124,
"start_col": 0,
"start_line": 119
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
t: LowParse.Spec.Sum.sum ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
k: LowParse.Spec.Enum.maybe_enum_key (LowParse.Spec.Sum.sum_enum t)
-> LowParse.... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Spec.Enum.maybe_enum_key",
"LowParse.Spec.Sum.sum_key_type",
"LowParse.Spec.Sum.sum_repr_type",
"LowParse.Spec.Sum.su... | [] | false | false | false | false | false | let validate_sum_aux_payload_if
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: maybe_enum_key (sum_enum t))
: Tot (if_combinator _ (validate_sum_aux_payload_eq t pc k)) =
| validate_sum_aux_payload_if' t pc k | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.read_sum_cases_t_eq | val read_sum_cases_t_eq
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
(x y: read_sum_cases_t t pc k)
: GTot Type0 | val read_sum_cases_t_eq
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
(x y: read_sum_cases_t t pc k)
: GTot Type0 | let read_sum_cases_t_eq
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
(x y : read_sum_cases_t t pc k)
: GTot Type0
= True | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 6,
"end_line": 611,
"start_col": 0,
"start_line": 605
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"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 |
t: LowParse.Spec.Sum.sum ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
k: LowParse.Spec.Sum.sum_key t ->
x: LowParse.Low.Sum.read_sum_cases_t t pc k ... | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Low.Sum.read_sum_cases_t",
"Prims.l_True"
] | [] | false | false | false | false | true | let read_sum_cases_t_eq
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
(x y: read_sum_cases_t t pc k)
: GTot Type0 =
| True | false |
Steel.HigherReference.fst | Steel.HigherReference.ghost_pts_to_perm | val ghost_pts_to_perm (#a: _) (#u: _) (#p: _) (#v: _) (r: ghost_ref a)
: SteelGhost unit u
(ghost_pts_to r p v)
(fun _ -> ghost_pts_to r p v)
(fun _ -> True)
(fun _ _ _ -> p `lesser_equal_perm` full_perm) | val ghost_pts_to_perm (#a: _) (#u: _) (#p: _) (#v: _) (r: ghost_ref a)
: SteelGhost unit u
(ghost_pts_to r p v)
(fun _ -> ghost_pts_to r p v)
(fun _ -> True)
(fun _ _ _ -> p `lesser_equal_perm` full_perm) | let ghost_pts_to_perm #a #_ #p #v r =
let v_old : erased (fractional a) = Ghost.hide (Some (Ghost.reveal v, p)) in
rewrite_slprop
(ghost_pts_to r p v)
(RP.pts_to r v_old `star` pure (perm_ok p))
(fun _ -> ());
elim_pure (perm_ok p);
intro_pure (perm_ok p);
rewrite_slprop
(RP.pt... | {
"file_name": "lib/steel/Steel.HigherReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 19,
"end_line": 457,
"start_col": 0,
"start_line": 446
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.PCMReference.fsti.checked",
"Steel.PCMFrac.fst.checked",
"Steel.Memory.fsti.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "Mem"
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "RP"
},
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Steel.HigherReference.ghost_ref a -> Steel.Effect.Atomic.SteelGhost Prims.unit | Steel.Effect.Atomic.SteelGhost | [] | [] | [
"Steel.Memory.inames",
"Steel.FractionalPermission.perm",
"Steel.HigherReference.ghost_ref",
"Steel.Effect.Atomic.rewrite_slprop",
"Steel.Effect.Common.star",
"Steel.PCMReference.pts_to",
"Steel.PCMFrac.fractional",
"Steel.PCMFrac.pcm_frac",
"FStar.Ghost.reveal",
"Steel.HigherReference.ref",
"St... | [] | false | true | false | false | false | let ghost_pts_to_perm #a #_ #p #v r =
| let v_old:erased (fractional a) = Ghost.hide (Some (Ghost.reveal v, p)) in
rewrite_slprop (ghost_pts_to r p v) ((RP.pts_to r v_old) `star` (pure (perm_ok p))) (fun _ -> ());
elim_pure (perm_ok p);
intro_pure (perm_ok p);
rewrite_slprop ((RP.pts_to r v_old) `star` (pure (perm_ok p))) (ghost_pts_to r p v) (fun _ -> ()) | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.validate_sum_cases_t_if | val validate_sum_cases_t_if
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
: Tot (if_combinator _ (validate_sum_cases_t_eq t pc k)) | val validate_sum_cases_t_if
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
: Tot (if_combinator _ (validate_sum_cases_t_eq t pc k)) | let validate_sum_cases_t_if
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
: Tot (if_combinator _ (validate_sum_cases_t_eq t pc k))
= fun cond (sv_true: cond_true cond -> Tot (validate_sum_cases_t t pc k)) (sv_false: cond_false cond -> Tot (validate_sum_cas... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 28,
"end_line": 54,
"start_col": 0,
"start_line": 46
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
t: LowParse.Spec.Sum.sum ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
k: LowParse.Spec.Sum.sum_key t
-> LowParse.Spec.Enum.if_combinator (LowParse.Low... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_type_of_tag",
"Prims.bool",
"LowParse.Spec.Combinators.cond_true",
"LowParse.Low.Sum.validate_sum_cases_t",
"LowParse.Spec.Combinators.cond_f... | [] | false | false | false | false | false | let validate_sum_cases_t_if
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
: Tot (if_combinator _ (validate_sum_cases_t_eq t pc k)) =
| fun
cond
(sv_true: (cond_true cond -> Tot (validate_sum_cases_t t pc k)))
(sv_false: (cond_false cond -> Tot (validate_sum_cases_t t pc k)))
#rrel
#rel
input
pos
->
if cond then sv_true () input pos else sv_false () input pos | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.validate_sum_cases_aux | val validate_sum_cases_aux
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(vc: (x: sum_key t -> Tot (validator (dsnd (pc x)))))
(k: sum_key t)
: Tot (validator (parse_sum_cases t pc k)) | val validate_sum_cases_aux
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(vc: (x: sum_key t -> Tot (validator (dsnd (pc x)))))
(k: sum_key t)
: Tot (validator (parse_sum_cases t pc k)) | let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(vc: ((x: sum_key t) -> Tot (validator (dsnd (pc x)))))
(k: sum_key t)
: Tot (validator (parse_sum_cases t pc k))
= [@inline_let]
let _ = synth_sum_case_injective t k in
validate_synth
(va... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 6,
"end_line": 27,
"start_col": 0,
"start_line": 12
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64 | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
t: LowParse.Spec.Sum.sum ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
vc:
(x: LowParse.Spec.Sum.sum_key t -> LowParse.Low.Base.validator (FStar.Pe... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Low.Base.validator",
"Prims.__proj__Mkdtuple2__item___1",
"FStar.Pervasives.dsnd",
"LowParse.Low.Combinators.validate... | [] | false | false | false | false | false | let validate_sum_cases_aux
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(vc: (x: sum_key t -> Tot (validator (dsnd (pc x)))))
(k: sum_key t)
: Tot (validator (parse_sum_cases t pc k)) =
| [@@ inline_let ]let _ = synth_sum_case_injective t k in
validate_synth (validate_weaken (weaken_parse_cases_kind t pc) (vc k) ()) (synth_sum_case t k) () | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.validate_sum_aux_payload' | val validate_sum_aux_payload'
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: (x: sum_key t -> Tot (validator (dsnd (pc x)))))
(k: maybe_enum_key (sum_enum t))
: Tot (validate_sum_aux_payload_t t pc k) | val validate_sum_aux_payload'
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: (x: sum_key t -> Tot (validator (dsnd (pc x)))))
(k: maybe_enum_key (sum_enum t))
: Tot (validate_sum_aux_payload_t t pc k) | let validate_sum_aux_payload'
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: ((x: sum_key t) -> Tot (validator (dsnd (pc x)))))
(k: maybe_enum_key (sum_enum t))
: Tot (validate_sum_aux_payload_t t pc k)
= fun #rrel #rel input pos ->
match k with
| Known k... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 34,
"end_line": 179,
"start_col": 0,
"start_line": 166
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
t: LowParse.Spec.Sum.sum ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
pc32:
(x: LowParse.Spec.Sum.sum_key t -> LowParse.Low.Base.validator (FStar.... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Low.Base.validator",
"Prims.__proj__Mkdtuple2__item___1",
"FStar.Pervasives.dsnd",
"LowParse.Spec.Enum.maybe_enum_key... | [] | false | false | false | false | false | let validate_sum_aux_payload'
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: (x: sum_key t -> Tot (validator (dsnd (pc x)))))
(k: maybe_enum_key (sum_enum t))
: Tot (validate_sum_aux_payload_t t pc k) =
| fun #rrel #rel input pos ->
match k with
| Known k ->
[@@ inline_let ]let _ = synth_sum_case_injective t k in
pc32 k input pos
| _ -> validator_error_generic | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.validate_sum_cases | val validate_sum_cases
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(vc: (x: sum_key t -> Tot (validator (dsnd (pc x)))))
(destr: dep_enum_destr (sum_enum t) (validate_sum_cases_t t pc))
(k: sum_key t)
: Tot (validator (parse_sum_cases t pc k)) | val validate_sum_cases
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(vc: (x: sum_key t -> Tot (validator (dsnd (pc x)))))
(destr: dep_enum_destr (sum_enum t) (validate_sum_cases_t t pc))
(k: sum_key t)
: Tot (validator (parse_sum_cases t pc k)) | let validate_sum_cases
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(vc: ((x: sum_key t) -> Tot (validator (dsnd (pc x)))))
(destr: dep_enum_destr (sum_enum t) (validate_sum_cases_t t pc))
(k: sum_key t)
: Tot (validator (parse_sum_cases t pc k))
= destr
_
... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 5,
"end_line": 70,
"start_col": 0,
"start_line": 57
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
t: LowParse.Spec.Sum.sum ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
vc:
(x: LowParse.Spec.Sum.sum_key t -> LowParse.Low.Base.validator (FStar.Pe... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Low.Base.validator",
"Prims.__proj__Mkdtuple2__item___1",
"FStar.Pervasives.dsnd",
"LowParse.Spec.Enum.dep_enum_destr... | [] | false | false | false | false | false | let validate_sum_cases
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(vc: (x: sum_key t -> Tot (validator (dsnd (pc x)))))
(destr: dep_enum_destr (sum_enum t) (validate_sum_cases_t t pc))
(k: sum_key t)
: Tot (validator (parse_sum_cases t pc k))... | destr _
(validate_sum_cases_t_if t pc)
(fun _ _ -> ())
(fun _ _ _ _ -> ())
(validate_sum_cases_aux t pc vc)
k | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.validate_sum_aux_payload | val validate_sum_aux_payload
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: (x: sum_key t -> Tot (validator (dsnd (pc x)))))
(destr: dep_maybe_enum_destr_t (sum_enum t) (validate_sum_aux_payload_t t pc))
(k: sum_repr_type t)
: Tot (validat... | val validate_sum_aux_payload
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: (x: sum_key t -> Tot (validator (dsnd (pc x)))))
(destr: dep_maybe_enum_destr_t (sum_enum t) (validate_sum_aux_payload_t t pc))
(k: sum_repr_type t)
: Tot (validat... | let validate_sum_aux_payload
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: ((x: sum_key t) -> Tot (validator (dsnd (pc x)))))
(destr: dep_maybe_enum_destr_t (sum_enum t) (validate_sum_aux_payload_t t pc))
(k: sum_repr_type t)
: Tot (validate_sum_aux_payload_t ... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 153,
"end_line": 189,
"start_col": 0,
"start_line": 182
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
t: LowParse.Spec.Sum.sum ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
pc32:
(x: LowParse.Spec.Sum.sum_key t -> LowParse.Low.Base.validator (FStar.... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Low.Base.validator",
"Prims.__proj__Mkdtuple2__item___1",
"FStar.Pervasives.dsnd",
"LowParse.Spec.Enum.dep_maybe_enum... | [] | false | false | false | false | false | let validate_sum_aux_payload
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: (x: sum_key t -> Tot (validator (dsnd (pc x)))))
(destr: dep_maybe_enum_destr_t (sum_enum t) (validate_sum_aux_payload_t t pc))
(k: sum_repr_type t)
: Tot (validat... | destr (validate_sum_aux_payload_eq t pc)
(validate_sum_aux_payload_if t pc)
(fun _ _ -> ())
(fun _ _ _ _ -> ())
(validate_sum_aux_payload' t pc pc32)
k | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.serialize32_sum_cases_t_eq | val serialize32_sum_cases_t_eq
(t: sum)
(#pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(sc: (x: sum_key t -> Tot (serializer (dsnd (pc x)))))
(k: sum_key t)
(x y: serialize32_sum_cases_t t sc k)
: GTot Type0 | val serialize32_sum_cases_t_eq
(t: sum)
(#pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(sc: (x: sum_key t -> Tot (serializer (dsnd (pc x)))))
(k: sum_key t)
(x y: serialize32_sum_cases_t t sc k)
: GTot Type0 | let serialize32_sum_cases_t_eq
(t: sum)
(#pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(sc: ((x: sum_key t) -> Tot (serializer (dsnd (pc x)))))
(k: sum_key t)
(x y: serialize32_sum_cases_t t sc k)
: GTot Type0
= True | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 6,
"end_line": 682,
"start_col": 0,
"start_line": 675
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"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 |
t: LowParse.Spec.Sum.sum ->
sc:
(x: LowParse.Spec.Sum.sum_key t
-> LowParse.Spec.Base.serializer (FStar.Pervasives.dsnd (pc x))) ->
k: LowParse.Spec.Sum.sum_key t ->
x: LowParse.Low.Sum.serialize32_sum_cases_t t sc k ->
y: LowParse.Low.Sum.serialize32_sum_cases_t t sc k
-> Prims.G... | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Spec.Base.serializer",
"Prims.__proj__Mkdtuple2__item___1",
"FStar.Pervasives.dsnd",
"LowParse.Low.Sum.serialize32_su... | [] | false | false | false | false | true | let serialize32_sum_cases_t_eq
(t: sum)
(#pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(sc: (x: sum_key t -> Tot (serializer (dsnd (pc x)))))
(k: sum_key t)
(x y: serialize32_sum_cases_t t sc k)
: GTot Type0 =
| True | false |
Pulse.Lib.HashTable.Spec.fst | Pulse.Lib.HashTable.Spec.eliminate_strong_all_used_not_by | val eliminate_strong_all_used_not_by (#kt #vt: _) (r: repr_t kt vt) (k: kt) (i: nat{i < r.sz})
: Lemma (requires strong_all_used_not_by r (canonical_index k r) r.sz k)
(ensures Used? (r @@ i) /\ Used?.k (r @@ i) <> k) | val eliminate_strong_all_used_not_by (#kt #vt: _) (r: repr_t kt vt) (k: kt) (i: nat{i < r.sz})
: Lemma (requires strong_all_used_not_by r (canonical_index k r) r.sz k)
(ensures Used? (r @@ i) /\ Used?.k (r @@ i) <> k) | let eliminate_strong_all_used_not_by #kt #vt (r:repr_t kt vt) (k:kt) (i:nat{i < r.sz})
: Lemma
(requires strong_all_used_not_by r (canonical_index k r) r.sz k)
(ensures Used? (r @@ i) /\ Used?.k (r @@ i) <> k)
= let j = canonical_index k r in
if (j < i)
then (
assert (i == (j + (i-j)) % r.... | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Spec.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 5,
"end_line": 764,
"start_col": 0,
"start_line": 744
} | (*
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.Lib.Pervasives.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": false,
"full_module": "FStar.Ghost",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.HashTable",
"short_module": null
},
{
"abbrev": false,
"full_module": ... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Pulse.Lib.HashTable.Spec.repr_t kt vt -> k: kt -> i: Prims.nat{i < Mkrepr_t?.sz r}
-> FStar.Pervasives.Lemma
(requires
Pulse.Lib.HashTable.Spec.strong_all_used_not_by r
(Pulse.Lib.HashTable.Spec.canonical_index k r)
(Mkrepr_t?.sz r)
k) (ensures Used? (r @@ i) /\ Used?.k ... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.eqtype",
"Pulse.Lib.HashTable.Spec.repr_t",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Pulse.Lib.HashTable.Spec.__proj__Mkrepr_t__item__sz",
"Prims._assert",
"Pulse.Lib.HashTable.Spec.uu___is_Used",
"Pulse.Lib.HashTable.Spec.op_At_At",
"Prims.unit",
"Prims.eq2",
"Prims.int",
"Pri... | [] | false | false | true | false | false | let eliminate_strong_all_used_not_by #kt #vt (r: repr_t kt vt) (k: kt) (i: nat{i < r.sz})
: Lemma (requires strong_all_used_not_by r (canonical_index k r) r.sz k)
(ensures Used? (r @@ i) /\ Used?.k (r @@ i) <> k) =
| let j = canonical_index k r in
if (j < i)
then
(assert (i == (j + (i - j)) % r.sz);
assert (Used? (r @@ i)))
else
(let k = ((r.sz - j) + i) in
assert (i == (j + k) % r.sz);
if (k < r.sz)
then (assert (Used? (r @@ i)))
else
(assert (i == (j + 0) % r.sz);
assert (Used? (r @@ ((j + 0)... | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.validate_sum_aux_payload_if' | val validate_sum_aux_payload_if'
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: maybe_enum_key (sum_enum t))
(cond: bool)
(ift: ((cond_true cond) -> Tot (validate_sum_aux_payload_t t pc k)))
(iff: ((cond_false cond) -> Tot (validate_sum_aux... | val validate_sum_aux_payload_if'
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: maybe_enum_key (sum_enum t))
(cond: bool)
(ift: ((cond_true cond) -> Tot (validate_sum_aux_payload_t t pc k)))
(iff: ((cond_false cond) -> Tot (validate_sum_aux... | let validate_sum_aux_payload_if'
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: maybe_enum_key (sum_enum t))
(cond: bool)
(ift: ((cond_true cond) -> Tot (validate_sum_aux_payload_t t pc k)))
(iff: ((cond_false cond) -> Tot (validate_sum_aux_payload_t t pc k)))
:... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 59,
"end_line": 116,
"start_col": 0,
"start_line": 103
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "F... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
t: LowParse.Spec.Sum.sum ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
k: LowParse.Spec.Enum.maybe_enum_key (LowParse.Spec.Sum.sum_enum t) ->
cond: P... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Spec.Enum.maybe_enum_key",
"LowParse.Spec.Sum.sum_key_type",
"LowParse.Spec.Sum.sum_repr_type",
"LowParse.Spec.Sum.su... | [] | false | false | false | false | false | let validate_sum_aux_payload_if'
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: maybe_enum_key (sum_enum t))
(cond: bool)
(ift: ((cond_true cond) -> Tot (validate_sum_aux_payload_t t pc k)))
(iff: ((cond_false cond) -> Tot (validate_sum_aux... | fun #rrel #rel input pos ->
if cond
then (ift () <: validate_sum_aux_payload_t t pc k) input pos
else (iff () <: validate_sum_aux_payload_t t pc k) input pos | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.jump_sum_cases | val jump_sum_cases
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(vc: (x: sum_key t -> Tot (jumper (dsnd (pc x)))))
(destr: dep_enum_destr (sum_enum t) (jump_sum_cases_t t pc))
(k: sum_key t)
: Tot (jumper (parse_sum_cases t pc k)) | val jump_sum_cases
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(vc: (x: sum_key t -> Tot (jumper (dsnd (pc x)))))
(destr: dep_enum_destr (sum_enum t) (jump_sum_cases_t t pc))
(k: sum_key t)
: Tot (jumper (parse_sum_cases t pc k)) | let jump_sum_cases
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(vc: ((x: sum_key t) -> Tot (jumper (dsnd (pc x)))))
(destr: dep_enum_destr (sum_enum t) (jump_sum_cases_t t pc))
(k: sum_key t)
: Tot (jumper (parse_sum_cases t pc k))
= destr
_
(jump_sum_case... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 5,
"end_line": 333,
"start_col": 0,
"start_line": 320
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"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 |
t: LowParse.Spec.Sum.sum ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
vc: (x: LowParse.Spec.Sum.sum_key t -> LowParse.Low.Base.jumper (FStar.Pervasives.... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Low.Base.jumper",
"Prims.__proj__Mkdtuple2__item___1",
"FStar.Pervasives.dsnd",
"LowParse.Spec.Enum.dep_enum_destr",
... | [] | false | false | false | false | false | let jump_sum_cases
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(vc: (x: sum_key t -> Tot (jumper (dsnd (pc x)))))
(destr: dep_enum_destr (sum_enum t) (jump_sum_cases_t t pc))
(k: sum_key t)
: Tot (jumper (parse_sum_cases t pc k)) =
| destr _
(jump_sum_cases_t_if t pc)
(fun _ _ -> ())
(fun _ _ _ _ -> ())
(jump_sum_cases_aux t pc vc)
k | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.clens_sum_tag | val clens_sum_tag (s: sum) : Tot (clens (sum_type s) (sum_key s)) | val clens_sum_tag (s: sum) : Tot (clens (sum_type s) (sum_key s)) | let clens_sum_tag
(s: sum)
: Tot (clens (sum_type s) (sum_key s))
= {
clens_cond = (fun _ -> True);
clens_get = sum_tag_of_data s;
} | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 760,
"start_col": 0,
"start_line": 754
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: LowParse.Spec.Sum.sum
-> LowParse.Low.Base.Spec.clens (LowParse.Spec.Sum.sum_type s) (LowParse.Spec.Sum.sum_key s) | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Low.Base.Spec.Mkclens",
"LowParse.Spec.Sum.sum_type",
"LowParse.Spec.Sum.sum_key",
"Prims.l_True",
"LowParse.Spec.Sum.sum_tag_of_data",
"LowParse.Low.Base.Spec.clens"
] | [] | false | false | false | false | false | let clens_sum_tag (s: sum) : Tot (clens (sum_type s) (sum_key s)) =
| { clens_cond = (fun _ -> True); clens_get = sum_tag_of_data s } | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.gaccessor_sum_tag | val gaccessor_sum_tag
(t: sum)
(#kt: parser_kind)
(p: parser kt (sum_repr_type t))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
: Tot (gaccessor (parse_sum t p pc) (parse_enum_key p (sum_enum t)) (clens_sum_tag t)) | val gaccessor_sum_tag
(t: sum)
(#kt: parser_kind)
(p: parser kt (sum_repr_type t))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
: Tot (gaccessor (parse_sum t p pc) (parse_enum_key p (sum_enum t)) (clens_sum_tag t)) | let gaccessor_sum_tag
(t: sum)
(#kt: parser_kind)
(p: parser kt (sum_repr_type t))
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
: Tot (gaccessor (parse_sum t p pc) (parse_enum_key p (sum_enum t)) (clens_sum_tag t))
= gaccessor_tagged_union_tag
(parse_enum_key p (sum_enum t... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 26,
"end_line": 771,
"start_col": 0,
"start_line": 762
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"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 |
t: LowParse.Spec.Sum.sum ->
p: LowParse.Spec.Base.parser kt (LowParse.Spec.Sum.sum_repr_type t) ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x)))
-> LowParse.... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_repr_type",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Low.Combinators.gaccessor_tagged_union_tag",
"LowParse.Spec.Combinators.parse_filter... | [] | false | false | false | false | false | let gaccessor_sum_tag
(t: sum)
(#kt: parser_kind)
(p: parser kt (sum_repr_type t))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
: Tot (gaccessor (parse_sum t p pc) (parse_enum_key p (sum_enum t)) (clens_sum_tag t)) =
| gaccessor_tagged_union_tag (parse_enum_key p (sum_enum t))
(sum_tag_of_data t)
(parse_sum_cases t pc) | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.jump_sum_cases_t_if | val jump_sum_cases_t_if
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
: Tot (if_combinator _ (jump_sum_cases_t_eq t pc k)) | val jump_sum_cases_t_if
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
: Tot (if_combinator _ (jump_sum_cases_t_eq t pc k)) | let jump_sum_cases_t_if
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
: Tot (if_combinator _ (jump_sum_cases_t_eq t pc k))
= fun cond (sv_true: cond_true cond -> Tot (jump_sum_cases_t t pc k)) (sv_false: cond_false cond -> Tot (jump_sum_cases_t t pc k)) #r... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 28,
"end_line": 317,
"start_col": 0,
"start_line": 309
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"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 |
t: LowParse.Spec.Sum.sum ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
k: LowParse.Spec.Sum.sum_key t
-> LowParse.Spec.Enum.if_combinator (LowParse.Low... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_type_of_tag",
"Prims.bool",
"LowParse.Spec.Combinators.cond_true",
"LowParse.Low.Sum.jump_sum_cases_t",
"LowParse.Spec.Combinators.cond_false... | [] | false | false | false | false | false | let jump_sum_cases_t_if
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
: Tot (if_combinator _ (jump_sum_cases_t_eq t pc k)) =
| fun
cond
(sv_true: (cond_true cond -> Tot (jump_sum_cases_t t pc k)))
(sv_false: (cond_false cond -> Tot (jump_sum_cases_t t pc k)))
#rrel
#rel
input
pos
->
if cond then sv_true () input pos else sv_false () input pos | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.accessor_sum_tag | val accessor_sum_tag
(t: sum)
(#kt: parser_kind)
(p: parser kt (sum_repr_type t))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
: Tot (accessor (gaccessor_sum_tag t p pc)) | val accessor_sum_tag
(t: sum)
(#kt: parser_kind)
(p: parser kt (sum_repr_type t))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
: Tot (accessor (gaccessor_sum_tag t p pc)) | let accessor_sum_tag
(t: sum)
(#kt: parser_kind)
(p: parser kt (sum_repr_type t))
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
: Tot (accessor (gaccessor_sum_tag t p pc))
= accessor_tagged_union_tag
(parse_enum_key p (sum_enum t))
(sum_tag_of_data t)
(parse_sum_cas... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 26,
"end_line": 783,
"start_col": 0,
"start_line": 774
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"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 |
t: LowParse.Spec.Sum.sum ->
p: LowParse.Spec.Base.parser kt (LowParse.Spec.Sum.sum_repr_type t) ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x)))
-> LowParse.... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_repr_type",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Low.Combinators.accessor_tagged_union_tag",
"LowParse.Spec.Combinators.parse_filter_... | [] | false | false | false | false | false | let accessor_sum_tag
(t: sum)
(#kt: parser_kind)
(p: parser kt (sum_repr_type t))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
: Tot (accessor (gaccessor_sum_tag t p pc)) =
| accessor_tagged_union_tag (parse_enum_key p (sum_enum t)) (sum_tag_of_data t) (parse_sum_cases t pc) | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.jump_sum_aux_payload_if' | val jump_sum_aux_payload_if'
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: maybe_enum_key (sum_enum t))
(cond: bool)
(ift: ((cond_true cond) -> Tot (jump_sum_aux_payload_t t pc k)))
(iff: ((cond_false cond) -> Tot (jump_sum_aux_payload_t t... | val jump_sum_aux_payload_if'
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: maybe_enum_key (sum_enum t))
(cond: bool)
(ift: ((cond_true cond) -> Tot (jump_sum_aux_payload_t t pc k)))
(iff: ((cond_false cond) -> Tot (jump_sum_aux_payload_t t... | let jump_sum_aux_payload_if'
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: maybe_enum_key (sum_enum t))
(cond: bool)
(ift: ((cond_true cond) -> Tot (jump_sum_aux_payload_t t pc k)))
(iff: ((cond_false cond) -> Tot (jump_sum_aux_payload_t t pc k)))
: Tot (jump_s... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 55,
"end_line": 379,
"start_col": 0,
"start_line": 366
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"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 |
t: LowParse.Spec.Sum.sum ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
k: LowParse.Spec.Enum.maybe_enum_key (LowParse.Spec.Sum.sum_enum t) ->
cond: P... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Spec.Enum.maybe_enum_key",
"LowParse.Spec.Sum.sum_key_type",
"LowParse.Spec.Sum.sum_repr_type",
"LowParse.Spec.Sum.su... | [] | false | false | false | false | false | let jump_sum_aux_payload_if'
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: maybe_enum_key (sum_enum t))
(cond: bool)
(ift: ((cond_true cond) -> Tot (jump_sum_aux_payload_t t pc k)))
(iff: ((cond_false cond) -> Tot (jump_sum_aux_payload_t t... | fun #rrel #rel input pos ->
if cond
then (ift () <: jump_sum_aux_payload_t t pc k) input pos
else (iff () <: jump_sum_aux_payload_t t pc k) input pos | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.read_sum_cases' | val read_sum_cases'
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: (x: sum_key t -> Tot (leaf_reader (dsnd (pc x)))))
(k: sum_key t)
: Tot (leaf_reader (parse_sum_cases' t pc k)) | val read_sum_cases'
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: (x: sum_key t -> Tot (leaf_reader (dsnd (pc x)))))
(k: sum_key t)
: Tot (leaf_reader (parse_sum_cases' t pc k)) | let read_sum_cases'
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: ((x: sum_key t) -> Tot (leaf_reader (dsnd (pc x)))))
(k: sum_key t)
: Tot (leaf_reader (parse_sum_cases' t pc k))
= [@inline_let]
let _ = synth_sum_case_injective t k in
read_synth'
... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 14,
"end_line": 595,
"start_col": 0,
"start_line": 583
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"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 |
t: LowParse.Spec.Sum.sum ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
pc32:
(x: LowParse.Spec.Sum.sum_key t
-> LowParse.Low.Base.leaf_re... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Low.Base.leaf_reader",
"Prims.__proj__Mkdtuple2__item___1",
"FStar.Pervasives.dsnd",
"LowParse.Low.Combinators.read_s... | [] | false | false | false | false | false | let read_sum_cases'
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: (x: sum_key t -> Tot (leaf_reader (dsnd (pc x)))))
(k: sum_key t)
: Tot (leaf_reader (parse_sum_cases' t pc k)) =
| [@@ inline_let ]let _ = synth_sum_case_injective t k in
read_synth' (dsnd (pc k)) (synth_sum_case t k) (pc32 k) () | false |
Steel.HigherReference.fst | Steel.HigherReference.atomic_write | val atomic_write (#opened:_) (#a:Type) (#v:erased a) (r:ref a) (x:a)
: SteelAtomicT unit opened (pts_to r full_perm v) (fun _ -> pts_to r full_perm x) | val atomic_write (#opened:_) (#a:Type) (#v:erased a) (r:ref a) (x:a)
: SteelAtomicT unit opened (pts_to r full_perm v) (fun _ -> pts_to r full_perm x) | let atomic_write #opened #a #v r x
= let v_old : erased (fractional a) = Ghost.hide (Some (Ghost.reveal v, full_perm)) in
let v_new : fractional a = Some (x, full_perm) in
rewrite_slprop (pts_to r full_perm v) (RP.pts_to r v_old `star` pure (perm_ok full_perm)) (fun _ -> ());
elim_pure (perm_ok full_perm... | {
"file_name": "lib/steel/Steel.HigherReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 84,
"end_line": 210,
"start_col": 0,
"start_line": 200
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.PCMReference.fsti.checked",
"Steel.PCMFrac.fst.checked",
"Steel.Memory.fsti.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "Mem"
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "RP"
},
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Steel.HigherReference.ref a -> x: a -> Steel.Effect.Atomic.SteelAtomicT Prims.unit | Steel.Effect.Atomic.SteelAtomicT | [] | [] | [
"Steel.Memory.inames",
"FStar.Ghost.erased",
"Steel.HigherReference.ref",
"Steel.Effect.Atomic.rewrite_slprop",
"Steel.PCMReference.pts_to",
"Steel.PCMFrac.fractional",
"Steel.PCMFrac.pcm_frac",
"Steel.HigherReference.pts_to",
"Steel.FractionalPermission.full_perm",
"Steel.Memory.mem",
"Steel.Me... | [] | false | true | false | false | false | let atomic_write #opened #a #v r x =
| let v_old:erased (fractional a) = Ghost.hide (Some (Ghost.reveal v, full_perm)) in
let v_new:fractional a = Some (x, full_perm) in
rewrite_slprop (pts_to r full_perm v)
((RP.pts_to r v_old) `star` (pure (perm_ok full_perm)))
(fun _ -> ());
elim_pure (perm_ok full_perm);
RP.atomic_write r v_old v_new;
rewrite_slprop... | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.jump_sum_aux_payload_if | val jump_sum_aux_payload_if
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: maybe_enum_key (sum_enum t))
: Tot (if_combinator _ (jump_sum_aux_payload_eq t pc k)) | val jump_sum_aux_payload_if
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: maybe_enum_key (sum_enum t))
: Tot (if_combinator _ (jump_sum_aux_payload_eq t pc k)) | let jump_sum_aux_payload_if
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: maybe_enum_key (sum_enum t))
: Tot (if_combinator _ (jump_sum_aux_payload_eq t pc k))
= jump_sum_aux_payload_if' t pc k | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 33,
"end_line": 387,
"start_col": 0,
"start_line": 382
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"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 |
t: LowParse.Spec.Sum.sum ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
k: LowParse.Spec.Enum.maybe_enum_key (LowParse.Spec.Sum.sum_enum t)
-> LowParse.... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Spec.Enum.maybe_enum_key",
"LowParse.Spec.Sum.sum_key_type",
"LowParse.Spec.Sum.sum_repr_type",
"LowParse.Spec.Sum.su... | [] | false | false | false | false | false | let jump_sum_aux_payload_if
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: maybe_enum_key (sum_enum t))
: Tot (if_combinator _ (jump_sum_aux_payload_eq t pc k)) =
| jump_sum_aux_payload_if' t pc k | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.accessor_clens_sum_payload | val accessor_clens_sum_payload
(t: sum)
(#kt: parser_kind)
(#p: parser kt (sum_repr_type t))
(j: jumper p)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
: Tot (accessor (gaccessor_clens_sum_payload t p pc k)) | val accessor_clens_sum_payload
(t: sum)
(#kt: parser_kind)
(#p: parser kt (sum_repr_type t))
(j: jumper p)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
: Tot (accessor (gaccessor_clens_sum_payload t p pc k)) | let accessor_clens_sum_payload
(t: sum)
(#kt: parser_kind)
(#p: parser kt (sum_repr_type t))
(j: jumper p)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
: Tot (accessor (gaccessor_clens_sum_payload t p pc k))
= fun #rrel #rel -> accessor_clens_sum_payload' t ... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 67,
"end_line": 915,
"start_col": 0,
"start_line": 907
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"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 |
t: LowParse.Spec.Sum.sum ->
j: LowParse.Low.Base.jumper p ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
k: LowParse.Spec.Sum.sum_key t
-> LowParse.... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_repr_type",
"LowParse.Low.Base.jumper",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Low.Su... | [] | false | false | false | false | false | let accessor_clens_sum_payload
(t: sum)
(#kt: parser_kind)
(#p: parser kt (sum_repr_type t))
(j: jumper p)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
: Tot (accessor (gaccessor_clens_sum_payload t p pc k)) =
| fun #rrel #rel -> accessor_clens_sum_payload' t j pc k #rrel #rel | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.parse_sum_eq3 | val parse_sum_eq3
(#kt: parser_kind)
(t: sum)
(p: parser kt (sum_repr_type t))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(input: bytes)
(k': sum_repr_type t)
(consumed_k: consumed_length input)
: Lemma
(requires (Some? (parse (parse... | val parse_sum_eq3
(#kt: parser_kind)
(t: sum)
(p: parser kt (sum_repr_type t))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(input: bytes)
(k': sum_repr_type t)
(consumed_k: consumed_length input)
: Lemma
(requires (Some? (parse (parse... | let parse_sum_eq3
(#kt: parser_kind)
(t: sum)
(p: parser kt (sum_repr_type t))
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(input: bytes)
(k' : sum_repr_type t)
(consumed_k: consumed_length input)
: Lemma
(requires (Some? (parse (parse_sum t p pc) input) /\ parse p in... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 29,
"end_line": 408,
"start_col": 0,
"start_line": 389
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"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 |
t: LowParse.Spec.Sum.sum ->
p: LowParse.Spec.Base.parser kt (LowParse.Spec.Sum.sum_repr_type t) ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
input: ... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_repr_type",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Bytes.bytes",
"LowParse.Spec.Base.consumed_length",
"LowParse.Spec.Sum.parse_sum_e... | [] | true | false | true | false | false | let parse_sum_eq3
(#kt: parser_kind)
(t: sum)
(p: parser kt (sum_repr_type t))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(input: bytes)
(k': sum_repr_type t)
(consumed_k: consumed_length input)
: Lemma
(requires (Some? (parse (parse... | parse_sum_eq'' t p pc input | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.read_sum_tag | val read_sum_tag
(t: sum)
(#kt: parser_kind)
(#p: parser kt (sum_repr_type t))
(p32: leaf_reader p)
(destr: dep_maybe_enum_destr_t (sum_enum t) (read_enum_key_t (sum_enum t)))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(#rrel #rel: _)
(i... | val read_sum_tag
(t: sum)
(#kt: parser_kind)
(#p: parser kt (sum_repr_type t))
(p32: leaf_reader p)
(destr: dep_maybe_enum_destr_t (sum_enum t) (read_enum_key_t (sum_enum t)))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(#rrel #rel: _)
(i... | let read_sum_tag
(t: sum)
(#kt: parser_kind)
(#p: parser kt (sum_repr_type t))
(p32: leaf_reader p)
(destr: dep_maybe_enum_destr_t (sum_enum t) (read_enum_key_t (sum_enum t)))
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(#rrel #rel: _)
(input: slice rrel rel)
(pos: ... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 48,
"end_line": 524,
"start_col": 0,
"start_line": 504
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"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 |
t: LowParse.Spec.Sum.sum ->
p32: LowParse.Low.Base.leaf_reader p ->
destr:
LowParse.Spec.Enum.dep_maybe_enum_destr_t (LowParse.Spec.Sum.sum_enum t)
(LowParse.Low.Enum.read_enum_key_t (LowParse.Spec.Sum.sum_enum t)) ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 Lo... | FStar.HyperStack.ST.Stack | [] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_repr_type",
"LowParse.Low.Base.leaf_reader",
"LowParse.Spec.Enum.dep_maybe_enum_destr_t",
"LowParse.Spec.Sum.sum_key_type",
"LowParse.Spec.Sum.sum_enum",
"LowParse.Low.Enum.read_enum_key_t"... | [] | false | true | false | false | false | let read_sum_tag
(t: sum)
(#kt: parser_kind)
(#p: parser kt (sum_repr_type t))
(p32: leaf_reader p)
(destr: dep_maybe_enum_destr_t (sum_enum t) (read_enum_key_t (sum_enum t)))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(#rrel #rel: _)
(i... | let h = HST.get () in
[@@ inline_let ]let _ = valid_sum_elim_tag h t p pc input pos in
read_enum_key p32 (sum_enum t) destr input pos | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.read_sum_cases | val read_sum_cases
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: (x: sum_key t -> Tot (leaf_reader (dsnd (pc x)))))
(destr: dep_enum_destr (sum_enum t) (read_sum_cases_t t pc))
(k: sum_key t)
: Tot (leaf_reader (parse_sum_cases' t pc k)) | val read_sum_cases
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: (x: sum_key t -> Tot (leaf_reader (dsnd (pc x)))))
(destr: dep_enum_destr (sum_enum t) (read_sum_cases_t t pc))
(k: sum_key t)
: Tot (leaf_reader (parse_sum_cases' t pc k)) | let read_sum_cases
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: ((x: sum_key t) -> Tot (leaf_reader (dsnd (pc x)))))
(destr: dep_enum_destr (sum_enum t) (read_sum_cases_t t pc))
(k: sum_key t)
: Tot (leaf_reader (parse_sum_cases' t pc k))
= destr
_
(... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 5,
"end_line": 638,
"start_col": 0,
"start_line": 625
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"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 |
t: LowParse.Spec.Sum.sum ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
pc32:
(x: LowParse.Spec.Sum.sum_key t
-> LowParse.Low.Base.leaf_re... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Low.Base.leaf_reader",
"Prims.__proj__Mkdtuple2__item___1",
"FStar.Pervasives.dsnd",
"LowParse.Spec.Enum.dep_enum_des... | [] | false | false | false | false | false | let read_sum_cases
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: (x: sum_key t -> Tot (leaf_reader (dsnd (pc x)))))
(destr: dep_enum_destr (sum_enum t) (read_sum_cases_t t pc))
(k: sum_key t)
: Tot (leaf_reader (parse_sum_cases' t pc k)) ... | destr _ (read_sum_cases_t_if t pc) (fun _ _ -> ()) (fun _ _ _ _ -> ()) (read_sum_cases' t pc pc32) k | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.jump_sum_cases_aux | val jump_sum_cases_aux
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(vc: (x: sum_key t -> Tot (jumper (dsnd (pc x)))))
(k: sum_key t)
: Tot (jumper (parse_sum_cases t pc k)) | val jump_sum_cases_aux
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(vc: (x: sum_key t -> Tot (jumper (dsnd (pc x)))))
(k: sum_key t)
: Tot (jumper (parse_sum_cases t pc k)) | let jump_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(vc: ((x: sum_key t) -> Tot (jumper (dsnd (pc x)))))
(k: sum_key t)
: Tot (jumper (parse_sum_cases t pc k))
= [@inline_let]
let _ = synth_sum_case_injective t k in
jump_synth
(jump_weaken
... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 6,
"end_line": 290,
"start_col": 0,
"start_line": 275
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"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 |
t: LowParse.Spec.Sum.sum ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
vc: (x: LowParse.Spec.Sum.sum_key t -> LowParse.Low.Base.jumper (FStar.Pervasives.... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Low.Base.jumper",
"Prims.__proj__Mkdtuple2__item___1",
"FStar.Pervasives.dsnd",
"LowParse.Low.Combinators.jump_synth"... | [] | false | false | false | false | false | let jump_sum_cases_aux
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(vc: (x: sum_key t -> Tot (jumper (dsnd (pc x)))))
(k: sum_key t)
: Tot (jumper (parse_sum_cases t pc k)) =
| [@@ inline_let ]let _ = synth_sum_case_injective t k in
jump_synth (jump_weaken (weaken_parse_cases_kind t pc) (vc k) ()) (synth_sum_case t k) () | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.clens_sum_cases_payload | val clens_sum_cases_payload (s: sum) (k: sum_key s)
: Tot (clens (sum_cases s k) (sum_type_of_tag s k)) | val clens_sum_cases_payload (s: sum) (k: sum_key s)
: Tot (clens (sum_cases s k) (sum_type_of_tag s k)) | let clens_sum_cases_payload
(s: sum)
(k: sum_key s)
: Tot (clens (sum_cases s k) (sum_type_of_tag s k))
= {
clens_cond = (fun (x: sum_cases s k) -> True);
clens_get = (fun (x: sum_cases s k) -> synth_sum_case_recip s k x <: Ghost (sum_type_of_tag s k) (requires (True)) (ensures (fun _ -> True)));
} | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 924,
"start_col": 0,
"start_line": 917
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: LowParse.Spec.Sum.sum -> k: LowParse.Spec.Sum.sum_key s
-> LowParse.Low.Base.Spec.clens (LowParse.Spec.Sum.sum_cases s k)
(LowParse.Spec.Sum.sum_type_of_tag s k) | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Sum.sum_key",
"LowParse.Low.Base.Spec.Mkclens",
"LowParse.Spec.Sum.sum_cases",
"LowParse.Spec.Sum.sum_type_of_tag",
"Prims.l_True",
"LowParse.Spec.Sum.synth_sum_case_recip",
"LowParse.Low.Base.Spec.clens"
] | [] | false | false | false | false | false | let clens_sum_cases_payload (s: sum) (k: sum_key s)
: Tot (clens (sum_cases s k) (sum_type_of_tag s k)) =
| {
clens_cond = (fun (x: sum_cases s k) -> True);
clens_get
=
(fun (x: sum_cases s k) ->
synth_sum_case_recip s k x
<:
Ghost (sum_type_of_tag s k) (requires (True)) (ensures (fun _ -> True)))
} | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.jump_sum_aux_payload | val jump_sum_aux_payload
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: (x: sum_key t -> Tot (jumper (dsnd (pc x)))))
(destr: dep_maybe_enum_destr_t (sum_enum t) (jump_sum_aux_payload_t t pc))
(k: sum_repr_type t)
: Tot (jump_sum_aux_paylo... | val jump_sum_aux_payload
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: (x: sum_key t -> Tot (jumper (dsnd (pc x)))))
(destr: dep_maybe_enum_destr_t (sum_enum t) (jump_sum_aux_payload_t t pc))
(k: sum_repr_type t)
: Tot (jump_sum_aux_paylo... | let jump_sum_aux_payload
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: ((x: sum_key t) -> Tot (jumper (dsnd (pc x)))))
(destr: dep_maybe_enum_destr_t (sum_enum t) (jump_sum_aux_payload_t t pc))
(k: sum_repr_type t)
: Tot (jump_sum_aux_payload_t t pc (maybe_enu... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 141,
"end_line": 567,
"start_col": 0,
"start_line": 560
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"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 |
t: LowParse.Spec.Sum.sum ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
pc32:
(x: LowParse.Spec.Sum.sum_key t -> LowParse.Low.Base.jumper (FStar.Per... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Low.Base.jumper",
"Prims.__proj__Mkdtuple2__item___1",
"FStar.Pervasives.dsnd",
"LowParse.Spec.Enum.dep_maybe_enum_de... | [] | false | false | false | false | false | let jump_sum_aux_payload
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: (x: sum_key t -> Tot (jumper (dsnd (pc x)))))
(destr: dep_maybe_enum_destr_t (sum_enum t) (jump_sum_aux_payload_t t pc))
(k: sum_repr_type t)
: Tot (jump_sum_aux_paylo... | destr (jump_sum_aux_payload_eq t pc)
(jump_sum_aux_payload_if t pc)
(fun _ _ -> ())
(fun _ _ _ _ -> ())
(jump_sum_aux_payload' t pc pc32)
k | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.jump_sum_aux_payload' | val jump_sum_aux_payload'
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: (x: sum_key t -> Tot (jumper (dsnd (pc x)))))
(k: maybe_enum_key (sum_enum t))
: Tot (jump_sum_aux_payload_t t pc k) | val jump_sum_aux_payload'
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: (x: sum_key t -> Tot (jumper (dsnd (pc x)))))
(k: maybe_enum_key (sum_enum t))
: Tot (jump_sum_aux_payload_t t pc k) | let jump_sum_aux_payload'
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: ((x: sum_key t) -> Tot (jumper (dsnd (pc x)))))
(k: maybe_enum_key (sum_enum t))
: Tot (jump_sum_aux_payload_t t pc k)
= fun #rrel #rel input pos ->
match k with
| Known k ->
[... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 14,
"end_line": 557,
"start_col": 0,
"start_line": 545
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"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 |
t: LowParse.Spec.Sum.sum ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
pc32:
(x: LowParse.Spec.Sum.sum_key t -> LowParse.Low.Base.jumper (FStar.Per... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Low.Base.jumper",
"Prims.__proj__Mkdtuple2__item___1",
"FStar.Pervasives.dsnd",
"LowParse.Spec.Enum.maybe_enum_key",
... | [] | false | false | false | false | false | let jump_sum_aux_payload'
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(pc32: (x: sum_key t -> Tot (jumper (dsnd (pc x)))))
(k: maybe_enum_key (sum_enum t))
: Tot (jump_sum_aux_payload_t t pc k) =
| fun #rrel #rel input pos ->
match k with
| Known k ->
[@@ inline_let ]let _ = synth_sum_case_injective t k in
pc32 k input pos
| _ -> 0ul | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.jump_sum_aux | val jump_sum_aux
(t: sum)
(#kt: parser_kind)
(#p: parser kt (sum_repr_type t))
(v: jumper p)
(p32: leaf_reader p)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(v_payload:
(k: sum_repr_type t
-> Tot (jump_sum_aux_payload_t... | val jump_sum_aux
(t: sum)
(#kt: parser_kind)
(#p: parser kt (sum_repr_type t))
(v: jumper p)
(p32: leaf_reader p)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(v_payload:
(k: sum_repr_type t
-> Tot (jump_sum_aux_payload_t... | let jump_sum_aux
(t: sum)
(#kt: parser_kind)
(#p: parser kt (sum_repr_type t))
(v: jumper p)
(p32: leaf_reader p)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(v_payload: ((k: sum_repr_type t)) -> Tot (jump_sum_aux_payload_t t pc (maybe_enum_key_of_repr (sum_enum t) k)))... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 34,
"end_line": 542,
"start_col": 0,
"start_line": 527
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"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 |
t: LowParse.Spec.Sum.sum ->
v: LowParse.Low.Base.jumper p ->
p32: LowParse.Low.Base.leaf_reader p ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
v... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_repr_type",
"LowParse.Low.Base.jumper",
"LowParse.Low.Base.leaf_reader",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Low.Sum.jump_sum_aux_... | [] | false | false | false | false | false | let jump_sum_aux
(t: sum)
(#kt: parser_kind)
(#p: parser kt (sum_repr_type t))
(v: jumper p)
(p32: leaf_reader p)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(v_payload:
(k: sum_repr_type t
-> Tot (jump_sum_aux_payload_t... | fun #rrel #rel input pos ->
let h = HST.get () in
[@@ inline_let ]let _ = valid_sum_elim h t p pc input pos in
let pos_after_tag = v input pos in
let k' = p32 input pos in
v_payload k' input pos_after_tag | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.parse_sum_eq4 | val parse_sum_eq4
(#kt: parser_kind)
(t: sum)
(p: parser kt (sum_repr_type t))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(input: bytes)
(k': sum_repr_type t)
(consumed_k: consumed_length input)
(consumed_payload: nat)
: Lemma
... | val parse_sum_eq4
(#kt: parser_kind)
(t: sum)
(p: parser kt (sum_repr_type t))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(input: bytes)
(k': sum_repr_type t)
(consumed_k: consumed_length input)
(consumed_payload: nat)
: Lemma
... | let parse_sum_eq4
(#kt: parser_kind)
(t: sum)
(p: parser kt (sum_repr_type t))
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(input: bytes)
(k' : sum_repr_type t)
(consumed_k: consumed_length input)
(consumed_payload: nat)
: Lemma
(requires (Some? (parse (parse_sum t ... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 29,
"end_line": 436,
"start_col": 0,
"start_line": 410
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"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 |
t: LowParse.Spec.Sum.sum ->
p: LowParse.Spec.Base.parser kt (LowParse.Spec.Sum.sum_repr_type t) ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
input: ... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_repr_type",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Bytes.bytes",
"LowParse.Spec.Base.consumed_length",
"Prims.nat",
"LowParse.Spec.... | [] | true | false | true | false | false | let parse_sum_eq4
(#kt: parser_kind)
(t: sum)
(p: parser kt (sum_repr_type t))
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(input: bytes)
(k': sum_repr_type t)
(consumed_k: consumed_length input)
(consumed_payload: nat)
: Lemma
... | parse_sum_eq'' t p pc input | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.validate_dsum_cases_eq | val validate_dsum_cases_eq
(s: dsum)
(f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x))))
(#k: parser_kind)
(g: parser k (dsum_type_of_unknown_tag s))
(x: dsum_key s)
(v1 v2: validate_dsum_cases_t s f g x)
: GTot Type0 | val validate_dsum_cases_eq
(s: dsum)
(f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x))))
(#k: parser_kind)
(g: parser k (dsum_type_of_unknown_tag s))
(x: dsum_key s)
(v1 v2: validate_dsum_cases_t s f g x)
: GTot Type0 | let validate_dsum_cases_eq
(s: dsum)
(f: (x: dsum_known_key s) -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x)))
(#k: parser_kind)
(g: parser k (dsum_type_of_unknown_tag s))
(x: dsum_key s)
(v1 v2 : validate_dsum_cases_t s f g x)
: GTot Type0
= True | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 6,
"end_line": 974,
"start_col": 0,
"start_line": 966
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"abbrev": true,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
s: LowParse.Spec.Sum.dsum ->
f:
(x: LowParse.Spec.Sum.dsum_known_key s
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_known_tag s x))) ->
g: LowParse.Spec.Base.parser k (LowParse.Spec.Sum.dsum_type_of_unkno... | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Spec.Sum.dsum",
"LowParse.Spec.Sum.dsum_known_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.dsum_type_of_known_tag",
"LowParse.Spec.Sum.dsum_type_of_unknown_tag",
"LowParse.Spec.Sum.dsum_key",
"LowParse.Low.Sum.validate_dsum_cases_... | [] | false | false | false | false | true | let validate_dsum_cases_eq
(s: dsum)
(f: (x: dsum_known_key s -> Tot (k: parser_kind & parser k (dsum_type_of_known_tag s x))))
(#k: parser_kind)
(g: parser k (dsum_type_of_unknown_tag s))
(x: dsum_key s)
(v1 v2: validate_dsum_cases_t s f g x)
: GTot Type0 =
| True | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.read_sum_cases_t_if | val read_sum_cases_t_if
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
: Tot (if_combinator _ (read_sum_cases_t_eq t pc k)) | val read_sum_cases_t_if
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
: Tot (if_combinator _ (read_sum_cases_t_eq t pc k)) | let read_sum_cases_t_if
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
: Tot (if_combinator _ (read_sum_cases_t_eq t pc k))
= fun cond (sv_true: cond_true cond -> Tot (read_sum_cases_t t pc k)) (sv_false: cond_false cond -> Tot (read_sum_cases_t t pc k)) #_... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 30,
"end_line": 622,
"start_col": 0,
"start_line": 614
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"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 |
t: LowParse.Spec.Sum.sum ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))) ->
k: LowParse.Spec.Sum.sum_key t
-> LowParse.Spec.Enum.if_combinator (LowParse.Low... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_type_of_tag",
"Prims.bool",
"LowParse.Spec.Combinators.cond_true",
"LowParse.Low.Sum.read_sum_cases_t",
"LowParse.Spec.Combinators.cond_false... | [] | false | false | false | false | false | let read_sum_cases_t_if
(t: sum)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(k: sum_key t)
: Tot (if_combinator _ (read_sum_cases_t_eq t pc k)) =
| fun
cond
(sv_true: (cond_true cond -> Tot (read_sum_cases_t t pc k)))
(sv_false: (cond_false cond -> Tot (read_sum_cases_t t pc k)))
#_
#_
input
pos
->
if cond then (sv_true () input pos) else (sv_false () input pos) | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.serialize32_sum_cases_t_if | val serialize32_sum_cases_t_if
(t: sum)
(#pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(sc: (x: sum_key t -> Tot (serializer (dsnd (pc x)))))
(k: sum_key t)
: Tot (if_combinator _ (serialize32_sum_cases_t_eq t sc k)) | val serialize32_sum_cases_t_if
(t: sum)
(#pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(sc: (x: sum_key t -> Tot (serializer (dsnd (pc x)))))
(k: sum_key t)
: Tot (if_combinator _ (serialize32_sum_cases_t_eq t sc k)) | let serialize32_sum_cases_t_if
(t: sum)
(#pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(sc: ((x: sum_key t) -> Tot (serializer (dsnd (pc x)))))
(k: sum_key t)
: Tot (if_combinator _ (serialize32_sum_cases_t_eq t sc k))
= fun cond (sv_true: (cond_true cond -> Tot (serialize32_su... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 28,
"end_line": 694,
"start_col": 0,
"start_line": 685
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"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 |
t: LowParse.Spec.Sum.sum ->
sc:
(x: LowParse.Spec.Sum.sum_key t
-> LowParse.Spec.Base.serializer (FStar.Pervasives.dsnd (pc x))) ->
k: LowParse.Spec.Sum.sum_key t
-> LowParse.Spec.Enum.if_combinator (LowParse.Low.Sum.serialize32_sum_cases_t t sc k)
(LowParse.Low.Sum.serialize32_sum_... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Spec.Base.serializer",
"Prims.__proj__Mkdtuple2__item___1",
"FStar.Pervasives.dsnd",
"Prims.bool",
"LowParse.Spec.C... | [] | false | false | false | false | false | let serialize32_sum_cases_t_if
(t: sum)
(#pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(sc: (x: sum_key t -> Tot (serializer (dsnd (pc x)))))
(k: sum_key t)
: Tot (if_combinator _ (serialize32_sum_cases_t_eq t sc k)) =
| fun
cond
(sv_true: (cond_true cond -> Tot (serialize32_sum_cases_t t sc k)))
(sv_false: (cond_false cond -> Tot (serialize32_sum_cases_t t sc k)))
x
#rrel
#rel
b
pos
->
if cond then (sv_true () x b pos) else (sv_false () x b pos) | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.finalize_sum_case | val finalize_sum_case
(t: sum)
(#kt: parser_kind)
(#p: parser kt (sum_repr_type t))
(s: serializer p)
(w: leaf_writer_strong s)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(destr: enum_repr_of_key'_t (sum_enum t))
(k: sum_key t)
(#r... | val finalize_sum_case
(t: sum)
(#kt: parser_kind)
(#p: parser kt (sum_repr_type t))
(s: serializer p)
(w: leaf_writer_strong s)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(destr: enum_repr_of_key'_t (sum_enum t))
(k: sum_key t)
(#r... | let finalize_sum_case
(t: sum)
(#kt: parser_kind)
(#p: parser kt (sum_repr_type t))
(s: serializer p)
(w: leaf_writer_strong s)
(pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(destr: enum_repr_of_key'_t (sum_enum t))
(k: sum_key t)
(#rrel #rel: _)
(input: slice rrel ... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 4,
"end_line": 272,
"start_col": 0,
"start_line": 242
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"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 |
t: LowParse.Spec.Sum.sum ->
s: LowParse.Spec.Base.serializer p ->
w: LowParse.Low.Base.leaf_writer_strong s ->
pc:
(x: LowParse.Spec.Sum.sum_key t
-> Prims.dtuple2 LowParse.Spec.Base.parser_kind
(fun k -> LowParse.Spec.Base.parser k (LowParse.Spec.Sum.sum_type_of_tag t x))... | FStar.HyperStack.ST.Stack | [] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_repr_type",
"LowParse.Spec.Base.serializer",
"LowParse.Low.Base.leaf_writer_strong",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Spec.Enum... | [] | false | true | false | false | false | let finalize_sum_case
(t: sum)
(#kt: parser_kind)
(#p: parser kt (sum_repr_type t))
(s: serializer p)
(w: leaf_writer_strong s)
(pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(destr: enum_repr_of_key'_t (sum_enum t))
(k: sum_key t)
(#r... | let pos1 = write_enum_key w (sum_enum t) destr k input pos in
let h = HST.get () in
[@@ inline_let ]let _ = valid_sum_intro h t p pc input pos in
() | false |
Steel.HigherReference.fst | Steel.HigherReference.alloc | val alloc (#a:Type) (x:a)
: Steel (ref a) emp (fun r -> pts_to r full_perm x)
(requires fun _ -> True)
(ensures fun _ r _ -> not (is_null r)) | val alloc (#a:Type) (x:a)
: Steel (ref a) emp (fun r -> pts_to r full_perm x)
(requires fun _ -> True)
(ensures fun _ r _ -> not (is_null r)) | let alloc #a x =
let v = Some (x, full_perm) in
assert (FStar.PCM.composable pcm_frac v None);
assert (compatible pcm_frac v v);
let r = RP.alloc v in
rewrite_slprop (RP.pts_to r v) (pts_to r full_perm x)
(fun m ->
emp_unit (hp_of (pts_to_raw r full_perm x));
pure_star_interp (hp_of (pts_to_ra... | {
"file_name": "lib/steel/Steel.HigherReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 11,
"end_line": 144,
"start_col": 0,
"start_line": 132
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.PCMReference.fsti.checked",
"Steel.PCMFrac.fst.checked",
"Steel.Memory.fsti.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Pervasives.Native.fst.checked"... | [
{
"abbrev": true,
"full_module": "Steel.Memory",
"short_module": "Mem"
},
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "RP"
},
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: a -> Steel.Effect.Steel (Steel.HigherReference.ref a) | Steel.Effect.Steel | [] | [] | [
"Steel.Effect.Atomic.return",
"Steel.HigherReference.ref",
"FStar.Ghost.hide",
"FStar.Set.set",
"Steel.Memory.iname",
"FStar.Set.empty",
"Steel.HigherReference.pts_to",
"Steel.FractionalPermission.full_perm",
"Steel.Effect.Common.vprop",
"Prims.unit",
"Steel.Effect.Atomic.extract_info_raw",
"P... | [] | false | true | false | false | false | let alloc #a x =
| let v = Some (x, full_perm) in
assert (FStar.PCM.composable pcm_frac v None);
assert (compatible pcm_frac v v);
let r = RP.alloc v in
rewrite_slprop (RP.pts_to r v)
(pts_to r full_perm x)
(fun m ->
emp_unit (hp_of (pts_to_raw r full_perm x));
pure_star_interp (hp_of (pts_to_raw r full_perm x)) (perm_ok ... | false |
LowParse.Low.Sum.fst | LowParse.Low.Sum.serialize32_sum_cases_aux | val serialize32_sum_cases_aux
(t: sum)
(#pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(sc: (x: sum_key t -> Tot (serializer (dsnd (pc x)))))
(sc32: (x: sum_key t -> Tot (serializer32 (sc x))))
(k: sum_key t)
: Tot (serializer32 (serialize_sum_cases t pc ... | val serialize32_sum_cases_aux
(t: sum)
(#pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(sc: (x: sum_key t -> Tot (serializer (dsnd (pc x)))))
(sc32: (x: sum_key t -> Tot (serializer32 (sc x))))
(k: sum_key t)
: Tot (serializer32 (serialize_sum_cases t pc ... | let serialize32_sum_cases_aux
(t: sum)
(#pc: ((x: sum_key t) -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(sc: ((x: sum_key t) -> Tot (serializer (dsnd (pc x)))))
(sc32: ((x: sum_key t) -> Tot (serializer32 (sc x))))
(k: sum_key t)
: Tot (serializer32 (serialize_sum_cases t pc sc k))
= fun x #rr... | {
"file_name": "src/lowparse/LowParse.Low.Sum.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 7,
"end_line": 718,
"start_col": 0,
"start_line": 697
} | module LowParse.Low.Sum
include LowParse.Low.Enum
include LowParse.Spec.Sum
module U32 = FStar.UInt32
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module Cast = FStar.Int.Cast
module U64 = FStar.UInt64
inline_for_extraction
let validate_sum_cases_aux
(t: sum)
(pc: ((x: sum_key t) -> Tot (k: parser_k... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Sum.fst.checked",
"LowParse.Low.Enum.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack",
"short_module": "HS"
},
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.Int.Cast",
"short_module": "Cast"
},
{
"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 |
t: LowParse.Spec.Sum.sum ->
sc:
(x: LowParse.Spec.Sum.sum_key t
-> LowParse.Spec.Base.serializer (FStar.Pervasives.dsnd (pc x))) ->
sc32: (x: LowParse.Spec.Sum.sum_key t -> LowParse.Low.Base.serializer32 (sc x)) ->
k: LowParse.Spec.Sum.sum_key t
-> LowParse.Low.Base.serializer32 (LowP... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Sum.sum",
"LowParse.Spec.Sum.sum_key",
"Prims.dtuple2",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Sum.sum_type_of_tag",
"LowParse.Spec.Base.serializer",
"Prims.__proj__Mkdtuple2__item___1",
"FStar.Pervasives.dsnd",
"LowParse.Low.Base.serializer32"... | [] | false | false | false | false | false | let serialize32_sum_cases_aux
(t: sum)
(#pc: (x: sum_key t -> Tot (k: parser_kind & parser k (sum_type_of_tag t x))))
(sc: (x: sum_key t -> Tot (serializer (dsnd (pc x)))))
(sc32: (x: sum_key t -> Tot (serializer32 (sc x))))
(k: sum_key t)
: Tot (serializer32 (serialize_sum_cases t pc ... | fun x #rrel #rel b pos ->
[@@ inline_let ]let _ =
Classical.forall_intro (parse_sum_cases_eq' t pc k);
synth_sum_case_injective t k;
synth_sum_case_inverse t k
in
serialize32_synth (sc32 k)
(synth_sum_case t k)
(synth_sum_case_recip t k)
(fun x -> synth_sum_case_recip t k x)
()
x
... | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.