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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Pulse.Syntax.Printer.fst | Pulse.Syntax.Printer.effect_annot_to_string | val effect_annot_to_string (e:effect_annot) : T.Tac string | val effect_annot_to_string (e:effect_annot) : T.Tac string | let effect_annot_to_string = function
| EffectAnnotSTT -> "stt"
| EffectAnnotGhost -> "stt_ghost"
| EffectAnnotAtomic { opens } -> sprintf "stt_atomic %s" (term_to_string opens) | {
"file_name": "lib/steel/pulse/Pulse.Syntax.Printer.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 81,
"end_line": 191,
"start_col": 0,
"start_line": 188
} | (*
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.Syntax.Base.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.String.fsti.checked",
"FStar.Sealed.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checke... | [
{
"abbrev": true,
"full_module": "FStar.Sealed",
"short_module": "Un"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.Printf",
"short_module": null
},
{
"abbrev": false,
"full_module": "FSta... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | e: Pulse.Syntax.Base.effect_annot -> FStar.Tactics.Effect.Tac Prims.string | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Syntax.Base.effect_annot",
"Prims.string",
"Pulse.Syntax.Base.term",
"FStar.Printf.sprintf",
"Pulse.Syntax.Printer.term_to_string"
] | [] | false | true | false | false | false | let effect_annot_to_string =
| function
| EffectAnnotSTT -> "stt"
| EffectAnnotGhost -> "stt_ghost"
| EffectAnnotAtomic { opens = opens } -> sprintf "stt_atomic %s" (term_to_string opens) | false |
Pulse.Syntax.Printer.fst | Pulse.Syntax.Printer.observability_to_string | val observability_to_string (obs:observability) : string | val observability_to_string (obs:observability) : string | let observability_to_string =
function
| Observable -> "Observable"
| Unobservable -> "Unobservable"
| Neutral -> "Neutral" | {
"file_name": "lib/steel/pulse/Pulse.Syntax.Printer.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 24,
"end_line": 186,
"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.Syntax.Base.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.String.fsti.checked",
"FStar.Sealed.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checke... | [
{
"abbrev": true,
"full_module": "FStar.Sealed",
"short_module": "Un"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.Printf",
"short_module": null
},
{
"abbrev": false,
"full_module": "FSta... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | obs: Pulse.Syntax.Base.observability -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Pulse.Syntax.Base.observability",
"Prims.string"
] | [] | false | false | false | true | false | let observability_to_string =
| function
| Observable -> "Observable"
| Unobservable -> "Unobservable"
| Neutral -> "Neutral" | false |
Pulse.Syntax.Printer.fst | Pulse.Syntax.Printer.tag_of_term | val tag_of_term (t:term) : string | val tag_of_term (t:term) : string | let tag_of_term (t:term) =
match t.t with
| Tm_Emp -> "Tm_Emp"
| Tm_Pure _ -> "Tm_Pure"
| Tm_Star _ _ -> "Tm_Star"
| Tm_ExistsSL _ _ _ -> "Tm_ExistsSL"
| Tm_ForallSL _ _ _ -> "Tm_ForallSL"
| Tm_VProp -> "Tm_VProp"
| Tm_Inames -> "Tm_Inames"
| Tm_EmpInames -> "Tm_EmpInames"
| Tm_Unknown -> "Tm_Unknow... | {
"file_name": "lib/steel/pulse/Pulse.Syntax.Printer.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 24,
"end_line": 447,
"start_col": 0,
"start_line": 434
} | (*
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.Syntax.Base.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.String.fsti.checked",
"FStar.Sealed.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checke... | [
{
"abbrev": true,
"full_module": "FStar.Sealed",
"short_module": "Un"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.Printf",
"short_module": null
},
{
"abbrev": false,
"full_module": "FSta... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: Pulse.Syntax.Base.term -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Pulse.Syntax.Base.term",
"Pulse.Syntax.Base.__proj__Mkterm__item__t",
"Pulse.Syntax.Base.universe",
"Pulse.Syntax.Base.binder",
"Pulse.Syntax.Base.host_term",
"Prims.string"
] | [] | false | false | false | true | false | let tag_of_term (t: term) =
| match t.t with
| Tm_Emp -> "Tm_Emp"
| Tm_Pure _ -> "Tm_Pure"
| Tm_Star _ _ -> "Tm_Star"
| Tm_ExistsSL _ _ _ -> "Tm_ExistsSL"
| Tm_ForallSL _ _ _ -> "Tm_ForallSL"
| Tm_VProp -> "Tm_VProp"
| Tm_Inames -> "Tm_Inames"
| Tm_EmpInames -> "Tm_EmpInames"
| Tm_Unknown -> "Tm_Unknown"
| Tm_FStar _ -> "Tm_FStar"
| Tm_AddInv _ _ -... | false |
Pulse.Syntax.Printer.fst | Pulse.Syntax.Printer.term_opt_to_string | val term_opt_to_string (t: option term) : T.Tac string | val term_opt_to_string (t: option term) : T.Tac string | let term_opt_to_string (t:option term)
: T.Tac string
= match t with
| None -> ""
| Some t -> term_to_string t | {
"file_name": "lib/steel/pulse/Pulse.Syntax.Printer.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 32,
"end_line": 223,
"start_col": 0,
"start_line": 219
} | (*
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.Syntax.Base.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.String.fsti.checked",
"FStar.Sealed.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checke... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module": "FStar.Sealed",
"short_module": "Un"
},
{
"abbrev": true,
"full_module": "FStar.Tactics.V2",
"short_module": "T"
},
{
"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: FStar.Pervasives.Native.option Pulse.Syntax.Base.term -> FStar.Tactics.Effect.Tac Prims.string | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Pervasives.Native.option",
"Pulse.Syntax.Base.term",
"Prims.string",
"Pulse.Syntax.Printer.term_to_string"
] | [] | false | true | false | false | false | let term_opt_to_string (t: option term) : T.Tac string =
| match t with
| None -> ""
| Some t -> term_to_string t | false |
Pulse.Syntax.Printer.fst | Pulse.Syntax.Printer.tag_of_st_term | val tag_of_st_term (t:st_term) : string | val tag_of_st_term (t:st_term) : string | let tag_of_st_term (t:st_term) =
match t.term with
| Tm_Return _ -> "Tm_Return"
| Tm_Abs _ -> "Tm_Abs"
| Tm_STApp _ -> "Tm_STApp"
| Tm_Bind _ -> "Tm_Bind"
| Tm_TotBind _ -> "Tm_TotBind"
| Tm_If _ -> "Tm_If"
| Tm_Match _ -> "Tm_Match"
| Tm_IntroPure _ -> "Tm_IntroPure"
| Tm_ElimExists _ -> "Tm_ElimEx... | {
"file_name": "lib/steel/pulse/Pulse.Syntax.Printer.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 32,
"end_line": 469,
"start_col": 0,
"start_line": 449
} | (*
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.Syntax.Base.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.String.fsti.checked",
"FStar.Sealed.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checke... | [
{
"abbrev": true,
"full_module": "FStar.Sealed",
"short_module": "Un"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.Printf",
"short_module": null
},
{
"abbrev": false,
"full_module": "FSta... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: Pulse.Syntax.Base.st_term -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Pulse.Syntax.Base.st_term",
"Pulse.Syntax.Base.__proj__Mkst_term__item__term",
"Pulse.Syntax.Base.st_term'__Tm_Return__payload",
"Pulse.Syntax.Base.st_term'__Tm_Abs__payload",
"Pulse.Syntax.Base.st_term'__Tm_STApp__payload",
"Pulse.Syntax.Base.st_term'__Tm_Bind__payload",
"Pulse.Syntax.Base.st_term'__T... | [] | false | false | false | true | false | let tag_of_st_term (t: st_term) =
| match t.term with
| Tm_Return _ -> "Tm_Return"
| Tm_Abs _ -> "Tm_Abs"
| Tm_STApp _ -> "Tm_STApp"
| Tm_Bind _ -> "Tm_Bind"
| Tm_TotBind _ -> "Tm_TotBind"
| Tm_If _ -> "Tm_If"
| Tm_Match _ -> "Tm_Match"
| Tm_IntroPure _ -> "Tm_IntroPure"
| Tm_ElimExists _ -> "Tm_ElimExists"
| Tm_IntroExists _ -> "Tm_IntroExists"
| Tm_Whi... | false |
Hacl.Impl.RSAPSS.Padding.fst | Hacl.Impl.RSAPSS.Padding.xor_bytes | val xor_bytes:
len:size_t{v len > 0}
-> b1:lbuffer uint8 len
-> b2:lbuffer uint8 len ->
Stack unit
(requires fun h -> live h b1 /\ live h b2 /\ disjoint b1 b2)
(ensures fun h0 _ h1 -> modifies (loc b1) h0 h1 /\
as_seq h1 b1 == S.xor_bytes (as_seq h0 b1) (as_seq h0 b2)) | val xor_bytes:
len:size_t{v len > 0}
-> b1:lbuffer uint8 len
-> b2:lbuffer uint8 len ->
Stack unit
(requires fun h -> live h b1 /\ live h b2 /\ disjoint b1 b2)
(ensures fun h0 _ h1 -> modifies (loc b1) h0 h1 /\
as_seq h1 b1 == S.xor_bytes (as_seq h0 b1) (as_seq h0 b2)) | let xor_bytes len b1 b2 =
map2T len b1 (fun x y -> x ^. y) b1 b2 | {
"file_name": "code/rsapss/Hacl.Impl.RSAPSS.Padding.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 40,
"end_line": 49,
"start_col": 0,
"start_line": 48
} | module Hacl.Impl.RSAPSS.Padding
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.RSAPSS.MGF
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module Hash = Spec.Agile.Hash
module S = Spec.RSAPSS
module BD = Hacl.Bignum.Definitions
#reset-opti... | {
"checked_file": "/",
"dependencies": [
"Spec.RSAPSS.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"... | [
{
"abbrev": true,
"full_module": "Hacl.Bignum.Definitions",
"short_module": "BD"
},
{
"abbrev": true,
"full_module": "Spec.RSAPSS",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.Agile.Hash",
"short_module": "Hash"
},
{
"abbrev": true,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
len: Lib.IntTypes.size_t{Lib.IntTypes.v len > 0} ->
b1: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len ->
b2: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.IntTypes.size_t",
"Prims.b2t",
"Prims.op_GreaterThan",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"Lib.Buffer.map2T",
"Lib.Buffer.MUT",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Lib.IntTypes.op_Hat_Dot",
... | [] | false | true | false | false | false | let xor_bytes len b1 b2 =
| map2T len b1 (fun x y -> x ^. y) b1 b2 | false |
Pulse.Syntax.Printer.fst | Pulse.Syntax.Printer.tag_of_comp | val tag_of_comp (c:comp): T.Tac string | val tag_of_comp (c:comp): T.Tac string | let tag_of_comp (c:comp) : T.Tac string =
match c with
| C_Tot _ -> "Total"
| C_ST _ -> "ST"
| C_STAtomic i obs _ ->
Printf.sprintf "%s %s" (observability_to_string obs) (term_to_string i)
| C_STGhost _ ->
"Ghost" | {
"file_name": "lib/steel/pulse/Pulse.Syntax.Printer.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 11,
"end_line": 478,
"start_col": 0,
"start_line": 471
} | (*
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.Syntax.Base.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.String.fsti.checked",
"FStar.Sealed.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checke... | [
{
"abbrev": true,
"full_module": "FStar.Sealed",
"short_module": "Un"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.Printf",
"short_module": null
},
{
"abbrev": false,
"full_module": "FSta... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | c: Pulse.Syntax.Base.comp -> FStar.Tactics.Effect.Tac Prims.string | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Syntax.Base.comp",
"Pulse.Syntax.Base.term",
"Prims.string",
"Pulse.Syntax.Base.st_comp",
"Pulse.Syntax.Base.observability",
"FStar.Printf.sprintf",
"Pulse.Syntax.Printer.observability_to_string",
"Pulse.Syntax.Printer.term_to_string"
] | [] | false | true | false | false | false | let tag_of_comp (c: comp) : T.Tac string =
| match c with
| C_Tot _ -> "Total"
| C_ST _ -> "ST"
| C_STAtomic i obs _ -> Printf.sprintf "%s %s" (observability_to_string obs) (term_to_string i)
| C_STGhost _ -> "Ghost" | false |
Vale.AES.X64.GCMdecryptOpt.fst | Vale.AES.X64.GCMdecryptOpt.va_wpProof_Gcm_blocks | val va_wpProof_Gcm_blocks : alg:algorithm -> offset:int -> auth_b:buffer128 -> abytes_b:buffer128
-> in128x6_b:buffer128 -> out128x6_b:buffer128 -> in128_b:buffer128 -> out128_b:buffer128 ->
inout_b:buffer128 -> iv_b:buffer128 -> scratch_b:buffer128 -> key:(seq nat32) -> round_keys:(seq
quad32) -> keys_b:buffer12... | val va_wpProof_Gcm_blocks : alg:algorithm -> offset:int -> auth_b:buffer128 -> abytes_b:buffer128
-> in128x6_b:buffer128 -> out128x6_b:buffer128 -> in128_b:buffer128 -> out128_b:buffer128 ->
inout_b:buffer128 -> iv_b:buffer128 -> scratch_b:buffer128 -> key:(seq nat32) -> round_keys:(seq
quad32) -> keys_b:buffer12... | let va_wpProof_Gcm_blocks alg offset auth_b abytes_b in128x6_b out128x6_b in128_b out128_b inout_b
iv_b scratch_b key round_keys keys_b hkeys_b va_s0 va_k =
let (va_sM, va_f0) = va_lemma_Gcm_blocks (va_code_Gcm_blocks alg offset) va_s0 alg offset auth_b
abytes_b in128x6_b out128x6_b in128_b out128_b inout_b iv_... | {
"file_name": "obj/Vale.AES.X64.GCMdecryptOpt.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 1334,
"start_col": 0,
"start_line": 1306
} | module Vale.AES.X64.GCMdecryptOpt
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open FStar.Seq
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.AES.AES_s
open Vale.AES.GCTR_s
open Vale.AES.GCTR
open Vale.AES.GCM
open Vale.AES.GHash_s
open Vale.AE... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.Stack.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.In... | [
{
"abbrev": false,
"full_module": "Vale.Lib.Basic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.OptPublic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.GCMencryptOpt",
"short_module": null
},
{
"abbrev": false,
... | {
"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 |
alg: Vale.AES.AES_common_s.algorithm ->
offset: Prims.int ->
auth_b: Vale.X64.Memory.buffer128 ->
abytes_b: Vale.X64.Memory.buffer128 ->
in128x6_b: Vale.X64.Memory.buffer128 ->
out128x6_b: Vale.X64.Memory.buffer128 ->
in128_b: Vale.X64.Memory.buffer128 ->
out128_b: Vale.X64.Memory.buffe... | Prims.Ghost | [] | [] | [
"Vale.AES.AES_common_s.algorithm",
"Prims.int",
"Vale.X64.Memory.buffer128",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.Decls.quad32",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple3",
"Vale.X64.QuickCode.va_lemma_norm_mods",
"... | [] | false | false | false | false | false | let va_wpProof_Gcm_blocks
alg
offset
auth_b
abytes_b
in128x6_b
out128x6_b
in128_b
out128_b
inout_b
iv_b
scratch_b
key
round_keys
keys_b
hkeys_b
va_s0
va_k
=
| let va_sM, va_f0 =
va_lemma_Gcm_blocks (va_code_Gcm_blocks alg offset) va_s0 alg offset auth_b abytes_b in128x6_b
out128x6_b in128_b out128_b inout_b iv_b scratch_b key round_keys keys_b hkeys_b
in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_flags va_sM
(va_update_mem_heaplet 6... | false |
Pulse.Syntax.Printer.fst | Pulse.Syntax.Printer.term_to_string' | val term_to_string' (level: string) (t: term) : T.Tac string | val term_to_string' (level: string) (t: term) : T.Tac string | let rec binder_to_string_paren (b:binder)
: T.Tac string
= sprintf "(%s%s:%s)"
(match T.unseal b.binder_attrs with
| [] -> ""
| l -> sprintf "[@@@ %s] " (String.concat ";" (T.map (term_to_string' "") l)))
(T.unseal b.binder_ppname.name)
(term_to_string' ... | {
"file_name": "lib/steel/pulse/Pulse.Syntax.Printer.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 24,
"end_line": 125,
"start_col": 0,
"start_line": 75
} | (*
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.Syntax.Base.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.String.fsti.checked",
"FStar.Sealed.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checke... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module": "FStar.Sealed",
"short_module": "Un"
},
{
"abbrev": true,
"full_module": "FStar.Tactics.V2",
"short_module": "T"
},
{
"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 | level: Prims.string -> t: Pulse.Syntax.Base.term -> FStar.Tactics.Effect.Tac Prims.string | FStar.Tactics.Effect.Tac | [] | [
"binder_to_string_paren",
"term_to_string'"
] | [
"Prims.string",
"Pulse.Syntax.Base.term",
"Pulse.Syntax.Base.__proj__Mkterm__item__t",
"FStar.Printf.sprintf",
"Pulse.Syntax.Printer.term_to_string'",
"Pulse.Syntax.Printer.indent",
"Pulse.Syntax.Base.universe",
"Pulse.Syntax.Base.binder",
"Prims.list",
"FStar.String.concat",
"FStar.Tactics.Util... | [
"mutual recursion"
] | false | true | false | false | false | let rec term_to_string' (level: string) (t: term) : T.Tac string =
| match t.t with
| Tm_Emp -> "emp"
| Tm_Pure p -> sprintf "pure (%s)" (term_to_string' (indent level) p)
| Tm_Star p1 p2 ->
sprintf "%s ** \n%s%s" (term_to_string' level p1) level (term_to_string' level p2)
| Tm_ExistsSL _ _ _ ->
let bs, body = collect_binders Tm_ExistsSL? t in
sprintf "(exists* %s.\n%s%s)"
(T.... | false |
Pulse.Syntax.Printer.fst | Pulse.Syntax.Printer.comp_to_string | val comp_to_string (c:comp) : T.Tac string | val comp_to_string (c:comp) : T.Tac string | let comp_to_string (c:comp)
: T.Tac string
= match c with
| C_Tot t ->
sprintf "Tot %s" (term_to_string t)
| C_ST s ->
sprintf "stt %s (requires\n%s) (ensures\n%s)"
(term_to_string s.res)
(term_to_string s.pre)
(term_to_string s.post)
| C_ST... | {
"file_name": "lib/steel/pulse/Pulse.Syntax.Printer.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 37,
"end_line": 217,
"start_col": 0,
"start_line": 193
} | (*
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.Syntax.Base.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.String.fsti.checked",
"FStar.Sealed.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checke... | [
{
"abbrev": true,
"full_module": "FStar.Sealed",
"short_module": "Un"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.Printf",
"short_module": null
},
{
"abbrev": false,
"full_module": "FSta... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | c: Pulse.Syntax.Base.comp -> FStar.Tactics.Effect.Tac Prims.string | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Syntax.Base.comp",
"Pulse.Syntax.Base.term",
"FStar.Printf.sprintf",
"Prims.string",
"Pulse.Syntax.Printer.term_to_string",
"Pulse.Syntax.Base.st_comp",
"Pulse.Syntax.Base.__proj__Mkst_comp__item__res",
"Pulse.Syntax.Base.__proj__Mkst_comp__item__pre",
"Pulse.Syntax.Base.__proj__Mkst_comp__it... | [] | false | true | false | false | false | let comp_to_string (c: comp) : T.Tac string =
| match c with
| C_Tot t -> sprintf "Tot %s" (term_to_string t)
| C_ST s ->
sprintf "stt %s (requires\n%s) (ensures\n%s)"
(term_to_string s.res)
(term_to_string s.pre)
(term_to_string s.post)
| C_STAtomic inames obs s ->
sprintf "stt_atomic %s #%s %s (requires\n%s) (ensures\n%s)"
(term_to_string s.res... | false |
Pulse.Syntax.Printer.fst | Pulse.Syntax.Printer.print_st_head | val print_st_head (t:st_term) : string | val print_st_head (t:st_term) : string | let rec print_st_head (t:st_term)
: Tot string (decreases t) =
match t.term with
| Tm_Abs _ -> "Abs"
| Tm_Return p -> print_head p.term
| Tm_Bind _ -> "Bind"
| Tm_TotBind _ -> "TotBind"
| Tm_If _ -> "If"
| Tm_Match _ -> "Match"
| Tm_While _ -> "While"
| Tm_Admit _ -> "Admit"
| Tm_Unreachable -> "... | {
"file_name": "lib/steel/pulse/Pulse.Syntax.Printer.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 22,
"end_line": 507,
"start_col": 0,
"start_line": 480
} | (*
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.Syntax.Base.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.String.fsti.checked",
"FStar.Sealed.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checke... | [
{
"abbrev": true,
"full_module": "FStar.Sealed",
"short_module": "Un"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.Printf",
"short_module": null
},
{
"abbrev": false,
"full_module": "FSta... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: Pulse.Syntax.Base.st_term -> Prims.Tot Prims.string | Prims.Tot | [
"",
"total"
] | [
"print_st_head",
"print_head"
] | [
"Pulse.Syntax.Base.st_term",
"Pulse.Syntax.Base.__proj__Mkst_term__item__term",
"Pulse.Syntax.Base.st_term'__Tm_Abs__payload",
"Pulse.Syntax.Base.st_term'__Tm_Return__payload",
"Pulse.Syntax.Printer.print_head",
"Pulse.Syntax.Base.__proj__Mkst_term'__Tm_Return__payload__item__term",
"Pulse.Syntax.Base.s... | [
"mutual recursion"
] | false | false | false | true | false | let rec print_st_head (t: st_term) : Tot string (decreases t) =
| match t.term with
| Tm_Abs _ -> "Abs"
| Tm_Return p -> print_head p.term
| Tm_Bind _ -> "Bind"
| Tm_TotBind _ -> "TotBind"
| Tm_If _ -> "If"
| Tm_Match _ -> "Match"
| Tm_While _ -> "While"
| Tm_Admit _ -> "Admit"
| Tm_Unreachable -> "Unreachable"
| Tm_Par _ -> "Par"
| Tm_Rewrite _ -> "Rewrite"
| Tm_WithLocal _ -> "With... | false |
Pulse.Syntax.Printer.fst | Pulse.Syntax.Printer.binder_to_string_paren | val binder_to_string_paren (b: binder) : T.Tac string | val binder_to_string_paren (b: binder) : T.Tac string | let rec binder_to_string_paren (b:binder)
: T.Tac string
= sprintf "(%s%s:%s)"
(match T.unseal b.binder_attrs with
| [] -> ""
| l -> sprintf "[@@@ %s] " (String.concat ";" (T.map (term_to_string' "") l)))
(T.unseal b.binder_ppname.name)
(term_to_string' ... | {
"file_name": "lib/steel/pulse/Pulse.Syntax.Printer.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 24,
"end_line": 125,
"start_col": 0,
"start_line": 75
} | (*
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.Syntax.Base.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.String.fsti.checked",
"FStar.Sealed.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checke... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module": "FStar.Sealed",
"short_module": "Un"
},
{
"abbrev": true,
"full_module": "FStar.Tactics.V2",
"short_module": "T"
},
{
"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 | b: Pulse.Syntax.Base.binder -> FStar.Tactics.Effect.Tac Prims.string | FStar.Tactics.Effect.Tac | [] | [
"binder_to_string_paren",
"term_to_string'"
] | [
"Pulse.Syntax.Base.binder",
"Prims.string",
"FStar.Printf.sprintf",
"Prims.list",
"Pulse.Syntax.Base.term",
"FStar.String.concat",
"FStar.Tactics.Util.map",
"Pulse.Syntax.Printer.term_to_string'",
"FStar.Tactics.Unseal.unseal",
"Pulse.Syntax.Base.__proj__Mkbinder__item__binder_attrs",
"Pulse.Syn... | [
"mutual recursion"
] | false | true | false | false | false | let rec binder_to_string_paren (b: binder) : T.Tac string =
| sprintf "(%s%s:%s)"
(match T.unseal b.binder_attrs with
| [] -> ""
| l -> sprintf "[@@@ %s] " (String.concat ";" (T.map (term_to_string' "") l)))
(T.unseal b.binder_ppname.name)
(term_to_string' "" b.binder_ty) | false |
Pulse.Syntax.Printer.fst | Pulse.Syntax.Printer.print_skel | val print_skel (t:st_term) : string | val print_skel (t:st_term) : string | let rec print_skel (t:st_term) =
match t.term with
| Tm_Abs { body } -> Printf.sprintf "(fun _ -> %s)" (print_skel body)
| Tm_Return { term = p } -> print_head p
| Tm_Bind { head=e1; body=e2 } -> Printf.sprintf "(Bind %s %s)" (print_skel e1) (print_skel e2)
| Tm_TotBind { body=e2 } -> Printf.sprintf "(TotBi... | {
"file_name": "lib/steel/pulse/Pulse.Syntax.Printer.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 29,
"end_line": 530,
"start_col": 0,
"start_line": 510
} | (*
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.Syntax.Base.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.String.fsti.checked",
"FStar.Sealed.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checke... | [
{
"abbrev": true,
"full_module": "FStar.Sealed",
"short_module": "Un"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.Printf",
"short_module": null
},
{
"abbrev": false,
"full_module": "FSta... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: Pulse.Syntax.Base.st_term -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Pulse.Syntax.Base.st_term",
"Pulse.Syntax.Base.__proj__Mkst_term__item__term",
"Pulse.Syntax.Base.binder",
"FStar.Pervasives.Native.option",
"Pulse.Syntax.Base.qualifier",
"Pulse.Syntax.Base.comp_ascription",
"FStar.Printf.sprintf",
"Pulse.Syntax.Printer.print_skel",
"Pulse.Syntax.Base.term",
"Pr... | [
"recursion"
] | false | false | false | true | false | let rec print_skel (t: st_term) =
| match t.term with
| Tm_Abs { body = body } -> Printf.sprintf "(fun _ -> %s)" (print_skel body)
| Tm_Return { term = p } -> print_head p
| Tm_Bind { head = e1 ; body = e2 } -> Printf.sprintf "(Bind %s %s)" (print_skel e1) (print_skel e2)
| Tm_TotBind { body = e2 } -> Printf.sprintf "(TotBind _ %s)" (print_skel e2)
| Tm_... | false |
Pulse.Syntax.Printer.fst | Pulse.Syntax.Printer.print_head | val print_head : t: Pulse.Syntax.Base.term -> Prims.string | let rec print_st_head (t:st_term)
: Tot string (decreases t) =
match t.term with
| Tm_Abs _ -> "Abs"
| Tm_Return p -> print_head p.term
| Tm_Bind _ -> "Bind"
| Tm_TotBind _ -> "TotBind"
| Tm_If _ -> "If"
| Tm_Match _ -> "Match"
| Tm_While _ -> "While"
| Tm_Admit _ -> "Admit"
| Tm_Unreachable -> "... | {
"file_name": "lib/steel/pulse/Pulse.Syntax.Printer.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 22,
"end_line": 507,
"start_col": 0,
"start_line": 480
} | (*
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.Syntax.Base.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.String.fsti.checked",
"FStar.Sealed.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checke... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module": "FStar.Sealed",
"short_module": "Un"
},
{
"abbrev": true,
"full_module": "FStar.Tactics.V2",
"short_module": "T"
},
{
"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: Pulse.Syntax.Base.term -> Prims.string | Prims.Tot | [
"total"
] | [
"print_st_head",
"print_head"
] | [
"Pulse.Syntax.Base.term",
"Prims.string"
] | [
"mutual recursion"
] | false | false | false | true | false | let rec print_head (t: term) =
| match t with | _ -> "<pure term>" | false | |
Steel.ST.BitVector.fst | Steel.ST.BitVector.pts_to | val pts_to (#n:US.t) (bv:bv_t n) (p:perm) (s:repr) : vprop | val pts_to (#n:US.t) (bv:bv_t n) (p:perm) (s:repr) : vprop | let pts_to bv p s = A.pts_to bv p s | {
"file_name": "lib/steel/Steel.ST.BitVector.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 35,
"end_line": 33,
"start_col": 0,
"start_line": 33
} | (*
Copyright 2021 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.Util.fsti.checked",
"Steel.ST.Effect.Ghost.fsti.checked",
"Steel.ST.Effect.fsti.checked",
"Steel.ST.Array.fsti.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
]... | [
{
"abbrev": true,
"full_module": "Steel.ST.Array",
"short_module": "A"
},
{
"abbrev": true,
"full_module": "FStar.Ghost",
"short_module": "G"
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Steel.ST... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | bv: Steel.ST.BitVector.bv_t n -> p: Steel.FractionalPermission.perm -> s: Steel.ST.BitVector.repr
-> Steel.Effect.Common.vprop | Prims.Tot | [
"total"
] | [] | [
"FStar.SizeT.t",
"Steel.ST.BitVector.bv_t",
"Steel.FractionalPermission.perm",
"Steel.ST.BitVector.repr",
"Steel.ST.Array.pts_to",
"Prims.bool",
"Steel.Effect.Common.vprop"
] | [] | false | false | false | false | false | let pts_to bv p s =
| A.pts_to bv p s | false |
Hacl.Impl.RSAPSS.Padding.fst | Hacl.Impl.RSAPSS.Padding.db_zero | val db_zero:
len:size_t{v len > 0}
-> db:lbuffer uint8 len
-> emBits:size_t ->
Stack unit
(requires fun h -> live h db)
(ensures fun h0 _ h1 -> modifies (loc db) h0 h1 /\
as_seq h1 db == S.db_zero #(v len) (as_seq h0 db) (v emBits)) | val db_zero:
len:size_t{v len > 0}
-> db:lbuffer uint8 len
-> emBits:size_t ->
Stack unit
(requires fun h -> live h db)
(ensures fun h0 _ h1 -> modifies (loc db) h0 h1 /\
as_seq h1 db == S.db_zero #(v len) (as_seq h0 db) (v emBits)) | let db_zero len db emBits =
let msBits = emBits %. 8ul in
if msBits >. 0ul then
db.(0ul) <- db.(0ul) &. (u8 0xff >>. (8ul -. msBits)) | {
"file_name": "code/rsapss/Hacl.Impl.RSAPSS.Padding.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 57,
"end_line": 65,
"start_col": 0,
"start_line": 62
} | module Hacl.Impl.RSAPSS.Padding
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.RSAPSS.MGF
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module Hash = Spec.Agile.Hash
module S = Spec.RSAPSS
module BD = Hacl.Bignum.Definitions
#reset-opti... | {
"checked_file": "/",
"dependencies": [
"Spec.RSAPSS.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"... | [
{
"abbrev": true,
"full_module": "Hacl.Bignum.Definitions",
"short_module": "BD"
},
{
"abbrev": true,
"full_module": "Spec.RSAPSS",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.Agile.Hash",
"short_module": "Hash"
},
{
"abbrev": true,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
len: Lib.IntTypes.size_t{Lib.IntTypes.v len > 0} ->
db: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len ->
emBits: Lib.IntTypes.size_t
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.IntTypes.size_t",
"Prims.b2t",
"Prims.op_GreaterThan",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"Lib.IntTypes.op_Greater_Dot",
"FStar.UInt32.__uint_to_t",
"Lib.Buffer.op_Array_Assignment",
"Prims.unit",
"Lib.IntTypes.int_t",
... | [] | false | true | false | false | false | let db_zero len db emBits =
| let msBits = emBits %. 8ul in
if msBits >. 0ul then db.(0ul) <- db.(0ul) &. (u8 0xff >>. (8ul -. msBits)) | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.next_addr | val next_addr: heap -> GTot pos | val next_addr: heap -> GTot pos | let next_addr h = h.next_addr | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 29,
"end_line": 43,
"start_col": 0,
"start_line": 43
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h: FStar.Monotonic.Heap.heap -> Prims.GTot Prims.pos | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.Heap.__proj__Mkheap_rec__item__next_addr",
"Prims.pos"
] | [] | false | false | false | false | false | let next_addr h =
| h.next_addr | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.is_mm | val is_mm: #a:Type0 -> #rel:preorder a -> mref a rel -> GTot bool | val is_mm: #a:Type0 -> #rel:preorder a -> mref a rel -> GTot bool | let is_mm #a #rel r = r.mm | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 26,
"end_line": 54,
"start_col": 0,
"start_line": 54
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: FStar.Monotonic.Heap.mref a rel -> Prims.GTot Prims.bool | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.mref",
"FStar.Monotonic.Heap.__proj__Mkcore_mref__item__mm",
"Prims.bool"
] | [] | false | false | false | false | false | let is_mm #a #rel r =
| r.mm | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.heap | val heap :Type u#1 | val heap :Type u#1 | let heap = h:heap_rec{(forall (n:nat). n >= h.next_addr ==> None? (h.memory n))} | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 80,
"end_line": 29,
"start_col": 0,
"start_line": 29
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.Heap.heap_rec",
"Prims.l_Forall",
"Prims.nat",
"Prims.l_imp",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"FStar.Monotonic.Heap.__proj__Mkheap_rec__item__next_addr",
"FStar.Pervasives.Native.uu___is_None",
"FStar.Pervasives.dtuple4",
"FStar.Pervasives.Native.option",
"FStar.Preo... | [] | false | false | false | true | true | let heap =
| h: heap_rec{(forall (n: nat). n >= h.next_addr ==> None? (h.memory n))} | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.equal | val equal: heap -> heap -> Type0 | val equal: heap -> heap -> Type0 | let equal h1 h2 =
let _ = () in
h1.next_addr = h2.next_addr /\
FStar.FunctionalExtensionality.feq h1.memory h2.memory | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 56,
"end_line": 34,
"start_col": 0,
"start_line": 31
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h1: FStar.Monotonic.Heap.heap -> h2: FStar.Monotonic.Heap.heap -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.Heap.heap",
"Prims.l_and",
"Prims.b2t",
"Prims.op_Equality",
"Prims.pos",
"FStar.Monotonic.Heap.__proj__Mkheap_rec__item__next_addr",
"FStar.FunctionalExtensionality.feq",
"FStar.Pervasives.Native.option",
"FStar.Pervasives.dtuple4",
"FStar.Preorder.preorder",
"Prims.bool",
"F... | [] | false | false | false | true | true | let equal h1 h2 =
| let _ = () in
h1.next_addr = h2.next_addr /\ FStar.FunctionalExtensionality.feq h1.memory h2.memory | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.emp | val emp :heap | val emp :heap | let emp = {
next_addr = 1;
memory = F.on_dom pos (fun r -> None)
} | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 1,
"end_line": 41,
"start_col": 0,
"start_line": 38
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | FStar.Monotonic.Heap.heap | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.Heap.Mkheap_rec",
"FStar.FunctionalExtensionality.on_dom",
"Prims.pos",
"FStar.Pervasives.Native.option",
"FStar.Pervasives.dtuple4",
"FStar.Preorder.preorder",
"Prims.bool",
"FStar.Pervasives.Native.None"
] | [] | false | false | false | true | false | let emp =
| { next_addr = 1; memory = F.on_dom pos (fun r -> None) } | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.addr_of | val addr_of: #a:Type0 -> #rel:preorder a -> mref a rel -> GTot pos | val addr_of: #a:Type0 -> #rel:preorder a -> mref a rel -> GTot pos | let addr_of #a #rel r = r.addr | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 30,
"end_line": 52,
"start_col": 0,
"start_line": 52
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: FStar.Monotonic.Heap.mref a rel -> Prims.GTot Prims.pos | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.mref",
"FStar.Monotonic.Heap.__proj__Mkcore_mref__item__addr",
"Prims.pos"
] | [] | false | false | false | false | false | let addr_of #a #rel r =
| r.addr | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.unused_in | val unused_in: #a:Type0 -> #rel:preorder a -> mref a rel -> heap -> Type0 | val unused_in: #a:Type0 -> #rel:preorder a -> mref a rel -> heap -> Type0 | let unused_in #a #rel r h = addr_unused_in (addr_of r) h | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 56,
"end_line": 66,
"start_col": 0,
"start_line": 66
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: FStar.Monotonic.Heap.mref a rel -> h: FStar.Monotonic.Heap.heap -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.mref",
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.Heap.addr_unused_in",
"FStar.Monotonic.Heap.addr_of"
] | [] | false | false | false | false | true | let unused_in #a #rel r h =
| addr_unused_in (addr_of r) h | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.addr_unused_in | val addr_unused_in: nat -> heap -> Type0 | val addr_unused_in: nat -> heap -> Type0 | let addr_unused_in n h = n <> 0 && None? (h.memory n) | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 53,
"end_line": 62,
"start_col": 0,
"start_line": 62
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: Prims.nat -> h: FStar.Monotonic.Heap.heap -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"FStar.Monotonic.Heap.heap",
"Prims.b2t",
"Prims.op_AmpAmp",
"Prims.op_disEquality",
"Prims.int",
"FStar.Pervasives.Native.uu___is_None",
"FStar.Pervasives.dtuple4",
"FStar.Pervasives.Native.option",
"FStar.Preorder.preorder",
"Prims.bool",
"FStar.Monotonic.Heap.__proj__Mkheap_rec... | [] | false | false | false | true | true | let addr_unused_in n h =
| n <> 0 && None? (h.memory n) | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.contains | val contains: #a:Type0 -> #rel:preorder a -> heap -> mref a rel -> Type0 | val contains: #a:Type0 -> #rel:preorder a -> heap -> mref a rel -> Type0 | let contains #a #rel h r =
let _ = () in
Some? (h.memory r.addr) /\
(let Some (| a1, pre_opt, mm, _ |) = h.memory r.addr in
a == a1 /\ Some? pre_opt /\ Some?.v pre_opt == rel /\ mm = r.mm) | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 67,
"end_line": 60,
"start_col": 0,
"start_line": 56
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h: FStar.Monotonic.Heap.heap -> r: FStar.Monotonic.Heap.mref a rel -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.Heap.mref",
"Prims.l_and",
"Prims.b2t",
"FStar.Pervasives.Native.uu___is_Some",
"FStar.Pervasives.dtuple4",
"FStar.Pervasives.Native.option",
"Prims.bool",
"FStar.Monotonic.Heap.__proj__Mkheap_rec__item__memory",
"FStar.Mon... | [] | false | false | false | false | true | let contains #a #rel h r =
| let _ = () in
Some? (h.memory r.addr) /\
(let Some (| a1 , pre_opt , mm , _ |) = h.memory r.addr in
a == a1 /\ Some? pre_opt /\ Some?.v pre_opt == rel /\ mm = r.mm) | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.sel | val sel: #a:Type0 -> #rel:preorder a -> heap -> mref a rel -> GTot a | val sel: #a:Type0 -> #rel:preorder a -> heap -> mref a rel -> GTot a | let sel #a #rel h r =
if h `contains_bool` r
then sel_tot #a h r
else r.init | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 13,
"end_line": 91,
"start_col": 0,
"start_line": 88
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h: FStar.Monotonic.Heap.heap -> r: FStar.Monotonic.Heap.mref a rel -> Prims.GTot a | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.Heap.mref",
"FStar.Monotonic.Heap.contains_bool",
"FStar.Monotonic.Heap.sel_tot",
"Prims.bool",
"FStar.Monotonic.Heap.__proj__Mkcore_mref__item__init"
] | [] | false | false | false | false | false | let sel #a #rel h r =
| if h `contains_bool` r then sel_tot #a h r else r.init | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.upd_tot' | val upd_tot' : h: FStar.Monotonic.Heap.heap -> r: FStar.Monotonic.Heap.mref a rel -> x: a
-> FStar.Monotonic.Heap.heap_rec | let upd_tot' (#a: Type0) (#rel: preorder a) (h: heap) (r: mref a rel) (x: a) =
{ h with memory = F.on_dom pos (fun r' -> if r.addr = r'
then Some (| a, Some rel, r.mm, x |)
else h.memory r') } | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 60,
"end_line": 96,
"start_col": 0,
"start_line": 93
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h: FStar.Monotonic.Heap.heap -> r: FStar.Monotonic.Heap.mref a rel -> x: a
-> FStar.Monotonic.Heap.heap_rec | Prims.Tot | [
"total"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.Heap.mref",
"FStar.Monotonic.Heap.Mkheap_rec",
"FStar.Monotonic.Heap.__proj__Mkheap_rec__item__next_addr",
"FStar.FunctionalExtensionality.on_dom",
"Prims.pos",
"FStar.Pervasives.Native.option",
"FStar.Pervasives.dtuple4",
"P... | [] | false | false | false | false | false | let upd_tot' (#a: Type0) (#rel: preorder a) (h: heap) (r: mref a rel) (x: a) =
| {
h with
memory
=
F.on_dom pos (fun r' -> if r.addr = r' then Some (| a, Some rel, r.mm, x |) else h.memory r')
} | false | |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.sel_tot | val sel_tot: #a:Type0 -> #rel:preorder a -> h:heap -> r:mref a rel{h `contains` r} -> Tot a | val sel_tot: #a:Type0 -> #rel:preorder a -> h:heap -> r:mref a rel{h `contains` r} -> Tot a | let sel_tot #a #rel h r =
let Some (| _, _, _, x |) = h.memory r.addr in
x | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 70,
"start_col": 0,
"start_line": 68
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
h: FStar.Monotonic.Heap.heap ->
r: FStar.Monotonic.Heap.mref a rel {FStar.Monotonic.Heap.contains h r}
-> a | Prims.Tot | [
"total"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.Heap.mref",
"FStar.Monotonic.Heap.contains",
"FStar.Pervasives.Native.option",
"Prims.bool",
"FStar.Pervasives.dtuple4",
"FStar.Monotonic.Heap.__proj__Mkheap_rec__item__memory",
"FStar.Monotonic.Heap.__proj__Mkcore_mref__item__... | [] | false | false | false | false | false | let sel_tot #a #rel h r =
| let Some (| _ , _ , _ , x |) = h.memory r.addr in
x | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.upd_tot | val upd_tot: #a:Type0 -> #rel:preorder a -> h:heap -> r:mref a rel{h `contains` r} -> x:a -> Tot heap | val upd_tot: #a:Type0 -> #rel:preorder a -> h:heap -> r:mref a rel{h `contains` r} -> x:a -> Tot heap | let upd_tot #a #rel h r x = upd_tot' h r x | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 42,
"end_line": 98,
"start_col": 0,
"start_line": 98
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
h: FStar.Monotonic.Heap.heap ->
r: FStar.Monotonic.Heap.mref a rel {FStar.Monotonic.Heap.contains h r} ->
x: a
-> FStar.Monotonic.Heap.heap | Prims.Tot | [
"total"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.Heap.mref",
"FStar.Monotonic.Heap.contains",
"FStar.Monotonic.Heap.upd_tot'"
] | [] | false | false | false | false | false | let upd_tot #a #rel h r x =
| upd_tot' h r x | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.free_mm | val free_mm: #a:Type0 -> #rel:preorder a -> h:heap -> r:mref a rel{h `contains` r /\ is_mm r} -> Tot heap | val free_mm: #a:Type0 -> #rel:preorder a -> h:heap -> r:mref a rel{h `contains` r /\ is_mm r} -> Tot heap | let free_mm #a #rel h r =
{ h with memory = F.on_dom pos (fun r' -> if r' = r.addr then None else h.memory r') } | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 88,
"end_line": 123,
"start_col": 0,
"start_line": 122
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
h: FStar.Monotonic.Heap.heap ->
r:
FStar.Monotonic.Heap.mref a rel
{FStar.Monotonic.Heap.contains h r /\ FStar.Monotonic.Heap.is_mm r}
-> FStar.Monotonic.Heap.heap | Prims.Tot | [
"total"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.Heap.mref",
"Prims.l_and",
"FStar.Monotonic.Heap.contains",
"Prims.b2t",
"FStar.Monotonic.Heap.is_mm",
"FStar.Monotonic.Heap.Mkheap_rec",
"FStar.Monotonic.Heap.__proj__Mkheap_rec__item__next_addr",
"FStar.FunctionalExtensiona... | [] | false | false | false | false | false | let free_mm #a #rel h r =
| { h with memory = F.on_dom pos (fun r' -> if r' = r.addr then None else h.memory r') } | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.upd | val upd: #a:Type0 -> #rel:preorder a -> h:heap -> r:mref a rel -> x:a -> GTot heap | val upd: #a:Type0 -> #rel:preorder a -> h:heap -> r:mref a rel -> x:a -> GTot heap | let upd #a #rel h r x =
if h `contains_bool` r
then upd_tot' h r x
else
if r.addr >= h.next_addr
then
{ next_addr = r.addr + 1;
memory = F.on_dom pos (fun r' -> if r' = r.addr
then Some (| a, Some rel, r.mm, x |)
else h.memor... | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 64,
"end_line": 113,
"start_col": 0,
"start_line": 100
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h: FStar.Monotonic.Heap.heap -> r: FStar.Monotonic.Heap.mref a rel -> x: a
-> Prims.GTot FStar.Monotonic.Heap.heap | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.Heap.mref",
"FStar.Monotonic.Heap.contains_bool",
"FStar.Monotonic.Heap.upd_tot'",
"Prims.bool",
"Prims.op_GreaterThanOrEqual",
"FStar.Monotonic.Heap.__proj__Mkcore_mref__item__addr",
"FStar.Monotonic.Heap.__proj__Mkheap_rec__i... | [] | false | false | false | false | false | let upd #a #rel h r x =
| if h `contains_bool` r
then upd_tot' h r x
else
if r.addr >= h.next_addr
then
{
next_addr = r.addr + 1;
memory
=
F.on_dom pos (fun r' -> if r' = r.addr then Some (| a, Some rel, r.mm, x |) else h.memory r')
}
else
{
h with
memory
=
F.on_dom pos (fun r' -... | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.alloc | val alloc: #a:Type0 -> rel:preorder a -> heap -> a -> mm:bool -> Tot (mref a rel * heap) | val alloc: #a:Type0 -> rel:preorder a -> heap -> a -> mm:bool -> Tot (mref a rel * heap) | let alloc #a rel h x mm =
let r = { addr = h.next_addr; init = x; mm = mm } in
r, { next_addr = r.addr + 1;
memory = F.on_dom pos (fun r' -> if r' = r.addr
then Some (| a, Some rel, r.mm, x |)
else h.memory r') } | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 59,
"end_line": 120,
"start_col": 0,
"start_line": 115
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | rel: FStar.Preorder.preorder a -> h: FStar.Monotonic.Heap.heap -> x: a -> mm: Prims.bool
-> FStar.Monotonic.Heap.mref a rel * FStar.Monotonic.Heap.heap | Prims.Tot | [
"total"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.heap",
"Prims.bool",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Monotonic.Heap.mref",
"FStar.Monotonic.Heap.Mkheap_rec",
"Prims.op_Addition",
"FStar.Monotonic.Heap.__proj__Mkcore_mref__item__addr",
"FStar.FunctionalExtensionality.on_dom",
"Prims.pos... | [] | false | false | false | false | false | let alloc #a rel h x mm =
| let r = { addr = h.next_addr; init = x; mm = mm } in
r,
{
next_addr = r.addr + 1;
memory
=
F.on_dom pos (fun r' -> if r' = r.addr then Some (| a, Some rel, r.mm, x |) else h.memory r')
} | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.lemma_alloc | val lemma_alloc (#a:Type0) (rel:preorder a) (h0:heap) (x:a) (mm:bool)
:Lemma (requires True)
(ensures (let r, h1 = alloc rel h0 x mm in
fresh r h0 h1 /\ h1 == upd h0 r x /\ is_mm r = mm /\ addr_of r == next_addr h0))
[SMTPat (alloc rel h0 x mm)] | val lemma_alloc (#a:Type0) (rel:preorder a) (h0:heap) (x:a) (mm:bool)
:Lemma (requires True)
(ensures (let r, h1 = alloc rel h0 x mm in
fresh r h0 h1 /\ h1 == upd h0 r x /\ is_mm r = mm /\ addr_of r == next_addr h0))
[SMTPat (alloc rel h0 x mm)] | let lemma_alloc #a rel h0 x mm =
let r, h1 = alloc rel h0 x mm in
let h1' = upd h0 r x in
assert (equal h1 h1') | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 23,
"end_line": 204,
"start_col": 0,
"start_line": 201
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | rel: FStar.Preorder.preorder a -> h0: FStar.Monotonic.Heap.heap -> x: a -> mm: Prims.bool
-> FStar.Pervasives.Lemma
(ensures
(let _ = FStar.Monotonic.Heap.alloc rel h0 x mm in
(let FStar.Pervasives.Native.Mktuple2 #_ #_ r h1 = _ in
FStar.Monotonic.Heap.fresh r h0 h1 /\ h1 == FStar.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.heap",
"Prims.bool",
"FStar.Monotonic.Heap.mref",
"Prims._assert",
"FStar.Monotonic.Heap.equal",
"FStar.Monotonic.Heap.upd",
"Prims.unit",
"FStar.Pervasives.Native.tuple2",
"FStar.Monotonic.Heap.alloc"
] | [] | false | false | true | false | false | let lemma_alloc #a rel h0 x mm =
| let r, h1 = alloc rel h0 x mm in
let h1' = upd h0 r x in
assert (equal h1 h1') | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.aref_of | val aref_of: #t: Type0 -> #rel: preorder t -> r: mref t rel -> Tot aref | val aref_of: #t: Type0 -> #rel: preorder t -> r: mref t rel -> Tot aref | let aref_of #t #rel r = {
a_addr = r.addr;
a_mm = r.mm;
} | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 1,
"end_line": 268,
"start_col": 0,
"start_line": 265
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: FStar.Monotonic.Heap.mref t rel -> FStar.Monotonic.Heap.aref | Prims.Tot | [
"total"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.mref",
"FStar.Monotonic.Heap.Mkaref'",
"FStar.Monotonic.Heap.__proj__Mkcore_mref__item__addr",
"FStar.Monotonic.Heap.__proj__Mkcore_mref__item__mm",
"FStar.Monotonic.Heap.aref"
] | [] | false | false | false | false | false | let aref_of #t #rel r =
| { a_addr = r.addr; a_mm = r.mm } | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.dummy_aref | val dummy_aref: aref | val dummy_aref: aref | let dummy_aref = {
a_addr = 1;
a_mm = false;
} | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 1,
"end_line": 261,
"start_col": 0,
"start_line": 258
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | FStar.Monotonic.Heap.aref | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.Heap.Mkaref'"
] | [] | false | false | false | true | false | let dummy_aref =
| { a_addr = 1; a_mm = false } | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.aref | val aref: Type0 | val aref: Type0 | let aref = aref' | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 16,
"end_line": 257,
"start_col": 0,
"start_line": 257
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.Heap.aref'"
] | [] | false | false | false | true | true | let aref =
| aref' | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.addr_of_aref | val addr_of_aref: a: aref -> GTot (n: nat { n > 0 } ) | val addr_of_aref: a: aref -> GTot (n: nat { n > 0 } ) | let addr_of_aref a = a.a_addr | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 29,
"end_line": 271,
"start_col": 0,
"start_line": 271
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.Monotonic.Heap.aref -> Prims.GTot (n: Prims.nat{n > 0}) | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Monotonic.Heap.aref",
"FStar.Monotonic.Heap.__proj__Mkaref'__item__a_addr",
"Prims.nat",
"Prims.b2t",
"Prims.op_GreaterThan"
] | [] | false | false | false | false | false | let addr_of_aref a =
| a.a_addr | false |
Steel.PCMMap.fst | Steel.PCMMap.map | val map : k: Prims.eqtype -> v: Type -> Type | let map (k:eqtype) (v:Type) =
m:Map.t k v {
Map.domain m `Set.equal` Set.complement Set.empty
} | {
"file_name": "lib/steel/Steel.PCMMap.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 3,
"end_line": 34,
"start_col": 0,
"start_line": 31
} | (*
Copyright 2021 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": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.Sugar.fsti.checked"
],
"interface_file": false,
"source_file": "S... | [
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"sho... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | k: Prims.eqtype -> v: Type -> Type | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"FStar.Map.t",
"FStar.Set.equal",
"FStar.Map.domain",
"FStar.Set.complement",
"FStar.Set.empty"
] | [] | false | false | false | true | true | let map (k: eqtype) (v: Type) =
| m: Map.t k v {(Map.domain m) `Set.equal` (Set.complement Set.empty)} | false | |
Steel.PCMMap.fst | Steel.PCMMap.composable_maps | val composable_maps (#a: _) (#k: eqtype) (p: pcm a) (m0 m1: map k a) : prop | val composable_maps (#a: _) (#k: eqtype) (p: pcm a) (m0 m1: map k a) : prop | let composable_maps (#a:_)
(#k:eqtype)
(p:pcm a)
(m0 m1: map k a)
: prop
= forall k. Map.sel m0 k `composable p` Map.sel m1 k | {
"file_name": "lib/steel/Steel.PCMMap.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 54,
"end_line": 42,
"start_col": 0,
"start_line": 37
} | (*
Copyright 2021 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": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.Sugar.fsti.checked"
],
"interface_file": false,
"source_file": "S... | [
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"sho... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: FStar.PCM.pcm a -> m0: Steel.PCMMap.map k a -> m1: Steel.PCMMap.map k a -> Prims.prop | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"FStar.PCM.pcm",
"Steel.PCMMap.map",
"Prims.l_Forall",
"FStar.PCM.composable",
"FStar.Map.sel",
"Prims.prop"
] | [] | false | false | false | false | true | let composable_maps (#a: _) (#k: eqtype) (p: pcm a) (m0 m1: map k a) : prop =
| forall k. composable p (Map.sel m0 k) (Map.sel m1 k) | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.aref_is_mm | val aref_is_mm: aref -> GTot bool | val aref_is_mm: aref -> GTot bool | let aref_is_mm a = a.a_mm | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 25,
"end_line": 273,
"start_col": 0,
"start_line": 273
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.Monotonic.Heap.aref -> Prims.GTot Prims.bool | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Monotonic.Heap.aref",
"FStar.Monotonic.Heap.__proj__Mkaref'__item__a_mm",
"Prims.bool"
] | [] | false | false | false | false | false | let aref_is_mm a =
| a.a_mm | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.lemma_heap_equality_upd_with_sel | val lemma_heap_equality_upd_with_sel
(#a:Type) (#rel:preorder a) (h:heap) (r:mref a rel)
:Lemma (requires (h `contains` r))
(ensures (upd h r (sel h r) == h)) | val lemma_heap_equality_upd_with_sel
(#a:Type) (#rel:preorder a) (h:heap) (r:mref a rel)
:Lemma (requires (h `contains` r))
(ensures (upd h r (sel h r) == h)) | let lemma_heap_equality_upd_with_sel #a #rel h r =
let h' = upd h r (sel h r) in
let Some (| _, _, _, _ |) = h.memory r.addr in
assert (equal h h') | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 21,
"end_line": 237,
"start_col": 0,
"start_line": 234
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h: FStar.Monotonic.Heap.heap -> r: FStar.Monotonic.Heap.mref a rel
-> FStar.Pervasives.Lemma (requires FStar.Monotonic.Heap.contains h r)
(ensures FStar.Monotonic.Heap.upd h r (FStar.Monotonic.Heap.sel h r) == h) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.Heap.mref",
"FStar.Pervasives.Native.option",
"Prims.bool",
"Prims._assert",
"FStar.Monotonic.Heap.equal",
"Prims.unit",
"FStar.Pervasives.dtuple4",
"FStar.Monotonic.Heap.__proj__Mkheap_rec__item__memory",
"FStar.Monotonic.... | [] | false | false | true | false | false | let lemma_heap_equality_upd_with_sel #a #rel h r =
| let h' = upd h r (sel h r) in
let Some (| _ , _ , _ , _ |) = h.memory r.addr in
assert (equal h h') | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.lemma_heap_equality_upd_same_addr | val lemma_heap_equality_upd_same_addr (#a: Type0) (#rel: preorder a) (h: heap) (r1 r2: mref a rel) (x: a)
:Lemma (requires ((h `contains` r1 \/ h `contains` r2) /\ addr_of r1 = addr_of r2 /\ is_mm r1 == is_mm r2))
(ensures (upd h r1 x == upd h r2 x)) | val lemma_heap_equality_upd_same_addr (#a: Type0) (#rel: preorder a) (h: heap) (r1 r2: mref a rel) (x: a)
:Lemma (requires ((h `contains` r1 \/ h `contains` r2) /\ addr_of r1 = addr_of r2 /\ is_mm r1 == is_mm r2))
(ensures (upd h r1 x == upd h r2 x)) | let lemma_heap_equality_upd_same_addr #a #rel h r1 r2 x =
assert (equal (upd h r1 x) (upd h r2 x)) | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 42,
"end_line": 227,
"start_col": 0,
"start_line": 226
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
h: FStar.Monotonic.Heap.heap ->
r1: FStar.Monotonic.Heap.mref a rel ->
r2: FStar.Monotonic.Heap.mref a rel ->
x: a
-> FStar.Pervasives.Lemma
(requires
(FStar.Monotonic.Heap.contains h r1 \/ FStar.Monotonic.Heap.contains h r2) /\
FStar.Monotonic.Heap.addr_of r1 = FStar.Monotonic.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.Heap.mref",
"Prims._assert",
"FStar.Monotonic.Heap.equal",
"FStar.Monotonic.Heap.upd",
"Prims.unit"
] | [] | true | false | true | false | false | let lemma_heap_equality_upd_same_addr #a #rel h r1 r2 x =
| assert (equal (upd h r1 x) (upd h r2 x)) | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.lemma_heap_equality_cancel_same_mref_upd | val lemma_heap_equality_cancel_same_mref_upd
(#a:Type) (#rel:preorder a) (h:heap) (r:mref a rel)
(x:a) (y:a)
:Lemma (requires True)
(ensures (upd (upd h r x) r y == upd h r y)) | val lemma_heap_equality_cancel_same_mref_upd
(#a:Type) (#rel:preorder a) (h:heap) (r:mref a rel)
(x:a) (y:a)
:Lemma (requires True)
(ensures (upd (upd h r x) r y == upd h r y)) | let lemma_heap_equality_cancel_same_mref_upd #a #rel h r x y =
let h0 = upd (upd h r x) r y in
let h1 = upd h r y in
assert (equal h0 h1) | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 22,
"end_line": 232,
"start_col": 0,
"start_line": 229
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h: FStar.Monotonic.Heap.heap -> r: FStar.Monotonic.Heap.mref a rel -> x: a -> y: a
-> FStar.Pervasives.Lemma
(ensures
FStar.Monotonic.Heap.upd (FStar.Monotonic.Heap.upd h r x) r y ==
FStar.Monotonic.Heap.upd h r y) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.Heap.mref",
"Prims._assert",
"FStar.Monotonic.Heap.equal",
"FStar.Monotonic.Heap.upd",
"Prims.unit"
] | [] | true | false | true | false | false | let lemma_heap_equality_cancel_same_mref_upd #a #rel h r x y =
| let h0 = upd (upd h r x) r y in
let h1 = upd h r y in
assert (equal h0 h1) | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.lemma_heap_equality_commute_distinct_upds | val lemma_heap_equality_commute_distinct_upds
(#a:Type) (#b:Type) (#rel_a:preorder a) (#rel_b:preorder b) (h:heap) (r1:mref a rel_a) (r2:mref b rel_b)
(x:a) (y:b)
:Lemma (requires (addr_of r1 =!= addr_of r2))
(ensures (upd (upd h r1 x) r2 y == upd (upd h r2 y) r1 x)) | val lemma_heap_equality_commute_distinct_upds
(#a:Type) (#b:Type) (#rel_a:preorder a) (#rel_b:preorder b) (h:heap) (r1:mref a rel_a) (r2:mref b rel_b)
(x:a) (y:b)
:Lemma (requires (addr_of r1 =!= addr_of r2))
(ensures (upd (upd h r1 x) r2 y == upd (upd h r2 y) r1 x)) | let lemma_heap_equality_commute_distinct_upds #a #b #rel_a #rel_b h r1 r2 x y =
let h0 = upd (upd h r1 x) r2 y in
let h1 = upd (upd h r2 y) r1 x in
assert (equal h0 h1) | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 22,
"end_line": 242,
"start_col": 0,
"start_line": 239
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
h: FStar.Monotonic.Heap.heap ->
r1: FStar.Monotonic.Heap.mref a rel_a ->
r2: FStar.Monotonic.Heap.mref b rel_b ->
x: a ->
y: b
-> FStar.Pervasives.Lemma
(requires ~(FStar.Monotonic.Heap.addr_of r1 == FStar.Monotonic.Heap.addr_of r2))
(ensures
FStar.Monotonic.Heap.upd (FStar.Mo... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.Heap.mref",
"Prims._assert",
"FStar.Monotonic.Heap.equal",
"FStar.Monotonic.Heap.upd",
"Prims.unit"
] | [] | true | false | true | false | false | let lemma_heap_equality_commute_distinct_upds #a #b #rel_a #rel_b h r1 r2 x y =
| let h0 = upd (upd h r1 x) r2 y in
let h1 = upd (upd h r2 y) r1 x in
assert (equal h0 h1) | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.ref_of | val ref_of: h: heap -> a: aref -> t: Type0 -> rel: preorder t -> Pure (mref t rel) (requires (aref_live_at h a t rel)) (ensures (fun x -> aref_live_at h a t rel /\ addr_of (gref_of a t rel) == addr_of x /\ is_mm x == aref_is_mm a)) | val ref_of: h: heap -> a: aref -> t: Type0 -> rel: preorder t -> Pure (mref t rel) (requires (aref_live_at h a t rel)) (ensures (fun x -> aref_live_at h a t rel /\ addr_of (gref_of a t rel) == addr_of x /\ is_mm x == aref_is_mm a)) | let ref_of h a t rel = ref_of' h a t rel | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 40,
"end_line": 316,
"start_col": 0,
"start_line": 316
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
h: FStar.Monotonic.Heap.heap ->
a: FStar.Monotonic.Heap.aref ->
t: Type0 ->
rel: FStar.Preorder.preorder t
-> Prims.Pure (FStar.Monotonic.Heap.mref t rel) | Prims.Pure | [] | [] | [
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.Heap.aref",
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.ref_of'",
"FStar.Monotonic.Heap.mref"
] | [] | false | false | false | false | false | let ref_of h a t rel =
| ref_of' h a t rel | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.aref_unused_in | val aref_unused_in: aref -> heap -> Type0 | val aref_unused_in: aref -> heap -> Type0 | let aref_unused_in a h = None? (h.memory a.a_addr) | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 50,
"end_line": 275,
"start_col": 0,
"start_line": 275
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.Monotonic.Heap.aref -> h: FStar.Monotonic.Heap.heap -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.Heap.aref",
"FStar.Monotonic.Heap.heap",
"Prims.b2t",
"FStar.Pervasives.Native.uu___is_None",
"FStar.Pervasives.dtuple4",
"FStar.Pervasives.Native.option",
"FStar.Preorder.preorder",
"Prims.bool",
"FStar.Monotonic.Heap.__proj__Mkheap_rec__item__memory",
"FStar.Monotonic.Heap.__pro... | [] | false | false | false | true | true | let aref_unused_in a h =
| None? (h.memory a.a_addr) | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.addr_of_gref_of | val addr_of_gref_of
(a: aref)
(t: Type0)
(rel: preorder t)
: Lemma
(requires (exists h . aref_live_at h a t rel))
(ensures ((exists h . aref_live_at h a t rel) /\ addr_of (gref_of a t rel) == addr_of_aref a))
[SMTPat (addr_of (gref_of a t rel))] | val addr_of_gref_of
(a: aref)
(t: Type0)
(rel: preorder t)
: Lemma
(requires (exists h . aref_live_at h a t rel))
(ensures ((exists h . aref_live_at h a t rel) /\ addr_of (gref_of a t rel) == addr_of_aref a))
[SMTPat (addr_of (gref_of a t rel))] | let addr_of_gref_of a t rel = addr_of_aref_of (gref_of a t rel) | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 63,
"end_line": 322,
"start_col": 0,
"start_line": 322
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.Monotonic.Heap.aref -> t: Type0 -> rel: FStar.Preorder.preorder t
-> FStar.Pervasives.Lemma
(requires exists (h: FStar.Monotonic.Heap.heap). FStar.Monotonic.Heap.aref_live_at h a t rel)
(ensures
(exists (h: FStar.Monotonic.Heap.heap). FStar.Monotonic.Heap.aref_live_at h a t rel) /\
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Monotonic.Heap.aref",
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.addr_of_aref_of",
"FStar.Monotonic.Heap.gref_of",
"Prims.unit"
] | [] | true | false | true | false | false | let addr_of_gref_of a t rel =
| addr_of_aref_of (gref_of a t rel) | false |
Steel.PCMMap.fst | Steel.PCMMap.compose_maps | val compose_maps
(#a: _)
(#k: eqtype)
(p: pcm a)
(m0: map k a)
(m1: map k a {composable_maps p m0 m1})
: map k a | val compose_maps
(#a: _)
(#k: eqtype)
(p: pcm a)
(m0: map k a)
(m1: map k a {composable_maps p m0 m1})
: map k a | let compose_maps (#a:_) (#k:eqtype)
(p:pcm a)
(m0:map k a)
(m1:map k a { composable_maps p m0 m1 })
: map k a
= Map.map_literal (fun k ->
Map.sel m0 k `op p` Map.sel m1 k) | {
"file_name": "lib/steel/Steel.PCMMap.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 56,
"end_line": 51,
"start_col": 0,
"start_line": 45
} | (*
Copyright 2021 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": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.Sugar.fsti.checked"
],
"interface_file": false,
"source_file": "S... | [
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"sho... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: FStar.PCM.pcm a ->
m0: Steel.PCMMap.map k a ->
m1: Steel.PCMMap.map k a {Steel.PCMMap.composable_maps p m0 m1}
-> Steel.PCMMap.map k a | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"FStar.PCM.pcm",
"Steel.PCMMap.map",
"Steel.PCMMap.composable_maps",
"FStar.Map.map_literal",
"FStar.PCM.op",
"FStar.Map.sel"
] | [] | false | false | false | false | false | let compose_maps
(#a: _)
(#k: eqtype)
(p: pcm a)
(m0: map k a)
(m1: map k a {composable_maps p m0 m1})
: map k a =
| Map.map_literal (fun k -> op p (Map.sel m0 k) (Map.sel m1 k)) | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.aref_equal | val aref_equal (a1 a2: aref) : Ghost bool (requires True) (ensures (fun b -> b == true <==> a1 == a2)) | val aref_equal (a1 a2: aref) : Ghost bool (requires True) (ensures (fun b -> b == true <==> a1 == a2)) | let aref_equal a1 a2 = a1.a_addr = a2.a_addr && a1.a_mm = a2.a_mm | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 65,
"end_line": 262,
"start_col": 0,
"start_line": 262
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a1: FStar.Monotonic.Heap.aref -> a2: FStar.Monotonic.Heap.aref -> Prims.Ghost Prims.bool | Prims.Ghost | [] | [] | [
"FStar.Monotonic.Heap.aref",
"Prims.op_AmpAmp",
"Prims.op_Equality",
"Prims.nat",
"Prims.l_or",
"Prims.b2t",
"Prims.op_GreaterThan",
"FStar.Monotonic.Heap.__proj__Mkaref'__item__a_addr",
"Prims.bool",
"FStar.Monotonic.Heap.__proj__Mkaref'__item__a_mm"
] | [] | false | false | false | false | false | let aref_equal a1 a2 =
| a1.a_addr = a2.a_addr && a1.a_mm = a2.a_mm | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.aref_live_at | val aref_live_at: h: heap -> a: aref -> t: Type0 -> rel: preorder t -> GTot Type0 | val aref_live_at: h: heap -> a: aref -> t: Type0 -> rel: preorder t -> GTot Type0 | let aref_live_at (h: heap) (a: aref) (t: Type0) (rel: preorder t) =
let _ = () in
Some? (h.memory a.a_addr) /\
(let Some (| a1, pre_opt, mm, _ |) = h.memory a.a_addr in
t == a1 /\ Some? pre_opt /\ Some?.v pre_opt === rel /\ mm == a.a_mm) | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 71,
"end_line": 284,
"start_col": 0,
"start_line": 280
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
h: FStar.Monotonic.Heap.heap ->
a: FStar.Monotonic.Heap.aref ->
t: Type0 ->
rel: FStar.Preorder.preorder t
-> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.Heap.aref",
"FStar.Preorder.preorder",
"Prims.l_and",
"Prims.b2t",
"FStar.Pervasives.Native.uu___is_Some",
"FStar.Pervasives.dtuple4",
"FStar.Pervasives.Native.option",
"Prims.bool",
"FStar.Monotonic.Heap.__proj__Mkheap_rec__item__memory",
"FStar.Mon... | [] | false | false | false | false | true | let aref_live_at (h: heap) (a: aref) (t: Type0) (rel: preorder t) =
| let _ = () in
Some? (h.memory a.a_addr) /\
(let Some (| a1 , pre_opt , mm , _ |) = h.memory a.a_addr in
t == a1 /\ Some? pre_opt /\ Some?.v pre_opt === rel /\ mm == a.a_mm) | false |
Steel.PCMMap.fst | Steel.PCMMap.compose_maps_comm | val compose_maps_comm (#k #a: _) (p: pcm a) (m0 m1: map k a)
: Lemma (requires composable_maps p m0 m1)
(ensures compose_maps p m0 m1 == compose_maps p m1 m0) | val compose_maps_comm (#k #a: _) (p: pcm a) (m0 m1: map k a)
: Lemma (requires composable_maps p m0 m1)
(ensures compose_maps p m0 m1 == compose_maps p m1 m0) | let compose_maps_comm #k #a
(p:pcm a)
(m0 m1: map k a)
: Lemma
(requires composable_maps p m0 m1)
(ensures compose_maps p m0 m1 == compose_maps p m1 m0)
= let m01 = compose_maps p m0 m1 in
let m10 = compose_maps p m1 m0 in
introduce forall key.
Map.se... | {
"file_name": "lib/steel/Steel.PCMMap.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 30,
"end_line": 73,
"start_col": 0,
"start_line": 62
} | (*
Copyright 2021 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": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.Sugar.fsti.checked"
],
"interface_file": false,
"source_file": "S... | [
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"sho... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: FStar.PCM.pcm a -> m0: Steel.PCMMap.map k a -> m1: Steel.PCMMap.map k a
-> FStar.Pervasives.Lemma (requires Steel.PCMMap.composable_maps p m0 m1)
(ensures Steel.PCMMap.compose_maps p m0 m1 == Steel.PCMMap.compose_maps p m1 m0) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.eqtype",
"FStar.PCM.pcm",
"Steel.PCMMap.map",
"Prims._assert",
"FStar.Map.equal",
"Prims.unit",
"FStar.Classical.Sugar.forall_intro",
"Prims.eq2",
"FStar.Map.sel",
"FStar.PCM.__proj__Mkpcm__item__comm",
"Prims.squash",
"Steel.PCMMap.compose_maps",
"Steel.PCMMap.composable_maps",
"Pr... | [] | false | false | true | false | false | let compose_maps_comm #k #a (p: pcm a) (m0: map k a) (m1: map k a)
: Lemma (requires composable_maps p m0 m1)
(ensures compose_maps p m0 m1 == compose_maps p m1 m0) =
| let m01 = compose_maps p m0 m1 in
let m10 = compose_maps p m1 m0 in
introduce forall key . Map.sel m01 key == Map.sel m10 key
with (p.comm (Map.sel m0 key) (Map.sel m1 key));
assert (Map.equal m01 m10) | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.gref_of | val gref_of: a: aref -> t: Type0 -> rel: preorder t -> Ghost (mref t rel) (requires (exists h . aref_live_at h a t rel)) (ensures (fun _ -> True)) | val gref_of: a: aref -> t: Type0 -> rel: preorder t -> Ghost (mref t rel) (requires (exists h . aref_live_at h a t rel)) (ensures (fun _ -> True)) | let gref_of a t rel =
let m : squash (exists (h: heap) . aref_live_at h a t rel) = () in
let l : (exists (h: heap) . aref_live_at h a t rel) =
Squash.join_squash #(h: heap & aref_live_at h a t rel) m
in
let k : (exists (h: heap { aref_live_at h a t rel} ) . squash True ) =
FStar.Squash.bind_squash
... | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 19,
"end_line": 314,
"start_col": 0,
"start_line": 301
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.Monotonic.Heap.aref -> t: Type0 -> rel: FStar.Preorder.preorder t
-> Prims.Ghost (FStar.Monotonic.Heap.mref t rel) | Prims.Ghost | [] | [] | [
"FStar.Monotonic.Heap.aref",
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.ref_of'",
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.Heap.aref_live_at",
"FStar.ErasedLogic.exists_proj1",
"Prims.squash",
"Prims.l_True",
"Prims.l_Exists",
"FStar.Squash.bind_squash",
"Prims.dtuple2",
"FStar.Squa... | [] | false | false | false | false | false | let gref_of a t rel =
| let m:squash (exists (h: heap). aref_live_at h a t rel) = () in
let l:(exists (h: heap). aref_live_at h a t rel) =
Squash.join_squash #(h: heap & aref_live_at h a t rel) m
in
let k:(exists (h: heap{aref_live_at h a t rel}). squash True) =
FStar.Squash.bind_squash #(h: heap & aref_live_at h a t rel)
#(h: (h: hea... | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.ref_of' | val ref_of' (h: heap) (a: aref) (t: Type0) (rel: preorder t)
: Pure (mref t rel) (requires (aref_live_at h a t rel)) (ensures (fun _ -> True)) | val ref_of' (h: heap) (a: aref) (t: Type0) (rel: preorder t)
: Pure (mref t rel) (requires (aref_live_at h a t rel)) (ensures (fun _ -> True)) | let ref_of'
(h: heap)
(a: aref)
(t: Type0)
(rel: preorder t)
: Pure (mref t rel)
(requires (aref_live_at h a t rel))
(ensures (fun _ -> True))
= let Some (| _, pre_opt, _, x |) = h.memory a.a_addr in
{
addr = a.a_addr;
init = x;
mm = a.a_mm
} | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 299,
"start_col": 0,
"start_line": 286
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
h: FStar.Monotonic.Heap.heap ->
a: FStar.Monotonic.Heap.aref ->
t: Type0 ->
rel: FStar.Preorder.preorder t
-> Prims.Pure (FStar.Monotonic.Heap.mref t rel) | Prims.Pure | [] | [] | [
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.Heap.aref",
"FStar.Preorder.preorder",
"FStar.Pervasives.Native.option",
"Prims.bool",
"FStar.Monotonic.Heap.Mkcore_mref",
"FStar.Monotonic.Heap.__proj__Mkaref'__item__a_addr",
"FStar.Monotonic.Heap.__proj__Mkaref'__item__a_mm",
"FStar.Monotonic.Heap.mre... | [] | false | false | false | false | false | let ref_of' (h: heap) (a: aref) (t: Type0) (rel: preorder t)
: Pure (mref t rel) (requires (aref_live_at h a t rel)) (ensures (fun _ -> True)) =
| let Some (| _ , pre_opt , _ , x |) = h.memory a.a_addr in
{ addr = a.a_addr; init = x; mm = a.a_mm } | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.unused_in_gref_of | val unused_in_gref_of
(a: aref)
(t: Type0)
(rel: preorder t)
(h: heap)
: Lemma
(requires (exists h . aref_live_at h a t rel))
(ensures ((exists h . aref_live_at h a t rel) /\ (unused_in (gref_of a t rel) h <==> aref_unused_in a h)))
[SMTPat (unused_in (gref_of a t rel) h)] | val unused_in_gref_of
(a: aref)
(t: Type0)
(rel: preorder t)
(h: heap)
: Lemma
(requires (exists h . aref_live_at h a t rel))
(ensures ((exists h . aref_live_at h a t rel) /\ (unused_in (gref_of a t rel) h <==> aref_unused_in a h)))
[SMTPat (unused_in (gref_of a t rel) h)] | let unused_in_gref_of a t rel h = unused_in_aref_of (gref_of a t rel) h | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 71,
"end_line": 326,
"start_col": 0,
"start_line": 326
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: FStar.Monotonic.Heap.aref ->
t: Type0 ->
rel: FStar.Preorder.preorder t ->
h: FStar.Monotonic.Heap.heap
-> FStar.Pervasives.Lemma
(requires exists (h: FStar.Monotonic.Heap.heap). FStar.Monotonic.Heap.aref_live_at h a t rel)
(ensures
(exists (h: FStar.Monotonic.Heap.heap). FStar... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Monotonic.Heap.aref",
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.Heap.unused_in_aref_of",
"FStar.Monotonic.Heap.gref_of",
"Prims.unit"
] | [] | true | false | true | false | false | let unused_in_gref_of a t rel h =
| unused_in_aref_of (gref_of a t rel) h | false |
Steel.PCMMap.fst | Steel.PCMMap.pcm'_map_of_pcm | val pcm'_map_of_pcm (#a: _) (k: eqtype) (p: pcm a) : pcm' (map k a) | val pcm'_map_of_pcm (#a: _) (k: eqtype) (p: pcm a) : pcm' (map k a) | let pcm'_map_of_pcm (#a:_) (k:eqtype) (p:pcm a)
: pcm' (map k a)
= {
composable = composable_maps p;
op = compose_maps p;
one = Map.const p.p.one
} | {
"file_name": "lib/steel/Steel.PCMMap.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 5,
"end_line": 139,
"start_col": 0,
"start_line": 133
} | (*
Copyright 2021 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": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.Sugar.fsti.checked"
],
"interface_file": false,
"source_file": "S... | [
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"sho... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | k: Prims.eqtype -> p: FStar.PCM.pcm a -> FStar.PCM.pcm' (Steel.PCMMap.map k a) | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"FStar.PCM.pcm",
"FStar.PCM.Mkpcm'",
"Steel.PCMMap.map",
"Steel.PCMMap.composable_maps",
"Steel.PCMMap.compose_maps",
"FStar.Map.const",
"FStar.PCM.__proj__Mkpcm'__item__one",
"FStar.PCM.__proj__Mkpcm__item__p",
"FStar.PCM.pcm'"
] | [] | false | false | false | false | false | let pcm'_map_of_pcm (#a: _) (k: eqtype) (p: pcm a) : pcm' (map k a) =
| { composable = composable_maps p; op = compose_maps p; one = Map.const p.p.one } | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.is_mm_gref_of | val is_mm_gref_of
(a: aref)
(t: Type0)
(rel: preorder t)
: Lemma
(requires (exists h . aref_live_at h a t rel))
(ensures ((exists h . aref_live_at h a t rel) /\ is_mm (gref_of a t rel) == aref_is_mm a))
[SMTPat (is_mm (gref_of a t rel))] | val is_mm_gref_of
(a: aref)
(t: Type0)
(rel: preorder t)
: Lemma
(requires (exists h . aref_live_at h a t rel))
(ensures ((exists h . aref_live_at h a t rel) /\ is_mm (gref_of a t rel) == aref_is_mm a))
[SMTPat (is_mm (gref_of a t rel))] | let is_mm_gref_of a t rel = is_mm_aref_of (gref_of a t rel) | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 59,
"end_line": 324,
"start_col": 0,
"start_line": 324
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.Monotonic.Heap.aref -> t: Type0 -> rel: FStar.Preorder.preorder t
-> FStar.Pervasives.Lemma
(requires exists (h: FStar.Monotonic.Heap.heap). FStar.Monotonic.Heap.aref_live_at h a t rel)
(ensures
(exists (h: FStar.Monotonic.Heap.heap). FStar.Monotonic.Heap.aref_live_at h a t rel) /\
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Monotonic.Heap.aref",
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.is_mm_aref_of",
"FStar.Monotonic.Heap.gref_of",
"Prims.unit"
] | [] | true | false | true | false | false | let is_mm_gref_of a t rel =
| is_mm_aref_of (gref_of a t rel) | false |
Steel.PCMMap.fst | Steel.PCMMap.composable_maps_assoc_r | val composable_maps_assoc_r (#k #a: _) (p: pcm a) (m0 m1 m2: map k a)
: Lemma (requires composable_maps p m0 m1 /\ composable_maps p (compose_maps p m0 m1) m2)
(ensures
composable_maps p m1 m2 /\ composable_maps p m0 (compose_maps p m1 m2) /\
compose_maps p (compose_maps p m0 m1) m2 == compose... | val composable_maps_assoc_r (#k #a: _) (p: pcm a) (m0 m1 m2: map k a)
: Lemma (requires composable_maps p m0 m1 /\ composable_maps p (compose_maps p m0 m1) m2)
(ensures
composable_maps p m1 m2 /\ composable_maps p m0 (compose_maps p m1 m2) /\
compose_maps p (compose_maps p m0 m1) m2 == compose... | let composable_maps_assoc_r #k #a
(p:pcm a)
(m0 m1 m2: map k a)
: Lemma
(requires
composable_maps p m0 m1 /\
composable_maps p (compose_maps p m0 m1) m2)
(ensures
composable_maps p m1 m2 /\
composable_maps p m0 (compose_maps p m1 m2) ... | {
"file_name": "lib/steel/Steel.PCMMap.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 33,
"end_line": 129,
"start_col": 0,
"start_line": 105
} | (*
Copyright 2021 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": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.Sugar.fsti.checked"
],
"interface_file": false,
"source_file": "S... | [
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"sho... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: FStar.PCM.pcm a ->
m0: Steel.PCMMap.map k a ->
m1: Steel.PCMMap.map k a ->
m2: Steel.PCMMap.map k a
-> FStar.Pervasives.Lemma
(requires
Steel.PCMMap.composable_maps p m0 m1 /\
Steel.PCMMap.composable_maps p (Steel.PCMMap.compose_maps p m0 m1) m2)
(ensures
Steel.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.eqtype",
"FStar.PCM.pcm",
"Steel.PCMMap.map",
"Prims._assert",
"FStar.Map.equal",
"Prims.unit",
"FStar.Classical.Sugar.forall_intro",
"Prims.eq2",
"FStar.Map.sel",
"FStar.PCM.__proj__Mkpcm__item__assoc_r",
"Prims.squash",
"Steel.PCMMap.compose_maps",
"FStar.PCM.composable",
"Prims.l... | [] | false | false | true | false | false | let composable_maps_assoc_r #k #a (p: pcm a) (m0: map k a) (m1: map k a) (m2: map k a)
: Lemma (requires composable_maps p m0 m1 /\ composable_maps p (compose_maps p m0 m1) m2)
(ensures
composable_maps p m1 m2 /\ composable_maps p m0 (compose_maps p m1 m2) /\
compose_maps p (compose_maps p m0 ... | introduce forall key . composable p (Map.sel m1 key) (Map.sel m2 key)
with (p.assoc_r (Map.sel m0 key) (Map.sel m1 key) (Map.sel m2 key));
let m12 = compose_maps p m1 m2 in
introduce forall key . composable p (Map.sel m0 key) (Map.sel m12 key)
with (p.assoc_r (Map.sel m0 key) (Map.sel m1 key) (Map.sel m2 key));
let m01... | false |
FStar.Monotonic.Heap.fst | FStar.Monotonic.Heap.upd_ref_of | val upd_ref_of
(a: aref)
(t: Type0)
(rel: preorder t)
(h1 h2: heap)
(x: t)
: Lemma
(requires (aref_live_at h1 a t rel /\ aref_live_at h2 a t rel))
(ensures (aref_live_at h2 a t rel /\ upd h1 (ref_of h2 a t rel) x == upd h1 (gref_of a t rel) x))
[SMTPat (upd h1 (ref_of h2 a t rel) x)] | val upd_ref_of
(a: aref)
(t: Type0)
(rel: preorder t)
(h1 h2: heap)
(x: t)
: Lemma
(requires (aref_live_at h1 a t rel /\ aref_live_at h2 a t rel))
(ensures (aref_live_at h2 a t rel /\ upd h1 (ref_of h2 a t rel) x == upd h1 (gref_of a t rel) x))
[SMTPat (upd h1 (ref_of h2 a t rel) x)] | let upd_ref_of a t rel h1 h2 x =
lemma_heap_equality_upd_same_addr h1 (ref_of h2 a t rel) (gref_of a t rel) x | {
"file_name": "ulib/FStar.Monotonic.Heap.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 78,
"end_line": 331,
"start_col": 0,
"start_line": 330
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Squash.fsti.checked",
"FStar.Set.fsti.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.FunctionalExtensionality.fsti.checked",
"FStar.ErasedLogic... | [
{
"abbrev": true,
"full_module": "FStar.FunctionalExtensionality",
"short_module": "F"
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Preorder",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: FStar.Monotonic.Heap.aref ->
t: Type0 ->
rel: FStar.Preorder.preorder t ->
h1: FStar.Monotonic.Heap.heap ->
h2: FStar.Monotonic.Heap.heap ->
x: t
-> FStar.Pervasives.Lemma
(requires
FStar.Monotonic.Heap.aref_live_at h1 a t rel /\ FStar.Monotonic.Heap.aref_live_at h2 a t rel
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Monotonic.Heap.aref",
"FStar.Preorder.preorder",
"FStar.Monotonic.Heap.heap",
"FStar.Monotonic.Heap.lemma_heap_equality_upd_same_addr",
"FStar.Monotonic.Heap.ref_of",
"FStar.Monotonic.Heap.gref_of",
"Prims.unit"
] | [] | true | false | true | false | false | let upd_ref_of a t rel h1 h2 x =
| lemma_heap_equality_upd_same_addr h1 (ref_of h2 a t rel) (gref_of a t rel) x | false |
Steel.PCMMap.fst | Steel.PCMMap.is_unit | val is_unit (#k #a: _) (p: pcm a) (m: map k a)
: Lemma
(composable_maps p (Map.const p.p.one) m /\ (compose_maps p (Map.const p.p.one) m) `Map.equal` m /\
(compose_maps p m (Map.const p.p.one)) `Map.equal` m) | val is_unit (#k #a: _) (p: pcm a) (m: map k a)
: Lemma
(composable_maps p (Map.const p.p.one) m /\ (compose_maps p (Map.const p.p.one) m) `Map.equal` m /\
(compose_maps p m (Map.const p.p.one)) `Map.equal` m) | let is_unit #k #a (p:pcm a) (m:map k a)
: Lemma (composable_maps p (Map.const p.p.one) m /\
compose_maps p (Map.const p.p.one) m `Map.equal` m /\
compose_maps p m (Map.const p.p.one) `Map.equal` m)
= introduce forall k. composable p p.p.one (Map.sel m k)
with (
p.is_unit (Map.sel ... | {
"file_name": "lib/steel/Steel.PCMMap.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 6,
"end_line": 155,
"start_col": 0,
"start_line": 142
} | (*
Copyright 2021 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": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.Sugar.fsti.checked"
],
"interface_file": false,
"source_file": "S... | [
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"sho... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: FStar.PCM.pcm a -> m: Steel.PCMMap.map k a
-> FStar.Pervasives.Lemma
(ensures
Steel.PCMMap.composable_maps p (FStar.Map.const (Mkpcm'?.one (Mkpcm?.p p))) m /\
FStar.Map.equal (Steel.PCMMap.compose_maps p (FStar.Map.const (Mkpcm'?.one (Mkpcm?.p p))) m) m /\
FStar.Map.equal (Steel.PCMMap.compos... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.eqtype",
"FStar.PCM.pcm",
"Steel.PCMMap.map",
"FStar.Classical.Sugar.forall_intro",
"Prims.l_and",
"Prims.eq2",
"FStar.Map.sel",
"Steel.PCMMap.compose_maps",
"FStar.Map.const",
"FStar.PCM.__proj__Mkpcm'__item__one",
"FStar.PCM.__proj__Mkpcm__item__p",
"FStar.PCM.__proj__Mkpcm__item__com... | [] | false | false | true | false | false | let is_unit #k #a (p: pcm a) (m: map k a)
: Lemma
(composable_maps p (Map.const p.p.one) m /\ (compose_maps p (Map.const p.p.one) m) `Map.equal` m /\
(compose_maps p m (Map.const p.p.one)) `Map.equal` m) =
| introduce forall k . composable p p.p.one (Map.sel m k)
with (p.is_unit (Map.sel m k));
introduce forall k . Map.sel (compose_maps p (Map.const p.p.one) m) k == Map.sel m k /\
Map.sel (compose_maps p m (Map.const p.p.one)) k == Map.sel m k
with (p.is_unit (Map.sel m k);
p.comm p.p.one (Map.sel m k)) | false |
Steel.PCMMap.fst | Steel.PCMMap.composable_maps_assoc_l | val composable_maps_assoc_l (#k #a: _) (p: pcm a) (m0 m1 m2: map k a)
: Lemma (requires composable_maps p m1 m2 /\ composable_maps p m0 (compose_maps p m1 m2))
(ensures
composable_maps p m0 m1 /\ composable_maps p (compose_maps p m0 m1) m2 /\
compose_maps p (compose_maps p m0 m1) m2 == compose... | val composable_maps_assoc_l (#k #a: _) (p: pcm a) (m0 m1 m2: map k a)
: Lemma (requires composable_maps p m1 m2 /\ composable_maps p m0 (compose_maps p m1 m2))
(ensures
composable_maps p m0 m1 /\ composable_maps p (compose_maps p m0 m1) m2 /\
compose_maps p (compose_maps p m0 m1) m2 == compose... | let composable_maps_assoc_l #k #a
(p:pcm a)
(m0 m1 m2: map k a)
: Lemma
(requires
composable_maps p m1 m2 /\
composable_maps p m0 (compose_maps p m1 m2))
(ensures
composable_maps p m0 m1 /\
composable_maps p (compose_maps p m0 m1) m2 ... | {
"file_name": "lib/steel/Steel.PCMMap.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 60,
"end_line": 102,
"start_col": 0,
"start_line": 76
} | (*
Copyright 2021 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": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.Sugar.fsti.checked"
],
"interface_file": false,
"source_file": "S... | [
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"sho... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: FStar.PCM.pcm a ->
m0: Steel.PCMMap.map k a ->
m1: Steel.PCMMap.map k a ->
m2: Steel.PCMMap.map k a
-> FStar.Pervasives.Lemma
(requires
Steel.PCMMap.composable_maps p m1 m2 /\
Steel.PCMMap.composable_maps p m0 (Steel.PCMMap.compose_maps p m1 m2))
(ensures
Steel.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.eqtype",
"FStar.PCM.pcm",
"Steel.PCMMap.map",
"Prims._assert",
"FStar.Map.equal",
"Steel.PCMMap.compose_maps",
"Prims.unit",
"FStar.Classical.Sugar.forall_intro",
"Prims.eq2",
"FStar.Map.sel",
"FStar.PCM.__proj__Mkpcm__item__assoc",
"Prims.squash",
"FStar.PCM.composable",
"Prims.l_a... | [] | false | false | true | false | false | let composable_maps_assoc_l #k #a (p: pcm a) (m0: map k a) (m1: map k a) (m2: map k a)
: Lemma (requires composable_maps p m1 m2 /\ composable_maps p m0 (compose_maps p m1 m2))
(ensures
composable_maps p m0 m1 /\ composable_maps p (compose_maps p m0 m1) m2 /\
compose_maps p (compose_maps p m0 ... | introduce forall key . composable p (Map.sel m0 key) (Map.sel m1 key)
with (p.assoc (Map.sel m0 key) (Map.sel m1 key) (Map.sel m2 key));
let m01 = compose_maps p m0 m1 in
introduce forall key . composable p (Map.sel m01 key) (Map.sel m2 key)
with (p.assoc (Map.sel m0 key) (Map.sel m1 key) (Map.sel m2 key));
let m012 = ... | false |
Steel.PCMMap.fst | Steel.PCMMap.pointwise | val pointwise (#a: _) (k: eqtype) (p: pcm a) : pcm (map k a) | val pointwise (#a: _) (k: eqtype) (p: pcm a) : pcm (map k a) | let pointwise (#a:_) (k:eqtype) (p:pcm a)
: pcm (map k a)
= {
p = pcm'_map_of_pcm k p;
comm = (fun m0 m1 -> compose_maps_comm p m0 m1);
assoc = (fun m0 m1 m2 -> composable_maps_assoc_l p m0 m1 m2);
assoc_r = (fun m0 m1 m2 -> composable_maps_assoc_r p m0 m1 m2);
is_unit = (fun m ->... | {
"file_name": "lib/steel/Steel.PCMMap.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 5,
"end_line": 168,
"start_col": 0,
"start_line": 159
} | (*
Copyright 2021 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": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.Sugar.fsti.checked"
],
"interface_file": false,
"source_file": "S... | [
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"sho... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | k: Prims.eqtype -> p: FStar.PCM.pcm a -> FStar.PCM.pcm (Steel.PCMMap.map k a) | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"FStar.PCM.pcm",
"FStar.PCM.Mkpcm",
"Steel.PCMMap.map",
"Steel.PCMMap.pcm'_map_of_pcm",
"FStar.PCM.__proj__Mkpcm'__item__composable",
"Steel.PCMMap.compose_maps_comm",
"Prims.unit",
"Prims.l_and",
"FStar.PCM.__proj__Mkpcm'__item__op",
"Steel.PCMMap.composable_maps_assoc_l",
"St... | [] | false | false | false | false | false | let pointwise (#a: _) (k: eqtype) (p: pcm a) : pcm (map k a) =
| {
p = pcm'_map_of_pcm k p;
comm = (fun m0 m1 -> compose_maps_comm p m0 m1);
assoc = (fun m0 m1 m2 -> composable_maps_assoc_l p m0 m1 m2);
assoc_r = (fun m0 m1 m2 -> composable_maps_assoc_r p m0 m1 m2);
is_unit = (fun m -> is_unit p m);
refine = (fun m -> forall k. p.refine (Map.sel m k))
} | false |
Steel.PCMMap.fst | Steel.PCMMap.compatible_pointwise | val compatible_pointwise (#a #k: _) (p: pcm a) (m0 m1: map k a)
: Lemma (requires compatible (pointwise k p) m0 m1)
(ensures forall k. compatible p (Map.sel m0 k) (Map.sel m1 k)) | val compatible_pointwise (#a #k: _) (p: pcm a) (m0 m1: map k a)
: Lemma (requires compatible (pointwise k p) m0 m1)
(ensures forall k. compatible p (Map.sel m0 k) (Map.sel m1 k)) | let compatible_pointwise #a #k
(p:pcm a)
(m0 m1:map k a)
: Lemma
(requires compatible (pointwise k p) m0 m1)
(ensures forall k. compatible p (Map.sel m0 k) (Map.sel m1 k))
= let pcm' = pointwise k p in
introduce forall k. compatible p (Map.sel m0 k) (Map... | {
"file_name": "lib/steel/Steel.PCMMap.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 16,
"end_line": 192,
"start_col": 0,
"start_line": 173
} | (*
Copyright 2021 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": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.Sugar.fsti.checked"
],
"interface_file": false,
"source_file": "S... | [
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"sho... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: FStar.PCM.pcm a -> m0: Steel.PCMMap.map k a -> m1: Steel.PCMMap.map k a
-> FStar.Pervasives.Lemma (requires FStar.PCM.compatible (Steel.PCMMap.pointwise k p) m0 m1)
(ensures forall (k: k). FStar.PCM.compatible p (FStar.Map.sel m0 k) (FStar.Map.sel m1 k)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.eqtype",
"FStar.PCM.pcm",
"Steel.PCMMap.map",
"FStar.Classical.Sugar.forall_intro",
"FStar.PCM.compatible",
"FStar.Map.sel",
"FStar.Classical.Sugar.exists_elim",
"Prims.l_and",
"FStar.PCM.composable",
"Prims.eq2",
"FStar.PCM.op",
"Prims.l_Exists",
"Prims.squash",
"FStar.Classical.Su... | [] | false | false | true | false | false | let compatible_pointwise #a #k (p: pcm a) (m0: map k a) (m1: map k a)
: Lemma (requires compatible (pointwise k p) m0 m1)
(ensures forall k. compatible p (Map.sel m0 k) (Map.sel m1 k)) =
| let pcm' = pointwise k p in
introduce forall k . compatible p (Map.sel m0 k) (Map.sel m1 k)
with (eliminate exists frame.
composable pcm' m0 frame /\ op pcm' frame m0 == m1
returns _
with _.
(introduce exists (frame: a).composable p (Map.sel m0 k) frame /\
op p frame (Map.sel m0 k) == Map.sel m1 k
with ... | false |
Steel.PCMMap.fst | Steel.PCMMap.compatible_pointwise_upd | val compatible_pointwise_upd
(#a: _)
(#k: eqtype)
(p: pcm a)
(v1 full_v1: a)
(m0 full_m0: map k a)
(key: k)
: Lemma (requires compatible p v1 full_v1 /\ compatible (pointwise k p) m0 full_m0)
(ensures compatible (pointwise k p) (Map.upd m0 key v1) (Map.upd full_m0 key full_... | val compatible_pointwise_upd
(#a: _)
(#k: eqtype)
(p: pcm a)
(v1 full_v1: a)
(m0 full_m0: map k a)
(key: k)
: Lemma (requires compatible p v1 full_v1 /\ compatible (pointwise k p) m0 full_m0)
(ensures compatible (pointwise k p) (Map.upd m0 key v1) (Map.upd full_m0 key full_... | let compatible_pointwise_upd #a (#k:eqtype)
(p:pcm a)
(v1 full_v1:a)
(m0 full_m0:map k a)
(key:k)
: Lemma
(requires
compatible p v1 full_v1 /\
compatible (pointwise k p) m0 full_m0)
... | {
"file_name": "lib/steel/Steel.PCMMap.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 7,
"end_line": 227,
"start_col": 0,
"start_line": 198
} | (*
Copyright 2021 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": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.Sugar.fsti.checked"
],
"interface_file": false,
"source_file": "S... | [
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"sho... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: FStar.PCM.pcm a ->
v1: a ->
full_v1: a ->
m0: Steel.PCMMap.map k a ->
full_m0: Steel.PCMMap.map k a ->
key: k
-> FStar.Pervasives.Lemma
(requires
FStar.PCM.compatible p v1 full_v1 /\
FStar.PCM.compatible (Steel.PCMMap.pointwise k p) m0 full_m0)
(ensures
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.eqtype",
"FStar.PCM.pcm",
"Steel.PCMMap.map",
"FStar.Classical.Sugar.exists_elim",
"Prims.l_and",
"FStar.PCM.composable",
"Prims.eq2",
"FStar.PCM.op",
"Prims.l_Exists",
"FStar.Map.t",
"Prims.squash",
"FStar.Classical.Sugar.exists_intro",
"FStar.Map.upd",
"Prims.unit",
"Prims._asse... | [] | false | false | true | false | false | let compatible_pointwise_upd
#a
(#k: eqtype)
(p: pcm a)
(v1: a)
(full_v1: a)
(m0: map k a)
(full_m0: map k a)
(key: k)
: Lemma (requires compatible p v1 full_v1 /\ compatible (pointwise k p) m0 full_m0)
(ensures compatible (pointwise k p) (Map.upd m0 key v1) (Ma... | compatible_pointwise p m0 full_m0;
assert (compatible p (Map.sel m0 key) (Map.sel full_m0 key));
let m1 = (Map.upd m0 key v1) in
let full_m1 = (Map.upd full_m0 key full_v1) in
let p' = pointwise k p in
eliminate exists (frame_m0: _).
composable p' m0 frame_m0 /\ op p' frame_m0 m0 == full_m0
returns _
with _.
(eliminate... | false |
Steel.PCMMap.fst | Steel.PCMMap.lift_frame_preservation | val lift_frame_preservation
(#a: _)
(#k: eqtype)
(p: pcm a)
(m0 full_m0: map k a)
(v1 full_v1: a)
(key: k)
: Lemma
(requires
(let v0 = Map.sel m0 key in
let full_v0 = Map.sel full_m0 key in
let m1 = Map.upd m0 key v1 in
let full_m1 = Ma... | val lift_frame_preservation
(#a: _)
(#k: eqtype)
(p: pcm a)
(m0 full_m0: map k a)
(v1 full_v1: a)
(key: k)
: Lemma
(requires
(let v0 = Map.sel m0 key in
let full_v0 = Map.sel full_m0 key in
let m1 = Map.upd m0 key v1 in
let full_m1 = Ma... | let lift_frame_preservation #a (#k:eqtype) (p:pcm a)
(m0 full_m0:map k a)
(v1 full_v1:a)
(key:k)
: Lemma
(requires (
let v0 = Map.sel m0 key in
let full_v0 = Map.sel full_m0 key in
let m1 = Map.upd m0 key v1 in
... | {
"file_name": "lib/steel/Steel.PCMMap.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 7,
"end_line": 276,
"start_col": 0,
"start_line": 235
} | (*
Copyright 2021 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": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.Sugar.fsti.checked"
],
"interface_file": false,
"source_file": "S... | [
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"sho... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: FStar.PCM.pcm a ->
m0: Steel.PCMMap.map k a ->
full_m0: Steel.PCMMap.map k a ->
v1: a ->
full_v1: a ->
key: k
-> FStar.Pervasives.Lemma
(requires
(let v0 = FStar.Map.sel m0 key in
let full_v0 = FStar.Map.sel full_m0 key in
let m1 = FStar.Map.upd m0 key v1 ... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.eqtype",
"FStar.PCM.pcm",
"Steel.PCMMap.map",
"FStar.Classical.Sugar.forall_intro",
"FStar.PCM.composable",
"Prims.l_and",
"Prims.l_imp",
"Prims.eq2",
"FStar.PCM.op",
"FStar.Map.t",
"FStar.Classical.Sugar.and_intro",
"Prims.squash",
"Prims.unit",
"FStar.Classical.Sugar.implies_intro... | [] | false | false | true | false | false | let lift_frame_preservation
#a
(#k: eqtype)
(p: pcm a)
(m0: map k a)
(full_m0: map k a)
(v1: a)
(full_v1: a)
(key: k)
: Lemma
(requires
(let v0 = Map.sel m0 key in
let full_v0 = Map.sel full_m0 key in
let m1 = Map.upd m0 key v1 in
... | let v0 = Map.sel m0 key in
let full_v0 = Map.sel full_m0 key in
let m1 = Map.upd m0 key v1 in
let full_m1 = Map.upd full_m0 key full_v1 in
let p' = pointwise k p in
introduce forall (frame: _{composable p' m0 frame}) . composable p' m1 frame /\
(op p' m0 frame == full_m0 ==> op p' m1 frame == full_m1)
with (introduce _... | false |
Steel.PCMMap.fst | Steel.PCMMap.lift_frame_preserving_upd | val lift_frame_preserving_upd
(#a #k: _)
(#p: pcm a)
(v0 v1: Ghost.erased a)
(f: frame_preserving_upd p v0 v1)
(m0: Ghost.erased (map k a))
(key: k{Map.sel m0 key == Ghost.reveal v0})
: frame_preserving_upd (pointwise k p) m0 (Map.upd m0 key v1) | val lift_frame_preserving_upd
(#a #k: _)
(#p: pcm a)
(v0 v1: Ghost.erased a)
(f: frame_preserving_upd p v0 v1)
(m0: Ghost.erased (map k a))
(key: k{Map.sel m0 key == Ghost.reveal v0})
: frame_preserving_upd (pointwise k p) m0 (Map.upd m0 key v1) | let lift_frame_preserving_upd #a #k (#p:pcm a)
(v0 v1: Ghost.erased a)
(f:frame_preserving_upd p v0 v1)
(m0: Ghost.erased (map k a))
(key:k { Map.sel m0 key == Ghost.reveal v0 })
: frame_preserving_... | {
"file_name": "lib/steel/Steel.PCMMap.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 17,
"end_line": 302,
"start_col": 0,
"start_line": 280
} | (*
Copyright 2021 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": [
"prims.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Map.fsti.checked",
"FStar.Ghost.fsti.checked",
"FStar.Classical.Sugar.fsti.checked"
],
"interface_file": false,
"source_file": "S... | [
{
"abbrev": false,
"full_module": "FStar.PCM",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel",
"sho... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
v0: FStar.Ghost.erased a ->
v1: FStar.Ghost.erased a ->
f: FStar.PCM.frame_preserving_upd p (FStar.Ghost.reveal v0) (FStar.Ghost.reveal v1) ->
m0: FStar.Ghost.erased (Steel.PCMMap.map k a) ->
key: k{FStar.Map.sel (FStar.Ghost.reveal m0) key == FStar.Ghost.reveal v0}
-> FStar.PCM.frame_preserving_... | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"FStar.PCM.pcm",
"FStar.Ghost.erased",
"FStar.PCM.frame_preserving_upd",
"FStar.Ghost.reveal",
"Steel.PCMMap.map",
"Prims.eq2",
"FStar.Map.sel",
"Prims.l_and",
"FStar.PCM.__proj__Mkpcm__item__refine",
"Steel.PCMMap.pointwise",
"FStar.PCM.compatible",
"Prims.unit",
"Steel.PC... | [] | false | false | false | false | false | let lift_frame_preserving_upd
#a
#k
(#p: pcm a)
(v0: Ghost.erased a)
(v1: Ghost.erased a)
(f: frame_preserving_upd p v0 v1)
(m0: Ghost.erased (map k a))
(key: k{Map.sel m0 key == Ghost.reveal v0})
: frame_preserving_upd (pointwise k p) m0 (Map.upd m0 key v1) =
| fun full_m0 ->
let p' = pointwise k p in
let full_v0 = Map.sel full_m0 key in
assert (compatible (pointwise _ p) m0 full_m0);
assert (p.refine full_v0);
compatible_pointwise #a #k p m0 full_m0;
assert (compatible p v0 full_v0);
let full_v1 = f full_v0 in
let full_m1 = Map.upd full_m0 key full_v1 in
as... | false |
Hacl.Impl.RSAPSS.Padding.fst | Hacl.Impl.RSAPSS.Padding.get_m1Hash | val get_m1Hash:
a:Hash.hash_alg{S.hash_is_supported a}
-> saltLen:salt_len_t a
-> salt:lbuffer uint8 saltLen
-> msgLen:msg_len_t a
-> msg:lbuffer uint8 msgLen
-> hLen:size_t{v hLen == Hash.hash_length a}
-> m1Hash:lbuffer uint8 hLen ->
Stack unit
(requires fun h ->
live h salt /\ live h msg /\ l... | val get_m1Hash:
a:Hash.hash_alg{S.hash_is_supported a}
-> saltLen:salt_len_t a
-> salt:lbuffer uint8 saltLen
-> msgLen:msg_len_t a
-> msg:lbuffer uint8 msgLen
-> hLen:size_t{v hLen == Hash.hash_length a}
-> m1Hash:lbuffer uint8 hLen ->
Stack unit
(requires fun h ->
live h salt /\ live h msg /\ l... | let get_m1Hash a saltLen salt msgLen msg hLen m1Hash =
push_frame ();
//m1 = [8 * 0x00; mHash; salt]
let m1Len = 8ul +! hLen +! saltLen in
let m1 = create m1Len (u8 0) in
let h0 = ST.get () in
update_sub_f h0 m1 8ul hLen
(fun h -> Hash.hash a (as_seq h0 msg))
(fun _ -> hash a (sub m1 8ul hLen) msgLe... | {
"file_name": "code/rsapss/Hacl.Impl.RSAPSS.Padding.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 100,
"start_col": 0,
"start_line": 89
} | module Hacl.Impl.RSAPSS.Padding
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.RSAPSS.MGF
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module Hash = Spec.Agile.Hash
module S = Spec.RSAPSS
module BD = Hacl.Bignum.Definitions
#reset-opti... | {
"checked_file": "/",
"dependencies": [
"Spec.RSAPSS.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"... | [
{
"abbrev": true,
"full_module": "Hacl.Bignum.Definitions",
"short_module": "BD"
},
{
"abbrev": true,
"full_module": "Spec.RSAPSS",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.Agile.Hash",
"short_module": "Hash"
},
{
"abbrev": true,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Spec.Hash.Definitions.hash_alg{Spec.RSAPSS.hash_is_supported a} ->
saltLen: Hacl.Impl.RSAPSS.Padding.salt_len_t a ->
salt: Lib.Buffer.lbuffer Lib.IntTypes.uint8 saltLen ->
msgLen: Hacl.Impl.RSAPSS.Padding.msg_len_t a ->
msg: Lib.Buffer.lbuffer Lib.IntTypes.uint8 msgLen ->
hLen: Lib.IntTypes.... | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Hash.Definitions.hash_alg",
"Prims.b2t",
"Spec.RSAPSS.hash_is_supported",
"Hacl.Impl.RSAPSS.Padding.salt_len_t",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"Hacl.Impl.RSAPSS.Padding.msg_len_t",
"Lib.IntTypes.size_t",
"Prims.eq2",
"Prims.int",
"Prims.l_or",
"Lib.IntTypes.range",
"Lib.I... | [] | false | true | false | false | false | let get_m1Hash a saltLen salt msgLen msg hLen m1Hash =
| push_frame ();
let m1Len = 8ul +! hLen +! saltLen in
let m1 = create m1Len (u8 0) in
let h0 = ST.get () in
update_sub_f h0
m1
8ul
hLen
(fun h -> Hash.hash a (as_seq h0 msg))
(fun _ -> hash a (sub m1 8ul hLen) msgLen msg);
update_sub m1 (8ul +! hLen) saltLen salt;
hash a m1Hash m1Len m1;
pop_frame () | false |
Steel.ST.BitVector.fst | Steel.ST.BitVector.pts_to_length | val pts_to_length (#opened:_) (#n:US.t) (#p:perm) (bv:bv_t n) (s:repr)
: STGhost unit opened
(pts_to bv p s)
(fun _ -> pts_to bv p s)
(requires True)
(ensures fun _ -> Seq.length s == US.v n) | val pts_to_length (#opened:_) (#n:US.t) (#p:perm) (bv:bv_t n) (s:repr)
: STGhost unit opened
(pts_to bv p s)
(fun _ -> pts_to bv p s)
(requires True)
(ensures fun _ -> Seq.length s == US.v n) | let pts_to_length bv s = A.pts_to_length bv s | {
"file_name": "lib/steel/Steel.ST.BitVector.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 45,
"end_line": 35,
"start_col": 0,
"start_line": 35
} | (*
Copyright 2021 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.Util.fsti.checked",
"Steel.ST.Effect.Ghost.fsti.checked",
"Steel.ST.Effect.fsti.checked",
"Steel.ST.Array.fsti.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
]... | [
{
"abbrev": true,
"full_module": "Steel.ST.Array",
"short_module": "A"
},
{
"abbrev": true,
"full_module": "FStar.Ghost",
"short_module": "G"
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Steel.ST... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | bv: Steel.ST.BitVector.bv_t n -> s: Steel.ST.BitVector.repr
-> Steel.ST.Effect.Ghost.STGhost Prims.unit | Steel.ST.Effect.Ghost.STGhost | [] | [] | [
"Steel.Memory.inames",
"FStar.SizeT.t",
"Steel.FractionalPermission.perm",
"Steel.ST.BitVector.bv_t",
"Steel.ST.BitVector.repr",
"Steel.ST.Array.pts_to_length",
"Prims.bool",
"Prims.unit"
] | [] | false | true | false | false | false | let pts_to_length bv s =
| A.pts_to_length bv s | false |
Steel.ST.BitVector.fst | Steel.ST.BitVector.bv_is_set | val bv_is_set
(#n:US.t)
(#p:perm)
(#s:G.erased repr)
(bv:bv_t n)
(i:US.t{US.v i < Seq.length s})
: ST bool
(pts_to bv p s)
(fun _ -> pts_to bv p s)
(requires True)
(ensures fun b -> b == Seq.index s (US.v i)) | val bv_is_set
(#n:US.t)
(#p:perm)
(#s:G.erased repr)
(bv:bv_t n)
(i:US.t{US.v i < Seq.length s})
: ST bool
(pts_to bv p s)
(fun _ -> pts_to bv p s)
(requires True)
(ensures fun b -> b == Seq.index s (US.v i)) | let bv_is_set bv i = A.read bv i | {
"file_name": "lib/steel/Steel.ST.BitVector.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 32,
"end_line": 39,
"start_col": 0,
"start_line": 39
} | (*
Copyright 2021 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.Util.fsti.checked",
"Steel.ST.Effect.Ghost.fsti.checked",
"Steel.ST.Effect.fsti.checked",
"Steel.ST.Array.fsti.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
]... | [
{
"abbrev": true,
"full_module": "Steel.ST.Array",
"short_module": "A"
},
{
"abbrev": true,
"full_module": "FStar.Ghost",
"short_module": "G"
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Steel.ST... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
bv: Steel.ST.BitVector.bv_t n ->
i: FStar.SizeT.t{FStar.SizeT.v i < FStar.Seq.Base.length (FStar.Ghost.reveal s)}
-> Steel.ST.Effect.ST Prims.bool | Steel.ST.Effect.ST | [] | [] | [
"FStar.SizeT.t",
"Steel.FractionalPermission.perm",
"FStar.Ghost.erased",
"Steel.ST.BitVector.repr",
"Steel.ST.BitVector.bv_t",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.SizeT.v",
"FStar.Seq.Base.length",
"Prims.bool",
"FStar.Ghost.reveal",
"Steel.ST.Array.read"
] | [] | false | true | false | false | false | let bv_is_set bv i =
| A.read bv i | false |
Hacl.Impl.P256.PointAdd.fst | Hacl.Impl.P256.PointAdd.point_add_noalloc | val point_add_noalloc: tmp:lbuffer uint64 24ul -> res:point -> p:point -> q:point -> Stack unit
(requires fun h ->
live h p /\ live h q /\ live h res /\ live h tmp /\
eq_or_disjoint p q /\ disjoint q res /\ disjoint p res /\
disjoint tmp p /\ disjoint tmp q /\ disjoint tmp res /\
point_inv h p /\ poin... | val point_add_noalloc: tmp:lbuffer uint64 24ul -> res:point -> p:point -> q:point -> Stack unit
(requires fun h ->
live h p /\ live h q /\ live h res /\ live h tmp /\
eq_or_disjoint p q /\ disjoint q res /\ disjoint p res /\
disjoint tmp p /\ disjoint tmp q /\ disjoint tmp res /\
point_inv h p /\ poin... | let point_add_noalloc tmp res p q =
let x3, y3, z3 = getx res, gety res, getz res in
let t0 = sub tmp 0ul 4ul in
let t1 = sub tmp 4ul 4ul in
let t2 = sub tmp 8ul 4ul in
let t3 = sub tmp 12ul 4ul in
let t4 = sub tmp 16ul 4ul in
let t5 = sub tmp 20ul 4ul in
point_add_1 t0 t1 t2 t3 t4 p q;
point_add_2 t1... | {
"file_name": "code/ecdsap256/Hacl.Impl.P256.PointAdd.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 37,
"end_line": 297,
"start_col": 0,
"start_line": 283
} | module Hacl.Impl.P256.PointAdd
open FStar.Mul
open FStar.HyperStack.All
open FStar.HyperStack
module ST = FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.P256.Bignum
open Hacl.Impl.P256.Field
module S = Spec.P256
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
inline_for_extraction noextrac... | {
"checked_file": "/",
"dependencies": [
"Spec.P256.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.P256.Field.fsti.checked",
"Hacl.Impl.P256.Bignum.fsti.checked",
"FStar.UInt32.fsti.checke... | [
{
"abbrev": true,
"full_module": "Spec.P256",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.P256.Field",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.P256.Bignum",
"short_module": null
},
{
"abbrev": false,
"full_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
tmp: Lib.Buffer.lbuffer Lib.IntTypes.uint64 24ul ->
res: Hacl.Impl.P256.Point.point ->
p: Hacl.Impl.P256.Point.point ->
q: Hacl.Impl.P256.Point.point
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint64",
"FStar.UInt32.__uint_to_t",
"Hacl.Impl.P256.Point.point",
"Hacl.Impl.P256.Bignum.felem",
"Hacl.Impl.P256.PointAdd.point_add_7",
"Prims.unit",
"Hacl.Impl.P256.PointAdd.point_add_6",
"Hacl.Impl.P256.PointAdd.point_add_5",
"Hacl.Impl.P256.PointAdd.point_ad... | [] | false | true | false | false | false | let point_add_noalloc tmp res p q =
| let x3, y3, z3 = getx res, gety res, getz res in
let t0 = sub tmp 0ul 4ul in
let t1 = sub tmp 4ul 4ul in
let t2 = sub tmp 8ul 4ul in
let t3 = sub tmp 12ul 4ul in
let t4 = sub tmp 16ul 4ul in
let t5 = sub tmp 20ul 4ul in
point_add_1 t0 t1 t2 t3 t4 p q;
point_add_2 t1 t2 t3 t4 t5 p q;
point_add_3 x3 y3 t0 t2 p q;
point_a... | false |
LowParse.Spec.VLGen.fst | LowParse.Spec.VLGen.parse_bounded_vlgen_kind | val parse_bounded_vlgen_kind : sk: LowParse.Spec.Base.parser_kind ->
min: Prims.nat ->
max: Prims.nat{min <= max} ->
k: LowParse.Spec.Base.parser_kind
-> LowParse.Spec.Base.parser_kind | let parse_bounded_vlgen_kind
(sk: parser_kind)
(min: nat)
(max: nat { min <= max } )
(k: parser_kind)
= and_then_kind sk (parse_bounded_vlgen_payload_kind min max k) | {
"file_name": "src/lowparse/LowParse.Spec.VLGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 63,
"end_line": 117,
"start_col": 0,
"start_line": 112
} | module LowParse.Spec.VLGen
include LowParse.Spec.Combinators
include LowParse.Spec.AllIntegers
include LowParse.Spec.VLData // for parse_bounded_vldata_strong_t
(* TODO: this module should deprecate and replace LowParse.Spec.VLData *)
module U32 = FStar.UInt32
module Seq = FStar.Seq
let tag_of_bounded_vlgen_payload
... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.VLData.fsti.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec.AllIntegers.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pe... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.VLData",
"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 |
sk: LowParse.Spec.Base.parser_kind ->
min: Prims.nat ->
max: Prims.nat{min <= max} ->
k: LowParse.Spec.Base.parser_kind
-> LowParse.Spec.Base.parser_kind | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"LowParse.Spec.Combinators.and_then_kind",
"LowParse.Spec.VLGen.parse_bounded_vlgen_payload_kind"
] | [] | false | false | false | false | false | let parse_bounded_vlgen_kind (sk: parser_kind) (min: nat) (max: nat{min <= max}) (k: parser_kind) =
| and_then_kind sk (parse_bounded_vlgen_payload_kind min max k) | false | |
LowParse.Spec.VLGen.fst | LowParse.Spec.VLGen.synth_vlgen | val synth_vlgen
(min max: nat)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(x: parse_bounded_vldata_strong_t min max s)
: Tot t | val synth_vlgen
(min max: nat)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(x: parse_bounded_vldata_strong_t min max s)
: Tot t | let synth_vlgen
(min: nat)
(max: nat)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(x: parse_bounded_vldata_strong_t min max s)
: Tot t
= x | {
"file_name": "src/lowparse/LowParse.Spec.VLGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 223,
"start_col": 0,
"start_line": 214
} | module LowParse.Spec.VLGen
include LowParse.Spec.Combinators
include LowParse.Spec.AllIntegers
include LowParse.Spec.VLData // for parse_bounded_vldata_strong_t
(* TODO: this module should deprecate and replace LowParse.Spec.VLData *)
module U32 = FStar.UInt32
module Seq = FStar.Seq
let tag_of_bounded_vlgen_payload
... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.VLData.fsti.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec.AllIntegers.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pe... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.VLData",
"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 |
min: Prims.nat ->
max: Prims.nat ->
s: LowParse.Spec.Base.serializer p ->
x: LowParse.Spec.VLData.parse_bounded_vldata_strong_t min max s
-> t | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"LowParse.Spec.VLData.parse_bounded_vldata_strong_t"
] | [] | false | false | false | false | false | let synth_vlgen
(min max: nat)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(x: parse_bounded_vldata_strong_t min max s)
: Tot t =
| x | false |
Pulse.Syntax.Printer.fst | Pulse.Syntax.Printer.pattern_to_string | val pattern_to_string (p:pattern) : T.Tac string | val pattern_to_string (p:pattern) : T.Tac string | let rec st_term_to_string' (level:string) (t:st_term)
: T.Tac string
= match t.term with
| Tm_Return { insert_eq; term } ->
sprintf "return_%s %s"
(if insert_eq then "" else "_noeq")
(term_to_string term)
| Tm_STApp {head; arg_qual; arg } ->
sprintf "(%s%s %s%s)"
(... | {
"file_name": "lib/steel/pulse/Pulse.Syntax.Printer.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 26,
"end_line": 428,
"start_col": 0,
"start_line": 229
} | (*
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.Syntax.Base.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.String.fsti.checked",
"FStar.Sealed.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checke... | [
{
"abbrev": true,
"full_module": "FStar.Sealed",
"short_module": "Un"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "FStar.Printf",
"short_module": null
},
{
"abbrev": false,
"full_module": "FSta... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Pulse.Syntax.Base.pattern -> FStar.Tactics.Effect.Tac Prims.string | FStar.Tactics.Effect.Tac | [] | [
"st_term_to_string'",
"branches_to_string",
"branch_to_string",
"pattern_to_string"
] | [
"Pulse.Syntax.Base.pattern",
"Pulse.Syntax.Base.fv",
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"Prims.bool",
"FStar.Printf.sprintf",
"FStar.String.concat",
"Pulse.Syntax.Base.__proj__Mkfv__item__fv_name",
"Prims.string",
"FStar.Tactics.Util.map",
"Pulse.Syntax.Printer.pattern_to_string",
... | [
"mutual recursion"
] | false | true | false | false | false | let rec pattern_to_string (p: pattern) : T.Tac string =
| match p with
| Pat_Cons fv pats ->
Printf.sprintf "(%s %s)"
(String.concat "." fv.fv_name)
(String.concat " " (T.map (fun (p, _) -> pattern_to_string p) pats))
| Pat_Constant c -> "<constant>"
| Pat_Var x _ -> T.unseal x
| Pat_Dot_Term None -> ""
| Pat_Dot_Term (Some t) -> Printf.sprintf "(.??)" | false |
Pulse.Syntax.Printer.fst | Pulse.Syntax.Printer.st_term_to_string' | val st_term_to_string' (level: string) (t: st_term) : T.Tac string | val st_term_to_string' (level: string) (t: st_term) : T.Tac string | let rec st_term_to_string' (level:string) (t:st_term)
: T.Tac string
= match t.term with
| Tm_Return { insert_eq; term } ->
sprintf "return_%s %s"
(if insert_eq then "" else "_noeq")
(term_to_string term)
| Tm_STApp {head; arg_qual; arg } ->
sprintf "(%s%s %s%s)"
(... | {
"file_name": "lib/steel/pulse/Pulse.Syntax.Printer.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 26,
"end_line": 428,
"start_col": 0,
"start_line": 229
} | (*
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.Syntax.Base.fsti.checked",
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.String.fsti.checked",
"FStar.Sealed.fsti.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Printf.fst.checked",
"FStar.Pervasives.Native.fst.checke... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module": "FStar.Sealed",
"short_module": "Un"
},
{
"abbrev": true,
"full_module": "FStar.Tactics.V2",
"short_module": "T"
},
{
"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 | level: Prims.string -> t: Pulse.Syntax.Base.st_term -> FStar.Tactics.Effect.Tac Prims.string | FStar.Tactics.Effect.Tac | [] | [
"st_term_to_string'",
"branches_to_string",
"branch_to_string",
"pattern_to_string"
] | [
"Prims.string",
"Pulse.Syntax.Base.st_term",
"Pulse.Syntax.Base.__proj__Mkst_term__item__term",
"Pulse.Syntax.Base.term",
"Prims.bool",
"FStar.Printf.sprintf",
"Pulse.Syntax.Printer.term_to_string",
"FStar.Pervasives.Native.option",
"Pulse.Syntax.Base.qualifier",
"Pulse.Syntax.Printer.qual_to_stri... | [
"mutual recursion"
] | false | true | false | false | false | let rec st_term_to_string' (level: string) (t: st_term) : T.Tac string =
| match t.term with
| Tm_Return { insert_eq = insert_eq ; term = term } ->
sprintf "return_%s %s" (if insert_eq then "" else "_noeq") (term_to_string term)
| Tm_STApp { head = head ; arg_qual = arg_qual ; arg = arg } ->
sprintf "(%s%s %s%s)"
(if dbg_printing then "<stapp>" else "")
(term_to_string head)
(... | false |
LowParse.Spec.VLGen.fst | LowParse.Spec.VLGen.parse_vlgen_weak_kind | val parse_vlgen_weak_kind (kl: parser_kind) (min: nat) (max: nat{min <= max /\ max < 4294967296})
: Tot parser_kind | val parse_vlgen_weak_kind (kl: parser_kind) (min: nat) (max: nat{min <= max /\ max < 4294967296})
: Tot parser_kind | let parse_vlgen_weak_kind
(kl: parser_kind)
(min: nat)
(max: nat { min <= max /\ max < 4294967296 } )
: Tot parser_kind
= and_then_kind kl (parse_vlgen_weak_payload_kind min max) | {
"file_name": "src/lowparse/LowParse.Spec.VLGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 58,
"end_line": 488,
"start_col": 0,
"start_line": 483
} | module LowParse.Spec.VLGen
include LowParse.Spec.Combinators
include LowParse.Spec.AllIntegers
include LowParse.Spec.VLData // for parse_bounded_vldata_strong_t
(* TODO: this module should deprecate and replace LowParse.Spec.VLData *)
module U32 = FStar.UInt32
module Seq = FStar.Seq
let tag_of_bounded_vlgen_payload
... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.VLData.fsti.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec.AllIntegers.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pe... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.VLData",
"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 |
kl: LowParse.Spec.Base.parser_kind ->
min: Prims.nat ->
max: Prims.nat{min <= max /\ max < 4294967296}
-> LowParse.Spec.Base.parser_kind | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"LowParse.Spec.Combinators.and_then_kind",
"LowParse.Spec.VLGen.parse_vlgen_weak_payload_kind"
] | [] | false | false | false | false | false | let parse_vlgen_weak_kind (kl: parser_kind) (min: nat) (max: nat{min <= max /\ max < 4294967296})
: Tot parser_kind =
| and_then_kind kl (parse_vlgen_weak_payload_kind min max) | false |
Steel.ST.BitVector.fst | Steel.ST.BitVector.bv_unset | val bv_unset
(#n:US.t)
(#s:G.erased repr)
(bv:bv_t n)
(i:US.t{US.v i < Seq.length s})
: STT unit
(pts_to bv full_perm s)
(fun _ -> pts_to bv full_perm (Seq.upd s (US.v i) false)) | val bv_unset
(#n:US.t)
(#s:G.erased repr)
(bv:bv_t n)
(i:US.t{US.v i < Seq.length s})
: STT unit
(pts_to bv full_perm s)
(fun _ -> pts_to bv full_perm (Seq.upd s (US.v i) false)) | let bv_unset #_ #s bv i = A.write #_ bv #s i false | {
"file_name": "lib/steel/Steel.ST.BitVector.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 50,
"end_line": 43,
"start_col": 0,
"start_line": 43
} | (*
Copyright 2021 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.Util.fsti.checked",
"Steel.ST.Effect.Ghost.fsti.checked",
"Steel.ST.Effect.fsti.checked",
"Steel.ST.Array.fsti.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
]... | [
{
"abbrev": true,
"full_module": "Steel.ST.Array",
"short_module": "A"
},
{
"abbrev": true,
"full_module": "FStar.Ghost",
"short_module": "G"
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Steel.ST... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
bv: Steel.ST.BitVector.bv_t n ->
i: FStar.SizeT.t{FStar.SizeT.v i < FStar.Seq.Base.length (FStar.Ghost.reveal s)}
-> Steel.ST.Effect.STT Prims.unit | Steel.ST.Effect.STT | [] | [] | [
"FStar.SizeT.t",
"FStar.Ghost.erased",
"Steel.ST.BitVector.repr",
"Steel.ST.BitVector.bv_t",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.SizeT.v",
"FStar.Seq.Base.length",
"Prims.bool",
"FStar.Ghost.reveal",
"Steel.ST.Array.write",
"Prims.unit"
] | [] | false | true | false | false | false | let bv_unset #_ #s bv i =
| A.write #_ bv #s i false | false |
Steel.ST.BitVector.fst | Steel.ST.BitVector.alloc | val alloc (n:US.t{US.v n > 0})
: STT (bv_t n) emp (fun r -> pts_to r full_perm (Seq.create (US.v n) false)) | val alloc (n:US.t{US.v n > 0})
: STT (bv_t n) emp (fun r -> pts_to r full_perm (Seq.create (US.v n) false)) | let alloc n = A.alloc false n | {
"file_name": "lib/steel/Steel.ST.BitVector.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 29,
"end_line": 37,
"start_col": 0,
"start_line": 37
} | (*
Copyright 2021 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.Util.fsti.checked",
"Steel.ST.Effect.Ghost.fsti.checked",
"Steel.ST.Effect.fsti.checked",
"Steel.ST.Array.fsti.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
]... | [
{
"abbrev": true,
"full_module": "Steel.ST.Array",
"short_module": "A"
},
{
"abbrev": true,
"full_module": "FStar.Ghost",
"short_module": "G"
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Steel.ST... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | n: FStar.SizeT.t{FStar.SizeT.v n > 0} -> Steel.ST.Effect.STT (Steel.ST.BitVector.bv_t n) | Steel.ST.Effect.STT | [] | [] | [
"FStar.SizeT.t",
"Prims.b2t",
"Prims.op_GreaterThan",
"FStar.SizeT.v",
"Steel.ST.Array.alloc",
"Prims.bool",
"Steel.ST.Array.array",
"Steel.ST.BitVector.bv_t"
] | [] | false | true | false | false | false | let alloc n =
| A.alloc false n | false |
LowParse.Spec.VLGen.fst | LowParse.Spec.VLGen.parse_bounded_vlgen | val parse_bounded_vlgen
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#sk: parser_kind)
(pk: parser sk (bounded_int32 min max))
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
: Tot (parser (parse_bounded_vlgen_kind sk min max k) (parse_bounde... | val parse_bounded_vlgen
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#sk: parser_kind)
(pk: parser sk (bounded_int32 min max))
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
: Tot (parser (parse_bounded_vlgen_kind sk min max k) (parse_bounde... | let parse_bounded_vlgen
(min: nat)
(max: nat { min <= max /\ max < 4294967296 } )
(#sk: parser_kind)
(pk: parser sk (bounded_int32 min max))
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
: Tot (parser (parse_bounded_vlgen_kind sk min max k) (parse_bounded_vldata_strong_t min max s))
= ... | {
"file_name": "src/lowparse/LowParse.Spec.VLGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 43,
"end_line": 132,
"start_col": 0,
"start_line": 119
} | module LowParse.Spec.VLGen
include LowParse.Spec.Combinators
include LowParse.Spec.AllIntegers
include LowParse.Spec.VLData // for parse_bounded_vldata_strong_t
(* TODO: this module should deprecate and replace LowParse.Spec.VLData *)
module U32 = FStar.UInt32
module Seq = FStar.Seq
let tag_of_bounded_vlgen_payload
... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.VLData.fsti.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec.AllIntegers.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pe... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.VLData",
"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 |
min: Prims.nat ->
max: Prims.nat{min <= max /\ max < 4294967296} ->
pk: LowParse.Spec.Base.parser sk (LowParse.Spec.BoundedInt.bounded_int32 min max) ->
s: LowParse.Spec.Base.serializer p
-> LowParse.Spec.Base.parser (LowParse.Spec.VLGen.parse_bounded_vlgen_kind sk min max k)
(LowParse.Spec.VLD... | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.BoundedInt.bounded_int32",
"LowParse.Spec.Base.serializer",
"LowParse.Spec.Combinators.parse_tagged_union",
"LowParse.Spec.VLDat... | [] | false | false | false | false | false | let parse_bounded_vlgen
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#sk: parser_kind)
(pk: parser sk (bounded_int32 min max))
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
: Tot (parser (parse_bounded_vlgen_kind sk min max k) (parse_bounde... | parse_tagged_union pk
(tag_of_bounded_vlgen_payload min max s)
(parse_bounded_vlgen_payload min max s) | false |
LowParse.Spec.VLGen.fst | LowParse.Spec.VLGen.parse_vlgen_precond | val parse_vlgen_precond (min: nat) (max: nat{min <= max}) (k: parser_kind) : GTot bool | val parse_vlgen_precond (min: nat) (max: nat{min <= max}) (k: parser_kind) : GTot bool | let parse_vlgen_precond
(min: nat)
(max: nat { min <= max } )
(k: parser_kind)
: GTot bool
= match k.parser_kind_high with
| None -> false
| Some kmax -> min <= k.parser_kind_low && kmax <= max | {
"file_name": "src/lowparse/LowParse.Spec.VLGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 56,
"end_line": 232,
"start_col": 0,
"start_line": 225
} | module LowParse.Spec.VLGen
include LowParse.Spec.Combinators
include LowParse.Spec.AllIntegers
include LowParse.Spec.VLData // for parse_bounded_vldata_strong_t
(* TODO: this module should deprecate and replace LowParse.Spec.VLData *)
module U32 = FStar.UInt32
module Seq = FStar.Seq
let tag_of_bounded_vlgen_payload
... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.VLData.fsti.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec.AllIntegers.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pe... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.VLData",
"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 | min: Prims.nat -> max: Prims.nat{min <= max} -> k: LowParse.Spec.Base.parser_kind
-> Prims.GTot Prims.bool | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_high",
"Prims.op_AmpAmp",
"LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_low",
"Prims.bool"
] | [] | false | false | false | false | false | let parse_vlgen_precond (min: nat) (max: nat{min <= max}) (k: parser_kind) : GTot bool =
| match k.parser_kind_high with
| None -> false
| Some kmax -> min <= k.parser_kind_low && kmax <= max | false |
LowParse.Spec.VLGen.fst | LowParse.Spec.VLGen.synth_bounded_vlgen_payload | val synth_bounded_vlgen_payload
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(sz: bounded_int32 min max)
(x: parse_fldata_strong_t s (U32.v sz))
: Tot (refine_with_tag (tag_of_bounded_vlgen_paylo... | val synth_bounded_vlgen_payload
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(sz: bounded_int32 min max)
(x: parse_fldata_strong_t s (U32.v sz))
: Tot (refine_with_tag (tag_of_bounded_vlgen_paylo... | let synth_bounded_vlgen_payload
(min: nat)
(max: nat { min <= max /\ max < 4294967296 } )
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(sz: bounded_int32 min max)
(x: parse_fldata_strong_t s (U32.v sz))
: Tot (refine_with_tag (tag_of_bounded_vlgen_payload min max s) sz)
= x | {
"file_name": "src/lowparse/LowParse.Spec.VLGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 33,
"start_col": 0,
"start_line": 23
} | module LowParse.Spec.VLGen
include LowParse.Spec.Combinators
include LowParse.Spec.AllIntegers
include LowParse.Spec.VLData // for parse_bounded_vldata_strong_t
(* TODO: this module should deprecate and replace LowParse.Spec.VLData *)
module U32 = FStar.UInt32
module Seq = FStar.Seq
let tag_of_bounded_vlgen_payload
... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.VLData.fsti.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec.AllIntegers.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pe... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.VLData",
"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 |
min: Prims.nat ->
max: Prims.nat{min <= max /\ max < 4294967296} ->
s: LowParse.Spec.Base.serializer p ->
sz: LowParse.Spec.BoundedInt.bounded_int32 min max ->
x: LowParse.Spec.FLData.parse_fldata_strong_t s (FStar.UInt32.v sz)
-> LowParse.Spec.Base.refine_with_tag (LowParse.Spec.VLGen.tag_of_bou... | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"LowParse.Spec.BoundedInt.bounded_int32",
"LowParse.Spec.FLData.parse_fldata_strong_t",
"FStar.UInt32.v",
"L... | [] | false | false | false | false | false | let synth_bounded_vlgen_payload
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(sz: bounded_int32 min max)
(x: parse_fldata_strong_t s (U32.v sz))
: Tot (refine_with_tag (tag_of_bounded_vlgen_paylo... | x | false |
LowParse.Spec.VLGen.fst | LowParse.Spec.VLGen.tag_of_bounded_vlgen_payload | val tag_of_bounded_vlgen_payload
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(x: parse_bounded_vldata_strong_t min max s)
: GTot (bounded_int32 min max) | val tag_of_bounded_vlgen_payload
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(x: parse_bounded_vldata_strong_t min max s)
: GTot (bounded_int32 min max) | let tag_of_bounded_vlgen_payload
(min: nat)
(max: nat { min <= max /\ max < 4294967296 } )
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(x: parse_bounded_vldata_strong_t min max s)
: GTot (bounded_int32 min max)
= U32.uint_to_t (Seq.length (serialize s x)) | {
"file_name": "src/lowparse/LowParse.Spec.VLGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 44,
"end_line": 20,
"start_col": 0,
"start_line": 11
} | module LowParse.Spec.VLGen
include LowParse.Spec.Combinators
include LowParse.Spec.AllIntegers
include LowParse.Spec.VLData // for parse_bounded_vldata_strong_t
(* TODO: this module should deprecate and replace LowParse.Spec.VLData *)
module U32 = FStar.UInt32
module Seq = FStar.Seq | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.VLData.fsti.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec.AllIntegers.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pe... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.VLData",
"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 |
min: Prims.nat ->
max: Prims.nat{min <= max /\ max < 4294967296} ->
s: LowParse.Spec.Base.serializer p ->
x: LowParse.Spec.VLData.parse_bounded_vldata_strong_t min max s
-> Prims.GTot (LowParse.Spec.BoundedInt.bounded_int32 min max) | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"LowParse.Spec.VLData.parse_bounded_vldata_strong_t",
"FStar.UInt32.uint_to_t",
"FStar.Seq.Base.length",
"Lo... | [] | false | false | false | false | false | let tag_of_bounded_vlgen_payload
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(x: parse_bounded_vldata_strong_t min max s)
: GTot (bounded_int32 min max) =
| U32.uint_to_t (Seq.length (serialize s x)) | false |
LowParse.Spec.VLGen.fst | LowParse.Spec.VLGen.parse_bounded_vlgen_payload | val parse_bounded_vlgen_payload
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(sz: bounded_int32 min max)
: Tot
(parser (parse_bounded_vlgen_payload_kind min max k)
(refine_with_tag (tag_of_... | val parse_bounded_vlgen_payload
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(sz: bounded_int32 min max)
: Tot
(parser (parse_bounded_vlgen_payload_kind min max k)
(refine_with_tag (tag_of_... | let parse_bounded_vlgen_payload
(min: nat)
(max: nat { min <= max /\ max < 4294967296 } )
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(sz: bounded_int32 min max)
: Tot (parser (parse_bounded_vlgen_payload_kind min max k) (refine_with_tag (tag_of_bounded_vlgen_payload min max s) sz))
= ... | {
"file_name": "src/lowparse/LowParse.Spec.VLGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 47,
"end_line": 80,
"start_col": 0,
"start_line": 58
} | module LowParse.Spec.VLGen
include LowParse.Spec.Combinators
include LowParse.Spec.AllIntegers
include LowParse.Spec.VLData // for parse_bounded_vldata_strong_t
(* TODO: this module should deprecate and replace LowParse.Spec.VLData *)
module U32 = FStar.UInt32
module Seq = FStar.Seq
let tag_of_bounded_vlgen_payload
... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.VLData.fsti.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec.AllIntegers.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pe... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.VLData",
"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 |
min: Prims.nat ->
max: Prims.nat{min <= max /\ max < 4294967296} ->
s: LowParse.Spec.Base.serializer p ->
sz: LowParse.Spec.BoundedInt.bounded_int32 min max
-> LowParse.Spec.Base.parser (LowParse.Spec.VLGen.parse_bounded_vlgen_payload_kind min max k)
(LowParse.Spec.Base.refine_with_tag (LowPars... | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"LowParse.Spec.BoundedInt.bounded_int32",
"LowParse.Spec.Combinators.fail_parser",
"LowParse.Spec.VLGen.parse_... | [] | false | false | false | false | false | let parse_bounded_vlgen_payload
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(sz: bounded_int32 min max)
: Tot
(parser (parse_bounded_vlgen_payload_kind min max k)
(refine_with_tag (tag_of_... | let bounds_off =
k.parser_kind_low > U32.v sz ||
(match k.parser_kind_high with
| None -> false
| Some kmax -> kmax < U32.v sz)
in
if bounds_off
then
fail_parser (parse_bounded_vlgen_payload_kind min max k)
(refine_with_tag (tag_of_bounded_vlgen_payload min max s) sz)
else
weaken (parse_bounded_vlge... | false |
Steel.ST.BitVector.fst | Steel.ST.BitVector.bv_set | val bv_set
(#n:US.t)
(#s:G.erased repr)
(bv:bv_t n)
(i:US.t{US.v i < Seq.length s})
: STT unit
(pts_to bv full_perm s)
(fun _ -> pts_to bv full_perm (Seq.upd s (US.v i) true)) | val bv_set
(#n:US.t)
(#s:G.erased repr)
(bv:bv_t n)
(i:US.t{US.v i < Seq.length s})
: STT unit
(pts_to bv full_perm s)
(fun _ -> pts_to bv full_perm (Seq.upd s (US.v i) true)) | let bv_set #_ #s bv i = A.write #_ bv #s i true | {
"file_name": "lib/steel/Steel.ST.BitVector.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 47,
"end_line": 41,
"start_col": 0,
"start_line": 41
} | (*
Copyright 2021 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.Util.fsti.checked",
"Steel.ST.Effect.Ghost.fsti.checked",
"Steel.ST.Effect.fsti.checked",
"Steel.ST.Array.fsti.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
]... | [
{
"abbrev": true,
"full_module": "Steel.ST.Array",
"short_module": "A"
},
{
"abbrev": true,
"full_module": "FStar.Ghost",
"short_module": "G"
},
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "US"
},
{
"abbrev": false,
"full_module": "Steel.ST... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
bv: Steel.ST.BitVector.bv_t n ->
i: FStar.SizeT.t{FStar.SizeT.v i < FStar.Seq.Base.length (FStar.Ghost.reveal s)}
-> Steel.ST.Effect.STT Prims.unit | Steel.ST.Effect.STT | [] | [] | [
"FStar.SizeT.t",
"FStar.Ghost.erased",
"Steel.ST.BitVector.repr",
"Steel.ST.BitVector.bv_t",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.SizeT.v",
"FStar.Seq.Base.length",
"Prims.bool",
"FStar.Ghost.reveal",
"Steel.ST.Array.write",
"Prims.unit"
] | [] | false | true | false | false | false | let bv_set #_ #s bv i =
| A.write #_ bv #s i true | false |
Vale.Def.Words.Two_s.fsti | Vale.Def.Words.Two_s.two_map | val two_map (#a #b: Type) (f: (a -> b)) (x: two a) : two b | val two_map (#a #b: Type) (f: (a -> b)) (x: two a) : two b | let two_map (#a #b:Type) (f:a -> b) (x:two a) : two b =
let Mktwo x0 x1 = x in
Mktwo (f x0) (f x1) | {
"file_name": "vale/specs/defs/Vale.Def.Words.Two_s.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 21,
"end_line": 7,
"start_col": 7,
"start_line": 5
} | module Vale.Def.Words.Two_s
open Vale.Def.Words_s
open FStar.Mul | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": false,
"source_file": "Vale.Def.Words.Two_s.fsti"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"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 | f: (_: a -> b) -> x: Vale.Def.Words_s.two a -> Vale.Def.Words_s.two b | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Words_s.two",
"Vale.Def.Words_s.Mktwo"
] | [] | false | false | false | true | false | let two_map (#a #b: Type) (f: (a -> b)) (x: two a) : two b =
| let Mktwo x0 x1 = x in
Mktwo (f x0) (f x1) | false |
Vale.Def.Words.Two_s.fsti | Vale.Def.Words.Two_s.two_map2 | val two_map2 (#a #b: Type) (f: (a -> a -> b)) (x y: two a) : two b | val two_map2 (#a #b: Type) (f: (a -> a -> b)) (x y: two a) : two b | let two_map2 (#a #b:Type) (f:a -> a -> b) (x y:two a) : two b =
let Mktwo x0 x1 = x in
let Mktwo y0 y1 = y in
Mktwo (f x0 y0) (f x1 y1) | {
"file_name": "vale/specs/defs/Vale.Def.Words.Two_s.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 27,
"end_line": 12,
"start_col": 7,
"start_line": 9
} | module Vale.Def.Words.Two_s
open Vale.Def.Words_s
open FStar.Mul
unfold let two_map (#a #b:Type) (f:a -> b) (x:two a) : two b =
let Mktwo x0 x1 = x in
Mktwo (f x0) (f x1) | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": false,
"source_file": "Vale.Def.Words.Two_s.fsti"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"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 | f: (_: a -> _: a -> b) -> x: Vale.Def.Words_s.two a -> y: Vale.Def.Words_s.two a
-> Vale.Def.Words_s.two b | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Words_s.two",
"Vale.Def.Words_s.Mktwo"
] | [] | false | false | false | true | false | let two_map2 (#a #b: Type) (f: (a -> a -> b)) (x y: two a) : two b =
| let Mktwo x0 x1 = x in
let Mktwo y0 y1 = y in
Mktwo (f x0 y0) (f x1 y1) | false |
LowParse.Spec.VLGen.fst | LowParse.Spec.VLGen.parse_vlgen | val parse_vlgen
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#sk: parser_kind)
(pk: parser sk (bounded_int32 min max))
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p {parse_vlgen_precond min max k})
: Tot (parser (parse_bounded_vlgen_kind sk ... | val parse_vlgen
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#sk: parser_kind)
(pk: parser sk (bounded_int32 min max))
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p {parse_vlgen_precond min max k})
: Tot (parser (parse_bounded_vlgen_kind sk ... | let parse_vlgen
(min: nat)
(max: nat { min <= max /\ max < 4294967296 } )
(#sk: parser_kind)
(pk: parser sk (bounded_int32 min max))
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { parse_vlgen_precond min max k })
: Tot (parser (parse_bounded_vlgen_kind sk min max k) t)
= parse_bounded_... | {
"file_name": "src/lowparse/LowParse.Spec.VLGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 23,
"end_line": 246,
"start_col": 0,
"start_line": 234
} | module LowParse.Spec.VLGen
include LowParse.Spec.Combinators
include LowParse.Spec.AllIntegers
include LowParse.Spec.VLData // for parse_bounded_vldata_strong_t
(* TODO: this module should deprecate and replace LowParse.Spec.VLData *)
module U32 = FStar.UInt32
module Seq = FStar.Seq
let tag_of_bounded_vlgen_payload
... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.VLData.fsti.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec.AllIntegers.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pe... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.VLData",
"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 |
min: Prims.nat ->
max: Prims.nat{min <= max /\ max < 4294967296} ->
pk: LowParse.Spec.Base.parser sk (LowParse.Spec.BoundedInt.bounded_int32 min max) ->
s: LowParse.Spec.Base.serializer p {LowParse.Spec.VLGen.parse_vlgen_precond min max k}
-> LowParse.Spec.Base.parser (LowParse.Spec.VLGen.parse_bound... | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.BoundedInt.bounded_int32",
"LowParse.Spec.Base.serializer",
"LowParse.Spec.VLGen.parse_vlgen_precond",
"LowParse.Spec.Combinator... | [] | false | false | false | false | false | let parse_vlgen
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#sk: parser_kind)
(pk: parser sk (bounded_int32 min max))
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p {parse_vlgen_precond min max k})
: Tot (parser (parse_bounded_vlgen_kind sk ... | (parse_bounded_vlgen min max pk s) `parse_synth` (synth_vlgen min max s) | false |
LowParse.Spec.VLGen.fst | LowParse.Spec.VLGen.parse_bounded_vlgen_payload_kind | val parse_bounded_vlgen_payload_kind (min: nat) (max: nat{min <= max}) (k: parser_kind)
: Tot parser_kind | val parse_bounded_vlgen_payload_kind (min: nat) (max: nat{min <= max}) (k: parser_kind)
: Tot parser_kind | let parse_bounded_vlgen_payload_kind
(min: nat)
(max: nat { min <= max } )
(k: parser_kind)
: Tot parser_kind
= [@inline_let]
let kmin = k.parser_kind_low in
[@inline_let]
let min' = if kmin > min then kmin else min in
[@inline_let]
let max' = match k.parser_kind_high with
| None -> max
| Some kmax ... | {
"file_name": "src/lowparse/LowParse.Spec.VLGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 56,
"start_col": 0,
"start_line": 36
} | module LowParse.Spec.VLGen
include LowParse.Spec.Combinators
include LowParse.Spec.AllIntegers
include LowParse.Spec.VLData // for parse_bounded_vldata_strong_t
(* TODO: this module should deprecate and replace LowParse.Spec.VLData *)
module U32 = FStar.UInt32
module Seq = FStar.Seq
let tag_of_bounded_vlgen_payload
... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.VLData.fsti.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec.AllIntegers.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pe... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.VLData",
"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 | min: Prims.nat -> max: Prims.nat{min <= max} -> k: LowParse.Spec.Base.parser_kind
-> LowParse.Spec.Base.parser_kind | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.strong_parser_kind",
"LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_metadata",
"FStar.Pervasives.Native.Some",
"LowParse.Spec.Base.parser_kind_metadata_some",
"LowParse.Spec.Bas... | [] | false | false | false | false | false | let parse_bounded_vlgen_payload_kind (min: nat) (max: nat{min <= max}) (k: parser_kind)
: Tot parser_kind =
| [@@ inline_let ]let kmin = k.parser_kind_low in
[@@ inline_let ]let min' = if kmin > min then kmin else min in
[@@ inline_let ]let max' =
match k.parser_kind_high with
| None -> max
| Some kmax -> if kmax < max then kmax else max
in
[@@ inline_let ]let max' = if max' < min' then min' else max' in
strong_parser_ki... | false |
LowParse.Spec.VLGen.fst | LowParse.Spec.VLGen.serialize_bounded_vlgen | val serialize_bounded_vlgen
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#sk: parser_kind)
(#pk: parser sk (bounded_int32 min max))
(ssk: serializer pk {sk.parser_kind_subkind == Some ParserStrong})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: seriali... | val serialize_bounded_vlgen
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#sk: parser_kind)
(#pk: parser sk (bounded_int32 min max))
(ssk: serializer pk {sk.parser_kind_subkind == Some ParserStrong})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: seriali... | let serialize_bounded_vlgen
(min: nat)
(max: nat { min <= max /\ max < 4294967296 } )
(#sk: parser_kind)
(#pk: parser sk (bounded_int32 min max))
(ssk: serializer pk { sk.parser_kind_subkind == Some ParserStrong } )
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
: Tot (serializer (par... | {
"file_name": "src/lowparse/LowParse.Spec.VLGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 47,
"end_line": 358,
"start_col": 0,
"start_line": 344
} | module LowParse.Spec.VLGen
include LowParse.Spec.Combinators
include LowParse.Spec.AllIntegers
include LowParse.Spec.VLData // for parse_bounded_vldata_strong_t
(* TODO: this module should deprecate and replace LowParse.Spec.VLData *)
module U32 = FStar.UInt32
module Seq = FStar.Seq
let tag_of_bounded_vlgen_payload
... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.VLData.fsti.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec.AllIntegers.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pe... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.VLData",
"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 |
min: Prims.nat ->
max: Prims.nat{min <= max /\ max < 4294967296} ->
ssk:
LowParse.Spec.Base.serializer pk
{ Mkparser_kind'?.parser_kind_subkind sk ==
FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong } ->
s: LowParse.Spec.Base.serializer p
-> LowParse.Spec.Base.seri... | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.BoundedInt.bounded_int32",
"LowParse.Spec.Base.serializer",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"LowParse.Spec.Base... | [] | false | false | false | false | false | let serialize_bounded_vlgen
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#sk: parser_kind)
(#pk: parser sk (bounded_int32 min max))
(ssk: serializer pk {sk.parser_kind_subkind == Some ParserStrong})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: seriali... | serialize_tagged_union ssk
(tag_of_bounded_vlgen_payload min max s)
(serialize_bounded_vlgen_payload min max s) | false |
LowParse.Spec.VLGen.fst | LowParse.Spec.VLGen.synth_vlgen_recip | val synth_vlgen_recip
(min: nat)
(max: nat{min <= max})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p {parse_vlgen_precond min max k})
(x: t)
: Tot (parse_bounded_vldata_strong_t min max s) | val synth_vlgen_recip
(min: nat)
(max: nat{min <= max})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p {parse_vlgen_precond min max k})
(x: t)
: Tot (parse_bounded_vldata_strong_t min max s) | let synth_vlgen_recip
(min: nat)
(max: nat { min <= max } )
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { parse_vlgen_precond min max k } )
(x: t)
: Tot (parse_bounded_vldata_strong_t min max s)
= [@inline_let] let _ =
let sl = Seq.length (serialize s x) in
assert (min <= sl /\ ... | {
"file_name": "src/lowparse/LowParse.Spec.VLGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 398,
"start_col": 0,
"start_line": 385
} | module LowParse.Spec.VLGen
include LowParse.Spec.Combinators
include LowParse.Spec.AllIntegers
include LowParse.Spec.VLData // for parse_bounded_vldata_strong_t
(* TODO: this module should deprecate and replace LowParse.Spec.VLData *)
module U32 = FStar.UInt32
module Seq = FStar.Seq
let tag_of_bounded_vlgen_payload
... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.VLData.fsti.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec.AllIntegers.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pe... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.VLData",
"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 |
min: Prims.nat ->
max: Prims.nat{min <= max} ->
s: LowParse.Spec.Base.serializer p {LowParse.Spec.VLGen.parse_vlgen_precond min max k} ->
x: t
-> LowParse.Spec.VLData.parse_bounded_vldata_strong_t min max s | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"LowParse.Spec.VLGen.parse_vlgen_precond",
"Prims.unit",
"Prims._assert",
"Prims.l_and",
"FStar.Seq.Base.length",
"LowParse.Bytes.byte",
"LowP... | [] | false | false | false | false | false | let synth_vlgen_recip
(min: nat)
(max: nat{min <= max})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p {parse_vlgen_precond min max k})
(x: t)
: Tot (parse_bounded_vldata_strong_t min max s) =
| [@@ inline_let ]let _ =
let sl = Seq.length (serialize s x) in
assert (min <= sl /\ sl <= max)
in
x | false |
Pulse.Lib.Forall.Util.fst | Pulse.Lib.Forall.Util.elim | val elim : x: a -> Pulse.Lib.Core.stt_ghost Prims.unit (forall* (x: a). p x) (fun _ -> p x) | let elim #a #p = Pulse.Lib.Forall.elim_forall #a #p | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.Forall.Util.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 51,
"end_line": 24,
"start_col": 0,
"start_line": 24
} | (*
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.Stick.Util.fst.checked",
"Pulse.Lib.Pervasives.fst.checked",
"Pulse.Lib.Forall.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Pulse.Lib.Forall.Util.fst"
} | [
{
"abbrev": true,
"full_module": "Pulse.Lib.Stick.Util",
"short_module": "I"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Forall",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Stick.Util",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: a -> Pulse.Lib.Core.stt_ghost Prims.unit (forall* (x: a). p x) (fun _ -> p x) | Prims.Tot | [
"total"
] | [] | [
"Pulse.Lib.Core.vprop",
"Pulse.Lib.Forall.elim_forall",
"Pulse.Lib.Core.stt_ghost",
"Prims.unit",
"Pulse.Lib.Forall.op_forall_Star"
] | [] | false | false | false | false | false | let elim #a #p =
| Pulse.Lib.Forall.elim_forall #a #p | false | |
Pulse.Lib.Forall.Util.fst | Pulse.Lib.Forall.Util.intro | val intro : v: Pulse.Lib.Core.vprop -> f_elim: (x: a -> Pulse.Lib.Core.stt_ghost Prims.unit v (fun _ -> p x))
-> Pulse.Lib.Core.stt_ghost Prims.unit v (fun _ -> forall* (x: a). p x) | let intro #a #p = Pulse.Lib.Forall.intro_forall #a #p | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.Forall.Util.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 53,
"end_line": 23,
"start_col": 0,
"start_line": 23
} | (*
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.Stick.Util.fst.checked",
"Pulse.Lib.Pervasives.fst.checked",
"Pulse.Lib.Forall.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "Pulse.Lib.Forall.Util.fst"
} | [
{
"abbrev": true,
"full_module": "Pulse.Lib.Stick.Util",
"short_module": "I"
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Forall",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Lib.Stick.Util",
"short_module": null
},
{
"abbrev": false,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | v: Pulse.Lib.Core.vprop -> f_elim: (x: a -> Pulse.Lib.Core.stt_ghost Prims.unit v (fun _ -> p x))
-> Pulse.Lib.Core.stt_ghost Prims.unit v (fun _ -> forall* (x: a). p x) | Prims.Tot | [
"total"
] | [] | [
"Pulse.Lib.Core.vprop",
"Pulse.Lib.Forall.intro_forall",
"Pulse.Lib.Core.stt_ghost",
"Prims.unit",
"Pulse.Lib.Forall.op_forall_Star"
] | [] | false | false | false | false | false | let intro #a #p =
| Pulse.Lib.Forall.intro_forall #a #p | false | |
Vale.Def.Words.Two_s.fsti | Vale.Def.Words.Two_s.two_reverse | val two_reverse (#a: Type) (x: two a) : two a | val two_reverse (#a: Type) (x: two a) : two a | let two_reverse (#a:Type) (x:two a) : two a =
let Mktwo x0 x1 = x in
Mktwo x1 x0 | {
"file_name": "vale/specs/defs/Vale.Def.Words.Two_s.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 45,
"start_col": 0,
"start_line": 43
} | module Vale.Def.Words.Two_s
open Vale.Def.Words_s
open FStar.Mul
unfold let two_map (#a #b:Type) (f:a -> b) (x:two a) : two b =
let Mktwo x0 x1 = x in
Mktwo (f x0) (f x1)
unfold let two_map2 (#a #b:Type) (f:a -> a -> b) (x y:two a) : two b =
let Mktwo x0 x1 = x in
let Mktwo y0 y1 = y in
Mktwo (f x0 y0) (f x... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": false,
"source_file": "Vale.Def.Words.Two_s.fsti"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"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.Def.Words_s.two a -> Vale.Def.Words_s.two a | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Words_s.two",
"Vale.Def.Words_s.Mktwo"
] | [] | false | false | false | true | false | let two_reverse (#a: Type) (x: two a) : two a =
| let Mktwo x0 x1 = x in
Mktwo x1 x0 | false |
LowParse.Spec.VLGen.fst | LowParse.Spec.VLGen.parse_vlgen_weak_payload_kind | val parse_vlgen_weak_payload_kind (min: nat) (max: nat{min <= max /\ max < 4294967296})
: Tot parser_kind | val parse_vlgen_weak_payload_kind (min: nat) (max: nat{min <= max /\ max < 4294967296})
: Tot parser_kind | let parse_vlgen_weak_payload_kind
(min: nat)
(max: nat { min <= max /\ max < 4294967296 } )
: Tot parser_kind
= strong_parser_kind min max None | {
"file_name": "src/lowparse/LowParse.Spec.VLGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 33,
"end_line": 451,
"start_col": 0,
"start_line": 447
} | module LowParse.Spec.VLGen
include LowParse.Spec.Combinators
include LowParse.Spec.AllIntegers
include LowParse.Spec.VLData // for parse_bounded_vldata_strong_t
(* TODO: this module should deprecate and replace LowParse.Spec.VLData *)
module U32 = FStar.UInt32
module Seq = FStar.Seq
let tag_of_bounded_vlgen_payload
... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.VLData.fsti.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec.AllIntegers.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pe... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.VLData",
"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 | min: Prims.nat -> max: Prims.nat{min <= max /\ max < 4294967296} -> LowParse.Spec.Base.parser_kind | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"LowParse.Spec.Base.strong_parser_kind",
"FStar.Pervasives.Native.None",
"LowParse.Spec.Base.parser_kind_metadata_some",
"LowParse.Spec.Base.parser_kind"
] | [] | false | false | false | false | false | let parse_vlgen_weak_payload_kind (min: nat) (max: nat{min <= max /\ max < 4294967296})
: Tot parser_kind =
| strong_parser_kind min max None | false |
LowParse.Spec.VLGen.fst | LowParse.Spec.VLGen.parse_vlgen_weak_payload | val parse_vlgen_weak_payload
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(bound: bounded_int32 min max)
: Tot (parser (parse_vlgen_weak_payload_kind min max) t) | val parse_vlgen_weak_payload
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(bound: bounded_int32 min max)
: Tot (parser (parse_vlgen_weak_payload_kind min max) t) | let parse_vlgen_weak_payload
(min: nat)
(max: nat { min <= max /\ max < 4294967296 } )
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(bound: bounded_int32 min max)
: Tot (parser (parse_vlgen_weak_payload_kind min max) t)
= weaken (parse_vlgen_weak_payload_kind min max) (parse_fldata p (U32.v bound)) | {
"file_name": "src/lowparse/LowParse.Spec.VLGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 79,
"end_line": 461,
"start_col": 0,
"start_line": 453
} | module LowParse.Spec.VLGen
include LowParse.Spec.Combinators
include LowParse.Spec.AllIntegers
include LowParse.Spec.VLData // for parse_bounded_vldata_strong_t
(* TODO: this module should deprecate and replace LowParse.Spec.VLData *)
module U32 = FStar.UInt32
module Seq = FStar.Seq
let tag_of_bounded_vlgen_payload
... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.VLData.fsti.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec.AllIntegers.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pe... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.VLData",
"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 |
min: Prims.nat ->
max: Prims.nat{min <= max /\ max < 4294967296} ->
p: LowParse.Spec.Base.parser k t ->
bound: LowParse.Spec.BoundedInt.bounded_int32 min max
-> LowParse.Spec.Base.parser (LowParse.Spec.VLGen.parse_vlgen_weak_payload_kind min max) t | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.BoundedInt.bounded_int32",
"LowParse.Spec.Base.weaken",
"LowParse.Spec.VLGen.parse_vlgen_weak_payload_kind",
"LowParse.Spec.FLDa... | [] | false | false | false | false | false | let parse_vlgen_weak_payload
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#k: parser_kind)
(#t: Type)
(p: parser k t)
(bound: bounded_int32 min max)
: Tot (parser (parse_vlgen_weak_payload_kind min max) t) =
| weaken (parse_vlgen_weak_payload_kind min max) (parse_fldata p (U32.v bound)) | false |
Vale.Def.Words.Two_s.fsti | Vale.Def.Words.Two_s.two_select | val two_select (#a: Type) (x: two a) (selector: nat1) : a | val two_select (#a: Type) (x: two a) (selector: nat1) : a | let two_select (#a:Type) (x:two a) (selector:nat1) : a =
match selector with
| 0 -> x.lo
| 1 -> x.hi | {
"file_name": "vale/specs/defs/Vale.Def.Words.Two_s.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 36,
"start_col": 0,
"start_line": 33
} | module Vale.Def.Words.Two_s
open Vale.Def.Words_s
open FStar.Mul
unfold let two_map (#a #b:Type) (f:a -> b) (x:two a) : two b =
let Mktwo x0 x1 = x in
Mktwo (f x0) (f x1)
unfold let two_map2 (#a #b:Type) (f:a -> a -> b) (x y:two a) : two b =
let Mktwo x0 x1 = x in
let Mktwo y0 y1 = y in
Mktwo (f x0 y0) (f x... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": false,
"source_file": "Vale.Def.Words.Two_s.fsti"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"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.Def.Words_s.two a -> selector: Vale.Def.Words_s.nat1 -> a | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Words_s.two",
"Vale.Def.Words_s.nat1",
"Vale.Def.Words_s.__proj__Mktwo__item__lo",
"Vale.Def.Words_s.__proj__Mktwo__item__hi"
] | [] | false | false | false | true | false | let two_select (#a: Type) (x: two a) (selector: nat1) : a =
| match selector with
| 0 -> x.lo
| 1 -> x.hi | false |
Vale.Def.Words.Two_s.fsti | Vale.Def.Words.Two_s.nat_to_two | val nat_to_two (size: nat) (n: natN (pow2 (2 * size))) : two (natN (pow2 size)) | val nat_to_two (size: nat) (n: natN (pow2 (2 * size))) : two (natN (pow2 size)) | let nat_to_two (size:nat) (n:natN (pow2 (2 * size))) : two (natN (pow2 size)) =
nat_to_two_unfold size n | {
"file_name": "vale/specs/defs/Vale.Def.Words.Two_s.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 26,
"end_line": 21,
"start_col": 0,
"start_line": 20
} | module Vale.Def.Words.Two_s
open Vale.Def.Words_s
open FStar.Mul
unfold let two_map (#a #b:Type) (f:a -> b) (x:two a) : two b =
let Mktwo x0 x1 = x in
Mktwo (f x0) (f x1)
unfold let two_map2 (#a #b:Type) (f:a -> a -> b) (x y:two a) : two b =
let Mktwo x0 x1 = x in
let Mktwo y0 y1 = y in
Mktwo (f x0 y0) (f x... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": false,
"source_file": "Vale.Def.Words.Two_s.fsti"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"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 | size: Prims.nat -> n: Vale.Def.Words_s.natN (Prims.pow2 (2 * size))
-> Vale.Def.Words_s.two (Vale.Def.Words_s.natN (Prims.pow2 size)) | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Vale.Def.Words_s.natN",
"Prims.pow2",
"FStar.Mul.op_Star",
"Vale.Def.Words.Two_s.nat_to_two_unfold",
"Vale.Def.Words_s.two"
] | [] | false | false | false | false | false | let nat_to_two (size: nat) (n: natN (pow2 (2 * size))) : two (natN (pow2 size)) =
| nat_to_two_unfold size n | false |
LowParse.Spec.VLGen.fst | LowParse.Spec.VLGen.parse_vlgen_unfold | val parse_vlgen_unfold
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#sk: parser_kind)
(pk: parser sk (bounded_int32 min max))
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p {parse_vlgen_precond min max k})
(input: bytes)
: Lemma
(le... | val parse_vlgen_unfold
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#sk: parser_kind)
(pk: parser sk (bounded_int32 min max))
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p {parse_vlgen_precond min max k})
(input: bytes)
: Lemma
(le... | let parse_vlgen_unfold
(min: nat)
(max: nat { min <= max /\ max < 4294967296 } )
(#sk: parser_kind)
(pk: parser sk (bounded_int32 min max))
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { parse_vlgen_precond min max k })
(input: bytes)
: Lemma
(let res = parse (parse_vlgen min max p... | {
"file_name": "src/lowparse/LowParse.Spec.VLGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 47,
"end_line": 282,
"start_col": 0,
"start_line": 248
} | module LowParse.Spec.VLGen
include LowParse.Spec.Combinators
include LowParse.Spec.AllIntegers
include LowParse.Spec.VLData // for parse_bounded_vldata_strong_t
(* TODO: this module should deprecate and replace LowParse.Spec.VLData *)
module U32 = FStar.UInt32
module Seq = FStar.Seq
let tag_of_bounded_vlgen_payload
... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.VLData.fsti.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec.AllIntegers.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pe... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.VLData",
"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 |
min: Prims.nat ->
max: Prims.nat{min <= max /\ max < 4294967296} ->
pk: LowParse.Spec.Base.parser sk (LowParse.Spec.BoundedInt.bounded_int32 min max) ->
s: LowParse.Spec.Base.serializer p {LowParse.Spec.VLGen.parse_vlgen_precond min max k} ->
input: LowParse.Bytes.bytes
-> FStar.Pervasives.Lemma
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.BoundedInt.bounded_int32",
"LowParse.Spec.Base.serializer",
"LowParse.Spec.VLGen.parse_vlgen_precond",
"LowParse.Bytes.bytes",
... | [] | true | false | true | false | false | let parse_vlgen_unfold
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#sk: parser_kind)
(pk: parser sk (bounded_int32 min max))
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p {parse_vlgen_precond min max k})
(input: bytes)
: Lemma
(le... | parse_synth_eq (parse_bounded_vlgen min max pk s) (synth_vlgen min max s) input;
parse_bounded_vlgen_unfold min max pk s input | false |
Vale.Def.Words.Two_s.fsti | Vale.Def.Words.Two_s.nat_to_two_unfold | val nat_to_two_unfold (size: nat) (n: natN (pow2 (2 * size))) : two (natN (pow2 size)) | val nat_to_two_unfold (size: nat) (n: natN (pow2 (2 * size))) : two (natN (pow2 size)) | let nat_to_two_unfold (size:nat) (n:natN (pow2 (2 * size))) : two (natN (pow2 size)) =
let n1 = pow2_norm size in
let n2 = pow2_norm (2 * size) in
Mktwo (n % n1) ((n / n1) % n1) | {
"file_name": "vale/specs/defs/Vale.Def.Words.Two_s.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 32,
"end_line": 18,
"start_col": 0,
"start_line": 15
} | module Vale.Def.Words.Two_s
open Vale.Def.Words_s
open FStar.Mul
unfold let two_map (#a #b:Type) (f:a -> b) (x:two a) : two b =
let Mktwo x0 x1 = x in
Mktwo (f x0) (f x1)
unfold let two_map2 (#a #b:Type) (f:a -> a -> b) (x y:two a) : two b =
let Mktwo x0 x1 = x in
let Mktwo y0 y1 = y in
Mktwo (f x0 y0) (f x... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": false,
"source_file": "Vale.Def.Words.Two_s.fsti"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"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 | size: Prims.nat -> n: Vale.Def.Words_s.natN (Prims.pow2 (2 * size))
-> Vale.Def.Words_s.two (Vale.Def.Words_s.natN (Prims.pow2 size)) | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Vale.Def.Words_s.natN",
"Prims.pow2",
"FStar.Mul.op_Star",
"Vale.Def.Words_s.Mktwo",
"Prims.op_Modulus",
"Prims.op_Division",
"Prims.pos",
"Vale.Def.Words_s.pow2_norm",
"Vale.Def.Words_s.two"
] | [] | false | false | false | false | false | let nat_to_two_unfold (size: nat) (n: natN (pow2 (2 * size))) : two (natN (pow2 size)) =
| let n1 = pow2_norm size in
let n2 = pow2_norm (2 * size) in
Mktwo (n % n1) ((n / n1) % n1) | false |
Vale.Def.Words.Two_s.fsti | Vale.Def.Words.Two_s.two_to_nat_unfold | val two_to_nat_unfold (size: nat) (x: two (natN (pow2 size))) : natN (pow2 (2 * size)) | val two_to_nat_unfold (size: nat) (x: two (natN (pow2 size))) : natN (pow2 (2 * size)) | let two_to_nat_unfold (size:nat) (x:two (natN (pow2 size))) : natN (pow2 (2 * size)) =
let n1 = pow2_norm size in
let n2 = pow2_norm (2 * size) in
let Mktwo x0 x1 = x in
int_to_natN n2 (x0 + x1 * n1) | {
"file_name": "vale/specs/defs/Vale.Def.Words.Two_s.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 31,
"end_line": 28,
"start_col": 0,
"start_line": 24
} | module Vale.Def.Words.Two_s
open Vale.Def.Words_s
open FStar.Mul
unfold let two_map (#a #b:Type) (f:a -> b) (x:two a) : two b =
let Mktwo x0 x1 = x in
Mktwo (f x0) (f x1)
unfold let two_map2 (#a #b:Type) (f:a -> a -> b) (x y:two a) : two b =
let Mktwo x0 x1 = x in
let Mktwo y0 y1 = y in
Mktwo (f x0 y0) (f x... | {
"checked_file": "/",
"dependencies": [
"Vale.Def.Words_s.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked"
],
"interface_file": false,
"source_file": "Vale.Def.Words.Two_s.fsti"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words_s",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Words",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"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 | size: Prims.nat -> x: Vale.Def.Words_s.two (Vale.Def.Words_s.natN (Prims.pow2 size))
-> Vale.Def.Words_s.natN (Prims.pow2 (2 * size)) | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Vale.Def.Words_s.two",
"Vale.Def.Words_s.natN",
"Prims.pow2",
"Vale.Def.Words_s.int_to_natN",
"Prims.op_Addition",
"FStar.Mul.op_Star",
"Prims.pos",
"Vale.Def.Words_s.pow2_norm"
] | [] | false | false | false | false | false | let two_to_nat_unfold (size: nat) (x: two (natN (pow2 size))) : natN (pow2 (2 * size)) =
| let n1 = pow2_norm size in
let n2 = pow2_norm (2 * size) in
let Mktwo x0 x1 = x in
int_to_natN n2 (x0 + x1 * n1) | false |
LowParse.Spec.VLGen.fst | LowParse.Spec.VLGen.serialize_vlgen | val serialize_vlgen
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#sk: parser_kind)
(#pk: parser sk (bounded_int32 min max))
(ssk: serializer pk {sk.parser_kind_subkind == Some ParserStrong})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p {p... | val serialize_vlgen
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#sk: parser_kind)
(#pk: parser sk (bounded_int32 min max))
(ssk: serializer pk {sk.parser_kind_subkind == Some ParserStrong})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p {p... | let serialize_vlgen
(min: nat)
(max: nat { min <= max /\ max < 4294967296 } )
(#sk: parser_kind)
(#pk: parser sk (bounded_int32 min max))
(ssk: serializer pk { sk.parser_kind_subkind == Some ParserStrong } )
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { parse_vlgen_precond min max k... | {
"file_name": "src/lowparse/LowParse.Spec.VLGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 6,
"end_line": 416,
"start_col": 0,
"start_line": 400
} | module LowParse.Spec.VLGen
include LowParse.Spec.Combinators
include LowParse.Spec.AllIntegers
include LowParse.Spec.VLData // for parse_bounded_vldata_strong_t
(* TODO: this module should deprecate and replace LowParse.Spec.VLData *)
module U32 = FStar.UInt32
module Seq = FStar.Seq
let tag_of_bounded_vlgen_payload
... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.VLData.fsti.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec.AllIntegers.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pe... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.VLData",
"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 |
min: Prims.nat ->
max: Prims.nat{min <= max /\ max < 4294967296} ->
ssk:
LowParse.Spec.Base.serializer pk
{ Mkparser_kind'?.parser_kind_subkind sk ==
FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong } ->
s: LowParse.Spec.Base.serializer p {LowParse.Spec.VLGen.parse_v... | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.BoundedInt.bounded_int32",
"LowParse.Spec.Base.serializer",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"LowParse.Spec.Base... | [] | false | false | false | false | false | let serialize_vlgen
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#sk: parser_kind)
(#pk: parser sk (bounded_int32 min max))
(ssk: serializer pk {sk.parser_kind_subkind == Some ParserStrong})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p {p... | serialize_synth (parse_bounded_vlgen min max pk s)
(synth_vlgen min max s)
(serialize_bounded_vlgen min max ssk s)
(synth_vlgen_recip min max s)
() | false |
LowParse.Spec.VLGen.fst | LowParse.Spec.VLGen.serialize_bounded_vlgen_payload_unfold | val serialize_bounded_vlgen_payload_unfold
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(sz: bounded_int32 min max)
(input: refine_with_tag (tag_of_bounded_vlgen_payload min max s) sz)
: Lemma (s... | val serialize_bounded_vlgen_payload_unfold
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(sz: bounded_int32 min max)
(input: refine_with_tag (tag_of_bounded_vlgen_payload min max s) sz)
: Lemma (s... | let serialize_bounded_vlgen_payload_unfold
(min: nat)
(max: nat { min <= max /\ max < 4294967296 } )
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(sz: bounded_int32 min max)
(input: refine_with_tag (tag_of_bounded_vlgen_payload min max s) sz)
: Lemma
(serialize (serialize_bounded_vl... | {
"file_name": "src/lowparse/LowParse.Spec.VLGen.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 13,
"end_line": 342,
"start_col": 0,
"start_line": 325
} | module LowParse.Spec.VLGen
include LowParse.Spec.Combinators
include LowParse.Spec.AllIntegers
include LowParse.Spec.VLData // for parse_bounded_vldata_strong_t
(* TODO: this module should deprecate and replace LowParse.Spec.VLData *)
module U32 = FStar.UInt32
module Seq = FStar.Seq
let tag_of_bounded_vlgen_payload
... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.VLData.fsti.checked",
"LowParse.Spec.Combinators.fsti.checked",
"LowParse.Spec.AllIntegers.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pe... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.VLData",
"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 |
min: Prims.nat ->
max: Prims.nat{min <= max /\ max < 4294967296} ->
s: LowParse.Spec.Base.serializer p ->
sz: LowParse.Spec.BoundedInt.bounded_int32 min max ->
input:
LowParse.Spec.Base.refine_with_tag (LowParse.Spec.VLGen.tag_of_bounded_vlgen_payload min max s
)
sz
-> FStar... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"LowParse.Spec.BoundedInt.bounded_int32",
"LowParse.Spec.Base.refine_with_tag",
"LowParse.Spec.VLData.parse_bo... | [] | true | false | true | false | false | let serialize_bounded_vlgen_payload_unfold
(min: nat)
(max: nat{min <= max /\ max < 4294967296})
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p)
(sz: bounded_int32 min max)
(input: refine_with_tag (tag_of_bounded_vlgen_payload min max s) sz)
: Lemma (s... | serialize_synth_eq (parse_fldata_strong s (U32.v sz))
(synth_bounded_vlgen_payload min max s sz)
(serialize_fldata_strong s (U32.v sz))
(synth_bounded_vlgen_payload_recip min max s sz)
()
input | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.