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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
LList32.fst | LList32.llist | val llist : Type0 | let llist = llist u32 | {
"file_name": "share/steel/examples/steel/LList32.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 21,
"end_line": 38,
"start_col": 0,
"start_line": 38
} | (*
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.fsti.checked",
"Steel.Memory.fsti.checked",
"prims.fst.checked",
"LList.ST.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface... | [
{
"abbrev": true,
"full_module": "FStar.Ghost",
"short_module": "G"
},
{
"abbrev": false,
"full_module": "LList.ST",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"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 | Type0 | Prims.Tot | [
"total"
] | [] | [
"LList.ST.llist",
"LList32.u32"
] | [] | false | false | false | true | true | let llist =
| llist u32 | false | |
CQueue.Cell.fst | CQueue.Cell.ccell_ptrvalue | val ccell_ptrvalue (a: Type0) : Tot Type0 | val ccell_ptrvalue (a: Type0) : Tot Type0 | let ccell_ptrvalue a = mcell a | {
"file_name": "share/steel/examples/steel/CQueue.Cell.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 30,
"end_line": 14,
"start_col": 0,
"start_line": 14
} | module CQueue.Cell
(* A Steel model of C cell structs *)
#push-options "--__no_positivity"
noeq
type mcell (a: Type0) = {
data: ref a;
next: ref (mcell a);
all_or_none_null: squash (is_null data == is_null next); // TODO: /\ freeable data /\ freeable next, if freeable is implemented as a pure space proposition ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "CQueue.Cell.fst"
} | [
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"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: Type0 -> Type0 | Prims.Tot | [
"total"
] | [] | [
"CQueue.Cell.mcell"
] | [] | false | false | false | true | true | let ccell_ptrvalue a =
| mcell a | false |
CQueue.Cell.fst | CQueue.Cell.ccell_is_lvalue_refine | val ccell_is_lvalue_refine: #a: Type -> c: ccell_ptrvalue a -> t_of emp -> Tot prop | val ccell_is_lvalue_refine: #a: Type -> c: ccell_ptrvalue a -> t_of emp -> Tot prop | let ccell_is_lvalue_refine
(#a: Type)
(c: ccell_ptrvalue a)
(_: t_of emp)
: Tot prop
= ccell_ptrvalue_is_null c == false | {
"file_name": "share/steel/examples/steel/CQueue.Cell.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 35,
"end_line": 31,
"start_col": 0,
"start_line": 26
} | module CQueue.Cell
(* A Steel model of C cell structs *)
#push-options "--__no_positivity"
noeq
type mcell (a: Type0) = {
data: ref a;
next: ref (mcell a);
all_or_none_null: squash (is_null data == is_null next); // TODO: /\ freeable data /\ freeable next, if freeable is implemented as a pure space proposition ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "CQueue.Cell.fst"
} | [
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"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 | c: CQueue.Cell.ccell_ptrvalue a -> _: Steel.Effect.Common.t_of Steel.Effect.Common.emp -> Prims.prop | Prims.Tot | [
"total"
] | [] | [
"CQueue.Cell.ccell_ptrvalue",
"Steel.Effect.Common.t_of",
"Steel.Effect.Common.emp",
"Prims.eq2",
"Prims.bool",
"CQueue.Cell.ccell_ptrvalue_is_null",
"Prims.prop"
] | [] | false | false | false | true | true | let ccell_is_lvalue_refine (#a: Type) (c: ccell_ptrvalue a) (_: t_of emp) : Tot prop =
| ccell_ptrvalue_is_null c == false | false |
CQueue.Cell.fst | CQueue.Cell.ccell_is_lvalue_sel | val ccell_is_lvalue_sel
(#a: Type)
(c: ccell_ptrvalue a)
: GTot (selector (ccell_lvalue a) (ccell_is_lvalue_hp c)) | val ccell_is_lvalue_sel
(#a: Type)
(c: ccell_ptrvalue a)
: GTot (selector (ccell_lvalue a) (ccell_is_lvalue_hp c)) | let ccell_is_lvalue_sel
(#a: Type)
(c: ccell_ptrvalue a)
: GTot (selector (ccell_lvalue a) (ccell_is_lvalue_hp c))
= sel_of (ccell_is_lvalue0 c) | {
"file_name": "share/steel/examples/steel/CQueue.Cell.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 29,
"end_line": 57,
"start_col": 0,
"start_line": 53
} | module CQueue.Cell
(* A Steel model of C cell structs *)
#push-options "--__no_positivity"
noeq
type mcell (a: Type0) = {
data: ref a;
next: ref (mcell a);
all_or_none_null: squash (is_null data == is_null next); // TODO: /\ freeable data /\ freeable next, if freeable is implemented as a pure space proposition ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "CQueue.Cell.fst"
} | [
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"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 | c: CQueue.Cell.ccell_ptrvalue a
-> Prims.GTot
(Steel.Effect.Common.selector (CQueue.Cell.ccell_lvalue a) (CQueue.Cell.ccell_is_lvalue_hp c)) | Prims.GTot | [
"sometrivial"
] | [] | [
"CQueue.Cell.ccell_ptrvalue",
"Steel.Effect.Common.sel_of",
"CQueue.Cell.ccell_is_lvalue0",
"Steel.Effect.Common.selector",
"CQueue.Cell.ccell_lvalue",
"CQueue.Cell.ccell_is_lvalue_hp"
] | [] | false | false | false | false | false | let ccell_is_lvalue_sel (#a: Type) (c: ccell_ptrvalue a)
: GTot (selector (ccell_lvalue a) (ccell_is_lvalue_hp c)) =
| sel_of (ccell_is_lvalue0 c) | false |
CQueue.Cell.fst | CQueue.Cell.ccell_rewrite | val ccell_rewrite
(#a: Type0)
(c: ccell_ptrvalue a)
(x: dtuple2 (ccell_lvalue a) (vdep_payload (ccell_is_lvalue c) (ccell0 a)))
: GTot (vcell a) | val ccell_rewrite
(#a: Type0)
(c: ccell_ptrvalue a)
(x: dtuple2 (ccell_lvalue a) (vdep_payload (ccell_is_lvalue c) (ccell0 a)))
: GTot (vcell a) | let ccell_rewrite
(#a: Type0)
(c: ccell_ptrvalue a)
(x: dtuple2 (ccell_lvalue a) (vdep_payload (ccell_is_lvalue c) (ccell0 a)))
: GTot (vcell a)
= let p =
dsnd #(ccell_lvalue a) #(vdep_payload (ccell_is_lvalue c) (ccell0 a)) x
in
{
vcell_data = fst p;
vcell_next = snd p;
} | {
"file_name": "share/steel/examples/steel/CQueue.Cell.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 3,
"end_line": 103,
"start_col": 0,
"start_line": 92
} | module CQueue.Cell
(* A Steel model of C cell structs *)
#push-options "--__no_positivity"
noeq
type mcell (a: Type0) = {
data: ref a;
next: ref (mcell a);
all_or_none_null: squash (is_null data == is_null next); // TODO: /\ freeable data /\ freeable next, if freeable is implemented as a pure space proposition ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "CQueue.Cell.fst"
} | [
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"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 |
c: CQueue.Cell.ccell_ptrvalue a ->
x:
Prims.dtuple2 (CQueue.Cell.ccell_lvalue a)
(Steel.Effect.Common.vdep_payload (CQueue.Cell.ccell_is_lvalue c) (CQueue.Cell.ccell0 a))
-> Prims.GTot (CQueue.Cell.vcell a) | Prims.GTot | [
"sometrivial"
] | [] | [
"CQueue.Cell.ccell_ptrvalue",
"Prims.dtuple2",
"CQueue.Cell.ccell_lvalue",
"Steel.Effect.Common.vdep_payload",
"CQueue.Cell.ccell_is_lvalue",
"CQueue.Cell.ccell0",
"CQueue.Cell.Mkvcell",
"FStar.Pervasives.Native.fst",
"Steel.Effect.Common.t_of",
"Steel.Reference.vptr",
"CQueue.Cell.ccell_data",
... | [] | false | false | false | false | false | let ccell_rewrite
(#a: Type0)
(c: ccell_ptrvalue a)
(x: dtuple2 (ccell_lvalue a) (vdep_payload (ccell_is_lvalue c) (ccell0 a)))
: GTot (vcell a) =
| let p = dsnd #(ccell_lvalue a) #(vdep_payload (ccell_is_lvalue c) (ccell0 a)) x in
{ vcell_data = fst p; vcell_next = snd p } | false |
CQueue.Cell.fst | CQueue.Cell.ccell_is_lvalue_hp | val ccell_is_lvalue_hp
(#a: Type)
(c: ccell_ptrvalue a)
: Tot (slprop u#1) | val ccell_is_lvalue_hp
(#a: Type)
(c: ccell_ptrvalue a)
: Tot (slprop u#1) | let ccell_is_lvalue_hp
(#a: Type)
(c: ccell_ptrvalue a)
: Tot (slprop u#1)
= hp_of (ccell_is_lvalue0 c) | {
"file_name": "share/steel/examples/steel/CQueue.Cell.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 28,
"end_line": 51,
"start_col": 0,
"start_line": 47
} | module CQueue.Cell
(* A Steel model of C cell structs *)
#push-options "--__no_positivity"
noeq
type mcell (a: Type0) = {
data: ref a;
next: ref (mcell a);
all_or_none_null: squash (is_null data == is_null next); // TODO: /\ freeable data /\ freeable next, if freeable is implemented as a pure space proposition ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "CQueue.Cell.fst"
} | [
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"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 | c: CQueue.Cell.ccell_ptrvalue a -> Steel.Memory.slprop | Prims.Tot | [
"total"
] | [] | [
"CQueue.Cell.ccell_ptrvalue",
"Steel.Effect.Common.hp_of",
"CQueue.Cell.ccell_is_lvalue0",
"Steel.Memory.slprop"
] | [] | false | false | false | true | false | let ccell_is_lvalue_hp (#a: Type) (c: ccell_ptrvalue a) : Tot (slprop u#1) =
| hp_of (ccell_is_lvalue0 c) | false |
CQueue.Cell.fst | CQueue.Cell.ccell1 | val ccell1 (#a: Type0) (c: ccell_ptrvalue a) : Tot vprop | val ccell1 (#a: Type0) (c: ccell_ptrvalue a) : Tot vprop | let ccell1
(#a: Type0)
(c: ccell_ptrvalue a)
: Tot vprop
= ccell_is_lvalue c `vdep` ccell0 a `vrewrite` ccell_rewrite c | {
"file_name": "share/steel/examples/steel/CQueue.Cell.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 62,
"end_line": 110,
"start_col": 0,
"start_line": 106
} | module CQueue.Cell
(* A Steel model of C cell structs *)
#push-options "--__no_positivity"
noeq
type mcell (a: Type0) = {
data: ref a;
next: ref (mcell a);
all_or_none_null: squash (is_null data == is_null next); // TODO: /\ freeable data /\ freeable next, if freeable is implemented as a pure space proposition ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "CQueue.Cell.fst"
} | [
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"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 | c: CQueue.Cell.ccell_ptrvalue a -> Steel.Effect.Common.vprop | Prims.Tot | [
"total"
] | [] | [
"CQueue.Cell.ccell_ptrvalue",
"Steel.Effect.Common.vrewrite",
"Steel.Effect.Common.vdep",
"CQueue.Cell.ccell_is_lvalue",
"CQueue.Cell.ccell0",
"CQueue.Cell.vcell",
"CQueue.Cell.ccell_rewrite",
"Steel.Effect.Common.vprop"
] | [] | false | false | false | true | false | let ccell1 (#a: Type0) (c: ccell_ptrvalue a) : Tot vprop =
| ((ccell_is_lvalue c) `vdep` (ccell0 a)) `vrewrite` (ccell_rewrite c) | false |
CQueue.Cell.fst | CQueue.Cell.ccell0 | val ccell0 (a: Type0) (c: ccell_lvalue a) : Tot vprop | val ccell0 (a: Type0) (c: ccell_lvalue a) : Tot vprop | let ccell0 (a: Type0) (c: ccell_lvalue a) : Tot vprop =
(vptr (ccell_data c) `star` vptr (ccell_next c)) | {
"file_name": "share/steel/examples/steel/CQueue.Cell.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 50,
"end_line": 89,
"start_col": 0,
"start_line": 88
} | module CQueue.Cell
(* A Steel model of C cell structs *)
#push-options "--__no_positivity"
noeq
type mcell (a: Type0) = {
data: ref a;
next: ref (mcell a);
all_or_none_null: squash (is_null data == is_null next); // TODO: /\ freeable data /\ freeable next, if freeable is implemented as a pure space proposition ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "CQueue.Cell.fst"
} | [
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"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: Type0 -> c: CQueue.Cell.ccell_lvalue a -> Steel.Effect.Common.vprop | Prims.Tot | [
"total"
] | [] | [
"CQueue.Cell.ccell_lvalue",
"Steel.Effect.Common.star",
"Steel.Reference.vptr",
"CQueue.Cell.ccell_data",
"CQueue.Cell.ccell_ptrvalue",
"CQueue.Cell.ccell_next",
"Steel.Effect.Common.vprop"
] | [] | false | false | false | true | false | let ccell0 (a: Type0) (c: ccell_lvalue a) : Tot vprop =
| ((vptr (ccell_data c)) `star` (vptr (ccell_next c))) | false |
CQueue.Cell.fst | CQueue.Cell.ccell_hp | val ccell_hp
(#a: Type0)
(c: ccell_ptrvalue a)
: Tot (slprop u#1) | val ccell_hp
(#a: Type0)
(c: ccell_ptrvalue a)
: Tot (slprop u#1) | let ccell_hp
#a c
= hp_of (ccell1 c) | {
"file_name": "share/steel/examples/steel/CQueue.Cell.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 18,
"end_line": 114,
"start_col": 0,
"start_line": 112
} | module CQueue.Cell
(* A Steel model of C cell structs *)
#push-options "--__no_positivity"
noeq
type mcell (a: Type0) = {
data: ref a;
next: ref (mcell a);
all_or_none_null: squash (is_null data == is_null next); // TODO: /\ freeable data /\ freeable next, if freeable is implemented as a pure space proposition ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "CQueue.Cell.fst"
} | [
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"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 | c: CQueue.Cell.ccell_ptrvalue a -> Steel.Memory.slprop | Prims.Tot | [
"total"
] | [] | [
"CQueue.Cell.ccell_ptrvalue",
"Steel.Effect.Common.hp_of",
"CQueue.Cell.ccell1",
"Steel.Memory.slprop"
] | [] | false | false | false | true | false | let ccell_hp #a c =
| hp_of (ccell1 c) | false |
CQueue.Cell.fst | CQueue.Cell.ccell_sel | val ccell_sel
(#a: Type0)
(c: ccell_ptrvalue a)
: GTot (selector (vcell a) (ccell_hp c)) | val ccell_sel
(#a: Type0)
(c: ccell_ptrvalue a)
: GTot (selector (vcell a) (ccell_hp c)) | let ccell_sel
#a c
= sel_of (ccell1 c) | {
"file_name": "share/steel/examples/steel/CQueue.Cell.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 19,
"end_line": 118,
"start_col": 0,
"start_line": 116
} | module CQueue.Cell
(* A Steel model of C cell structs *)
#push-options "--__no_positivity"
noeq
type mcell (a: Type0) = {
data: ref a;
next: ref (mcell a);
all_or_none_null: squash (is_null data == is_null next); // TODO: /\ freeable data /\ freeable next, if freeable is implemented as a pure space proposition ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "CQueue.Cell.fst"
} | [
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"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 | c: CQueue.Cell.ccell_ptrvalue a
-> Prims.GTot (Steel.Effect.Common.selector (CQueue.Cell.vcell a) (CQueue.Cell.ccell_hp c)) | Prims.GTot | [
"sometrivial"
] | [] | [
"CQueue.Cell.ccell_ptrvalue",
"Steel.Effect.Common.sel_of",
"CQueue.Cell.ccell1",
"Steel.Effect.Common.selector",
"CQueue.Cell.vcell",
"CQueue.Cell.ccell_hp"
] | [] | false | false | false | false | false | let ccell_sel #a c =
| sel_of (ccell1 c) | false |
CQueue.Cell.fst | CQueue.Cell.ccell_data | val ccell_data (#a: Type0) (c: ccell_lvalue a) : Pure (ref a)
(requires True)
(ensures (fun v -> ~ (is_null v))) | val ccell_data (#a: Type0) (c: ccell_lvalue a) : Pure (ref a)
(requires True)
(ensures (fun v -> ~ (is_null v))) | let ccell_data #a c =
c.data | {
"file_name": "share/steel/examples/steel/CQueue.Cell.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 8,
"end_line": 21,
"start_col": 0,
"start_line": 20
} | module CQueue.Cell
(* A Steel model of C cell structs *)
#push-options "--__no_positivity"
noeq
type mcell (a: Type0) = {
data: ref a;
next: ref (mcell a);
all_or_none_null: squash (is_null data == is_null next); // TODO: /\ freeable data /\ freeable next, if freeable is implemented as a pure space proposition ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "CQueue.Cell.fst"
} | [
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"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 | c: CQueue.Cell.ccell_lvalue a -> Prims.Pure (Steel.Reference.ref a) | Prims.Pure | [] | [] | [
"CQueue.Cell.ccell_lvalue",
"CQueue.Cell.__proj__Mkmcell__item__data",
"Steel.Reference.ref"
] | [] | false | false | false | false | false | let ccell_data #a c =
| c.data | false |
CQueue.Cell.fst | CQueue.Cell.ccell_next | val ccell_next (#a: Type0) (c: ccell_lvalue a) : Pure (ref (ccell_ptrvalue a))
(requires True)
(ensures (fun v -> ~ (is_null v))) | val ccell_next (#a: Type0) (c: ccell_lvalue a) : Pure (ref (ccell_ptrvalue a))
(requires True)
(ensures (fun v -> ~ (is_null v))) | let ccell_next #a c =
c.next | {
"file_name": "share/steel/examples/steel/CQueue.Cell.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 8,
"end_line": 24,
"start_col": 0,
"start_line": 23
} | module CQueue.Cell
(* A Steel model of C cell structs *)
#push-options "--__no_positivity"
noeq
type mcell (a: Type0) = {
data: ref a;
next: ref (mcell a);
all_or_none_null: squash (is_null data == is_null next); // TODO: /\ freeable data /\ freeable next, if freeable is implemented as a pure space proposition ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "CQueue.Cell.fst"
} | [
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"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 | c: CQueue.Cell.ccell_lvalue a -> Prims.Pure (Steel.Reference.ref (CQueue.Cell.ccell_ptrvalue a)) | Prims.Pure | [] | [] | [
"CQueue.Cell.ccell_lvalue",
"CQueue.Cell.__proj__Mkmcell__item__next",
"Steel.Reference.ref",
"CQueue.Cell.ccell_ptrvalue"
] | [] | false | false | false | false | false | let ccell_next #a c =
| c.next | false |
CQueue.Cell.fst | CQueue.Cell.ccell_ptrvalue_null | val ccell_ptrvalue_null (a: Type0) : Tot (ccell_ptrvalue a) | val ccell_ptrvalue_null (a: Type0) : Tot (ccell_ptrvalue a) | let ccell_ptrvalue_null a = {data = null; next = null; all_or_none_null = ()} | {
"file_name": "share/steel/examples/steel/CQueue.Cell.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 77,
"end_line": 16,
"start_col": 0,
"start_line": 16
} | module CQueue.Cell
(* A Steel model of C cell structs *)
#push-options "--__no_positivity"
noeq
type mcell (a: Type0) = {
data: ref a;
next: ref (mcell a);
all_or_none_null: squash (is_null data == is_null next); // TODO: /\ freeable data /\ freeable next, if freeable is implemented as a pure space proposition ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "CQueue.Cell.fst"
} | [
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"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: Type0 -> CQueue.Cell.ccell_ptrvalue a | Prims.Tot | [
"total"
] | [] | [
"CQueue.Cell.Mkmcell",
"Steel.Reference.null",
"CQueue.Cell.mcell",
"CQueue.Cell.ccell_ptrvalue"
] | [] | false | false | false | true | false | let ccell_ptrvalue_null a =
| { data = null; next = null; all_or_none_null = () } | false |
CQueue.Cell.fst | CQueue.Cell.ccell_ptrvalue_is_null | val ccell_ptrvalue_is_null (#a: Type0) (c: ccell_ptrvalue a) : Pure bool
(requires True)
(ensures (fun b -> b == true <==> c == ccell_ptrvalue_null a)) | val ccell_ptrvalue_is_null (#a: Type0) (c: ccell_ptrvalue a) : Pure bool
(requires True)
(ensures (fun b -> b == true <==> c == ccell_ptrvalue_null a)) | let ccell_ptrvalue_is_null #a x = is_null x.data | {
"file_name": "share/steel/examples/steel/CQueue.Cell.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 48,
"end_line": 18,
"start_col": 0,
"start_line": 18
} | module CQueue.Cell
(* A Steel model of C cell structs *)
#push-options "--__no_positivity"
noeq
type mcell (a: Type0) = {
data: ref a;
next: ref (mcell a);
all_or_none_null: squash (is_null data == is_null next); // TODO: /\ freeable data /\ freeable next, if freeable is implemented as a pure space proposition ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "CQueue.Cell.fst"
} | [
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"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 | c: CQueue.Cell.ccell_ptrvalue a -> Prims.Pure Prims.bool | Prims.Pure | [] | [] | [
"CQueue.Cell.ccell_ptrvalue",
"Steel.Reference.is_null",
"CQueue.Cell.__proj__Mkmcell__item__data",
"Prims.bool"
] | [] | false | false | false | false | false | let ccell_ptrvalue_is_null #a x =
| is_null x.data | false |
CQueue.Cell.fst | CQueue.Cell.ccell_is_lvalue0 | val ccell_is_lvalue0 (#a: Type) (c: ccell_ptrvalue a) : Tot vprop | val ccell_is_lvalue0 (#a: Type) (c: ccell_ptrvalue a) : Tot vprop | let ccell_is_lvalue0
(#a: Type)
(c: ccell_ptrvalue a)
: Tot vprop
= emp `vrefine` ccell_is_lvalue_refine c `vrewrite` ccell_is_lvalue_rewrite c | {
"file_name": "share/steel/examples/steel/CQueue.Cell.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 77,
"end_line": 45,
"start_col": 0,
"start_line": 41
} | module CQueue.Cell
(* A Steel model of C cell structs *)
#push-options "--__no_positivity"
noeq
type mcell (a: Type0) = {
data: ref a;
next: ref (mcell a);
all_or_none_null: squash (is_null data == is_null next); // TODO: /\ freeable data /\ freeable next, if freeable is implemented as a pure space proposition ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "CQueue.Cell.fst"
} | [
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"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 | c: CQueue.Cell.ccell_ptrvalue a -> Steel.Effect.Common.vprop | Prims.Tot | [
"total"
] | [] | [
"CQueue.Cell.ccell_ptrvalue",
"Steel.Effect.Common.vrewrite",
"Steel.Effect.Common.vrefine",
"Steel.Effect.Common.emp",
"CQueue.Cell.ccell_is_lvalue_refine",
"CQueue.Cell.ccell_lvalue",
"CQueue.Cell.ccell_is_lvalue_rewrite",
"Steel.Effect.Common.vprop"
] | [] | false | false | false | true | false | let ccell_is_lvalue0 (#a: Type) (c: ccell_ptrvalue a) : Tot vprop =
| (emp `vrefine` (ccell_is_lvalue_refine c)) `vrewrite` (ccell_is_lvalue_rewrite c) | false |
Vale.SHA.PPC64LE.Rounds.fst | Vale.SHA.PPC64LE.Rounds.va_codegen_success_Loop_rounds_0_15 | val va_codegen_success_Loop_rounds_0_15 : va_dummy:unit -> Tot va_pbool | val va_codegen_success_Loop_rounds_0_15 : va_dummy:unit -> Tot va_pbool | let va_codegen_success_Loop_rounds_0_15 () =
(va_pbool_and (va_codegen_success_Loop_rounds_3_7_11_body 3 (va_op_vec_opr_vec 4)) (va_pbool_and
(va_codegen_success_Loop_rounds_3_7_11_body 7 (va_op_vec_opr_vec 8)) (va_pbool_and
(va_codegen_success_Loop_rounds_3_7_11_body 11 (va_op_vec_opr_vec 12)) (va_pbool_and
... | {
"file_name": "obj/Vale.SHA.PPC64LE.Rounds.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 97,
"end_line": 54,
"start_col": 0,
"start_line": 44
} | module Vale.SHA.PPC64LE.Rounds
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.PPC64LE.Stack_i
open Vale.PPC64LE.State
open Vale.PPC64LE.Decls
open Vale... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.SHA.PPC64LE.SHA_helpers.fsti.checked",
"Vale.SHA.PPC64LE.Rounds.Core.fsti.checked",
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.Stack_i.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA.PPC64LE.Rounds.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Loops",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_pbool | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"Vale.PPC64LE.Decls.va_pbool_and",
"Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_3_7_11_body",
"Vale.PPC64LE.Decls.va_op_vec_opr_vec",
"Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_1_3",
"Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_0_59_a",
"Va... | [] | false | false | false | true | false | let va_codegen_success_Loop_rounds_0_15 () =
| (va_pbool_and (va_codegen_success_Loop_rounds_3_7_11_body 3 (va_op_vec_opr_vec 4))
(va_pbool_and (va_codegen_success_Loop_rounds_3_7_11_body 7 (va_op_vec_opr_vec 8))
(va_pbool_and (va_codegen_success_Loop_rounds_3_7_11_body 11 (va_op_vec_opr_vec 12))
(va_pbool_and (va_codegen_success_Loop_rounds... | false |
Vale.SHA.PPC64LE.Rounds.fst | Vale.SHA.PPC64LE.Rounds.va_code_Loop_rounds_0_15 | val va_code_Loop_rounds_0_15 : va_dummy:unit -> Tot va_code | val va_code_Loop_rounds_0_15 : va_dummy:unit -> Tot va_code | let va_code_Loop_rounds_0_15 () =
(va_Block (va_CCons (va_code_Loop_rounds_3_7_11_body 3 (va_op_vec_opr_vec 4)) (va_CCons
(va_code_Loop_rounds_3_7_11_body 7 (va_op_vec_opr_vec 8)) (va_CCons
(va_code_Loop_rounds_3_7_11_body 11 (va_op_vec_opr_vec 12)) (va_CCons (va_Block (va_CNil ()))
(va_CCons (va_Block (v... | {
"file_name": "obj/Vale.SHA.PPC64LE.Rounds.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 78,
"end_line": 41,
"start_col": 0,
"start_line": 31
} | module Vale.SHA.PPC64LE.Rounds
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.PPC64LE.Stack_i
open Vale.PPC64LE.State
open Vale.PPC64LE.Decls
open Vale... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.SHA.PPC64LE.SHA_helpers.fsti.checked",
"Vale.SHA.PPC64LE.Rounds.Core.fsti.checked",
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.Stack_i.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA.PPC64LE.Rounds.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Loops",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_code | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"Vale.PPC64LE.Decls.va_Block",
"Vale.PPC64LE.Decls.va_CCons",
"Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_3_7_11_body",
"Vale.PPC64LE.Decls.va_op_vec_opr_vec",
"Vale.PPC64LE.Decls.va_CNil",
"Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_1_3",
"Vale.SHA.PPC64LE.Rounds.Core.va_cod... | [] | false | false | false | true | false | let va_code_Loop_rounds_0_15 () =
| (va_Block (va_CCons (va_code_Loop_rounds_3_7_11_body 3 (va_op_vec_opr_vec 4))
(va_CCons (va_code_Loop_rounds_3_7_11_body 7 (va_op_vec_opr_vec 8))
(va_CCons (va_code_Loop_rounds_3_7_11_body 11 (va_op_vec_opr_vec 12))
(va_CCons (va_Block (va_CNil ()))
(va_CCons (va_... | false |
CQueue.Cell.fst | CQueue.Cell.ccell_is_lvalue_rewrite | val ccell_is_lvalue_rewrite:
#a: Type ->
c: ccell_ptrvalue a ->
normal (t_of (emp `vrefine` (ccell_is_lvalue_refine c)))
-> GTot (ccell_lvalue a) | val ccell_is_lvalue_rewrite:
#a: Type ->
c: ccell_ptrvalue a ->
normal (t_of (emp `vrefine` (ccell_is_lvalue_refine c)))
-> GTot (ccell_lvalue a) | let ccell_is_lvalue_rewrite
(#a: Type)
(c: ccell_ptrvalue a)
(_: normal (t_of (emp `vrefine` ccell_is_lvalue_refine c)))
: GTot (ccell_lvalue a)
= c | {
"file_name": "share/steel/examples/steel/CQueue.Cell.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 3,
"end_line": 38,
"start_col": 0,
"start_line": 33
} | module CQueue.Cell
(* A Steel model of C cell structs *)
#push-options "--__no_positivity"
noeq
type mcell (a: Type0) = {
data: ref a;
next: ref (mcell a);
all_or_none_null: squash (is_null data == is_null next); // TODO: /\ freeable data /\ freeable next, if freeable is implemented as a pure space proposition ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "CQueue.Cell.fst"
} | [
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"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 |
c: CQueue.Cell.ccell_ptrvalue a ->
_:
Steel.Effect.Common.normal (Steel.Effect.Common.t_of (Steel.Effect.Common.vrefine Steel.Effect.Common.emp
(CQueue.Cell.ccell_is_lvalue_refine c)))
-> Prims.GTot (CQueue.Cell.ccell_lvalue a) | Prims.GTot | [
"sometrivial"
] | [] | [
"CQueue.Cell.ccell_ptrvalue",
"Steel.Effect.Common.normal",
"Steel.Effect.Common.t_of",
"Steel.Effect.Common.vrefine",
"Steel.Effect.Common.emp",
"CQueue.Cell.ccell_is_lvalue_refine",
"CQueue.Cell.ccell_lvalue"
] | [] | false | false | false | false | false | let ccell_is_lvalue_rewrite
(#a: Type)
(c: ccell_ptrvalue a)
(_: normal (t_of (emp `vrefine` (ccell_is_lvalue_refine c))))
: GTot (ccell_lvalue a) =
| c | false |
Vale.SHA.PPC64LE.Rounds.fst | Vale.SHA.PPC64LE.Rounds.va_code_Loop_rounds_48_63 | val va_code_Loop_rounds_48_63 : va_dummy:unit -> Tot va_code | val va_code_Loop_rounds_48_63 : va_dummy:unit -> Tot va_code | let va_code_Loop_rounds_48_63 () =
(va_Block (va_CCons (va_code_Loop_rounds_16_59_a 48) (va_CCons (va_code_Loop_rounds_0_59_a 48)
(va_CCons (va_code_Loop_rounds_16_59_b 52) (va_CCons (va_code_Loop_rounds_0_59_b 52) (va_CCons
(va_code_Loop_rounds_16_59_c 56) (va_CCons (va_code_Loop_rounds_0_59_c 56) (va_CCons
... | {
"file_name": "obj/Vale.SHA.PPC64LE.Rounds.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 332,
"start_col": 0,
"start_line": 327
} | module Vale.SHA.PPC64LE.Rounds
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.PPC64LE.Stack_i
open Vale.PPC64LE.State
open Vale.PPC64LE.Decls
open Vale... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.SHA.PPC64LE.SHA_helpers.fsti.checked",
"Vale.SHA.PPC64LE.Rounds.Core.fsti.checked",
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.Stack_i.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA.PPC64LE.Rounds.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Loops",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_code | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"Vale.PPC64LE.Decls.va_Block",
"Vale.PPC64LE.Decls.va_CCons",
"Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_a",
"Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_59_a",
"Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_b",
"Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds... | [] | false | false | false | true | false | let va_code_Loop_rounds_48_63 () =
| (va_Block (va_CCons (va_code_Loop_rounds_16_59_a 48)
(va_CCons (va_code_Loop_rounds_0_59_a 48)
(va_CCons (va_code_Loop_rounds_16_59_b 52)
(va_CCons (va_code_Loop_rounds_0_59_b 52)
(va_CCons (va_code_Loop_rounds_16_59_c 56)
(va_CCons (va_cod... | false |
Vale.SHA.PPC64LE.Rounds.fst | Vale.SHA.PPC64LE.Rounds.va_qcode_Loop_rounds_48_63 | val va_qcode_Loop_rounds_48_63
(va_mods: va_mods_t)
(k_b: buffer128)
(block: block_w)
(hash_orig: hash256)
: (va_quickCode unit (va_code_Loop_rounds_48_63 ())) | val va_qcode_Loop_rounds_48_63
(va_mods: va_mods_t)
(k_b: buffer128)
(block: block_w)
(hash_orig: hash256)
: (va_quickCode unit (va_code_Loop_rounds_48_63 ())) | let va_qcode_Loop_rounds_48_63 (va_mods:va_mods_t) (k_b:buffer128) (block:block_w)
(hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_48_63 ())) =
(qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1
"***** PRECONDITION NOT MET AT line 252 column 24 of file /hom... | {
"file_name": "obj/Vale.SHA.PPC64LE.Rounds.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 80,
"end_line": 364,
"start_col": 0,
"start_line": 346
} | module Vale.SHA.PPC64LE.Rounds
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.PPC64LE.Stack_i
open Vale.PPC64LE.State
open Vale.PPC64LE.Decls
open Vale... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.SHA.PPC64LE.SHA_helpers.fsti.checked",
"Vale.SHA.PPC64LE.Rounds.Core.fsti.checked",
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.Stack_i.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA.PPC64LE.Rounds.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Loops",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_mods: Vale.PPC64LE.QuickCode.va_mods_t ->
k_b: Vale.PPC64LE.Memory.buffer128 ->
block: Vale.SHA.PPC64LE.SHA_helpers.block_w ->
hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256
-> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit
(Vale.SHA.PPC64LE.Rounds.va_code_Loop_rounds_48_63 ()) | Prims.Tot | [
"total"
] | [] | [
"Vale.PPC64LE.QuickCode.va_mods_t",
"Vale.PPC64LE.Memory.buffer128",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Vale.PPC64LE.QuickCodes.qblock",
"Prims.unit",
"Prims.Cons",
"Vale.PPC64LE.Decls.va_code",
"Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_a",... | [] | false | false | false | false | false | let va_qcode_Loop_rounds_48_63
(va_mods: va_mods_t)
(k_b: buffer128)
(block: block_w)
(hash_orig: hash256)
: (va_quickCode unit (va_code_Loop_rounds_48_63 ())) =
| (qblock va_mods
(fun (va_s: va_state) ->
let va_old_s:va_state = va_s in
va_QSeq va_range1
"***** PRECONDITION NOT MET AT line 252 column 24 of file /home/gebner/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.vaf *****"
(va_quick_Lo... | false |
Vale.SHA.PPC64LE.Rounds.fst | Vale.SHA.PPC64LE.Rounds.va_codegen_success_Loop_rounds_48_63 | val va_codegen_success_Loop_rounds_48_63 : va_dummy:unit -> Tot va_pbool | val va_codegen_success_Loop_rounds_48_63 : va_dummy:unit -> Tot va_pbool | let va_codegen_success_Loop_rounds_48_63 () =
(va_pbool_and (va_codegen_success_Loop_rounds_16_59_a 48) (va_pbool_and
(va_codegen_success_Loop_rounds_0_59_a 48) (va_pbool_and
(va_codegen_success_Loop_rounds_16_59_b 52) (va_pbool_and
(va_codegen_success_Loop_rounds_0_59_b 52) (va_pbool_and
(va_codegen_... | {
"file_name": "obj/Vale.SHA.PPC64LE.Rounds.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 69,
"end_line": 343,
"start_col": 0,
"start_line": 335
} | module Vale.SHA.PPC64LE.Rounds
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.PPC64LE.Stack_i
open Vale.PPC64LE.State
open Vale.PPC64LE.Decls
open Vale... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.SHA.PPC64LE.SHA_helpers.fsti.checked",
"Vale.SHA.PPC64LE.Rounds.Core.fsti.checked",
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.Stack_i.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA.PPC64LE.Rounds.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Loops",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | va_dummy: Prims.unit -> Vale.PPC64LE.Decls.va_pbool | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"Vale.PPC64LE.Decls.va_pbool_and",
"Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_16_59_a",
"Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_0_59_a",
"Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_16_59_b",
"Vale.SHA.PPC64LE.Rounds.Core.va_codegen_succ... | [] | false | false | false | true | false | let va_codegen_success_Loop_rounds_48_63 () =
| (va_pbool_and (va_codegen_success_Loop_rounds_16_59_a 48)
(va_pbool_and (va_codegen_success_Loop_rounds_0_59_a 48)
(va_pbool_and (va_codegen_success_Loop_rounds_16_59_b 52)
(va_pbool_and (va_codegen_success_Loop_rounds_0_59_b 52)
(va_pbool_and (va_codegen_success_Loop_rounds_16_5... | false |
OWGCounter.ST.fst | OWGCounter.ST.incr | val incr:
r: R.ref int ->
r_mine: GR.ref int ->
r_other: GR.ref int ->
b: G.erased bool ->
l: lock (lock_inv r (if b then r_mine else r_other) (if b then r_other else r_mine)) ->
n: G.erased int ->
Prims.unit
-> STT unit (GR.pts_to r_mine half_perm n) (fun _ -> GR.pts_to r_mine half_perm (... | val incr:
r: R.ref int ->
r_mine: GR.ref int ->
r_other: GR.ref int ->
b: G.erased bool ->
l: lock (lock_inv r (if b then r_mine else r_other) (if b then r_other else r_mine)) ->
n: G.erased int ->
Prims.unit
-> STT unit (GR.pts_to r_mine half_perm n) (fun _ -> GR.pts_to r_mine half_perm (... | let incr (r:R.ref int) (r_mine r_other:GR.ref int) (b:G.erased bool)
(l:lock (lock_inv r (if b then r_mine else r_other)
(if b then r_other else r_mine)))
(n:G.erased int)
()
: STT unit
(GR.pts_to r_mine half_perm n)
(fun _ -> GR.pts_to r_mine half_perm (n+1))
= acquire r... | {
"file_name": "share/steel/examples/steel/OWGCounter.ST.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 46,
"end_line": 207,
"start_col": 0,
"start_line": 165
} | (*
Copyright 2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.ST.SpinLock.fsti.checked",
"Steel.ST.Reference.fsti.checked",
"Steel.ST.GhostReference.fsti.checked",
"Steel.ST.Effect.Atomic.fsti.checked",
"Steel.ST.Effect.fsti.checked",
"Steel.Memory.fsti.checked",
"Ste... | [
{
"abbrev": true,
"full_module": "Steel.FractionalPermission",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Steel.ST.GhostReference",
"short_module": "GR"
},
{
"abbrev": true,
"full_module": "Steel.ST.Reference",
"short_module": "R"
},
{
"abbrev": true... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
r: Steel.ST.Reference.ref Prims.int ->
r_mine: Steel.ST.GhostReference.ref Prims.int ->
r_other: Steel.ST.GhostReference.ref Prims.int ->
b: FStar.Ghost.erased Prims.bool ->
l:
Steel.ST.SpinLock.lock (OWGCounter.ST.lock_inv r
(match FStar.Ghost.reveal b with
| true -... | Steel.ST.Effect.STT | [] | [] | [
"Steel.ST.Reference.ref",
"Prims.int",
"Steel.ST.GhostReference.ref",
"FStar.Ghost.erased",
"Prims.bool",
"Steel.ST.SpinLock.lock",
"OWGCounter.ST.lock_inv",
"FStar.Ghost.reveal",
"Prims.unit",
"Steel.ST.Util.rewrite",
"FStar.Ghost.hide",
"FStar.Set.set",
"Steel.Memory.iname",
"FStar.Set.e... | [] | false | true | false | false | false | let incr
(r: R.ref int)
(r_mine: GR.ref int)
(r_other: GR.ref int)
(b: G.erased bool)
(l: lock (lock_inv r (if b then r_mine else r_other) (if b then r_other else r_mine)))
(n: G.erased int)
()
: STT unit (GR.pts_to r_mine half_perm n) (fun _ -> GR.pts_to r_mine half_perm (... | acquire r r_mine r_other b l;
let w = elim_exists () in
let v = R.read r in
R.write r (v + 1);
rewrite (R.pts_to r full_perm (v + 1)) (R.pts_to r full_perm ((fst w + 1) + snd w));
GR.gather #_ #_ #_ #_ #n #(G.hide (fst w)) r_mine;
rewrite (GR.pts_to r_mine (sum_perm half_perm half_perm) n) (GR.pts_to r_mine full_perm n... | false |
Pulse.Checker.Prover.IntroExists.fst | Pulse.Checker.Prover.IntroExists.coerce_eq | val coerce_eq: #a: Type -> #b: Type -> x: a -> squash (a == b) -> y: b{y == x} | val coerce_eq: #a: Type -> #b: Type -> x: a -> squash (a == b) -> y: b{y == x} | let coerce_eq (#a #b:Type) (x:a) (_:squash (a == b)) : y:b{y == x} = x | {
"file_name": "lib/steel/pulse/Pulse.Checker.Prover.IntroExists.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 70,
"end_line": 32,
"start_col": 0,
"start_line": 32
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Combinators.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.Checker.VPropEquiv.fsti.checked",
"Pulse.Checker.Prover.Substs.fsti.... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Checker.Prover.Substs",
"short_module": "PS"
},
{
"abbrev": true,
"full_module": "FStar.Tactics.V2",
"short_module": "T"
},
{
"abbre... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: a -> _: Prims.squash (a == b) -> y: b{y == x} | Prims.Tot | [
"total"
] | [] | [
"Prims.squash",
"Prims.eq2"
] | [] | false | false | false | false | false | let coerce_eq (#a: Type) (#b: Type) (x: a) (_: squash (a == b)) : y: b{y == x} =
| x | false |
Vale.SHA.PPC64LE.Rounds.fst | Vale.SHA.PPC64LE.Rounds.va_codegen_success_Loop_rounds_16_47 | val va_codegen_success_Loop_rounds_16_47 : i:nat -> Tot va_pbool | val va_codegen_success_Loop_rounds_16_47 : i:nat -> Tot va_pbool | let va_codegen_success_Loop_rounds_16_47 i =
(va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_59_a i)
(va_codegen_success_Loop_rounds_16_59_a i)) (va_pbool_and (va_pbool_and
(va_codegen_success_Loop_rounds_0_59_a i) (va_codegen_success_Loop_rounds_0_59_a i))
(va_pbool_and (va_pbool_and (va_c... | {
"file_name": "obj/Vale.SHA.PPC64LE.Rounds.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 31,
"end_line": 229,
"start_col": 0,
"start_line": 216
} | module Vale.SHA.PPC64LE.Rounds
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.PPC64LE.Stack_i
open Vale.PPC64LE.State
open Vale.PPC64LE.Decls
open Vale... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.SHA.PPC64LE.SHA_helpers.fsti.checked",
"Vale.SHA.PPC64LE.Rounds.Core.fsti.checked",
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.Stack_i.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA.PPC64LE.Rounds.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Loops",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | i: Prims.nat -> Vale.PPC64LE.Decls.va_pbool | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Vale.PPC64LE.Decls.va_pbool_and",
"Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_16_59_a",
"Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_0_59_a",
"Vale.SHA.PPC64LE.Rounds.Core.va_codegen_success_Loop_rounds_16_59_b",
"Prims.op_Addition",
"Vale.SHA.PPC64LE.Round... | [] | false | false | false | true | false | let va_codegen_success_Loop_rounds_16_47 i =
| (va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_16_59_a i)
(va_codegen_success_Loop_rounds_16_59_a i))
(va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_0_59_a i)
(va_codegen_success_Loop_rounds_0_59_a i))
(va_pbool_and (va_pbool_and (va_codegen_success_Loop_rounds_... | false |
Vale.SHA.PPC64LE.Rounds.fst | Vale.SHA.PPC64LE.Rounds.va_code_Loop_rounds_16_47 | val va_code_Loop_rounds_16_47 : i:nat -> Tot va_code | val va_code_Loop_rounds_16_47 : i:nat -> Tot va_code | let va_code_Loop_rounds_16_47 i =
(va_Block (va_CCons (va_code_Loop_rounds_16_59_a i) (va_CCons (va_code_Loop_rounds_0_59_a i)
(va_CCons (va_code_Loop_rounds_16_59_b (i + 4)) (va_CCons (va_code_Loop_rounds_0_59_b (i + 4))
(va_CCons (va_code_Loop_rounds_16_59_c (i + 8)) (va_CCons (va_code_Loop_rounds_0_59_c (i... | {
"file_name": "obj/Vale.SHA.PPC64LE.Rounds.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 30,
"end_line": 213,
"start_col": 0,
"start_line": 208
} | module Vale.SHA.PPC64LE.Rounds
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.PPC64LE.Stack_i
open Vale.PPC64LE.State
open Vale.PPC64LE.Decls
open Vale... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.SHA.PPC64LE.SHA_helpers.fsti.checked",
"Vale.SHA.PPC64LE.Rounds.Core.fsti.checked",
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.Stack_i.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA.PPC64LE.Rounds.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Loops",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | i: Prims.nat -> Vale.PPC64LE.Decls.va_code | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"Vale.PPC64LE.Decls.va_Block",
"Vale.PPC64LE.Decls.va_CCons",
"Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_a",
"Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_0_59_a",
"Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_rounds_16_59_b",
"Prims.op_Addition",
"Vale.SHA.PPC64LE.Rounds.Co... | [] | false | false | false | true | false | let va_code_Loop_rounds_16_47 i =
| (va_Block (va_CCons (va_code_Loop_rounds_16_59_a i)
(va_CCons (va_code_Loop_rounds_0_59_a i)
(va_CCons (va_code_Loop_rounds_16_59_b (i + 4))
(va_CCons (va_code_Loop_rounds_0_59_b (i + 4))
(va_CCons (va_code_Loop_rounds_16_59_c (i + 8))
(va_... | false |
Vale.SHA.PPC64LE.Rounds.fst | Vale.SHA.PPC64LE.Rounds.va_qcode_Loop_rounds_16_47 | val va_qcode_Loop_rounds_16_47
(va_mods: va_mods_t)
(i: nat)
(k_b: buffer128)
(block: block_w)
(hash_orig: hash256)
: (va_quickCode unit (va_code_Loop_rounds_16_47 i)) | val va_qcode_Loop_rounds_16_47
(va_mods: va_mods_t)
(i: nat)
(k_b: buffer128)
(block: block_w)
(hash_orig: hash256)
: (va_quickCode unit (va_code_Loop_rounds_16_47 i)) | let va_qcode_Loop_rounds_16_47 (va_mods:va_mods_t) (i:nat) (k_b:buffer128) (block:block_w)
(hash_orig:hash256) : (va_quickCode unit (va_code_Loop_rounds_16_47 i)) =
(qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in va_QSeq va_range1
"***** PRECONDITION NOT MET AT line 198 column 24 of fi... | {
"file_name": "obj/Vale.SHA.PPC64LE.Rounds.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 88,
"end_line": 250,
"start_col": 0,
"start_line": 232
} | module Vale.SHA.PPC64LE.Rounds
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.PPC64LE.Stack_i
open Vale.PPC64LE.State
open Vale.PPC64LE.Decls
open Vale... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.SHA.PPC64LE.SHA_helpers.fsti.checked",
"Vale.SHA.PPC64LE.Rounds.Core.fsti.checked",
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.Stack_i.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA.PPC64LE.Rounds.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Loops",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_mods: Vale.PPC64LE.QuickCode.va_mods_t ->
i: Prims.nat ->
k_b: Vale.PPC64LE.Memory.buffer128 ->
block: Vale.SHA.PPC64LE.SHA_helpers.block_w ->
hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256
-> Vale.PPC64LE.QuickCode.va_quickCode Prims.unit
(Vale.SHA.PPC64LE.Rounds.va_code_Loop_rounds_16... | Prims.Tot | [
"total"
] | [] | [
"Vale.PPC64LE.QuickCode.va_mods_t",
"Prims.nat",
"Vale.PPC64LE.Memory.buffer128",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Vale.PPC64LE.QuickCodes.qblock",
"Prims.unit",
"Prims.Cons",
"Vale.PPC64LE.Decls.va_code",
"Vale.SHA.PPC64LE.Rounds.Core.va_code_Loop_r... | [] | false | false | false | false | false | let va_qcode_Loop_rounds_16_47
(va_mods: va_mods_t)
(i: nat)
(k_b: buffer128)
(block: block_w)
(hash_orig: hash256)
: (va_quickCode unit (va_code_Loop_rounds_16_47 i)) =
| (qblock va_mods
(fun (va_s: va_state) ->
let va_old_s:va_state = va_s in
va_QSeq va_range1
"***** PRECONDITION NOT MET AT line 198 column 24 of file /home/gebner/fstar_dataset/projects/hacl-star/vale/code/thirdPartyPorts/OpenSSL/sha/Vale.SHA.PPC64LE.Rounds.vaf *****"
(va_quick_Lo... | false |
LList32.fst | LList32.cons | val cons (#l: G.erased (list u32)) (x: u32) (ll: llist)
: STT llist (ll `is_list` l) (fun ll -> ll `is_list` (x :: l)) | val cons (#l: G.erased (list u32)) (x: u32) (ll: llist)
: STT llist (ll `is_list` l) (fun ll -> ll `is_list` (x :: l)) | let cons (#l:G.erased (list u32)) (x:u32) (ll:llist)
: STT llist
(ll `is_list` l)
(fun ll -> ll `is_list` (x::l))
= cons x ll | {
"file_name": "share/steel/examples/steel/LList32.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 13,
"end_line": 46,
"start_col": 0,
"start_line": 42
} | (*
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.fsti.checked",
"Steel.Memory.fsti.checked",
"prims.fst.checked",
"LList.ST.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface... | [
{
"abbrev": true,
"full_module": "FStar.Ghost",
"short_module": "G"
},
{
"abbrev": false,
"full_module": "LList.ST",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"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 | x: LList32.u32 -> ll: LList32.llist -> Steel.ST.Effect.STT LList32.llist | Steel.ST.Effect.STT | [] | [] | [
"FStar.Ghost.erased",
"Prims.list",
"LList32.u32",
"LList32.llist",
"LList.ST.cons",
"LList.ST.llist",
"LList32.is_list",
"FStar.Ghost.reveal",
"Prims.Cons",
"Steel.Effect.Common.vprop"
] | [] | false | true | false | false | false | let cons (#l: G.erased (list u32)) (x: u32) (ll: llist)
: STT llist (ll `is_list` l) (fun ll -> ll `is_list` (x :: l)) =
| cons x ll | false |
Vale.SHA.PPC64LE.Rounds.fst | Vale.SHA.PPC64LE.Rounds.va_wpProof_Loop_rounds_48_63 | val va_wpProof_Loop_rounds_48_63 : k_b:buffer128 -> block:block_w -> hash_orig:hash256 ->
va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Loop_rounds_48_63 k_b block hash_orig va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_e... | val va_wpProof_Loop_rounds_48_63 : k_b:buffer128 -> block:block_w -> hash_orig:hash256 ->
va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Loop_rounds_48_63 k_b block hash_orig va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_e... | let va_wpProof_Loop_rounds_48_63 k_b block hash_orig va_s0 va_k =
let (va_sM, va_f0) = va_lemma_Loop_rounds_48_63 (va_code_Loop_rounds_48_63 ()) va_s0 k_b block
hash_orig in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM
(va_upd... | {
"file_name": "obj/Vale.SHA.PPC64LE.Rounds.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 413,
"start_col": 0,
"start_line": 395
} | module Vale.SHA.PPC64LE.Rounds
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.PPC64LE.Stack_i
open Vale.PPC64LE.State
open Vale.PPC64LE.Decls
open Vale... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.SHA.PPC64LE.SHA_helpers.fsti.checked",
"Vale.SHA.PPC64LE.Rounds.Core.fsti.checked",
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.Stack_i.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA.PPC64LE.Rounds.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Loops",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
k_b: Vale.PPC64LE.Memory.buffer128 ->
block: Vale.SHA.PPC64LE.SHA_helpers.block_w ->
hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256 ->
va_s0: Vale.PPC64LE.Decls.va_state ->
va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0)
-> Prims.Ghost ((Vale.PPC64LE.Decls.va_state * Vale.PPC64L... | Prims.Ghost | [] | [] | [
"Vale.PPC64LE.Memory.buffer128",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Vale.PPC64LE.Decls.va_state",
"Prims.unit",
"Vale.PPC64LE.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple3",
"Vale.PPC64LE.QuickCode.va_lemma_norm_mods",
"Prims.Cons",
"Vale.PPC64LE.Q... | [] | false | false | false | false | false | let va_wpProof_Loop_rounds_48_63 k_b block hash_orig va_s0 va_k =
| let va_sM, va_f0 =
va_lemma_Loop_rounds_48_63 (va_code_Loop_rounds_48_63 ()) va_s0 k_b block hash_orig
in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_vec 26
va_sM
(va_update_vec 25
va_sM
(va_update_vec 24
va_sM
... | false |
Vale.SHA.PPC64LE.Rounds.fst | Vale.SHA.PPC64LE.Rounds.va_wpProof_Loop_rounds_0_15 | val va_wpProof_Loop_rounds_0_15 : in_b:buffer128 -> offset:nat -> k_b:buffer128 -> block:block_w ->
hash_orig:hash256 -> input_BE:(seq quad32) -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_15 in_b offset k_b block ha... | val va_wpProof_Loop_rounds_0_15 : in_b:buffer128 -> offset:nat -> k_b:buffer128 -> block:block_w ->
hash_orig:hash256 -> input_BE:(seq quad32) -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Loop_rounds_0_15 in_b offset k_b block ha... | let va_wpProof_Loop_rounds_0_15 in_b offset k_b block hash_orig input_BE va_s0 va_k =
let (va_sM, va_f0) = va_lemma_Loop_rounds_0_15 (va_code_Loop_rounds_0_15 ()) va_s0 in_b offset
k_b block hash_orig input_BE in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va... | {
"file_name": "obj/Vale.SHA.PPC64LE.Rounds.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 202,
"start_col": 0,
"start_line": 183
} | module Vale.SHA.PPC64LE.Rounds
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.PPC64LE.Stack_i
open Vale.PPC64LE.State
open Vale.PPC64LE.Decls
open Vale... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.SHA.PPC64LE.SHA_helpers.fsti.checked",
"Vale.SHA.PPC64LE.Rounds.Core.fsti.checked",
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.Stack_i.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA.PPC64LE.Rounds.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Loops",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
in_b: Vale.PPC64LE.Memory.buffer128 ->
offset: Prims.nat ->
k_b: Vale.PPC64LE.Memory.buffer128 ->
block: Vale.SHA.PPC64LE.SHA_helpers.block_w ->
hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256 ->
input_BE: FStar.Seq.Base.seq Vale.PPC64LE.Memory.quad32 ->
va_s0: Vale.PPC64LE.Decls.va_state -... | Prims.Ghost | [] | [] | [
"Vale.PPC64LE.Memory.buffer128",
"Prims.nat",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"FStar.Seq.Base.seq",
"Vale.PPC64LE.Memory.quad32",
"Vale.PPC64LE.Decls.va_state",
"Prims.unit",
"Vale.PPC64LE.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple3",
"Vale.P... | [] | false | false | false | false | false | let va_wpProof_Loop_rounds_0_15 in_b offset k_b block hash_orig input_BE va_s0 va_k =
| let va_sM, va_f0 =
va_lemma_Loop_rounds_0_15 (va_code_Loop_rounds_0_15 ())
va_s0
in_b
offset
k_b
block
hash_orig
input_BE
in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_vec 26
va_sM
(va_update_vec 25
va_sM
(va_update... | false |
LListReverse.fst | LListReverse.llist_nil | val llist_nil (p: ref llist_cell) : Tot vprop | val llist_nil (p: ref llist_cell) : Tot vprop | let llist_nil
(p: ref llist_cell)
: Tot vprop
= pure (p == null) | {
"file_name": "share/steel/tests/krml/LListReverse.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 18,
"end_line": 20,
"start_col": 0,
"start_line": 17
} | module LListReverse
open Steel.ST.GenElim
open Steel.ST.Reference
open Steel.ST.Loops
module U64 = FStar.UInt64
let main () = C.EXIT_SUCCESS // dummy for compilation
noeq
type llist_cell = {
value: U64.t;
next: ref llist_cell;
} | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Reference.fsti.checked",
"Steel.ST.Loops.fsti.checked",
"Steel.ST.GenElim.fsti.checked",
"prims.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_module": "Steel.ST.Loops",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Reference",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Steel.ST.Reference.ref LListReverse.llist_cell -> Steel.Effect.Common.vprop | Prims.Tot | [
"total"
] | [] | [
"Steel.ST.Reference.ref",
"LListReverse.llist_cell",
"Steel.ST.Util.pure",
"Prims.eq2",
"Steel.ST.Reference.null",
"Steel.Effect.Common.vprop"
] | [] | false | false | false | true | false | let llist_nil (p: ref llist_cell) : Tot vprop =
| pure (p == null) | false |
LListReverse.fst | LListReverse.main | val main : _: Prims.unit -> C.exit_code | let main () = C.EXIT_SUCCESS | {
"file_name": "share/steel/tests/krml/LListReverse.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 28,
"end_line": 8,
"start_col": 0,
"start_line": 8
} | module LListReverse
open Steel.ST.GenElim
open Steel.ST.Reference
open Steel.ST.Loops
module U64 = FStar.UInt64 | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Reference.fsti.checked",
"Steel.ST.Loops.fsti.checked",
"Steel.ST.GenElim.fsti.checked",
"prims.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_module": "Steel.ST.Loops",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Reference",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: Prims.unit -> C.exit_code | Prims.Tot | [
"total"
] | [] | [
"Prims.unit",
"C.EXIT_SUCCESS",
"C.exit_code"
] | [] | false | false | false | true | false | let main () =
| C.EXIT_SUCCESS | false | |
Vale.SHA.PPC64LE.Rounds.fst | Vale.SHA.PPC64LE.Rounds.va_qcode_Loop_rounds_0_15 | val va_qcode_Loop_rounds_0_15
(va_mods: va_mods_t)
(in_b: buffer128)
(offset: nat)
(k_b: buffer128)
(block: block_w)
(hash_orig: hash256)
(input_BE: (seq quad32))
: (va_quickCode unit (va_code_Loop_rounds_0_15 ())) | val va_qcode_Loop_rounds_0_15
(va_mods: va_mods_t)
(in_b: buffer128)
(offset: nat)
(k_b: buffer128)
(block: block_w)
(hash_orig: hash256)
(input_BE: (seq quad32))
: (va_quickCode unit (va_code_Loop_rounds_0_15 ())) | let va_qcode_Loop_rounds_0_15 (va_mods:va_mods_t) (in_b:buffer128) (offset:nat) (k_b:buffer128)
(block:block_w) (hash_orig:hash256) (input_BE:(seq quad32)) : (va_quickCode unit
(va_code_Loop_rounds_0_15 ())) =
(qblock va_mods (fun (va_s:va_state) -> let (va_old_s:va_state) = va_s in let
(va_arg34:(FStar.Seq.B... | {
"file_name": "obj/Vale.SHA.PPC64LE.Rounds.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 92,
"end_line": 109,
"start_col": 0,
"start_line": 57
} | module Vale.SHA.PPC64LE.Rounds
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.PPC64LE.Stack_i
open Vale.PPC64LE.State
open Vale.PPC64LE.Decls
open Vale... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.SHA.PPC64LE.SHA_helpers.fsti.checked",
"Vale.SHA.PPC64LE.Rounds.Core.fsti.checked",
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.Stack_i.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA.PPC64LE.Rounds.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Loops",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_mods: Vale.PPC64LE.QuickCode.va_mods_t ->
in_b: Vale.PPC64LE.Memory.buffer128 ->
offset: Prims.nat ->
k_b: Vale.PPC64LE.Memory.buffer128 ->
block: Vale.SHA.PPC64LE.SHA_helpers.block_w ->
hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256 ->
input_BE: FStar.Seq.Base.seq Vale.PPC64LE.Memory.q... | Prims.Tot | [
"total"
] | [] | [
"Vale.PPC64LE.QuickCode.va_mods_t",
"Vale.PPC64LE.Memory.buffer128",
"Prims.nat",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"FStar.Seq.Base.seq",
"Vale.PPC64LE.Memory.quad32",
"Vale.PPC64LE.QuickCodes.qblock",
"Prims.unit",
"Prims.Cons",
"Vale.PPC64LE.Decls.... | [] | false | false | false | false | false | let va_qcode_Loop_rounds_0_15
(va_mods: va_mods_t)
(in_b: buffer128)
(offset: nat)
(k_b: buffer128)
(block: block_w)
(hash_orig: hash256)
(input_BE: (seq quad32))
: (va_quickCode unit (va_code_Loop_rounds_0_15 ())) =
| (qblock va_mods
(fun (va_s: va_state) ->
let va_old_s:va_state = va_s in
let va_arg34:(FStar.Seq.Base.seq Vale.Def.Types_s.quad32) = input_BE in
va_qPURE va_range1
"***** PRECONDITION NOT MET AT line 115 column 28 of file /home/gebner/fstar_dataset/projects/hacl-star/vale/code/thir... | false |
CQueue.Cell.fst | CQueue.Cell.ralloc | val ralloc (#a: Type0) (x: a)
: Steel (ref a)
emp
(fun r -> vptr r)
(requires fun _ -> True)
(ensures fun _ r h1 -> h1 (vptr r) == x /\ not (is_null r)) | val ralloc (#a: Type0) (x: a)
: Steel (ref a)
emp
(fun r -> vptr r)
(requires fun _ -> True)
(ensures fun _ r h1 -> h1 (vptr r) == x /\ not (is_null r)) | let ralloc (#a:Type0) (x:a) : Steel (ref a)
emp (fun r -> vptr r)
(requires fun _ -> True)
(ensures fun _ r h1 -> h1 (vptr r) == x /\ not (is_null r))
=
malloc x | {
"file_name": "share/steel/examples/steel/CQueue.Cell.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 10,
"end_line": 191,
"start_col": 0,
"start_line": 186
} | module CQueue.Cell
(* A Steel model of C cell structs *)
#push-options "--__no_positivity"
noeq
type mcell (a: Type0) = {
data: ref a;
next: ref (mcell a);
all_or_none_null: squash (is_null data == is_null next); // TODO: /\ freeable data /\ freeable next, if freeable is implemented as a pure space proposition ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "CQueue.Cell.fst"
} | [
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"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 -> Steel.Effect.Steel (Steel.Reference.ref a) | Steel.Effect.Steel | [] | [] | [
"Steel.Reference.malloc",
"Steel.Reference.ref",
"Steel.Effect.Common.emp",
"Steel.Reference.vptr",
"Steel.Effect.Common.vprop",
"Steel.Effect.Common.rmem",
"Prims.l_True",
"Prims.l_and",
"Prims.eq2",
"Steel.Effect.Common.normal",
"Steel.Effect.Common.t_of",
"Prims.b2t",
"Prims.op_Negation",... | [] | false | true | false | false | false | let ralloc (#a: Type0) (x: a)
: Steel (ref a)
emp
(fun r -> vptr r)
(requires fun _ -> True)
(ensures fun _ r h1 -> h1 (vptr r) == x /\ not (is_null r)) =
| malloc x | false |
Spec.SHA1.fst | Spec.SHA1.compute_w_n' | val compute_w_n'
(mi: Seq.lseq (word SHA1) (block_word_length SHA1))
(n: nat{n <= 79})
(w: (i: nat{i < n} -> Tot (y: word SHA1 {y == w' mi i})))
: Tot (y: word SHA1 {y == w' mi n}) | val compute_w_n'
(mi: Seq.lseq (word SHA1) (block_word_length SHA1))
(n: nat{n <= 79})
(w: (i: nat{i < n} -> Tot (y: word SHA1 {y == w' mi i})))
: Tot (y: word SHA1 {y == w' mi n}) | let compute_w_n'
(mi: Seq.lseq (word SHA1) (block_word_length SHA1))
(n: nat { n <= 79 } )
(w: ((i: nat {i < n}) -> Tot (y: word SHA1 {y == w' mi i})))
: Tot (y: word SHA1 {y == w' mi n})
= let r =
if n < 16
then Seq.index mi n
else (w (n - 3) ^. w (n - 8) ^. w (n - 14) ^. w (n - 16)) <<<. 1ul
... | {
"file_name": "specs/Spec.SHA1.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 64,
"start_col": 0,
"start_line": 54
} | module Spec.SHA1
open Lib.IntTypes
module H = Spec.Hash.Definitions
module Seq = FStar.Seq
open Spec.Hash.Definitions
(* Source: https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf *)
(* Section 5.3.1 *)
inline_for_extraction
let init_as_list : list uint32 = [
u32 0x67452301;
u32 0xefcdab89;
u32 0x98ba... | {
"checked_file": "/",
"dependencies": [
"Spec.Loops.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Cl... | [
{
"abbrev": false,
"full_module": "Spec.Hash.Definitions",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": true,
"full_module": "Spec.Hash.Definitions",
"short_module": "H"
},
{
"abbrev": false,
"full_... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
mi:
FStar.Seq.Properties.lseq (Spec.Hash.Definitions.word Spec.Hash.Definitions.SHA1)
(Spec.Hash.Definitions.block_word_length Spec.Hash.Definitions.SHA1) ->
n: Prims.nat{n <= 79} ->
w:
(i: Prims.nat{i < n}
-> y: Spec.Hash.Definitions.word Spec.Hash.Definitions.SHA1 {y == Spec... | Prims.Tot | [
"total"
] | [] | [
"FStar.Seq.Properties.lseq",
"Spec.Hash.Definitions.word",
"Spec.Hash.Definitions.SHA1",
"Spec.Hash.Definitions.block_word_length",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"Prims.eq2",
"Spec.SHA1.w'",
"FStar.Seq.Base.index",
"Prims.bool",
"Lib.IntTypes.op_L... | [] | false | false | false | false | false | let compute_w_n'
(mi: Seq.lseq (word SHA1) (block_word_length SHA1))
(n: nat{n <= 79})
(w: (i: nat{i < n} -> Tot (y: word SHA1 {y == w' mi i})))
: Tot (y: word SHA1 {y == w' mi n}) =
| let r =
if n < 16 then Seq.index mi n else (w (n - 3) ^. w (n - 8) ^. w (n - 14) ^. w (n - 16)) <<<. 1ul
in
r | false |
LListReverse.fst | LListReverse.llist_cons | val llist_cons (a: U64.t) (llist: (ref llist_cell -> Tot vprop)) (p: ref llist_cell) : Tot vprop | val llist_cons (a: U64.t) (llist: (ref llist_cell -> Tot vprop)) (p: ref llist_cell) : Tot vprop | let llist_cons
(a: U64.t)
(llist: (ref llist_cell -> Tot vprop))
(p: ref llist_cell)
: Tot vprop
= exists_ (fun c ->
pts_to p full_perm c `star`
pure (c.value == a) `star`
llist c.next
) | {
"file_name": "share/steel/tests/krml/LListReverse.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 3,
"end_line": 32,
"start_col": 0,
"start_line": 23
} | module LListReverse
open Steel.ST.GenElim
open Steel.ST.Reference
open Steel.ST.Loops
module U64 = FStar.UInt64
let main () = C.EXIT_SUCCESS // dummy for compilation
noeq
type llist_cell = {
value: U64.t;
next: ref llist_cell;
}
[@@__reduce__]
let llist_nil
(p: ref llist_cell)
: Tot vprop
= pure (p == null) | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Reference.fsti.checked",
"Steel.ST.Loops.fsti.checked",
"Steel.ST.GenElim.fsti.checked",
"prims.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_module": "Steel.ST.Loops",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Reference",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: FStar.UInt64.t ->
llist: (_: Steel.ST.Reference.ref LListReverse.llist_cell -> Steel.Effect.Common.vprop) ->
p: Steel.ST.Reference.ref LListReverse.llist_cell
-> Steel.Effect.Common.vprop | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt64.t",
"Steel.ST.Reference.ref",
"LListReverse.llist_cell",
"Steel.Effect.Common.vprop",
"Steel.ST.Util.exists_",
"Steel.Effect.Common.star",
"Steel.ST.Reference.pts_to",
"Steel.FractionalPermission.full_perm",
"Steel.ST.Util.pure",
"Prims.eq2",
"LListReverse.__proj__Mkllist_cell__ite... | [] | false | false | false | true | false | let llist_cons (a: U64.t) (llist: (ref llist_cell -> Tot vprop)) (p: ref llist_cell) : Tot vprop =
| exists_ (fun c -> ((pts_to p full_perm c) `star` (pure (c.value == a))) `star` (llist c.next)) | false |
LListReverse.fst | LListReverse.llist_reverse_invariant_prop | val llist_reverse_invariant_prop (l done todo: list U64.t) (cont: bool) : GTot prop | val llist_reverse_invariant_prop (l done todo: list U64.t) (cont: bool) : GTot prop | let llist_reverse_invariant_prop
(l: list U64.t)
(done todo: list U64.t)
(cont: bool)
: GTot prop
=
l == List.Tot.append (List.Tot.rev done) todo /\
cont == Cons? todo | {
"file_name": "share/steel/tests/krml/LListReverse.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 22,
"end_line": 102,
"start_col": 0,
"start_line": 95
} | module LListReverse
open Steel.ST.GenElim
open Steel.ST.Reference
open Steel.ST.Loops
module U64 = FStar.UInt64
let main () = C.EXIT_SUCCESS // dummy for compilation
noeq
type llist_cell = {
value: U64.t;
next: ref llist_cell;
}
[@@__reduce__]
let llist_nil
(p: ref llist_cell)
: Tot vprop
= pure (p == null)
... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Reference.fsti.checked",
"Steel.ST.Loops.fsti.checked",
"Steel.ST.GenElim.fsti.checked",
"prims.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_module": "Steel.ST.Loops",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Reference",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
l: Prims.list FStar.UInt64.t ->
done: Prims.list FStar.UInt64.t ->
todo: Prims.list FStar.UInt64.t ->
cont: Prims.bool
-> Prims.GTot Prims.prop | Prims.GTot | [
"sometrivial"
] | [] | [
"Prims.list",
"FStar.UInt64.t",
"Prims.bool",
"Prims.l_and",
"Prims.eq2",
"FStar.List.Tot.Base.append",
"FStar.List.Tot.Base.rev",
"Prims.uu___is_Cons",
"Prims.prop"
] | [] | false | false | false | false | true | let llist_reverse_invariant_prop (l done todo: list U64.t) (cont: bool) : GTot prop =
| l == List.Tot.append (List.Tot.rev done) todo /\ cont == Cons? todo | false |
LListReverse.fst | LListReverse.llist_reverse_invariant | val llist_reverse_invariant
(l: Ghost.erased (list U64.t))
(ppdone pptodo: ref (ref llist_cell))
(cont: bool)
: Tot vprop | val llist_reverse_invariant
(l: Ghost.erased (list U64.t))
(ppdone pptodo: ref (ref llist_cell))
(cont: bool)
: Tot vprop | let llist_reverse_invariant
(l: Ghost.erased (list U64.t))
(ppdone: ref (ref llist_cell))
(pptodo: ref (ref llist_cell))
(cont: bool)
: Tot vprop
= llist_reverse_invariant0 l ppdone pptodo cont | {
"file_name": "share/steel/tests/krml/LListReverse.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 47,
"end_line": 141,
"start_col": 0,
"start_line": 135
} | module LListReverse
open Steel.ST.GenElim
open Steel.ST.Reference
open Steel.ST.Loops
module U64 = FStar.UInt64
let main () = C.EXIT_SUCCESS // dummy for compilation
noeq
type llist_cell = {
value: U64.t;
next: ref llist_cell;
}
[@@__reduce__]
let llist_nil
(p: ref llist_cell)
: Tot vprop
= pure (p == null)
... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Reference.fsti.checked",
"Steel.ST.Loops.fsti.checked",
"Steel.ST.GenElim.fsti.checked",
"prims.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_module": "Steel.ST.Loops",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Reference",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
l: FStar.Ghost.erased (Prims.list FStar.UInt64.t) ->
ppdone: Steel.ST.Reference.ref (Steel.ST.Reference.ref LListReverse.llist_cell) ->
pptodo: Steel.ST.Reference.ref (Steel.ST.Reference.ref LListReverse.llist_cell) ->
cont: Prims.bool
-> Steel.Effect.Common.vprop | Prims.Tot | [
"total"
] | [] | [
"FStar.Ghost.erased",
"Prims.list",
"FStar.UInt64.t",
"Steel.ST.Reference.ref",
"LListReverse.llist_cell",
"Prims.bool",
"LListReverse.llist_reverse_invariant0",
"Steel.Effect.Common.vprop"
] | [] | false | false | false | true | false | let llist_reverse_invariant
(l: Ghost.erased (list U64.t))
(ppdone pptodo: ref (ref llist_cell))
(cont: bool)
: Tot vprop =
| llist_reverse_invariant0 l ppdone pptodo cont | false |
LListReverse.fst | LListReverse.llist_reverse_invariant_body | val llist_reverse_invariant_body
(ppdone pptodo: ref (ref llist_cell))
(pdone: ref llist_cell)
(done: Ghost.erased (list U64.t))
(ptodo: ref llist_cell)
(todo: Ghost.erased (list U64.t))
: Tot vprop | val llist_reverse_invariant_body
(ppdone pptodo: ref (ref llist_cell))
(pdone: ref llist_cell)
(done: Ghost.erased (list U64.t))
(ptodo: ref llist_cell)
(todo: Ghost.erased (list U64.t))
: Tot vprop | let llist_reverse_invariant_body
(ppdone: ref (ref llist_cell))
(pptodo: ref (ref llist_cell))
(pdone: ref llist_cell)
(done: Ghost.erased (list U64.t))
(ptodo: ref llist_cell)
(todo: Ghost.erased (list U64.t))
: Tot vprop
= pts_to ppdone full_perm pdone `star` llist done pdone `star`
pts_to pptodo full_p... | {
"file_name": "share/steel/tests/krml/LListReverse.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 55,
"end_line": 124,
"start_col": 0,
"start_line": 115
} | module LListReverse
open Steel.ST.GenElim
open Steel.ST.Reference
open Steel.ST.Loops
module U64 = FStar.UInt64
let main () = C.EXIT_SUCCESS // dummy for compilation
noeq
type llist_cell = {
value: U64.t;
next: ref llist_cell;
}
[@@__reduce__]
let llist_nil
(p: ref llist_cell)
: Tot vprop
= pure (p == null)
... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Reference.fsti.checked",
"Steel.ST.Loops.fsti.checked",
"Steel.ST.GenElim.fsti.checked",
"prims.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_module": "Steel.ST.Loops",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Reference",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
ppdone: Steel.ST.Reference.ref (Steel.ST.Reference.ref LListReverse.llist_cell) ->
pptodo: Steel.ST.Reference.ref (Steel.ST.Reference.ref LListReverse.llist_cell) ->
pdone: Steel.ST.Reference.ref LListReverse.llist_cell ->
done: FStar.Ghost.erased (Prims.list FStar.UInt64.t) ->
ptodo: Steel.ST.Refe... | Prims.Tot | [
"total"
] | [] | [
"Steel.ST.Reference.ref",
"LListReverse.llist_cell",
"FStar.Ghost.erased",
"Prims.list",
"FStar.UInt64.t",
"Steel.Effect.Common.star",
"Steel.ST.Reference.pts_to",
"Steel.FractionalPermission.full_perm",
"LListReverse.llist",
"Steel.Effect.Common.vprop"
] | [] | false | false | false | true | false | let llist_reverse_invariant_body
(ppdone pptodo: ref (ref llist_cell))
(pdone: ref llist_cell)
(done: Ghost.erased (list U64.t))
(ptodo: ref llist_cell)
(todo: Ghost.erased (list U64.t))
: Tot vprop =
| (((pts_to ppdone full_perm pdone) `star` (llist done pdone)) `star` (pts_to pptodo full_perm ptodo))
`star`
(llist todo ptodo) | false |
Vale.SHA.PPC64LE.Rounds.fst | Vale.SHA.PPC64LE.Rounds.va_wpProof_Loop_rounds_16_47 | val va_wpProof_Loop_rounds_16_47 : i:nat -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 ->
va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Loop_rounds_16_47 i k_b block hash_orig va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g... | val va_wpProof_Loop_rounds_16_47 : i:nat -> k_b:buffer128 -> block:block_w -> hash_orig:hash256 ->
va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Loop_rounds_16_47 i k_b block hash_orig va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g... | let va_wpProof_Loop_rounds_16_47 i k_b block hash_orig va_s0 va_k =
let (va_sM, va_f0) = va_lemma_Loop_rounds_16_47 (va_code_Loop_rounds_16_47 i) va_s0 i k_b block
hash_orig in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_vec 26 va_sM (va_update_vec 25 va_sM (va_update_vec 24 va_sM
(va_... | {
"file_name": "obj/Vale.SHA.PPC64LE.Rounds.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 321,
"start_col": 0,
"start_line": 303
} | module Vale.SHA.PPC64LE.Rounds
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.PPC64LE.Stack_i
open Vale.PPC64LE.State
open Vale.PPC64LE.Decls
open Vale... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.SHA.PPC64LE.SHA_helpers.fsti.checked",
"Vale.SHA.PPC64LE.Rounds.Core.fsti.checked",
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.Stack_i.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA.PPC64LE.Rounds.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Loops",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
i: Prims.nat ->
k_b: Vale.PPC64LE.Memory.buffer128 ->
block: Vale.SHA.PPC64LE.SHA_helpers.block_w ->
hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256 ->
va_s0: Vale.PPC64LE.Decls.va_state ->
va_k: (_: Vale.PPC64LE.Decls.va_state -> _: Prims.unit -> Type0)
-> Prims.Ghost ((Vale.PPC64LE.Decls.va... | Prims.Ghost | [] | [] | [
"Prims.nat",
"Vale.PPC64LE.Memory.buffer128",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Vale.PPC64LE.Decls.va_state",
"Prims.unit",
"Vale.PPC64LE.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple3",
"Vale.PPC64LE.QuickCode.va_lemma_norm_mods",
"Prims.Cons",
... | [] | false | false | false | false | false | let va_wpProof_Loop_rounds_16_47 i k_b block hash_orig va_s0 va_k =
| let va_sM, va_f0 =
va_lemma_Loop_rounds_16_47 (va_code_Loop_rounds_16_47 i) va_s0 i k_b block hash_orig
in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_vec 26
va_sM
(va_update_vec 25
va_sM
(va_update_vec 24
va_sM
... | false |
Steel.ST.HigherReference.fst | Steel.ST.HigherReference.ref | val ref ([@@@ strictly_positive] a:Type u#1)
: Type0 | val ref ([@@@ strictly_positive] a:Type u#1)
: Type0 | let ref (a:Type u#1)
: Type0
= R.ref a | {
"file_name": "lib/steel/Steel.ST.HigherReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 11,
"end_line": 25,
"start_col": 0,
"start_line": 23
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.ST.Coercions.fsti.checked",
"Steel.HigherReference.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST.HigherRef... | [
{
"abbrev": true,
"full_module": "Steel.HigherReference",
"short_module": "R"
},
{
"abbrev": false,
"full_module": "Steel.ST.Coercions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Type -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Steel.HigherReference.ref"
] | [] | false | false | false | true | true | let ref (a: Type u#1) : Type0 =
| R.ref a | false |
Steel.ST.HigherReference.fst | Steel.ST.HigherReference.null | val null (#a:Type)
: ref a | val null (#a:Type)
: ref a | let null (#a:Type)
: ref a
= R.null #a | {
"file_name": "lib/steel/Steel.ST.HigherReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 13,
"end_line": 29,
"start_col": 0,
"start_line": 27
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.ST.Coercions.fsti.checked",
"Steel.HigherReference.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST.HigherRef... | [
{
"abbrev": true,
"full_module": "Steel.HigherReference",
"short_module": "R"
},
{
"abbrev": false,
"full_module": "Steel.ST.Coercions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Steel.ST.HigherReference.ref a | Prims.Tot | [
"total"
] | [] | [
"Steel.HigherReference.null",
"Steel.ST.HigherReference.ref"
] | [] | false | false | false | true | false | let null (#a: Type) : ref a =
| R.null #a | false |
Steel.ST.HigherReference.fst | Steel.ST.HigherReference.pts_to | val pts_to (#a:Type)
(r:ref a)
([@@@smt_fallback] p:perm)
([@@@smt_fallback] v:a)
: vprop | val pts_to (#a:Type)
(r:ref a)
([@@@smt_fallback] p:perm)
([@@@smt_fallback] v:a)
: vprop | let pts_to (#a:Type)
(r:ref a)
([@@@smt_fallback] p:perm)
([@@@smt_fallback] v:a)
: vprop
= R.pts_to r p v | {
"file_name": "lib/steel/Steel.ST.HigherReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 18,
"end_line": 40,
"start_col": 0,
"start_line": 35
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.ST.Coercions.fsti.checked",
"Steel.HigherReference.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST.HigherRef... | [
{
"abbrev": true,
"full_module": "Steel.HigherReference",
"short_module": "R"
},
{
"abbrev": false,
"full_module": "Steel.ST.Coercions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Steel.ST.HigherReference.ref a -> p: Steel.FractionalPermission.perm -> v: a
-> Steel.Effect.Common.vprop | Prims.Tot | [
"total"
] | [] | [
"Steel.ST.HigherReference.ref",
"Steel.FractionalPermission.perm",
"Steel.HigherReference.pts_to",
"Steel.Effect.Common.vprop"
] | [] | false | false | false | true | false | let pts_to (#a: Type) (r: ref a) ([@@@ smt_fallback]p: perm) ([@@@ smt_fallback]v: a) : vprop =
| R.pts_to r p v | false |
LListReverse.fst | LListReverse.llist_reverse_invariant0 | val llist_reverse_invariant0
(l: Ghost.erased (list U64.t))
(ppdone pptodo: ref (ref llist_cell))
(cont: bool)
: Tot vprop | val llist_reverse_invariant0
(l: Ghost.erased (list U64.t))
(ppdone pptodo: ref (ref llist_cell))
(cont: bool)
: Tot vprop | let llist_reverse_invariant0
(l: Ghost.erased (list U64.t))
(ppdone: ref (ref llist_cell))
(pptodo: ref (ref llist_cell))
(cont: bool)
: Tot vprop
= exists_ (fun (x: llist_reverse_invariant_t l cont) -> llist_reverse_invariant_body ppdone pptodo x.pdone x.done x.ptodo x.todo) | {
"file_name": "share/steel/tests/krml/LListReverse.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 129,
"end_line": 133,
"start_col": 0,
"start_line": 127
} | module LListReverse
open Steel.ST.GenElim
open Steel.ST.Reference
open Steel.ST.Loops
module U64 = FStar.UInt64
let main () = C.EXIT_SUCCESS // dummy for compilation
noeq
type llist_cell = {
value: U64.t;
next: ref llist_cell;
}
[@@__reduce__]
let llist_nil
(p: ref llist_cell)
: Tot vprop
= pure (p == null)
... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Reference.fsti.checked",
"Steel.ST.Loops.fsti.checked",
"Steel.ST.GenElim.fsti.checked",
"prims.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_module": "Steel.ST.Loops",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Reference",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
l: FStar.Ghost.erased (Prims.list FStar.UInt64.t) ->
ppdone: Steel.ST.Reference.ref (Steel.ST.Reference.ref LListReverse.llist_cell) ->
pptodo: Steel.ST.Reference.ref (Steel.ST.Reference.ref LListReverse.llist_cell) ->
cont: Prims.bool
-> Steel.Effect.Common.vprop | Prims.Tot | [
"total"
] | [] | [
"FStar.Ghost.erased",
"Prims.list",
"FStar.UInt64.t",
"Steel.ST.Reference.ref",
"LListReverse.llist_cell",
"Prims.bool",
"Steel.ST.Util.exists_",
"LListReverse.llist_reverse_invariant_t",
"FStar.Ghost.reveal",
"LListReverse.llist_reverse_invariant_body",
"LListReverse.__proj__Mkllist_reverse_inv... | [] | false | false | false | true | false | let llist_reverse_invariant0
(l: Ghost.erased (list U64.t))
(ppdone pptodo: ref (ref llist_cell))
(cont: bool)
: Tot vprop =
| exists_ (fun (x: llist_reverse_invariant_t l cont) ->
llist_reverse_invariant_body ppdone pptodo x.pdone x.done x.ptodo x.todo) | false |
Steel.ST.HigherReference.fst | Steel.ST.HigherReference._stack_frame | val _stack_frame:vprop | val _stack_frame:vprop | let _stack_frame : vprop = pure True | {
"file_name": "lib/steel/Steel.ST.HigherReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 36,
"end_line": 103,
"start_col": 0,
"start_line": 103
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.ST.Coercions.fsti.checked",
"Steel.HigherReference.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST.HigherRef... | [
{
"abbrev": true,
"full_module": "Steel.HigherReference",
"short_module": "R"
},
{
"abbrev": false,
"full_module": "Steel.ST.Coercions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Steel.Effect.Common.vprop | Prims.Tot | [
"total"
] | [] | [
"Steel.ST.Util.pure",
"Prims.l_True"
] | [] | false | false | false | true | false | let _stack_frame:vprop =
| pure True | false |
NormLHS.fst | NormLHS.tau | val tau : _: Prims.unit -> FStar.Tactics.Effect.Tac Prims.unit | let tau () = norm_lhs [delta; hnf; weak]; trefl () | {
"file_name": "examples/tactics/NormLHS.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 50,
"end_line": 21,
"start_col": 0,
"start_line": 21
} | module NormLHS
open FStar.Tactics.V2
private
let trans (#t:Type) (b a c : t)
(_ : squash (a == b))
(_ : squash (b == c)) : squash (a == c) = ()
let norm_lhs steps : Tac unit =
match cur_formula () with
| Comp (Eq _) lhs _ ->
let lhs' = norm_term steps lhs in
apply_lemma (`tran... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "NormLHS.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: Prims.unit -> FStar.Tactics.Effect.Tac Prims.unit | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.unit",
"FStar.Tactics.V2.Derived.trefl",
"NormLHS.norm_lhs",
"Prims.Cons",
"FStar.Pervasives.norm_step",
"FStar.Pervasives.delta",
"FStar.Pervasives.hnf",
"FStar.Pervasives.weak",
"Prims.Nil"
] | [] | false | true | false | false | false | let tau () =
| norm_lhs [delta; hnf; weak];
trefl () | false | |
NormLHS.fst | NormLHS.test | val test : Prims.eqtype | let test = unit_t | {
"file_name": "examples/tactics/NormLHS.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 17,
"end_line": 24,
"start_col": 0,
"start_line": 24
} | module NormLHS
open FStar.Tactics.V2
private
let trans (#t:Type) (b a c : t)
(_ : squash (a == b))
(_ : squash (b == c)) : squash (a == c) = ()
let norm_lhs steps : Tac unit =
match cur_formula () with
| Comp (Eq _) lhs _ ->
let lhs' = norm_term steps lhs in
apply_lemma (`tran... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "NormLHS.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FS... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Prims.eqtype | Prims.Tot | [
"total"
] | [] | [
"Prims.unit"
] | [] | false | false | false | true | false | let test =
| unit_t | false | |
CBOR.Spec.fsti | CBOR.Spec.serialize_cbor_inj' | val serialize_cbor_inj' (c1: raw_data_item) (s1: Seq.seq U8.t)
: Lemma
(forall c2 s2.
(serialize_cbor c1) `Seq.append` s1 == (serialize_cbor c2) `Seq.append` s2 ==>
(c1 == c2 /\ s1 == s2)) | val serialize_cbor_inj' (c1: raw_data_item) (s1: Seq.seq U8.t)
: Lemma
(forall c2 s2.
(serialize_cbor c1) `Seq.append` s1 == (serialize_cbor c2) `Seq.append` s2 ==>
(c1 == c2 /\ s1 == s2)) | let serialize_cbor_inj'
(c1: raw_data_item)
(s1: Seq.seq U8.t)
: Lemma
(forall c2 s2 . serialize_cbor c1 `Seq.append` s1 == serialize_cbor c2 `Seq.append` s2 ==> (c1 == c2 /\ s1 == s2))
= Classical.forall_intro_2 (fun c2 s2 ->
Classical.move_requires (serialize_cbor_inj c1 c2 s1) s2
) | {
"file_name": "share/steel/examples/pulse/dice/cbor/CBOR.Spec.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 3,
"end_line": 42,
"start_col": 0,
"start_line": 35
} | (*
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": [
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Ghost.fsti.checked",
"FStar... | [
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": false,
"full_module": "CBOR.Spec.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "CBOR",
"short_module": null
},
{
"abbrev": false,
"full_module": "CBOR",
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | c1: CBOR.Spec.Type.raw_data_item -> s1: FStar.Seq.Base.seq FStar.UInt8.t
-> FStar.Pervasives.Lemma
(ensures
forall (c2: CBOR.Spec.Type.raw_data_item) (s2: FStar.Seq.Base.seq FStar.UInt8.t).
FStar.Seq.Base.append (CBOR.Spec.serialize_cbor c1) s1 ==
FStar.Seq.Base.append (CBOR.Spec.serialize_c... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"CBOR.Spec.Type.raw_data_item",
"FStar.Seq.Base.seq",
"FStar.UInt8.t",
"FStar.Classical.forall_intro_2",
"Prims.l_imp",
"Prims.eq2",
"FStar.Seq.Base.append",
"CBOR.Spec.serialize_cbor",
"Prims.l_and",
"FStar.Classical.move_requires",
"CBOR.Spec.serialize_cbor_inj",
"Prims.unit",
"Prims.l_Tru... | [] | false | false | true | false | false | let serialize_cbor_inj' (c1: raw_data_item) (s1: Seq.seq U8.t)
: Lemma
(forall c2 s2.
(serialize_cbor c1) `Seq.append` s1 == (serialize_cbor c2) `Seq.append` s2 ==>
(c1 == c2 /\ s1 == s2)) =
| Classical.forall_intro_2 (fun c2 s2 -> Classical.move_requires (serialize_cbor_inj c1 c2 s1) s2) | false |
CBOR.Spec.fsti | CBOR.Spec.int_compare | val int_compare (x1 x2: int) : Tot int | val int_compare (x1 x2: int) : Tot int | let int_compare (x1 x2: int) : Tot int =
if x1 < x2
then -1
else if x1 = x2
then 0
else 1 | {
"file_name": "share/steel/examples/pulse/dice/cbor/CBOR.Spec.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 8,
"end_line": 112,
"start_col": 0,
"start_line": 107
} | (*
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": [
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Ghost.fsti.checked",
"FStar... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": false,
"full_module": "CBOR.Spec.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "CBOR... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x1: Prims.int -> x2: Prims.int -> Prims.int | Prims.Tot | [
"total"
] | [] | [
"Prims.int",
"Prims.op_LessThan",
"Prims.op_Minus",
"Prims.bool",
"Prims.op_Equality"
] | [] | false | false | false | true | false | let int_compare (x1 x2: int) : Tot int =
| if x1 < x2 then - 1 else if x1 = x2 then 0 else 1 | false |
LowParse.Spec.IfThenElse.fst | LowParse.Spec.IfThenElse.parse_ifthenelse_payload_kind | val parse_ifthenelse_payload_kind (p: parse_ifthenelse_param) : Tot parser_kind | val parse_ifthenelse_payload_kind (p: parse_ifthenelse_param) : Tot parser_kind | let parse_ifthenelse_payload_kind
(p: parse_ifthenelse_param)
: Tot parser_kind
= glb (dfst (p.parse_ifthenelse_payload_parser true)) (dfst (p.parse_ifthenelse_payload_parser false)) | {
"file_name": "src/lowparse/LowParse.Spec.IfThenElse.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 102,
"end_line": 33,
"start_col": 0,
"start_line": 30
} | module LowParse.Spec.IfThenElse
include LowParse.Spec.Combinators
module Seq = FStar.Seq
[@@(noextract_to "krml")]
inline_for_extraction
noeq
type parse_ifthenelse_param = {
parse_ifthenelse_tag_kind: parser_kind;
parse_ifthenelse_tag_t: Type;
parse_ifthenelse_tag_parser: parser parse_ifthenelse_tag_kind parse_... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "LowParse.S... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: LowParse.Spec.IfThenElse.parse_ifthenelse_param -> LowParse.Spec.Base.parser_kind | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.IfThenElse.parse_ifthenelse_param",
"LowParse.Spec.Base.glb",
"FStar.Pervasives.dfst",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.IfThenElse.__proj__Mkparse_ifthenelse_param__item__parse_ifthenelse_payload_t",
"LowParse.Spec.IfThenElse.__proj__Mkparse_if... | [] | false | false | false | true | false | let parse_ifthenelse_payload_kind (p: parse_ifthenelse_param) : Tot parser_kind =
| glb (dfst (p.parse_ifthenelse_payload_parser true)) (dfst (p.parse_ifthenelse_payload_parser false)) | false |
LowParse.Spec.IfThenElse.fst | LowParse.Spec.IfThenElse.parse_ifthenelse_kind | val parse_ifthenelse_kind (p: parse_ifthenelse_param) : Tot parser_kind | val parse_ifthenelse_kind (p: parse_ifthenelse_param) : Tot parser_kind | let parse_ifthenelse_kind
(p: parse_ifthenelse_param)
: Tot parser_kind
= and_then_kind p.parse_ifthenelse_tag_kind (parse_ifthenelse_payload_kind p) | {
"file_name": "src/lowparse/LowParse.Spec.IfThenElse.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 77,
"end_line": 39,
"start_col": 0,
"start_line": 36
} | module LowParse.Spec.IfThenElse
include LowParse.Spec.Combinators
module Seq = FStar.Seq
[@@(noextract_to "krml")]
inline_for_extraction
noeq
type parse_ifthenelse_param = {
parse_ifthenelse_tag_kind: parser_kind;
parse_ifthenelse_tag_t: Type;
parse_ifthenelse_tag_parser: parser parse_ifthenelse_tag_kind parse_... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "LowParse.S... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: LowParse.Spec.IfThenElse.parse_ifthenelse_param -> LowParse.Spec.Base.parser_kind | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.IfThenElse.parse_ifthenelse_param",
"LowParse.Spec.Combinators.and_then_kind",
"LowParse.Spec.IfThenElse.__proj__Mkparse_ifthenelse_param__item__parse_ifthenelse_tag_kind",
"LowParse.Spec.IfThenElse.parse_ifthenelse_payload_kind",
"LowParse.Spec.Base.parser_kind"
] | [] | false | false | false | true | false | let parse_ifthenelse_kind (p: parse_ifthenelse_param) : Tot parser_kind =
| and_then_kind p.parse_ifthenelse_tag_kind (parse_ifthenelse_payload_kind p) | false |
LowParse.Spec.IfThenElse.fst | LowParse.Spec.IfThenElse.bare_serialize_ifthenelse | val bare_serialize_ifthenelse (#p: parse_ifthenelse_param) (s: serialize_ifthenelse_param p)
: Tot (bare_serializer p.parse_ifthenelse_t) | val bare_serialize_ifthenelse (#p: parse_ifthenelse_param) (s: serialize_ifthenelse_param p)
: Tot (bare_serializer p.parse_ifthenelse_t) | let bare_serialize_ifthenelse
(#p: parse_ifthenelse_param)
(s: serialize_ifthenelse_param p)
: Tot (bare_serializer p.parse_ifthenelse_t)
= fun (d: p.parse_ifthenelse_t) ->
let (| t, y |) = s.serialize_ifthenelse_synth_recip d in
Seq.append (serialize s.serialize_ifthenelse_tag_serializer t) (serialize (s.seria... | {
"file_name": "src/lowparse/LowParse.Spec.IfThenElse.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 154,
"end_line": 112,
"start_col": 0,
"start_line": 106
} | module LowParse.Spec.IfThenElse
include LowParse.Spec.Combinators
module Seq = FStar.Seq
[@@(noextract_to "krml")]
inline_for_extraction
noeq
type parse_ifthenelse_param = {
parse_ifthenelse_tag_kind: parser_kind;
parse_ifthenelse_tag_t: Type;
parse_ifthenelse_tag_parser: parser parse_ifthenelse_tag_kind parse_... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "LowParse.S... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: LowParse.Spec.IfThenElse.serialize_ifthenelse_param p
-> LowParse.Spec.Base.bare_serializer (Mkparse_ifthenelse_param?.parse_ifthenelse_t p) | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.IfThenElse.parse_ifthenelse_param",
"LowParse.Spec.IfThenElse.serialize_ifthenelse_param",
"LowParse.Spec.IfThenElse.__proj__Mkparse_ifthenelse_param__item__parse_ifthenelse_t",
"LowParse.Spec.IfThenElse.__proj__Mkparse_ifthenelse_param__item__parse_ifthenelse_tag_t",
"LowParse.Spec.IfThenEls... | [] | false | false | false | false | false | let bare_serialize_ifthenelse (#p: parse_ifthenelse_param) (s: serialize_ifthenelse_param p)
: Tot (bare_serializer p.parse_ifthenelse_t) =
| fun (d: p.parse_ifthenelse_t) ->
let (| t , y |) = s.serialize_ifthenelse_synth_recip d in
Seq.append (serialize s.serialize_ifthenelse_tag_serializer t)
(serialize (s.serialize_ifthenelse_payload_serializer (p.parse_ifthenelse_tag_cond t)) y) | false |
CBOR.Spec.fsti | CBOR.Spec.serialize_cbor_with_test_correct | val serialize_cbor_with_test_correct
(c: raw_data_item)
(suff: Seq.seq U8.t)
(p: (raw_data_item -> Seq.seq U8.t -> prop))
: Lemma (requires (~(p c suff)))
(ensures
(forall (c': raw_data_item) (suff': Seq.seq U8.t).
(serialize_cbor c) `Seq.append` suff == (serialize_cbor c... | val serialize_cbor_with_test_correct
(c: raw_data_item)
(suff: Seq.seq U8.t)
(p: (raw_data_item -> Seq.seq U8.t -> prop))
: Lemma (requires (~(p c suff)))
(ensures
(forall (c': raw_data_item) (suff': Seq.seq U8.t).
(serialize_cbor c) `Seq.append` suff == (serialize_cbor c... | let serialize_cbor_with_test_correct
(c: raw_data_item)
(suff: Seq.seq U8.t)
(p: (raw_data_item -> Seq.seq U8.t -> prop))
: Lemma
(requires (
~ (p c suff)
))
(ensures (
forall (c': raw_data_item) (suff': Seq.seq U8.t) .
serialize_cbor c `Seq.append` suff == serialize_cbor c' `Seq.append` suff' =... | {
"file_name": "share/steel/examples/pulse/dice/cbor/CBOR.Spec.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 3,
"end_line": 58,
"start_col": 0,
"start_line": 44
} | (*
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": [
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Ghost.fsti.checked",
"FStar... | [
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": false,
"full_module": "CBOR.Spec.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "CBOR",
"short_module": null
},
{
"abbrev": false,
"full_module": "CBOR",
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"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: CBOR.Spec.Type.raw_data_item ->
suff: FStar.Seq.Base.seq FStar.UInt8.t ->
p: (_: CBOR.Spec.Type.raw_data_item -> _: FStar.Seq.Base.seq FStar.UInt8.t -> Prims.prop)
-> FStar.Pervasives.Lemma (requires ~(p c suff))
(ensures
forall (c': CBOR.Spec.Type.raw_data_item) (suff': FStar.Seq.Base.s... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"CBOR.Spec.Type.raw_data_item",
"FStar.Seq.Base.seq",
"FStar.UInt8.t",
"Prims.prop",
"FStar.Classical.forall_intro_2",
"Prims.l_imp",
"Prims.eq2",
"FStar.Seq.Base.append",
"CBOR.Spec.serialize_cbor",
"Prims.l_and",
"FStar.Classical.move_requires",
"CBOR.Spec.serialize_cbor_inj",
"Prims.unit"... | [] | false | false | true | false | false | let serialize_cbor_with_test_correct
(c: raw_data_item)
(suff: Seq.seq U8.t)
(p: (raw_data_item -> Seq.seq U8.t -> prop))
: Lemma (requires (~(p c suff)))
(ensures
(forall (c': raw_data_item) (suff': Seq.seq U8.t).
(serialize_cbor c) `Seq.append` suff == (serialize_cbor c... | Classical.forall_intro_2 (fun c' suff' ->
Classical.move_requires (serialize_cbor_inj c c' suff) suff') | false |
LListReverse.fst | LListReverse.llist | val llist (l: Ghost.erased (list U64.t)) : Tot (ref llist_cell -> vprop) (decreases Ghost.reveal l) | val llist (l: Ghost.erased (list U64.t)) : Tot (ref llist_cell -> vprop) (decreases Ghost.reveal l) | let rec llist
(l: Ghost.erased (list U64.t))
: Tot (ref llist_cell -> vprop)
(decreases Ghost.reveal l)
= match Ghost.reveal l with
| [] -> llist_nil
| a :: q -> llist_cons a (llist q) | {
"file_name": "share/steel/tests/krml/LListReverse.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 36,
"end_line": 40,
"start_col": 0,
"start_line": 34
} | module LListReverse
open Steel.ST.GenElim
open Steel.ST.Reference
open Steel.ST.Loops
module U64 = FStar.UInt64
let main () = C.EXIT_SUCCESS // dummy for compilation
noeq
type llist_cell = {
value: U64.t;
next: ref llist_cell;
}
[@@__reduce__]
let llist_nil
(p: ref llist_cell)
: Tot vprop
= pure (p == null)
... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Reference.fsti.checked",
"Steel.ST.Loops.fsti.checked",
"Steel.ST.GenElim.fsti.checked",
"prims.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_module": "Steel.ST.Loops",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Reference",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | l: FStar.Ghost.erased (Prims.list FStar.UInt64.t)
-> Prims.Tot (_: Steel.ST.Reference.ref LListReverse.llist_cell -> Steel.Effect.Common.vprop) | Prims.Tot | [
"total",
""
] | [] | [
"FStar.Ghost.erased",
"Prims.list",
"FStar.UInt64.t",
"FStar.Ghost.reveal",
"LListReverse.llist_nil",
"LListReverse.llist_cons",
"LListReverse.llist",
"FStar.Ghost.hide",
"Steel.ST.Reference.ref",
"LListReverse.llist_cell",
"Steel.Effect.Common.vprop"
] | [
"recursion"
] | false | false | false | false | false | let rec llist (l: Ghost.erased (list U64.t))
: Tot (ref llist_cell -> vprop) (decreases Ghost.reveal l) =
| match Ghost.reveal l with
| [] -> llist_nil
| a :: q -> llist_cons a (llist q) | false |
CBOR.Spec.fsti | CBOR.Spec.list_sorted_map_entry_order_deterministically_encoded_cbor_map_key_order_no_repeats | val list_sorted_map_entry_order_deterministically_encoded_cbor_map_key_order_no_repeats
(#t: Type)
(l: list (raw_data_item & t))
: Lemma
(requires (List.Tot.sorted (map_entry_order deterministically_encoded_cbor_map_key_order _) l)
) (ensures (List.Tot.no_repeats_p (List.Tot.map fst l))) | val list_sorted_map_entry_order_deterministically_encoded_cbor_map_key_order_no_repeats
(#t: Type)
(l: list (raw_data_item & t))
: Lemma
(requires (List.Tot.sorted (map_entry_order deterministically_encoded_cbor_map_key_order _) l)
) (ensures (List.Tot.no_repeats_p (List.Tot.map fst l))) | let list_sorted_map_entry_order_deterministically_encoded_cbor_map_key_order_no_repeats
(#t: Type)
(l: list (raw_data_item & t))
: Lemma
(requires (List.Tot.sorted (map_entry_order deterministically_encoded_cbor_map_key_order _) l))
(ensures (List.Tot.no_repeats_p (List.Tot.map fst l)))
= list_sorted_map_entry_... | {
"file_name": "share/steel/examples/pulse/dice/cbor/CBOR.Spec.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 87,
"end_line": 100,
"start_col": 0,
"start_line": 94
} | (*
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": [
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Ghost.fsti.checked",
"FStar... | [
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": false,
"full_module": "CBOR.Spec.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "CBOR",
"short_module": null
},
{
"abbrev": false,
"full_module": "CBOR",
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | l: Prims.list (CBOR.Spec.Type.raw_data_item * t)
-> FStar.Pervasives.Lemma
(requires
FStar.List.Tot.Properties.sorted (CBOR.Spec.Type.map_entry_order (FStar.Ghost.reveal CBOR.Spec.deterministically_encoded_cbor_map_key_order
)
t)
l)
(ensures
FStar.Li... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"CBOR.Spec.Type.raw_data_item",
"CBOR.Spec.Map.list_sorted_map_entry_order_no_repeats",
"FStar.Ghost.reveal",
"Prims.bool",
"CBOR.Spec.deterministically_encoded_cbor_map_key_order",
"Prims.unit",
"Prims.b2t",
"FStar.List.Tot.Properties.sorted",
"CB... | [] | true | false | true | false | false | let list_sorted_map_entry_order_deterministically_encoded_cbor_map_key_order_no_repeats
(#t: Type)
(l: list (raw_data_item & t))
: Lemma
(requires (List.Tot.sorted (map_entry_order deterministically_encoded_cbor_map_key_order _) l)
) (ensures (List.Tot.no_repeats_p (List.Tot.map fst l))) =
... | list_sorted_map_entry_order_no_repeats deterministically_encoded_cbor_map_key_order l | false |
Steel.ST.HigherReference.fst | Steel.ST.HigherReference.is_null | val is_null (#a:Type) (r:ref a)
: b:bool{b <==> r == null} | val is_null (#a:Type) (r:ref a)
: b:bool{b <==> r == null} | let is_null (#a:Type) (r:ref a)
: b:bool{b <==> r == null}
= R.is_null r | {
"file_name": "lib/steel/Steel.ST.HigherReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 15,
"end_line": 33,
"start_col": 0,
"start_line": 31
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.ST.Coercions.fsti.checked",
"Steel.HigherReference.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST.HigherRef... | [
{
"abbrev": true,
"full_module": "Steel.HigherReference",
"short_module": "R"
},
{
"abbrev": false,
"full_module": "Steel.ST.Coercions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Steel.ST.HigherReference.ref a -> b: Prims.bool{b <==> r == Steel.ST.HigherReference.null} | Prims.Tot | [
"total"
] | [] | [
"Steel.ST.HigherReference.ref",
"Steel.HigherReference.is_null",
"Prims.bool",
"Prims.l_iff",
"Prims.b2t",
"Prims.eq2",
"Steel.ST.HigherReference.null"
] | [] | false | false | false | false | false | let is_null (#a: Type) (r: ref a) : b: bool{b <==> r == null} =
| R.is_null r | false |
CBOR.Spec.fsti | CBOR.Spec.bytes_lex_compare | val bytes_lex_compare (s1 s2: Seq.seq U8.t) : Tot int (decreases (Seq.length s1)) | val bytes_lex_compare (s1 s2: Seq.seq U8.t) : Tot int (decreases (Seq.length s1)) | let rec bytes_lex_compare
(s1 s2: Seq.seq U8.t)
: Tot int
(decreases (Seq.length s1))
= if Seq.length s1 = 0 || Seq.length s2 = 0
then int_compare (Seq.length s1) (Seq.length s2)
else
let c = int_compare (U8.v (Seq.index s1 0)) (U8.v (Seq.index s2 0)) in
if c = 0
then bytes_lex_compare (Seq.tail s1)... | {
"file_name": "share/steel/examples/pulse/dice/cbor/CBOR.Spec.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 10,
"end_line": 125,
"start_col": 0,
"start_line": 115
} | (*
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": [
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Ghost.fsti.checked",
"FStar... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": false,
"full_module": "CBOR.Spec.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "CBOR... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s1: FStar.Seq.Base.seq FStar.UInt8.t -> s2: FStar.Seq.Base.seq FStar.UInt8.t -> Prims.Tot Prims.int | Prims.Tot | [
"total",
""
] | [] | [
"FStar.Seq.Base.seq",
"FStar.UInt8.t",
"Prims.op_BarBar",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"CBOR.Spec.int_compare",
"Prims.bool",
"CBOR.Spec.bytes_lex_compare",
"FStar.Seq.Properties.tail",
"FStar.UInt8.v",
"FStar.Seq.Base.index"
] | [
"recursion"
] | false | false | false | true | false | let rec bytes_lex_compare (s1 s2: Seq.seq U8.t) : Tot int (decreases (Seq.length s1)) =
| if Seq.length s1 = 0 || Seq.length s2 = 0
then int_compare (Seq.length s1) (Seq.length s2)
else
let c = int_compare (U8.v (Seq.index s1 0)) (U8.v (Seq.index s2 0)) in
if c = 0 then bytes_lex_compare (Seq.tail s1) (Seq.tail s2) else c | false |
CBOR.Spec.fsti | CBOR.Spec.bytes_lex_compare_opp | val bytes_lex_compare_opp (s1 s2: Seq.seq U8.t)
: Lemma (ensures (bytes_lex_compare s1 s2 == - bytes_lex_compare s2 s1))
(decreases (Seq.length s1 + Seq.length s2)) | val bytes_lex_compare_opp (s1 s2: Seq.seq U8.t)
: Lemma (ensures (bytes_lex_compare s1 s2 == - bytes_lex_compare s2 s1))
(decreases (Seq.length s1 + Seq.length s2)) | let rec bytes_lex_compare_opp
(s1 s2: Seq.seq U8.t)
: Lemma
(ensures (bytes_lex_compare s1 s2 == - bytes_lex_compare s2 s1))
(decreases (Seq.length s1 + Seq.length s2))
= if Seq.length s1 = 0 || Seq.length s2 = 0
then ()
else bytes_lex_compare_opp (Seq.tail s1) (Seq.tail s2) | {
"file_name": "share/steel/examples/pulse/dice/cbor/CBOR.Spec.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 56,
"end_line": 134,
"start_col": 0,
"start_line": 127
} | (*
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": [
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Ghost.fsti.checked",
"FStar... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": false,
"full_module": "CBOR.Spec.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "CBOR... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s1: FStar.Seq.Base.seq FStar.UInt8.t -> s2: FStar.Seq.Base.seq FStar.UInt8.t
-> FStar.Pervasives.Lemma
(ensures CBOR.Spec.bytes_lex_compare s1 s2 == - CBOR.Spec.bytes_lex_compare s2 s1)
(decreases FStar.Seq.Base.length s1 + FStar.Seq.Base.length s2) | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"FStar.Seq.Base.seq",
"FStar.UInt8.t",
"Prims.op_BarBar",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"Prims.bool",
"CBOR.Spec.bytes_lex_compare_opp",
"FStar.Seq.Properties.tail",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"CBOR.Spec.bytes_lex_compare",
"Pr... | [
"recursion"
] | false | false | true | false | false | let rec bytes_lex_compare_opp (s1 s2: Seq.seq U8.t)
: Lemma (ensures (bytes_lex_compare s1 s2 == - bytes_lex_compare s2 s1))
(decreases (Seq.length s1 + Seq.length s2)) =
| if Seq.length s1 = 0 || Seq.length s2 = 0
then ()
else bytes_lex_compare_opp (Seq.tail s1) (Seq.tail s2) | false |
CBOR.Spec.fsti | CBOR.Spec.bytes_lex_compare_values | val bytes_lex_compare_values (s1 s2: Seq.seq U8.t)
: Lemma
(ensures
(let c = bytes_lex_compare s1 s2 in
c == - 1 \/ c == 0 \/ c == 1))
(decreases (Seq.length s1))
[SMTPat (bytes_lex_compare s1 s2)] | val bytes_lex_compare_values (s1 s2: Seq.seq U8.t)
: Lemma
(ensures
(let c = bytes_lex_compare s1 s2 in
c == - 1 \/ c == 0 \/ c == 1))
(decreases (Seq.length s1))
[SMTPat (bytes_lex_compare s1 s2)] | let rec bytes_lex_compare_values
(s1 s2: Seq.seq U8.t)
: Lemma
(ensures (let c = bytes_lex_compare s1 s2 in
c == -1 \/ c == 0 \/ c == 1))
(decreases (Seq.length s1))
[SMTPat (bytes_lex_compare s1 s2)]
= if Seq.length s1 = 0 || Seq.length s2 = 0
then ()
else bytes_lex_compare_values (Seq.tail s1) (Seq.ta... | {
"file_name": "share/steel/examples/pulse/dice/cbor/CBOR.Spec.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 59,
"end_line": 145,
"start_col": 0,
"start_line": 136
} | (*
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": [
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Ghost.fsti.checked",
"FStar... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": false,
"full_module": "CBOR.Spec.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "CBOR... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s1: FStar.Seq.Base.seq FStar.UInt8.t -> s2: FStar.Seq.Base.seq FStar.UInt8.t
-> FStar.Pervasives.Lemma
(ensures
(let c = CBOR.Spec.bytes_lex_compare s1 s2 in
c == - 1 \/ c == 0 \/ c == 1))
(decreases FStar.Seq.Base.length s1)
[SMTPat (CBOR.Spec.bytes_lex_compare s1 s2)] | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"FStar.Seq.Base.seq",
"FStar.UInt8.t",
"Prims.op_BarBar",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"Prims.bool",
"CBOR.Spec.bytes_lex_compare_values",
"FStar.Seq.Properties.tail",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.l_or",
"Prims.eq2",
"Prims.op_Minus",... | [
"recursion"
] | false | false | true | false | false | let rec bytes_lex_compare_values (s1 s2: Seq.seq U8.t)
: Lemma
(ensures
(let c = bytes_lex_compare s1 s2 in
c == - 1 \/ c == 0 \/ c == 1))
(decreases (Seq.length s1))
[SMTPat (bytes_lex_compare s1 s2)] =
| if Seq.length s1 = 0 || Seq.length s2 = 0
then ()
else bytes_lex_compare_values (Seq.tail s1) (Seq.tail s2) | false |
LList32.fst | LList32.peek | val peek: #l: G.erased (list u32) -> ll: llist -> squash (Cons? l)
-> ST u32
(ll `is_list` l)
(fun _ -> ll `is_list` l)
(requires True)
(ensures fun x -> x == Cons?.hd l) | val peek: #l: G.erased (list u32) -> ll: llist -> squash (Cons? l)
-> ST u32
(ll `is_list` l)
(fun _ -> ll `is_list` l)
(requires True)
(ensures fun x -> x == Cons?.hd l) | let peek (#l:G.erased (list u32)) (ll:llist) (_:squash (Cons? l))
: ST u32
(ll `is_list` l)
(fun _ -> ll `is_list` l)
(requires True)
(ensures fun x -> x == Cons?.hd l)
= peek ll () | {
"file_name": "share/steel/examples/steel/LList32.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 14,
"end_line": 54,
"start_col": 0,
"start_line": 48
} | (*
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.fsti.checked",
"Steel.Memory.fsti.checked",
"prims.fst.checked",
"LList.ST.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface... | [
{
"abbrev": true,
"full_module": "FStar.Ghost",
"short_module": "G"
},
{
"abbrev": false,
"full_module": "LList.ST",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"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 | ll: LList32.llist -> _: Prims.squash (Cons? (FStar.Ghost.reveal l))
-> Steel.ST.Effect.ST LList32.u32 | Steel.ST.Effect.ST | [] | [] | [
"FStar.Ghost.erased",
"Prims.list",
"LList32.u32",
"LList32.llist",
"Prims.squash",
"Prims.b2t",
"Prims.uu___is_Cons",
"FStar.Ghost.reveal",
"LList.ST.peek",
"LList32.is_list",
"Steel.Effect.Common.vprop",
"Prims.l_True",
"Prims.eq2",
"Prims.__proj__Cons__item__hd"
] | [] | false | true | false | false | false | let peek (#l: G.erased (list u32)) (ll: llist) (_: squash (Cons? l))
: ST u32
(ll `is_list` l)
(fun _ -> ll `is_list` l)
(requires True)
(ensures fun x -> x == Cons?.hd l) =
| peek ll () | false |
CBOR.Spec.fsti | CBOR.Spec.deterministically_encoded_cbor_map_key_order_major_type_intro | val deterministically_encoded_cbor_map_key_order_major_type_intro (v1 v2: raw_data_item)
: Lemma (requires (U8.v (get_major_type v1) < U8.v (get_major_type v2)))
(ensures (Ghost.reveal deterministically_encoded_cbor_map_key_order v1 v2 == true)) | val deterministically_encoded_cbor_map_key_order_major_type_intro (v1 v2: raw_data_item)
: Lemma (requires (U8.v (get_major_type v1) < U8.v (get_major_type v2)))
(ensures (Ghost.reveal deterministically_encoded_cbor_map_key_order v1 v2 == true)) | let deterministically_encoded_cbor_map_key_order_major_type_intro
(v1 v2: raw_data_item)
: Lemma
(requires (
U8.v (get_major_type v1) < U8.v (get_major_type v2)
))
(ensures (
Ghost.reveal deterministically_encoded_cbor_map_key_order v1 v2 == true
))
= deterministically_encoded_cbor_map_key_order_spec ... | {
"file_name": "share/steel/examples/pulse/dice/cbor/CBOR.Spec.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 28,
"end_line": 254,
"start_col": 0,
"start_line": 244
} | (*
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": [
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Ghost.fsti.checked",
"FStar... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": false,
"full_module": "CBOR.Spec.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "CBOR... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | v1: CBOR.Spec.Type.raw_data_item -> v2: CBOR.Spec.Type.raw_data_item
-> FStar.Pervasives.Lemma
(requires
FStar.UInt8.v (CBOR.Spec.Type.get_major_type v1) <
FStar.UInt8.v (CBOR.Spec.Type.get_major_type v2))
(ensures
FStar.Ghost.reveal CBOR.Spec.deterministically_encoded_cbor_map_key... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"CBOR.Spec.Type.raw_data_item",
"CBOR.Spec.cbor_compare_correct",
"Prims.unit",
"CBOR.Spec.deterministically_encoded_cbor_map_key_order_spec",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.UInt8.v",
"CBOR.Spec.Type.get_major_type",
"Prims.squash",
"Prims.eq2",
"Prims.bool",
"FStar.Ghost.reveal",
... | [] | true | false | true | false | false | let deterministically_encoded_cbor_map_key_order_major_type_intro (v1 v2: raw_data_item)
: Lemma (requires (U8.v (get_major_type v1) < U8.v (get_major_type v2)))
(ensures (Ghost.reveal deterministically_encoded_cbor_map_key_order v1 v2 == true)) =
| deterministically_encoded_cbor_map_key_order_spec v1 v2;
cbor_compare_correct v1 v2 | false |
CBOR.Spec.fsti | CBOR.Spec.cbor_compare_equal | val cbor_compare_equal (x1 x2: raw_data_item) : Lemma (cbor_compare x1 x2 == 0 <==> x1 == x2) | val cbor_compare_equal (x1 x2: raw_data_item) : Lemma (cbor_compare x1 x2 == 0 <==> x1 == x2) | let cbor_compare_equal
(x1 x2: raw_data_item)
: Lemma
(cbor_compare x1 x2 == 0 <==> x1 == x2)
= cbor_compare_correct x1 x2;
bytes_lex_compare_equal (serialize_cbor x1) (serialize_cbor x2);
Seq.append_empty_r (serialize_cbor x1);
Seq.append_empty_r (serialize_cbor x2);
Classical.move_requires (serialize_cbor... | {
"file_name": "share/steel/examples/pulse/dice/cbor/CBOR.Spec.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 72,
"end_line": 242,
"start_col": 0,
"start_line": 234
} | (*
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": [
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Ghost.fsti.checked",
"FStar... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": false,
"full_module": "CBOR.Spec.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "CBOR... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x1: CBOR.Spec.Type.raw_data_item -> x2: CBOR.Spec.Type.raw_data_item
-> FStar.Pervasives.Lemma (ensures CBOR.Spec.cbor_compare x1 x2 == 0 <==> x1 == x2) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"CBOR.Spec.Type.raw_data_item",
"FStar.Classical.move_requires",
"FStar.Seq.Base.seq",
"FStar.UInt8.t",
"Prims.eq2",
"FStar.Seq.Base.append",
"CBOR.Spec.serialize_cbor",
"FStar.Seq.Base.empty",
"Prims.l_and",
"CBOR.Spec.serialize_cbor_inj",
"Prims.unit",
"FStar.Seq.Base.append_empty_r",
"CBO... | [] | false | false | true | false | false | let cbor_compare_equal (x1 x2: raw_data_item) : Lemma (cbor_compare x1 x2 == 0 <==> x1 == x2) =
| cbor_compare_correct x1 x2;
bytes_lex_compare_equal (serialize_cbor x1) (serialize_cbor x2);
Seq.append_empty_r (serialize_cbor x1);
Seq.append_empty_r (serialize_cbor x2);
Classical.move_requires (serialize_cbor_inj x1 x2 Seq.empty) Seq.empty | false |
CBOR.Spec.fsti | CBOR.Spec.deterministically_encoded_cbor_map_key_order_int64 | val deterministically_encoded_cbor_map_key_order_int64
(ty: major_type_uint64_or_neg_int64)
(v1 v2: U64.t)
: Lemma
(Ghost.reveal deterministically_encoded_cbor_map_key_order (Int64 ty v1) (Int64 ty v2) ==
U64.lt v1 v2)
[
SMTPat
(Ghost.reveal deterministically_encoded_... | val deterministically_encoded_cbor_map_key_order_int64
(ty: major_type_uint64_or_neg_int64)
(v1 v2: U64.t)
: Lemma
(Ghost.reveal deterministically_encoded_cbor_map_key_order (Int64 ty v1) (Int64 ty v2) ==
U64.lt v1 v2)
[
SMTPat
(Ghost.reveal deterministically_encoded_... | let deterministically_encoded_cbor_map_key_order_int64
(ty: major_type_uint64_or_neg_int64)
(v1 v2: U64.t)
: Lemma
(Ghost.reveal deterministically_encoded_cbor_map_key_order (Int64 ty v1) (Int64 ty v2) == U64.lt v1 v2)
[SMTPat (Ghost.reveal deterministically_encoded_cbor_map_key_order (Int64 ty v1) (Int64 ty v2... | {
"file_name": "share/steel/examples/pulse/dice/cbor/CBOR.Spec.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 50,
"end_line": 263,
"start_col": 0,
"start_line": 256
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Ghost.fsti.checked",
"FStar... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": false,
"full_module": "CBOR.Spec.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "CBOR... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ty: CBOR.Spec.Constants.major_type_uint64_or_neg_int64 -> v1: FStar.UInt64.t -> v2: FStar.UInt64.t
-> FStar.Pervasives.Lemma
(ensures
FStar.Ghost.reveal CBOR.Spec.deterministically_encoded_cbor_map_key_order
(CBOR.Spec.Type.Int64 ty v1)
(CBOR.Spec.Type.Int64 ty v2) ==
FStar.U... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"CBOR.Spec.Constants.major_type_uint64_or_neg_int64",
"FStar.UInt64.t",
"CBOR.Spec.cbor_compare_correct",
"CBOR.Spec.Type.Int64",
"Prims.unit",
"CBOR.Spec.deterministically_encoded_cbor_map_key_order_spec",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"Prims.bool",
"FStar.Ghost.reveal",
"CBOR.... | [] | true | false | true | false | false | let deterministically_encoded_cbor_map_key_order_int64
(ty: major_type_uint64_or_neg_int64)
(v1 v2: U64.t)
: Lemma
(Ghost.reveal deterministically_encoded_cbor_map_key_order (Int64 ty v1) (Int64 ty v2) ==
U64.lt v1 v2)
[
SMTPat
(Ghost.reveal deterministically_encoded_... | deterministically_encoded_cbor_map_key_order_spec (Int64 ty v1) (Int64 ty v2);
cbor_compare_correct (Int64 ty v1) (Int64 ty v2) | false |
LowParse.Spec.IfThenElse.fst | LowParse.Spec.IfThenElse.parse_ifthenelse_payload | val parse_ifthenelse_payload (p: parse_ifthenelse_param) (t: p.parse_ifthenelse_tag_t)
: Tot (parser (parse_ifthenelse_payload_kind p) p.parse_ifthenelse_t) | val parse_ifthenelse_payload (p: parse_ifthenelse_param) (t: p.parse_ifthenelse_tag_t)
: Tot (parser (parse_ifthenelse_payload_kind p) p.parse_ifthenelse_t) | let parse_ifthenelse_payload (p: parse_ifthenelse_param) (t: p.parse_ifthenelse_tag_t) : Tot (parser (parse_ifthenelse_payload_kind p) p.parse_ifthenelse_t) =
weaken (parse_ifthenelse_payload_kind p) (parse_synth (dsnd (p.parse_ifthenelse_payload_parser (p.parse_ifthenelse_tag_cond t))) (p.parse_ifthenelse_synth t)) | {
"file_name": "src/lowparse/LowParse.Spec.IfThenElse.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 160,
"end_line": 45,
"start_col": 0,
"start_line": 44
} | module LowParse.Spec.IfThenElse
include LowParse.Spec.Combinators
module Seq = FStar.Seq
[@@(noextract_to "krml")]
inline_for_extraction
noeq
type parse_ifthenelse_param = {
parse_ifthenelse_tag_kind: parser_kind;
parse_ifthenelse_tag_t: Type;
parse_ifthenelse_tag_parser: parser parse_ifthenelse_tag_kind parse_... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "LowParse.S... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.IfThenElse.parse_ifthenelse_param ->
t: Mkparse_ifthenelse_param?.parse_ifthenelse_tag_t p
-> LowParse.Spec.Base.parser (LowParse.Spec.IfThenElse.parse_ifthenelse_payload_kind p)
(Mkparse_ifthenelse_param?.parse_ifthenelse_t p) | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.IfThenElse.parse_ifthenelse_param",
"LowParse.Spec.IfThenElse.__proj__Mkparse_ifthenelse_param__item__parse_ifthenelse_tag_t",
"LowParse.Spec.Base.weaken",
"LowParse.Spec.IfThenElse.parse_ifthenelse_payload_kind",
"Prims.__proj__Mkdtuple2__item___1",
"LowParse.Spec.Base.parser_kind",
"Low... | [] | false | false | false | false | false | let parse_ifthenelse_payload (p: parse_ifthenelse_param) (t: p.parse_ifthenelse_tag_t)
: Tot (parser (parse_ifthenelse_payload_kind p) p.parse_ifthenelse_t) =
| weaken (parse_ifthenelse_payload_kind p)
(parse_synth (dsnd (p.parse_ifthenelse_payload_parser (p.parse_ifthenelse_tag_cond t)))
(p.parse_ifthenelse_synth t)) | false |
LListReverse.fst | LListReverse.list_rev_transfer | val list_rev_transfer (ll: list U64.t) (x: U64.t) (lr: list U64.t)
: Lemma
(List.Tot.append (List.Tot.rev ll) (x :: lr) == List.Tot.append (List.Tot.rev (x :: ll)) lr) | val list_rev_transfer (ll: list U64.t) (x: U64.t) (lr: list U64.t)
: Lemma
(List.Tot.append (List.Tot.rev ll) (x :: lr) == List.Tot.append (List.Tot.rev (x :: ll)) lr) | let list_rev_transfer
(ll: list U64.t) (x: U64.t) (lr: list U64.t)
: Lemma
(List.Tot.append (List.Tot.rev ll) (x :: lr) == List.Tot.append (List.Tot.rev (x :: ll)) lr)
= List.Tot.rev_rev' (x :: ll);
List.Tot.rev_rev' ll;
List.Tot.append_assoc (List.Tot.rev ll) [x] lr | {
"file_name": "share/steel/tests/krml/LListReverse.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 48,
"end_line": 191,
"start_col": 0,
"start_line": 185
} | module LListReverse
open Steel.ST.GenElim
open Steel.ST.Reference
open Steel.ST.Loops
module U64 = FStar.UInt64
let main () = C.EXIT_SUCCESS // dummy for compilation
noeq
type llist_cell = {
value: U64.t;
next: ref llist_cell;
}
[@@__reduce__]
let llist_nil
(p: ref llist_cell)
: Tot vprop
= pure (p == null)
... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Reference.fsti.checked",
"Steel.ST.Loops.fsti.checked",
"Steel.ST.GenElim.fsti.checked",
"prims.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_module": "Steel.ST.Loops",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Reference",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ll: Prims.list FStar.UInt64.t -> x: FStar.UInt64.t -> lr: Prims.list FStar.UInt64.t
-> FStar.Pervasives.Lemma
(ensures FStar.List.Tot.Base.rev ll @ x :: lr == FStar.List.Tot.Base.rev (x :: ll) @ lr) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.list",
"FStar.UInt64.t",
"FStar.List.Tot.Properties.append_assoc",
"FStar.List.Tot.Base.rev",
"Prims.Cons",
"Prims.Nil",
"Prims.unit",
"FStar.List.Tot.Properties.rev_rev'",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"FStar.List.Tot.Base.append",
"FStar.Pervasives.pattern"
] | [] | true | false | true | false | false | let list_rev_transfer (ll: list U64.t) (x: U64.t) (lr: list U64.t)
: Lemma
(List.Tot.append (List.Tot.rev ll) (x :: lr) == List.Tot.append (List.Tot.rev (x :: ll)) lr) =
| List.Tot.rev_rev' (x :: ll);
List.Tot.rev_rev' ll;
List.Tot.append_assoc (List.Tot.rev ll) [x] lr | false |
CBOR.Spec.fsti | CBOR.Spec.cbor_map_sort_correct | val cbor_map_sort_correct (l: list (raw_data_item & raw_data_item))
: Lemma
(ensures
(let res, l' = cbor_map_sort l in
(forall x. List.Tot.memP x l' <==> List.Tot.memP x l) /\
(List.Tot.no_repeats_p (List.Tot.map fst l') <==> List.Tot.no_repeats_p (List.Tot.map fst l)
) /\ (res == ... | val cbor_map_sort_correct (l: list (raw_data_item & raw_data_item))
: Lemma
(ensures
(let res, l' = cbor_map_sort l in
(forall x. List.Tot.memP x l' <==> List.Tot.memP x l) /\
(List.Tot.no_repeats_p (List.Tot.map fst l') <==> List.Tot.no_repeats_p (List.Tot.map fst l)
) /\ (res == ... | let cbor_map_sort_correct
(l: list (raw_data_item & raw_data_item))
: Lemma
(ensures (let (res, l') = cbor_map_sort l in
(forall x . List.Tot.memP x l' <==> List.Tot.memP x l) /\
(List.Tot.no_repeats_p (List.Tot.map fst l') <==> List.Tot.no_repeats_p (List.Tot.map fst l)) /\
(res == true <==> List.Tot.n... | {
"file_name": "share/steel/examples/pulse/dice/cbor/CBOR.Spec.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 78,
"end_line": 293,
"start_col": 0,
"start_line": 276
} | (*
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": [
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Ghost.fsti.checked",
"FStar... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": false,
"full_module": "CBOR.Spec.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "CBOR... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | l: Prims.list (CBOR.Spec.Type.raw_data_item * CBOR.Spec.Type.raw_data_item)
-> FStar.Pervasives.Lemma
(ensures
(let _ = CBOR.Spec.cbor_map_sort l in
(let FStar.Pervasives.Native.Mktuple2 #_ #_ res l' = _ in
(forall (x: (CBOR.Spec.Type.raw_data_item * CBOR.Spec.Type.raw_data_item)).
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"CBOR.Spec.Type.raw_data_item",
"CBOR.Spec.Map.map_sort_correct",
"FStar.Ghost.reveal",
"Prims.bool",
"CBOR.Spec.deterministically_encoded_cbor_map_key_order",
"CBOR.Spec.cbor_compare",
"Prims.unit",
"FStar.Classical.forall_intro_2",
"FStar.Seq.Bas... | [] | false | false | true | false | false | let cbor_map_sort_correct (l: list (raw_data_item & raw_data_item))
: Lemma
(ensures
(let res, l' = cbor_map_sort l in
(forall x. List.Tot.memP x l' <==> List.Tot.memP x l) /\
(List.Tot.no_repeats_p (List.Tot.map fst l') <==> List.Tot.no_repeats_p (List.Tot.map fst l)
) /\ (res == ... | cbor_map_sort_eq l;
Classical.forall_intro_2 deterministically_encoded_cbor_map_key_order_spec;
Classical.forall_intro_2 cbor_compare_correct;
Classical.forall_intro_2 cbor_compare_equal;
Classical.forall_intro_2 bytes_lex_compare_opp;
map_sort_correct deterministically_encoded_cbor_map_key_order cbor_compare l | false |
LowParse.Spec.IfThenElse.fst | LowParse.Spec.IfThenElse.parse_ifthenelse_synth_injective | val parse_ifthenelse_synth_injective (p: parse_ifthenelse_param) (t: p.parse_ifthenelse_tag_t)
: Lemma (synth_injective (p.parse_ifthenelse_synth t))
[SMTPat (synth_injective (p.parse_ifthenelse_synth t))] | val parse_ifthenelse_synth_injective (p: parse_ifthenelse_param) (t: p.parse_ifthenelse_tag_t)
: Lemma (synth_injective (p.parse_ifthenelse_synth t))
[SMTPat (synth_injective (p.parse_ifthenelse_synth t))] | let parse_ifthenelse_synth_injective (p: parse_ifthenelse_param) (t: p.parse_ifthenelse_tag_t) : Lemma (synth_injective (p.parse_ifthenelse_synth t)) [SMTPat (synth_injective (p.parse_ifthenelse_synth t))] =
Classical.forall_intro_2 (fun x1 x2 -> Classical.move_requires (p.parse_ifthenelse_synth_injective t x1 t) x2) | {
"file_name": "src/lowparse/LowParse.Spec.IfThenElse.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 112,
"end_line": 42,
"start_col": 0,
"start_line": 41
} | module LowParse.Spec.IfThenElse
include LowParse.Spec.Combinators
module Seq = FStar.Seq
[@@(noextract_to "krml")]
inline_for_extraction
noeq
type parse_ifthenelse_param = {
parse_ifthenelse_tag_kind: parser_kind;
parse_ifthenelse_tag_t: Type;
parse_ifthenelse_tag_parser: parser parse_ifthenelse_tag_kind parse_... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "LowParse.S... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p: LowParse.Spec.IfThenElse.parse_ifthenelse_param ->
t: Mkparse_ifthenelse_param?.parse_ifthenelse_tag_t p
-> FStar.Pervasives.Lemma
(ensures
LowParse.Spec.Combinators.synth_injective (Mkparse_ifthenelse_param?.parse_ifthenelse_synth p
t))
[
SMTPat (LowParse.Spec.Co... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Spec.IfThenElse.parse_ifthenelse_param",
"LowParse.Spec.IfThenElse.__proj__Mkparse_ifthenelse_param__item__parse_ifthenelse_tag_t",
"FStar.Classical.forall_intro_2",
"LowParse.Spec.IfThenElse.__proj__Mkparse_ifthenelse_param__item__parse_ifthenelse_payload_t",
"LowParse.Spec.IfThenElse.__proj__Mkp... | [] | false | false | true | false | false | let parse_ifthenelse_synth_injective (p: parse_ifthenelse_param) (t: p.parse_ifthenelse_tag_t)
: Lemma (synth_injective (p.parse_ifthenelse_synth t))
[SMTPat (synth_injective (p.parse_ifthenelse_synth t))] =
| Classical.forall_intro_2 (fun x1 x2 ->
Classical.move_requires (p.parse_ifthenelse_synth_injective t x1 t) x2) | false |
LListReverse.fst | LListReverse.list_rev_done | val list_rev_done (l1 l2: list U64.t)
: Lemma (requires (l1 == List.Tot.append (List.Tot.rev l2) []))
(ensures (l2 == List.Tot.rev l1)) | val list_rev_done (l1 l2: list U64.t)
: Lemma (requires (l1 == List.Tot.append (List.Tot.rev l2) []))
(ensures (l2 == List.Tot.rev l1)) | let list_rev_done
(l1 l2: list U64.t)
: Lemma
(requires (
l1 == List.Tot.append (List.Tot.rev l2) []
))
(ensures (l2 == List.Tot.rev l1))
= List.Tot.append_l_nil (List.Tot.rev l2);
List.Tot.rev_involutive l2 | {
"file_name": "share/steel/tests/krml/LListReverse.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 28,
"end_line": 201,
"start_col": 0,
"start_line": 193
} | module LListReverse
open Steel.ST.GenElim
open Steel.ST.Reference
open Steel.ST.Loops
module U64 = FStar.UInt64
let main () = C.EXIT_SUCCESS // dummy for compilation
noeq
type llist_cell = {
value: U64.t;
next: ref llist_cell;
}
[@@__reduce__]
let llist_nil
(p: ref llist_cell)
: Tot vprop
= pure (p == null)
... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Reference.fsti.checked",
"Steel.ST.Loops.fsti.checked",
"Steel.ST.GenElim.fsti.checked",
"prims.fst.checked",
"FStar.UInt64.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Ghost.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": false,
"full_module": "Steel.ST.Loops",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Reference",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | l1: Prims.list FStar.UInt64.t -> l2: Prims.list FStar.UInt64.t
-> FStar.Pervasives.Lemma (requires l1 == FStar.List.Tot.Base.rev l2 @ [])
(ensures l2 == FStar.List.Tot.Base.rev l1) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.list",
"FStar.UInt64.t",
"FStar.List.Tot.Properties.rev_involutive",
"Prims.unit",
"FStar.List.Tot.Properties.append_l_nil",
"FStar.List.Tot.Base.rev",
"Prims.eq2",
"FStar.List.Tot.Base.append",
"Prims.Nil",
"Prims.squash",
"FStar.Pervasives.pattern"
] | [] | true | false | true | false | false | let list_rev_done (l1 l2: list U64.t)
: Lemma (requires (l1 == List.Tot.append (List.Tot.rev l2) []))
(ensures (l2 == List.Tot.rev l1)) =
| List.Tot.append_l_nil (List.Tot.rev l2);
List.Tot.rev_involutive l2 | false |
LowParse.Spec.IfThenElse.fst | LowParse.Spec.IfThenElse.parse_ifthenelse | val parse_ifthenelse (p: parse_ifthenelse_param)
: Tot (parser (parse_ifthenelse_kind p) p.parse_ifthenelse_t) | val parse_ifthenelse (p: parse_ifthenelse_param)
: Tot (parser (parse_ifthenelse_kind p) p.parse_ifthenelse_t) | let parse_ifthenelse (p: parse_ifthenelse_param) : Tot (parser (parse_ifthenelse_kind p) p.parse_ifthenelse_t) =
and_then p.parse_ifthenelse_tag_parser (parse_ifthenelse_payload p) | {
"file_name": "src/lowparse/LowParse.Spec.IfThenElse.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 69,
"end_line": 61,
"start_col": 0,
"start_line": 60
} | module LowParse.Spec.IfThenElse
include LowParse.Spec.Combinators
module Seq = FStar.Seq
[@@(noextract_to "krml")]
inline_for_extraction
noeq
type parse_ifthenelse_param = {
parse_ifthenelse_tag_kind: parser_kind;
parse_ifthenelse_tag_t: Type;
parse_ifthenelse_tag_parser: parser parse_ifthenelse_tag_kind parse_... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "LowParse.S... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: LowParse.Spec.IfThenElse.parse_ifthenelse_param
-> LowParse.Spec.Base.parser (LowParse.Spec.IfThenElse.parse_ifthenelse_kind p)
(Mkparse_ifthenelse_param?.parse_ifthenelse_t p) | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.IfThenElse.parse_ifthenelse_param",
"LowParse.Spec.Combinators.and_then",
"LowParse.Spec.IfThenElse.__proj__Mkparse_ifthenelse_param__item__parse_ifthenelse_tag_kind",
"LowParse.Spec.IfThenElse.__proj__Mkparse_ifthenelse_param__item__parse_ifthenelse_tag_t",
"LowParse.Spec.IfThenElse.__proj__... | [] | false | false | false | false | false | let parse_ifthenelse (p: parse_ifthenelse_param)
: Tot (parser (parse_ifthenelse_kind p) p.parse_ifthenelse_t) =
| and_then p.parse_ifthenelse_tag_parser (parse_ifthenelse_payload p) | false |
CBOR.Spec.fsti | CBOR.Spec.cbor_compare | val cbor_compare (x1 x2: raw_data_item) : Tot int (decreases x1) | val cbor_compare (x1 x2: raw_data_item) : Tot int (decreases x1) | let rec cbor_compare
(x1 x2: raw_data_item)
: Tot int
(decreases x1)
= let ty1 = get_major_type x1 in
let ty2 = get_major_type x2 in
let c = int_compare (U8.v ty1) (U8.v ty2) in
if c <> 0
then c
else if ty1 = cbor_major_type_uint64 || ty1 = cbor_major_type_neg_int64
then int_compare (U64.v (Int64?.v x1)... | {
"file_name": "share/steel/examples/pulse/dice/cbor/CBOR.Spec.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 33,
"end_line": 227,
"start_col": 0,
"start_line": 158
} | (*
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": [
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Ghost.fsti.checked",
"FStar... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": false,
"full_module": "CBOR.Spec.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "CBOR... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x1: CBOR.Spec.Type.raw_data_item -> x2: CBOR.Spec.Type.raw_data_item -> Prims.Tot Prims.int | Prims.Tot | [
"total",
""
] | [
"cbor_compare",
"cbor_compare_array",
"cbor_compare_map"
] | [
"CBOR.Spec.Type.raw_data_item",
"Prims.op_disEquality",
"Prims.int",
"Prims.bool",
"Prims.op_BarBar",
"Prims.op_Equality",
"CBOR.Spec.Constants.major_type_t",
"CBOR.Spec.Constants.cbor_major_type_uint64",
"CBOR.Spec.Constants.cbor_major_type_neg_int64",
"CBOR.Spec.int_compare",
"FStar.UInt64.v",... | [
"mutual recursion"
] | false | false | false | true | false | let rec cbor_compare (x1 x2: raw_data_item) : Tot int (decreases x1) =
| let ty1 = get_major_type x1 in
let ty2 = get_major_type x2 in
let c = int_compare (U8.v ty1) (U8.v ty2) in
if c <> 0
then c
else
if ty1 = cbor_major_type_uint64 || ty1 = cbor_major_type_neg_int64
then int_compare (U64.v (Int64?.v x1)) (U64.v (Int64?.v x2))
else
if ty1 = cbor_major_type_simple_value
then i... | false |
LowParse.Spec.IfThenElse.fst | LowParse.Spec.IfThenElse.parse_ifthenelse_payload_and_then_cases_injective | val parse_ifthenelse_payload_and_then_cases_injective (p: parse_ifthenelse_param)
: Lemma (and_then_cases_injective (parse_ifthenelse_payload p))
[SMTPat (and_then_cases_injective (parse_ifthenelse_payload p))] | val parse_ifthenelse_payload_and_then_cases_injective (p: parse_ifthenelse_param)
: Lemma (and_then_cases_injective (parse_ifthenelse_payload p))
[SMTPat (and_then_cases_injective (parse_ifthenelse_payload p))] | let parse_ifthenelse_payload_and_then_cases_injective (p: parse_ifthenelse_param) : Lemma
(and_then_cases_injective (parse_ifthenelse_payload p))
[SMTPat (and_then_cases_injective (parse_ifthenelse_payload p))]
= and_then_cases_injective_intro
(parse_ifthenelse_payload p)
(fun t1 t2 b1 b2 ->
parse_sy... | {
"file_name": "src/lowparse/LowParse.Spec.IfThenElse.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 5,
"end_line": 58,
"start_col": 0,
"start_line": 47
} | module LowParse.Spec.IfThenElse
include LowParse.Spec.Combinators
module Seq = FStar.Seq
[@@(noextract_to "krml")]
inline_for_extraction
noeq
type parse_ifthenelse_param = {
parse_ifthenelse_tag_kind: parser_kind;
parse_ifthenelse_tag_t: Type;
parse_ifthenelse_tag_parser: parser parse_ifthenelse_tag_kind parse_... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "LowParse.S... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: LowParse.Spec.IfThenElse.parse_ifthenelse_param
-> FStar.Pervasives.Lemma
(ensures
LowParse.Spec.Combinators.and_then_cases_injective (LowParse.Spec.IfThenElse.parse_ifthenelse_payload
p))
[
SMTPat (LowParse.Spec.Combinators.and_then_cases_injective (LowParse.Spec.IfThenEl... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Spec.IfThenElse.parse_ifthenelse_param",
"LowParse.Spec.Combinators.and_then_cases_injective_intro",
"LowParse.Spec.IfThenElse.__proj__Mkparse_ifthenelse_param__item__parse_ifthenelse_tag_t",
"LowParse.Spec.IfThenElse.__proj__Mkparse_ifthenelse_param__item__parse_ifthenelse_t",
"LowParse.Spec.IfTh... | [] | false | false | true | false | false | let parse_ifthenelse_payload_and_then_cases_injective (p: parse_ifthenelse_param)
: Lemma (and_then_cases_injective (parse_ifthenelse_payload p))
[SMTPat (and_then_cases_injective (parse_ifthenelse_payload p))] =
| and_then_cases_injective_intro (parse_ifthenelse_payload p)
(fun t1 t2 b1 b2 ->
parse_synth_eq (dsnd (p.parse_ifthenelse_payload_parser (p.parse_ifthenelse_tag_cond t1)))
(p.parse_ifthenelse_synth t1)
b1;
parse_synth_eq (dsnd (p.parse_ifthenelse_payload_parser (p.parse_ifthenelse_tag_cond ... | false |
LowParse.Spec.IfThenElse.fst | LowParse.Spec.IfThenElse.serialize_ifthenelse_synth_inverse' | val serialize_ifthenelse_synth_inverse'
(#p: parse_ifthenelse_param)
(s: serialize_ifthenelse_param p)
(tg: p.parse_ifthenelse_tag_t)
(pl: p.parse_ifthenelse_payload_t (p.parse_ifthenelse_tag_cond tg))
: Lemma (s.serialize_ifthenelse_synth_recip (p.parse_ifthenelse_synth tg pl) == (| tg, pl ... | val serialize_ifthenelse_synth_inverse'
(#p: parse_ifthenelse_param)
(s: serialize_ifthenelse_param p)
(tg: p.parse_ifthenelse_tag_t)
(pl: p.parse_ifthenelse_payload_t (p.parse_ifthenelse_tag_cond tg))
: Lemma (s.serialize_ifthenelse_synth_recip (p.parse_ifthenelse_synth tg pl) == (| tg, pl ... | let serialize_ifthenelse_synth_inverse'
(#p: parse_ifthenelse_param)
(s: serialize_ifthenelse_param p)
(tg: p.parse_ifthenelse_tag_t)
(pl: p.parse_ifthenelse_payload_t (p.parse_ifthenelse_tag_cond tg))
: Lemma
(s.serialize_ifthenelse_synth_recip (p.parse_ifthenelse_synth tg pl) == (| tg, pl |))
= let (| tg', ... | {
"file_name": "src/lowparse/LowParse.Spec.IfThenElse.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 50,
"end_line": 152,
"start_col": 0,
"start_line": 143
} | module LowParse.Spec.IfThenElse
include LowParse.Spec.Combinators
module Seq = FStar.Seq
[@@(noextract_to "krml")]
inline_for_extraction
noeq
type parse_ifthenelse_param = {
parse_ifthenelse_tag_kind: parser_kind;
parse_ifthenelse_tag_t: Type;
parse_ifthenelse_tag_parser: parser parse_ifthenelse_tag_kind parse_... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "LowParse.S... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
s: LowParse.Spec.IfThenElse.serialize_ifthenelse_param p ->
tg: Mkparse_ifthenelse_param?.parse_ifthenelse_tag_t p ->
pl:
Mkparse_ifthenelse_param?.parse_ifthenelse_payload_t p
(Mkparse_ifthenelse_param?.parse_ifthenelse_tag_cond p tg)
-> FStar.Pervasives.Lemma
(ensures
Mkserializ... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Spec.IfThenElse.parse_ifthenelse_param",
"LowParse.Spec.IfThenElse.serialize_ifthenelse_param",
"LowParse.Spec.IfThenElse.__proj__Mkparse_ifthenelse_param__item__parse_ifthenelse_tag_t",
"LowParse.Spec.IfThenElse.__proj__Mkparse_ifthenelse_param__item__parse_ifthenelse_payload_t",
"LowParse.Spec.I... | [] | false | false | true | false | false | let serialize_ifthenelse_synth_inverse'
(#p: parse_ifthenelse_param)
(s: serialize_ifthenelse_param p)
(tg: p.parse_ifthenelse_tag_t)
(pl: p.parse_ifthenelse_payload_t (p.parse_ifthenelse_tag_cond tg))
: Lemma (s.serialize_ifthenelse_synth_recip (p.parse_ifthenelse_synth tg pl) == (| tg, pl ... | let (| tg' , pl' |) = s.serialize_ifthenelse_synth_recip (p.parse_ifthenelse_synth tg pl) in
s.serialize_ifthenelse_synth_inverse (p.parse_ifthenelse_synth tg pl);
p.parse_ifthenelse_synth_injective tg pl tg' pl' | false |
LowParse.Spec.IfThenElse.fst | LowParse.Spec.IfThenElse.serialize_ifthenelse | val serialize_ifthenelse
(#p: parse_ifthenelse_param)
(s:
serialize_ifthenelse_param p
{p.parse_ifthenelse_tag_kind.parser_kind_subkind == Some ParserStrong})
: Tot (serializer (parse_ifthenelse p)) | val serialize_ifthenelse
(#p: parse_ifthenelse_param)
(s:
serialize_ifthenelse_param p
{p.parse_ifthenelse_tag_kind.parser_kind_subkind == Some ParserStrong})
: Tot (serializer (parse_ifthenelse p)) | let serialize_ifthenelse
(#p: parse_ifthenelse_param)
(s: serialize_ifthenelse_param p { p.parse_ifthenelse_tag_kind.parser_kind_subkind == Some ParserStrong } )
: Tot (serializer (parse_ifthenelse p))
= bare_serialize_ifthenelse_correct s;
bare_serialize_ifthenelse s | {
"file_name": "src/lowparse/LowParse.Spec.IfThenElse.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 29,
"end_line": 141,
"start_col": 0,
"start_line": 136
} | module LowParse.Spec.IfThenElse
include LowParse.Spec.Combinators
module Seq = FStar.Seq
[@@(noextract_to "krml")]
inline_for_extraction
noeq
type parse_ifthenelse_param = {
parse_ifthenelse_tag_kind: parser_kind;
parse_ifthenelse_tag_t: Type;
parse_ifthenelse_tag_parser: parser parse_ifthenelse_tag_kind parse_... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "LowParse.S... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
s:
LowParse.Spec.IfThenElse.serialize_ifthenelse_param p
{ Mkparser_kind'?.parser_kind_subkind (Mkparse_ifthenelse_param?.parse_ifthenelse_tag_kind p
) ==
FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong }
-> LowParse.Spec.Base.serializer (LowParse.Spec.IfThenElse.... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.IfThenElse.parse_ifthenelse_param",
"LowParse.Spec.IfThenElse.serialize_ifthenelse_param",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"LowParse.Spec.Base.parser_subkind",
"LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind",
"LowParse.Spec.IfThenElse.__proj__Mkparse_... | [] | false | false | false | false | false | let serialize_ifthenelse
(#p: parse_ifthenelse_param)
(s:
serialize_ifthenelse_param p
{p.parse_ifthenelse_tag_kind.parser_kind_subkind == Some ParserStrong})
: Tot (serializer (parse_ifthenelse p)) =
| bare_serialize_ifthenelse_correct s;
bare_serialize_ifthenelse s | false |
Hacl.Impl.Blake2.Generic.fst | Hacl.Impl.Blake2.Generic.is_valid_blake2_config | val is_valid_blake2_config : a: Spec.Blake2.Definitions.alg -> m: Hacl.Impl.Blake2.Core.m_spec -> Prims.bool | let is_valid_blake2_config (a : Spec.alg) (m : m_spec) =
match a, m with
| Spec.Blake2S, M32 | Spec.Blake2S, M128
| Spec.Blake2B, M32 | Spec.Blake2B, M256 -> true
| _ -> false | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 27,
"start_col": 0,
"start_line": 23
} | module Hacl.Impl.Blake2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.LoopCombinators
module ST = FStar.HyperStack.ST
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
module Spec = Spec.Blake2
open Hacl.Impl.Blake2.Co... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"L... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Constants",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Blake2.Definitions.alg -> m: Hacl.Impl.Blake2.Core.m_spec -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Pervasives.Native.tuple2",
"Prims.bool"
] | [] | false | false | false | true | false | let is_valid_blake2_config (a: Spec.alg) (m: m_spec) =
| match a, m with
| Spec.Blake2S, M32 | Spec.Blake2S, M128 | Spec.Blake2B, M32 | Spec.Blake2B, M256 -> true
| _ -> false | false | |
CBOR.Spec.fsti | CBOR.Spec.cbor_compare_array | val cbor_compare_array (x1 x2: list raw_data_item)
: Pure int
(requires (List.Tot.length x1 == List.Tot.length x2))
(ensures (fun _ -> True))
(decreases x1) | val cbor_compare_array (x1 x2: list raw_data_item)
: Pure int
(requires (List.Tot.length x1 == List.Tot.length x2))
(ensures (fun _ -> True))
(decreases x1) | let rec cbor_compare
(x1 x2: raw_data_item)
: Tot int
(decreases x1)
= let ty1 = get_major_type x1 in
let ty2 = get_major_type x2 in
let c = int_compare (U8.v ty1) (U8.v ty2) in
if c <> 0
then c
else if ty1 = cbor_major_type_uint64 || ty1 = cbor_major_type_neg_int64
then int_compare (U64.v (Int64?.v x1)... | {
"file_name": "share/steel/examples/pulse/dice/cbor/CBOR.Spec.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 33,
"end_line": 227,
"start_col": 0,
"start_line": 158
} | (*
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": [
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Ghost.fsti.checked",
"FStar... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": false,
"full_module": "CBOR.Spec.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "CBOR... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x1: Prims.list CBOR.Spec.Type.raw_data_item -> x2: Prims.list CBOR.Spec.Type.raw_data_item
-> Prims.Pure Prims.int | Prims.Pure | [
""
] | [
"cbor_compare",
"cbor_compare_array",
"cbor_compare_map"
] | [
"Prims.list",
"CBOR.Spec.Type.raw_data_item",
"FStar.Pervasives.Native.Mktuple2",
"Prims.op_disEquality",
"Prims.int",
"Prims.bool",
"CBOR.Spec.cbor_compare_array",
"CBOR.Spec.cbor_compare",
"Prims.eq2",
"Prims.nat",
"FStar.List.Tot.Base.length",
"Prims.l_True"
] | [
"mutual recursion"
] | false | false | false | false | false | let rec cbor_compare_array (x1 x2: list raw_data_item)
: Pure int
(requires (List.Tot.length x1 == List.Tot.length x2))
(ensures (fun _ -> True))
(decreases x1) =
| match x1, x2 with
| [], [] -> 0
| a1 :: q1, a2 :: q2 ->
let c = cbor_compare a1 a2 in
if c <> 0 then c else cbor_compare_array q1 q2 | false |
CBOR.Spec.fsti | CBOR.Spec.cbor_compare_map | val cbor_compare_map (x1 x2: list (raw_data_item & raw_data_item))
: Pure int
(requires (List.Tot.length x1 == List.Tot.length x2))
(ensures (fun _ -> True))
(decreases x1) | val cbor_compare_map (x1 x2: list (raw_data_item & raw_data_item))
: Pure int
(requires (List.Tot.length x1 == List.Tot.length x2))
(ensures (fun _ -> True))
(decreases x1) | let rec cbor_compare
(x1 x2: raw_data_item)
: Tot int
(decreases x1)
= let ty1 = get_major_type x1 in
let ty2 = get_major_type x2 in
let c = int_compare (U8.v ty1) (U8.v ty2) in
if c <> 0
then c
else if ty1 = cbor_major_type_uint64 || ty1 = cbor_major_type_neg_int64
then int_compare (U64.v (Int64?.v x1)... | {
"file_name": "share/steel/examples/pulse/dice/cbor/CBOR.Spec.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 33,
"end_line": 227,
"start_col": 0,
"start_line": 158
} | (*
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": [
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Ghost.fsti.checked",
"FStar... | [
{
"abbrev": true,
"full_module": "FStar.UInt64",
"short_module": "U64"
},
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": false,
"full_module": "CBOR.Spec.Map",
"short_module": null
},
{
"abbrev": false,
"full_module": "CBOR... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
x1: Prims.list (CBOR.Spec.Type.raw_data_item * CBOR.Spec.Type.raw_data_item) ->
x2: Prims.list (CBOR.Spec.Type.raw_data_item * CBOR.Spec.Type.raw_data_item)
-> Prims.Pure Prims.int | Prims.Pure | [
""
] | [
"cbor_compare",
"cbor_compare_array",
"cbor_compare_map"
] | [
"Prims.list",
"FStar.Pervasives.Native.tuple2",
"CBOR.Spec.Type.raw_data_item",
"FStar.Pervasives.Native.Mktuple2",
"Prims.op_disEquality",
"Prims.int",
"Prims.bool",
"CBOR.Spec.cbor_compare_map",
"CBOR.Spec.cbor_compare",
"FStar.Pervasives.Native.snd",
"FStar.Pervasives.Native.fst",
"Prims.eq... | [
"mutual recursion"
] | false | false | false | false | false | let rec cbor_compare_map (x1 x2: list (raw_data_item & raw_data_item))
: Pure int
(requires (List.Tot.length x1 == List.Tot.length x2))
(ensures (fun _ -> True))
(decreases x1) =
| match x1, x2 with
| [], [] -> 0
| a1 :: q1, a2 :: q2 ->
let c = cbor_compare (fst a1) (fst a2) in
if c <> 0
then c
else
let c = cbor_compare (snd a1) (snd a2) in
if c <> 0 then c else cbor_compare_map q1 q2 | false |
LowParse.Spec.IfThenElse.fst | LowParse.Spec.IfThenElse.parse_ifthenelse_eq | val parse_ifthenelse_eq (p: parse_ifthenelse_param) (input: bytes)
: Lemma
(parse (parse_ifthenelse p) input ==
(match parse p.parse_ifthenelse_tag_parser input with
| None -> None
| Some (t, consumed_t) ->
let b = p.parse_ifthenelse_tag_cond t in
let input' = Seq.slice... | val parse_ifthenelse_eq (p: parse_ifthenelse_param) (input: bytes)
: Lemma
(parse (parse_ifthenelse p) input ==
(match parse p.parse_ifthenelse_tag_parser input with
| None -> None
| Some (t, consumed_t) ->
let b = p.parse_ifthenelse_tag_cond t in
let input' = Seq.slice... | let parse_ifthenelse_eq
(p: parse_ifthenelse_param)
(input: bytes)
: Lemma
(parse (parse_ifthenelse p) input == (
match parse p.parse_ifthenelse_tag_parser input with
| None -> None
| Some (t, consumed_t) ->
let b = p.parse_ifthenelse_tag_cond t in
let input' = Seq.slice input consumed_t (... | {
"file_name": "src/lowparse/LowParse.Spec.IfThenElse.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 62,
"end_line": 89,
"start_col": 0,
"start_line": 63
} | module LowParse.Spec.IfThenElse
include LowParse.Spec.Combinators
module Seq = FStar.Seq
[@@(noextract_to "krml")]
inline_for_extraction
noeq
type parse_ifthenelse_param = {
parse_ifthenelse_tag_kind: parser_kind;
parse_ifthenelse_tag_t: Type;
parse_ifthenelse_tag_parser: parser parse_ifthenelse_tag_kind parse_... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "LowParse.S... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: LowParse.Spec.IfThenElse.parse_ifthenelse_param -> input: LowParse.Bytes.bytes
-> FStar.Pervasives.Lemma
(ensures
LowParse.Spec.Base.parse (LowParse.Spec.IfThenElse.parse_ifthenelse p) input ==
(match
LowParse.Spec.Base.parse (Mkparse_ifthenelse_param?.parse_ifthenelse_tag_parser p) input... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Spec.IfThenElse.parse_ifthenelse_param",
"LowParse.Bytes.bytes",
"LowParse.Spec.Base.parse",
"LowParse.Spec.IfThenElse.__proj__Mkparse_ifthenelse_param__item__parse_ifthenelse_tag_t",
"LowParse.Spec.IfThenElse.__proj__Mkparse_ifthenelse_param__item__parse_ifthenelse_tag_parser",
"LowParse.Spec.B... | [] | false | false | true | false | false | let parse_ifthenelse_eq (p: parse_ifthenelse_param) (input: bytes)
: Lemma
(parse (parse_ifthenelse p) input ==
(match parse p.parse_ifthenelse_tag_parser input with
| None -> None
| Some (t, consumed_t) ->
let b = p.parse_ifthenelse_tag_cond t in
let input' = Seq.slice... | and_then_eq p.parse_ifthenelse_tag_parser (parse_ifthenelse_payload p) input;
match parse p.parse_ifthenelse_tag_parser input with
| None -> ()
| Some (t, consumed_t) ->
let b = p.parse_ifthenelse_tag_cond t in
let input' = Seq.slice input consumed_t (Seq.length input) in
let f:(p.parse_ifthenelse_payload_t (p.pa... | false |
LowParse.Spec.IfThenElse.fst | LowParse.Spec.IfThenElse.parse_ifthenelse_parse_tag_payload | val parse_ifthenelse_parse_tag_payload
(#p: parse_ifthenelse_param)
(s: serialize_ifthenelse_param p)
(input: bytes)
: Lemma (requires (Some? (parse (parse_ifthenelse p) input)))
(ensures
(let Some (x, _) = parse (parse_ifthenelse p) input in
match parse p.parse_ifthenelse_... | val parse_ifthenelse_parse_tag_payload
(#p: parse_ifthenelse_param)
(s: serialize_ifthenelse_param p)
(input: bytes)
: Lemma (requires (Some? (parse (parse_ifthenelse p) input)))
(ensures
(let Some (x, _) = parse (parse_ifthenelse p) input in
match parse p.parse_ifthenelse_... | let parse_ifthenelse_parse_tag_payload
(#p: parse_ifthenelse_param)
(s: serialize_ifthenelse_param p)
(input: bytes)
: Lemma
(requires (Some? (parse (parse_ifthenelse p) input)))
(ensures (
let Some (x, _) = parse (parse_ifthenelse p) input in
match parse p.parse_ifthenelse_tag_parser input with
|... | {
"file_name": "src/lowparse/LowParse.Spec.IfThenElse.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 44,
"end_line": 176,
"start_col": 0,
"start_line": 154
} | module LowParse.Spec.IfThenElse
include LowParse.Spec.Combinators
module Seq = FStar.Seq
[@@(noextract_to "krml")]
inline_for_extraction
noeq
type parse_ifthenelse_param = {
parse_ifthenelse_tag_kind: parser_kind;
parse_ifthenelse_tag_t: Type;
parse_ifthenelse_tag_parser: parser parse_ifthenelse_tag_kind parse_... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "LowParse.S... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: LowParse.Spec.IfThenElse.serialize_ifthenelse_param p -> input: LowParse.Bytes.bytes
-> FStar.Pervasives.Lemma
(requires Some? (LowParse.Spec.Base.parse (LowParse.Spec.IfThenElse.parse_ifthenelse p) input)
)
(ensures
(let _ = LowParse.Spec.Base.parse (LowParse.Spec.IfThenElse.parse_ifthen... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Spec.IfThenElse.parse_ifthenelse_param",
"LowParse.Spec.IfThenElse.serialize_ifthenelse_param",
"LowParse.Bytes.bytes",
"LowParse.Spec.IfThenElse.__proj__Mkparse_ifthenelse_param__item__parse_ifthenelse_tag_t",
"LowParse.Spec.Base.consumed_length",
"LowParse.Spec.IfThenElse.__proj__Mkparse_ifthe... | [] | false | false | true | false | false | let parse_ifthenelse_parse_tag_payload
(#p: parse_ifthenelse_param)
(s: serialize_ifthenelse_param p)
(input: bytes)
: Lemma (requires (Some? (parse (parse_ifthenelse p) input)))
(ensures
(let Some (x, _) = parse (parse_ifthenelse p) input in
match parse p.parse_ifthenelse_... | parse_ifthenelse_eq p input;
let Some (t, consumed) = parse p.parse_ifthenelse_tag_parser input in
let input' = Seq.slice input consumed (Seq.length input) in
let Some (t1, _) =
parse (dsnd (p.parse_ifthenelse_payload_parser (p.parse_ifthenelse_tag_cond t))) input'
in
serialize_ifthenelse_synth_inverse' s t t1 | false |
LowParse.Spec.IfThenElse.fst | LowParse.Spec.IfThenElse.bare_serialize_ifthenelse_correct | val bare_serialize_ifthenelse_correct (#p: parse_ifthenelse_param) (s: serialize_ifthenelse_param p)
: Lemma (requires (p.parse_ifthenelse_tag_kind.parser_kind_subkind == Some ParserStrong))
(ensures (serializer_correct (parse_ifthenelse p) (bare_serialize_ifthenelse s))) | val bare_serialize_ifthenelse_correct (#p: parse_ifthenelse_param) (s: serialize_ifthenelse_param p)
: Lemma (requires (p.parse_ifthenelse_tag_kind.parser_kind_subkind == Some ParserStrong))
(ensures (serializer_correct (parse_ifthenelse p) (bare_serialize_ifthenelse s))) | let bare_serialize_ifthenelse_correct
(#p: parse_ifthenelse_param)
(s: serialize_ifthenelse_param p)
: Lemma
(requires (p.parse_ifthenelse_tag_kind.parser_kind_subkind == Some ParserStrong))
(ensures (serializer_correct (parse_ifthenelse p) (bare_serialize_ifthenelse s)))
= let prf
(x: p.parse_ifthenelse_t)... | {
"file_name": "src/lowparse/LowParse.Spec.IfThenElse.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 28,
"end_line": 134,
"start_col": 0,
"start_line": 114
} | module LowParse.Spec.IfThenElse
include LowParse.Spec.Combinators
module Seq = FStar.Seq
[@@(noextract_to "krml")]
inline_for_extraction
noeq
type parse_ifthenelse_param = {
parse_ifthenelse_tag_kind: parser_kind;
parse_ifthenelse_tag_t: Type;
parse_ifthenelse_tag_parser: parser parse_ifthenelse_tag_kind parse_... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowParse.Spec.Combinators.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Classical.fsti.checked"
],
"interface_file": false,
"source_file": "LowParse.S... | [
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "LowParse.Spec.Combinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse.Spec",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: LowParse.Spec.IfThenElse.serialize_ifthenelse_param p
-> FStar.Pervasives.Lemma
(requires
Mkparser_kind'?.parser_kind_subkind (Mkparse_ifthenelse_param?.parse_ifthenelse_tag_kind p) ==
FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong)
(ensures
LowParse.Spec.Base.seri... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Spec.IfThenElse.parse_ifthenelse_param",
"LowParse.Spec.IfThenElse.serialize_ifthenelse_param",
"FStar.Classical.forall_intro",
"LowParse.Spec.IfThenElse.__proj__Mkparse_ifthenelse_param__item__parse_ifthenelse_t",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"FStar.Pervasives.Native.tuple2"... | [] | false | false | true | false | false | let bare_serialize_ifthenelse_correct (#p: parse_ifthenelse_param) (s: serialize_ifthenelse_param p)
: Lemma (requires (p.parse_ifthenelse_tag_kind.parser_kind_subkind == Some ParserStrong))
(ensures (serializer_correct (parse_ifthenelse p) (bare_serialize_ifthenelse s))) =
| let prf (x: p.parse_ifthenelse_t)
: Lemma
(let sq = bare_serialize_ifthenelse s x in
parse (parse_ifthenelse p) sq == Some (x, Seq.length sq)) =
let sq = bare_serialize_ifthenelse s x in
parse_ifthenelse_eq p sq;
let (| t , y |) = s.serialize_ifthenelse_synth_recip x in
let sqt = serialize s.seria... | false |
Hacl.Impl.Blake2.Generic.fst | Hacl.Impl.Blake2.Generic.valid_m_spec | val valid_m_spec : a: Spec.Blake2.Definitions.alg -> Type0 | let valid_m_spec (a : Spec.alg) = m:m_spec{is_valid_blake2_config a m} | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 70,
"end_line": 30,
"start_col": 0,
"start_line": 30
} | module Hacl.Impl.Blake2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.LoopCombinators
module ST = FStar.HyperStack.ST
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
module Spec = Spec.Blake2
open Hacl.Impl.Blake2.Co... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"L... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Constants",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Blake2.Definitions.alg -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"Prims.b2t",
"Hacl.Impl.Blake2.Generic.is_valid_blake2_config"
] | [] | false | false | false | true | true | let valid_m_spec (a: Spec.alg) =
| m: m_spec{is_valid_blake2_config a m} | false | |
Vale.SHA.PPC64LE.Rounds.fst | Vale.SHA.PPC64LE.Rounds.va_lemma_Loop_rounds_48_63 | val va_lemma_Loop_rounds_48_63 : va_b0:va_code -> va_s0:va_state -> k_b:buffer128 -> block:block_w
-> hash_orig:hash256
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Loop_rounds_48_63 ()) va_s0 /\ va_get_ok va_s0 /\
(Vale.PPC64LE.Decls.validSrcAddrs128 (va_get_mem_heaplet 0 va_s0) (... | val va_lemma_Loop_rounds_48_63 : va_b0:va_code -> va_s0:va_state -> k_b:buffer128 -> block:block_w
-> hash_orig:hash256
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Loop_rounds_48_63 ()) va_s0 /\ va_get_ok va_s0 /\
(Vale.PPC64LE.Decls.validSrcAddrs128 (va_get_mem_heaplet 0 va_s0) (... | let va_lemma_Loop_rounds_48_63 va_b0 va_s0 k_b block hash_orig =
let (va_mods:va_mods_t) = [va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec
22; va_Mod_vec 21; va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16;
va_Mod_vec 15; va_Mod_vec 14; va_Mod_vec 13; va_Mod_v... | {
"file_name": "obj/Vale.SHA.PPC64LE.Rounds.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 391,
"start_col": 0,
"start_line": 367
} | module Vale.SHA.PPC64LE.Rounds
open Vale.Def.Opaque_s
open Vale.Def.Types_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.PPC64LE.Machine_s
open Vale.PPC64LE.Memory
open Vale.PPC64LE.Stack_i
open Vale.PPC64LE.State
open Vale.PPC64LE.Decls
open Vale... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fsti.checked",
"Vale.SHA.PPC64LE.SHA_helpers.fsti.checked",
"Vale.SHA.PPC64LE.Rounds.Core.fsti.checked",
"Vale.PPC64LE.State.fsti.checked",
"Vale.PPC64LE.Stack_i.fsti.checked",
"Vale.PPC64LE.QuickCodes.fsti.checked",
"Vale.PPC64... | [
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA.PPC64LE.Rounds.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Loops",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_b0: Vale.PPC64LE.Decls.va_code ->
va_s0: Vale.PPC64LE.Decls.va_state ->
k_b: Vale.PPC64LE.Memory.buffer128 ->
block: Vale.SHA.PPC64LE.SHA_helpers.block_w ->
hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256
-> Prims.Ghost (Vale.PPC64LE.Decls.va_state * Vale.PPC64LE.Decls.va_fuel) | Prims.Ghost | [] | [] | [
"Vale.PPC64LE.Decls.va_code",
"Vale.PPC64LE.Decls.va_state",
"Vale.PPC64LE.Memory.buffer128",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Vale.PPC64LE.QuickCodes.fuel",
"Prims.unit",
"FStar.Pervasives.Native.Mktuple2",
"Vale.PPC64LE.Decls.va_fuel",
"Vale.PPC64L... | [] | false | false | false | false | false | let va_lemma_Loop_rounds_48_63 va_b0 va_s0 k_b block hash_orig =
| let va_mods:va_mods_t =
[
va_Mod_vec 26; va_Mod_vec 25; va_Mod_vec 24; va_Mod_vec 23; va_Mod_vec 22; va_Mod_vec 21;
va_Mod_vec 20; va_Mod_vec 19; va_Mod_vec 18; va_Mod_vec 17; va_Mod_vec 16; va_Mod_vec 15;
va_Mod_vec 14; va_Mod_vec 13; va_Mod_vec 12; va_Mod_vec 11; va_Mod_vec 10; va_Mod_vec 9;
va_Mod_... | false |
Steel.ST.HigherReference.fst | Steel.ST.HigherReference._alloca | val _alloca (#a: Type) (x: a)
: ST (ref a)
emp
(fun r -> pts_to r full_perm x)
(requires True)
(ensures fun r -> not (is_null r)) | val _alloca (#a: Type) (x: a)
: ST (ref a)
emp
(fun r -> pts_to r full_perm x)
(requires True)
(ensures fun r -> not (is_null r)) | let _alloca (#a:Type) (x:a)
: ST (ref a)
emp
(fun r -> pts_to r full_perm x)
(requires True)
(ensures fun r -> not (is_null r))
= alloc x | {
"file_name": "lib/steel/Steel.ST.HigherReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 9,
"end_line": 114,
"start_col": 0,
"start_line": 108
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.ST.Coercions.fsti.checked",
"Steel.HigherReference.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST.HigherRef... | [
{
"abbrev": true,
"full_module": "Steel.HigherReference",
"short_module": "R"
},
{
"abbrev": false,
"full_module": "Steel.ST.Coercions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: a -> Steel.ST.Effect.ST (Steel.ST.HigherReference.ref a) | Steel.ST.Effect.ST | [] | [] | [
"Steel.ST.HigherReference.alloc",
"Steel.ST.HigherReference.ref",
"Steel.Effect.Common.emp",
"Steel.ST.HigherReference.pts_to",
"Steel.FractionalPermission.full_perm",
"Steel.Effect.Common.vprop",
"Prims.l_True",
"Prims.b2t",
"Prims.op_Negation",
"Steel.ST.HigherReference.is_null"
] | [] | false | true | false | false | false | let _alloca (#a: Type) (x: a)
: ST (ref a)
emp
(fun r -> pts_to r full_perm x)
(requires True)
(ensures fun r -> not (is_null r)) =
| alloc x | false |
Hacl.Impl.Blake2.Generic.fst | Hacl.Impl.Blake2.Generic.rounds_t | val rounds_t (a: Spec.alg) : size_t | val rounds_t (a: Spec.alg) : size_t | let rounds_t (a:Spec.alg): size_t = size (Spec.rounds a) | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 56,
"end_line": 79,
"start_col": 0,
"start_line": 79
} | module Hacl.Impl.Blake2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.LoopCombinators
module ST = FStar.HyperStack.ST
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
module Spec = Spec.Blake2
open Hacl.Impl.Blake2.Co... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"L... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Constants",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Blake2.Definitions.alg -> Lib.IntTypes.size_t | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Lib.IntTypes.size",
"Spec.Blake2.Definitions.rounds",
"Lib.IntTypes.size_t"
] | [] | false | false | false | true | false | let rounds_t (a: Spec.alg) : size_t =
| size (Spec.rounds a) | false |
Hacl.Impl.Blake2.Generic.fst | Hacl.Impl.Blake2.Generic.size_to_word | val size_to_word: al:Spec.alg -> s:size_t -> u:word_t al{u == Spec.nat_to_word al (v s)} | val size_to_word: al:Spec.alg -> s:size_t -> u:word_t al{u == Spec.nat_to_word al (v s)} | let size_to_word al s = match al with
| Spec.Blake2S -> size_to_uint32 s
| Spec.Blake2B -> size_to_uint64 s | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 36,
"end_line": 85,
"start_col": 0,
"start_line": 83
} | module Hacl.Impl.Blake2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.LoopCombinators
module ST = FStar.HyperStack.ST
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
module Spec = Spec.Blake2
open Hacl.Impl.Blake2.Co... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"L... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Constants",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | al: Spec.Blake2.Definitions.alg -> s: Lib.IntTypes.size_t
-> u31:
Hacl.Impl.Blake2.Core.word_t al
{u31 == Spec.Blake2.Definitions.nat_to_word al (Lib.IntTypes.v s)} | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Lib.IntTypes.size_t",
"Lib.IntTypes.size_to_uint32",
"Lib.IntTypes.size_to_uint64",
"Hacl.Impl.Blake2.Core.word_t",
"Prims.eq2",
"Spec.Blake2.Definitions.word_t",
"Spec.Blake2.Definitions.nat_to_word",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB"
] | [] | false | false | false | false | false | let size_to_word al s =
| match al with
| Spec.Blake2S -> size_to_uint32 s
| Spec.Blake2B -> size_to_uint64 s | false |
Hacl.Impl.Blake2.Generic.fst | Hacl.Impl.Blake2.Generic.get_sigma | val get_sigma:
s: size_t{v s < 160} ->
Stack Spec.sigma_elt_t
(requires (fun h -> True))
(ensures (fun h0 z h1 -> h0 == h1 /\ z == Lib.Sequence.(Spec.sigmaTable.[v s]))) | val get_sigma:
s: size_t{v s < 160} ->
Stack Spec.sigma_elt_t
(requires (fun h -> True))
(ensures (fun h0 z h1 -> h0 == h1 /\ z == Lib.Sequence.(Spec.sigmaTable.[v s]))) | let get_sigma s =
recall_contents sigmaTable Spec.sigmaTable;
index sigmaTable s | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 20,
"end_line": 65,
"start_col": 0,
"start_line": 63
} | module Hacl.Impl.Blake2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.LoopCombinators
module ST = FStar.HyperStack.ST
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
module Spec = Spec.Blake2
open Hacl.Impl.Blake2.Co... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"L... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Constants",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: Lib.IntTypes.size_t{Lib.IntTypes.v s < 160}
-> FStar.HyperStack.ST.Stack Spec.Blake2.Definitions.sigma_elt_t | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.IntTypes.size_t",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Lib.Buffer.index",
"Lib.Buffer.CONST",
"Spec.Blake2.Definitions.sigma_elt_t",
"FStar.UInt32.uint_to_t",
"Hacl.Impl.Blake2.Constants.sigmaTable",
"Prims.unit",
"Lib.Buffer.recal... | [] | false | true | false | false | false | let get_sigma s =
| recall_contents sigmaTable Spec.sigmaTable;
index sigmaTable s | false |
Hacl.Impl.Blake2.Generic.fst | Hacl.Impl.Blake2.Generic.compress_t | val compress_t : al: Spec.Blake2.Definitions.alg -> ms: Hacl.Impl.Blake2.Core.m_spec -> Type0 | let compress_t (al:Spec.alg) (ms:m_spec) =
wv:state_p al ms
-> s: state_p al ms
-> m: block_p al
-> offset: Spec.limb_t al
-> flag: bool ->
Stack unit
(requires (fun h -> live h wv /\ live h s /\ live h m /\ disjoint s m /\ disjoint wv s /\ disjoint wv m))
(ensures (fun h0 _ h1 -> modifies (loc s... | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 105,
"end_line": 447,
"start_col": 0,
"start_line": 438
} | module Hacl.Impl.Blake2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.LoopCombinators
module ST = FStar.HyperStack.ST
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
module Spec = Spec.Blake2
open Hacl.Impl.Blake2.Co... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"L... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Constants",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"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 | al: Spec.Blake2.Definitions.alg -> ms: Hacl.Impl.Blake2.Core.m_spec -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"Hacl.Impl.Blake2.Core.state_p",
"Hacl.Impl.Blake2.Core.block_p",
"Spec.Blake2.Definitions.limb_t",
"Prims.bool",
"Prims.unit",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"Lib.Buffer.live",
"Lib.Buffer.MUT",
"Hacl.Impl.Blake2... | [] | false | false | false | true | true | let compress_t (al: Spec.alg) (ms: m_spec) =
| wv: state_p al ms -> s: state_p al ms -> m: block_p al -> offset: Spec.limb_t al -> flag: bool
-> Stack unit
(requires
(fun h ->
live h wv /\ live h s /\ live h m /\ disjoint s m /\ disjoint wv s /\ disjoint wv m))
(ensures
(fun h0 _ h1 ->
modifies (loc s |+| loc wv... | false | |
Hacl.Impl.Blake2.Generic.fst | Hacl.Impl.Blake2.Generic.blake2_update_last_st | val blake2_update_last_st : al: Spec.Blake2.Definitions.alg -> ms: Hacl.Impl.Blake2.Core.m_spec -> Type0 | let blake2_update_last_st (al:Spec.alg) (ms:m_spec) =
#len:size_t
-> wv: state_p al ms
-> hash: state_p al ms
-> prev: Spec.limb_t al{v prev + v len <= Spec.max_limb al}
-> rem: size_t {v rem <= v len /\ v rem <= Spec.size_block al}
-> d: lbuffer uint8 len ->
Stack unit
(requires (fun h -> live h wv ... | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 119,
"end_line": 515,
"start_col": 0,
"start_line": 505
} | module Hacl.Impl.Blake2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.LoopCombinators
module ST = FStar.HyperStack.ST
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
module Spec = Spec.Blake2
open Hacl.Impl.Blake2.Co... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"L... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Constants",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"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 | al: Spec.Blake2.Definitions.alg -> ms: Hacl.Impl.Blake2.Core.m_spec -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"Lib.IntTypes.size_t",
"Hacl.Impl.Blake2.Core.state_p",
"Spec.Blake2.Definitions.limb_t",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"Lib.IntTypes.v",
"Spec.Blake2.Definitions.limb_inttype",
"Lib.IntTypes.SEC",
"... | [] | false | false | false | true | true | let blake2_update_last_st (al: Spec.alg) (ms: m_spec) =
|
#len: size_t ->
wv: state_p al ms ->
hash: state_p al ms ->
prev: Spec.limb_t al {v prev + v len <= Spec.max_limb al} ->
rem: size_t{v rem <= v len /\ v rem <= Spec.size_block al} ->
d: lbuffer uint8 len
-> Stack unit
(requires
(fun h ->
live h wv /\ live h hash /\ l... | false | |
Hacl.Impl.Blake2.Generic.fst | Hacl.Impl.Blake2.Generic.get_sigma_sub | val get_sigma_sub:
start: size_t ->
i: size_t{v i < 16 /\ v start + v i < 160} ->
Stack Spec.sigma_elt_t
(requires (fun h -> True))
(ensures (fun h0 z h1 -> h0 == h1 /\ v z == v (Seq.index Spec.sigmaTable (v start + v i)))) | val get_sigma_sub:
start: size_t ->
i: size_t{v i < 16 /\ v start + v i < 160} ->
Stack Spec.sigma_elt_t
(requires (fun h -> True))
(ensures (fun h0 z h1 -> h0 == h1 /\ v z == v (Seq.index Spec.sigmaTable (v start + v i)))) | let get_sigma_sub start i = get_sigma (start +. i) | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 50,
"end_line": 76,
"start_col": 0,
"start_line": 76
} | module Hacl.Impl.Blake2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.LoopCombinators
module ST = FStar.HyperStack.ST
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
module Spec = Spec.Blake2
open Hacl.Impl.Blake2.Co... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"L... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Constants",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
start: Lib.IntTypes.size_t ->
i: Lib.IntTypes.size_t{Lib.IntTypes.v i < 16 /\ Lib.IntTypes.v start + Lib.IntTypes.v i < 160}
-> FStar.HyperStack.ST.Stack Spec.Blake2.Definitions.sigma_elt_t | FStar.HyperStack.ST.Stack | [] | [] | [
"Lib.IntTypes.size_t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Prims.op_Addition",
"Hacl.Impl.Blake2.Generic.get_sigma",
"Lib.IntTypes.op_Plus_Dot",
"Spec.Blake2.Definitions.sigma_elt_t"
] | [] | false | true | false | false | false | let get_sigma_sub start i =
| get_sigma (start +. i) | false |
Hacl.Impl.Blake2.Generic.fst | Hacl.Impl.Blake2.Generic.blake2_update_block_st | val blake2_update_block_st : al: Spec.Blake2.Definitions.alg -> ms: Hacl.Impl.Blake2.Core.m_spec -> Type0 | let blake2_update_block_st (al:Spec.alg) (ms:m_spec) =
wv:state_p al ms
-> hash: state_p al ms
-> flag: bool
-> totlen: Spec.limb_t al{v totlen <= Spec.max_limb al}
-> d: block_p al ->
Stack unit
(requires (fun h -> live h wv /\ live h hash /\ live h d /\ disjoint hash d /\ disjoint wv hash /\ disjoin... | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 119,
"end_line": 472,
"start_col": 0,
"start_line": 463
} | module Hacl.Impl.Blake2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.LoopCombinators
module ST = FStar.HyperStack.ST
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
module Spec = Spec.Blake2
open Hacl.Impl.Blake2.Co... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"L... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Constants",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"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 | al: Spec.Blake2.Definitions.alg -> ms: Hacl.Impl.Blake2.Core.m_spec -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"Hacl.Impl.Blake2.Core.state_p",
"Prims.bool",
"Spec.Blake2.Definitions.limb_t",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Lib.IntTypes.v",
"Spec.Blake2.Definitions.limb_inttype",
"Lib.IntTypes.SEC",
"Spec.Blake2.Definitions.max_limb... | [] | false | false | false | true | true | let blake2_update_block_st (al: Spec.alg) (ms: m_spec) =
|
wv: state_p al ms ->
hash: state_p al ms ->
flag: bool ->
totlen: Spec.limb_t al {v totlen <= Spec.max_limb al} ->
d: block_p al
-> Stack unit
(requires
(fun h ->
live h wv /\ live h hash /\ live h d /\ disjoint hash d /\ disjoint wv hash /\
disjoint wv d))
... | false | |
Steel.ST.HigherReference.fst | Steel.ST.HigherReference._push_frame | val _push_frame: Prims.unit -> STT unit emp (fun _ -> _stack_frame) | val _push_frame: Prims.unit -> STT unit emp (fun _ -> _stack_frame) | let _push_frame () : STT unit emp (fun _ -> _stack_frame) =
rewrite (pure True) _stack_frame | {
"file_name": "lib/steel/Steel.ST.HigherReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 34,
"end_line": 105,
"start_col": 0,
"start_line": 104
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.ST.Coercions.fsti.checked",
"Steel.HigherReference.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST.HigherRef... | [
{
"abbrev": true,
"full_module": "Steel.HigherReference",
"short_module": "R"
},
{
"abbrev": false,
"full_module": "Steel.ST.Coercions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: Prims.unit -> Steel.ST.Effect.STT Prims.unit | Steel.ST.Effect.STT | [] | [] | [
"Prims.unit",
"Steel.ST.Util.rewrite",
"FStar.Ghost.hide",
"FStar.Set.set",
"Steel.Memory.iname",
"FStar.Set.empty",
"Steel.ST.Util.pure",
"Prims.l_True",
"Steel.ST.HigherReference._stack_frame",
"Steel.Effect.Common.emp",
"Steel.Effect.Common.vprop"
] | [] | false | true | false | false | false | let _push_frame () : STT unit emp (fun _ -> _stack_frame) =
| rewrite (pure True) _stack_frame | false |
Hacl.Impl.Blake2.Generic.fst | Hacl.Impl.Blake2.Generic.blake2_init_st | val blake2_init_st : al: Spec.Blake2.Definitions.alg -> ms: Hacl.Impl.Blake2.Core.m_spec -> Type0 | let blake2_init_st (al:Spec.alg) (ms:m_spec) =
hash: state_p al ms
-> kk: size_t{v kk <= Spec.max_key al}
-> nn: size_t{1 <= v nn /\ v nn <= Spec.max_output al} ->
Stack unit
(requires (fun h -> live h hash))
(ensures (fun h0 _ h1 -> modifies (loc hash) h0 h1 /\
state_v h1 hash == Spec.blake2_... | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 97,
"end_line": 552,
"start_col": 0,
"start_line": 545
} | module Hacl.Impl.Blake2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.LoopCombinators
module ST = FStar.HyperStack.ST
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
module Spec = Spec.Blake2
open Hacl.Impl.Blake2.Co... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"L... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Constants",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"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 | al: Spec.Blake2.Definitions.alg -> ms: Hacl.Impl.Blake2.Core.m_spec -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"Hacl.Impl.Blake2.Core.state_p",
"Lib.IntTypes.size_t",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Spec.Blake2.Definitions.max_key",
"Prims.l_and",
"Spec.Blake2.Definitions.m... | [] | false | false | false | true | true | let blake2_init_st (al: Spec.alg) (ms: m_spec) =
|
hash: state_p al ms ->
kk: size_t{v kk <= Spec.max_key al} ->
nn: size_t{1 <= v nn /\ v nn <= Spec.max_output al}
-> Stack unit
(requires (fun h -> live h hash))
(ensures
(fun h0 _ h1 ->
modifies (loc hash) h0 h1 /\
state_v h1 hash ==
Spec.blake2_in... | false | |
Hacl.Impl.Blake2.Generic.fst | Hacl.Impl.Blake2.Generic.g1 | val g1: #al:Spec.alg -> #m:m_spec -> wv:state_p al m -> a:index_t -> b:index_t -> r:rotval (Spec.wt al) ->
Stack unit
(requires (fun h -> live h wv /\ a <> b))
(ensures (fun h0 _ h1 -> modifies (loc wv) h0 h1
/\ (state_v h1 wv) == Spec.g1 al (state_v h0 wv) (v a) (v b) r)) | val g1: #al:Spec.alg -> #m:m_spec -> wv:state_p al m -> a:index_t -> b:index_t -> r:rotval (Spec.wt al) ->
Stack unit
(requires (fun h -> live h wv /\ a <> b))
(ensures (fun h0 _ h1 -> modifies (loc wv) h0 h1
/\ (state_v h1 wv) == Spec.g1 al (state_v h0 wv) (v a) (v b) r)) | let g1 #al #m wv a b r =
let h0 = ST.get() in
let wv_a = rowi wv a in
let wv_b = rowi wv b in
xor_row wv_a wv_b;
ror_row wv_a r;
let h2 = ST.get() in
Lib.Sequence.eq_intro (state_v h2 wv) (Spec.g1 al (state_v h0 wv) (v a) (v b) r) | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 82,
"end_line": 111,
"start_col": 0,
"start_line": 104
} | module Hacl.Impl.Blake2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.LoopCombinators
module ST = FStar.HyperStack.ST
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
module Spec = Spec.Blake2
open Hacl.Impl.Blake2.Co... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"L... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Constants",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
wv: Hacl.Impl.Blake2.Core.state_p al m ->
a: Hacl.Impl.Blake2.Core.index_t ->
b: Hacl.Impl.Blake2.Core.index_t ->
r: Lib.IntTypes.rotval (Spec.Blake2.Definitions.wt al)
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"Hacl.Impl.Blake2.Core.state_p",
"Hacl.Impl.Blake2.Core.index_t",
"Lib.IntTypes.rotval",
"Spec.Blake2.Definitions.wt",
"Lib.Sequence.eq_intro",
"Spec.Blake2.Definitions.row",
"Hacl.Impl.Blake2.Core.state_v",
"Spec.Blake2.g1",
"Lib.In... | [] | false | true | false | false | false | let g1 #al #m wv a b r =
| let h0 = ST.get () in
let wv_a = rowi wv a in
let wv_b = rowi wv b in
xor_row wv_a wv_b;
ror_row wv_a r;
let h2 = ST.get () in
Lib.Sequence.eq_intro (state_v h2 wv) (Spec.g1 al (state_v h0 wv) (v a) (v b) r) | false |
Hacl.Impl.Blake2.Generic.fst | Hacl.Impl.Blake2.Generic.size_to_limb | val size_to_limb: al:Spec.alg -> s:size_t -> u:Spec.limb_t al{u == Spec.nat_to_limb al (v s)} | val size_to_limb: al:Spec.alg -> s:size_t -> u:Spec.limb_t al{u == Spec.nat_to_limb al (v s)} | let size_to_limb al s = match al with
| Spec.Blake2S -> size_to_uint64 s
| Spec.Blake2B -> to_u128 (size_to_uint64 s) | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 46,
"end_line": 91,
"start_col": 0,
"start_line": 89
} | module Hacl.Impl.Blake2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.LoopCombinators
module ST = FStar.HyperStack.ST
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
module Spec = Spec.Blake2
open Hacl.Impl.Blake2.Co... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"L... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Constants",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | al: Spec.Blake2.Definitions.alg -> s: Lib.IntTypes.size_t
-> u37:
Spec.Blake2.Definitions.limb_t al
{u37 == Spec.Blake2.Definitions.nat_to_limb al (Lib.IntTypes.v s)} | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Lib.IntTypes.size_t",
"Lib.IntTypes.size_to_uint64",
"Lib.IntTypes.to_u128",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Spec.Blake2.Definitions.limb_t",
"Prims.eq2",
"Spec.Blake2.Definitions.nat_to_limb",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB"
] | [] | false | false | false | false | false | let size_to_limb al s =
| match al with
| Spec.Blake2S -> size_to_uint64 s
| Spec.Blake2B -> to_u128 (size_to_uint64 s) | false |
Hacl.Impl.Blake2.Generic.fst | Hacl.Impl.Blake2.Generic.get_iv | val get_iv:
a:Spec.alg
-> s: size_t{size_v s < 8} ->
Stack (word_t a)
(requires (fun h -> True))
(ensures (fun h0 z h1 -> h0 == h1 /\
v z == v (Seq.index (Spec.ivTable a) (v s)))) | val get_iv:
a:Spec.alg
-> s: size_t{size_v s < 8} ->
Stack (word_t a)
(requires (fun h -> True))
(ensures (fun h0 z h1 -> h0 == h1 /\
v z == v (Seq.index (Spec.ivTable a) (v s)))) | let get_iv a s =
recall_contents #(Spec.pub_word_t Spec.Blake2S) #8ul ivTable_S (Spec.ivTable Spec.Blake2S);
recall_contents #(Spec.pub_word_t Spec.Blake2B) #8ul ivTable_B (Spec.ivTable Spec.Blake2B);
[@inline_let]
let ivTable: (x:glbuffer (Spec.pub_word_t a) 8ul{witnessed x (Spec.ivTable a) /\ recallable x}) =... | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 23,
"end_line": 53,
"start_col": 0,
"start_line": 43
} | module Hacl.Impl.Blake2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.LoopCombinators
module ST = FStar.HyperStack.ST
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
module Spec = Spec.Blake2
open Hacl.Impl.Blake2.Co... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"L... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Constants",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Blake2.Definitions.alg -> s: Lib.IntTypes.size_t{Lib.IntTypes.size_v s < 8}
-> FStar.HyperStack.ST.Stack (Hacl.Impl.Blake2.Core.word_t a) | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Blake2.Definitions.alg",
"Lib.IntTypes.size_t",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.IntTypes.size_v",
"Lib.IntTypes.secret",
"Spec.Blake2.Definitions.wt",
"Hacl.Impl.Blake2.Core.word_t",
"Spec.Blake2.Definitions.pub_word_t",
"Lib.Buffer.index",
"Lib.Buffer.CONST",
"FStar.UInt32.uint_t... | [] | false | true | false | false | false | let get_iv a s =
| recall_contents #(Spec.pub_word_t Spec.Blake2S) #8ul ivTable_S (Spec.ivTable Spec.Blake2S);
recall_contents #(Spec.pub_word_t Spec.Blake2B) #8ul ivTable_B (Spec.ivTable Spec.Blake2B);
[@@ inline_let ]let ivTable:(x:
glbuffer (Spec.pub_word_t a) 8ul {witnessed x (Spec.ivTable a) /\ recallable x}) =
match a with
| ... | false |
Hacl.Impl.Blake2.Generic.fst | Hacl.Impl.Blake2.Generic.blake2_compress0 | val blake2_compress0:
#al:Spec.alg
-> m_s: block_p al
-> m_w: block_w al
-> Stack unit
(requires (fun h -> live h m_s /\ live h m_w /\ disjoint m_s m_w))
(ensures (fun h0 _ h1 -> modifies (loc m_w) h0 h1
/\ as_seq h1 m_w == Spec.blake2_compress0 al (as_seq h0 m_s))) | val blake2_compress0:
#al:Spec.alg
-> m_s: block_p al
-> m_w: block_w al
-> Stack unit
(requires (fun h -> live h m_s /\ live h m_w /\ disjoint m_s m_w))
(ensures (fun h0 _ h1 -> modifies (loc m_w) h0 h1
/\ as_seq h1 m_w == Spec.blake2_compress0 al (as_seq h0 m_s))) | let blake2_compress0 #al m_s m_w =
uints_from_bytes_le m_w m_s | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 29,
"end_line": 317,
"start_col": 0,
"start_line": 316
} | module Hacl.Impl.Blake2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.LoopCombinators
module ST = FStar.HyperStack.ST
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
module Spec = Spec.Blake2
open Hacl.Impl.Blake2.Co... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"L... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Constants",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"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 | m_s: Hacl.Impl.Blake2.Core.block_p al -> m_w: Hacl.Impl.Blake2.Core.block_w al
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.block_p",
"Hacl.Impl.Blake2.Core.block_w",
"Lib.ByteBuffer.uints_from_bytes_le",
"Spec.Blake2.Definitions.wt",
"Lib.IntTypes.SEC",
"FStar.UInt32.__uint_to_t",
"Prims.unit"
] | [] | false | true | false | false | false | let blake2_compress0 #al m_s m_w =
| uints_from_bytes_le m_w m_s | false |
Steel.ST.HigherReference.fst | Steel.ST.HigherReference.share | val share (#a:Type)
(#uses:_)
(#p:perm)
(#v:erased a)
(r:ref a)
: STGhostT unit uses
(pts_to r p v)
(fun _ -> pts_to r (half_perm p) v `star` pts_to r (half_perm p) v) | val share (#a:Type)
(#uses:_)
(#p:perm)
(#v:erased a)
(r:ref a)
: STGhostT unit uses
(pts_to r p v)
(fun _ -> pts_to r (half_perm p) v `star` pts_to r (half_perm p) v) | let share (#a:Type)
(#uses:_)
(#p:perm)
(#v:erased a)
(r:ref a)
: STGhostT unit uses
(pts_to r p v)
(fun _ -> pts_to r (half_perm p) v `star` pts_to r (half_perm p) v)
= coerce_ghost (fun _ -> R.share r) | {
"file_name": "lib/steel/Steel.ST.HigherReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 37,
"end_line": 176,
"start_col": 0,
"start_line": 168
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.ST.Coercions.fsti.checked",
"Steel.HigherReference.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST.HigherRef... | [
{
"abbrev": true,
"full_module": "Steel.HigherReference",
"short_module": "R"
},
{
"abbrev": false,
"full_module": "Steel.ST.Coercions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Steel.ST.HigherReference.ref a -> Steel.ST.Effect.Ghost.STGhostT Prims.unit | Steel.ST.Effect.Ghost.STGhostT | [] | [] | [
"Steel.Memory.inames",
"Steel.FractionalPermission.perm",
"FStar.Ghost.erased",
"Steel.ST.HigherReference.ref",
"Steel.ST.Coercions.coerce_ghost",
"Prims.unit",
"Steel.Effect.Common.VUnit",
"Steel.Effect.Common.to_vprop'",
"Steel.HigherReference.pts_to_sl",
"FStar.Ghost.reveal",
"Steel.Effect.Co... | [] | false | true | false | false | false | let share (#a: Type) (#uses: _) (#p: perm) (#v: erased a) (r: ref a)
: STGhostT unit
uses
(pts_to r p v)
(fun _ -> (pts_to r (half_perm p) v) `star` (pts_to r (half_perm p) v)) =
| coerce_ghost (fun _ -> R.share r) | false |
Steel.ST.HigherReference.fst | Steel.ST.HigherReference.pts_to_not_null | val pts_to_not_null (#a:Type)
(#opened:inames)
(#p:perm)
(#v:a)
(r:ref a)
: STGhost unit opened
(pts_to r p v)
(fun _ -> pts_to r p v)
(requires True)
(ensures fun _ -> r =!= null) | val pts_to_not_null (#a:Type)
(#opened:inames)
(#p:perm)
(#v:a)
(r:ref a)
: STGhost unit opened
(pts_to r p v)
(fun _ -> pts_to r p v)
(requires True)
(ensures fun _ -> r =!= null) | let pts_to_not_null #a #opened #p #v r
= extract_fact #opened (pts_to r p v) (r =!= null) (R.pts_to_not_null r p v);
() | {
"file_name": "lib/steel/Steel.ST.HigherReference.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 6,
"end_line": 58,
"start_col": 0,
"start_line": 56
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.ST.Util.fsti.checked",
"Steel.ST.Coercions.fsti.checked",
"Steel.HigherReference.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST.HigherRef... | [
{
"abbrev": true,
"full_module": "Steel.HigherReference",
"short_module": "R"
},
{
"abbrev": false,
"full_module": "Steel.ST.Coercions",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Steel.ST.HigherReference.ref a -> Steel.ST.Effect.Ghost.STGhost Prims.unit | Steel.ST.Effect.Ghost.STGhost | [] | [] | [
"Steel.Memory.inames",
"Steel.FractionalPermission.perm",
"Steel.ST.HigherReference.ref",
"Prims.unit",
"Steel.ST.Effect.Ghost.extract_fact",
"Steel.ST.HigherReference.pts_to",
"Prims.l_not",
"Prims.eq2",
"Steel.ST.HigherReference.null",
"Steel.HigherReference.pts_to_not_null"
] | [] | false | true | false | false | false | let pts_to_not_null #a #opened #p #v r =
| extract_fact #opened (pts_to r p v) (r =!= null) (R.pts_to_not_null r p v);
() | false |
Hacl.Impl.Blake2.Generic.fst | Hacl.Impl.Blake2.Generic.blake2_malloc_st | val blake2_malloc_st : al: Spec.Blake2.Definitions.alg -> ms: Hacl.Impl.Blake2.Core.m_spec -> Type0 | let blake2_malloc_st (al:Spec.alg) (ms:m_spec) = r:rid -> ST.ST (state_p al ms)
(requires (fun h ->
ST.is_eternal_region r))
(ensures (fun h0 s h1 ->
live h1 s /\
M.(modifies loc_none h0 h1) /\
B.fresh_loc (loc_addr_of_buffer s) h0 h1 /\
(M.loc_includes (M.loc_region_only true r) (loc_addr_of_bu... | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 1057,
"start_col": 0,
"start_line": 1049
} | module Hacl.Impl.Blake2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.LoopCombinators
module ST = FStar.HyperStack.ST
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
module Spec = Spec.Blake2
open Hacl.Impl.Blake2.Co... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"L... | [
{
"abbrev": true,
"full_module": "LowStar.Modifies",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Core",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | al: Spec.Blake2.Definitions.alg -> ms: Hacl.Impl.Blake2.Core.m_spec -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"FStar.Monotonic.HyperHeap.rid",
"Hacl.Impl.Blake2.Core.state_p",
"FStar.Monotonic.HyperStack.mem",
"FStar.HyperStack.ST.is_eternal_region",
"Prims.l_and",
"Lib.Buffer.live",
"Lib.Buffer.MUT",
"Hacl.Impl.Blake2.Core.element_t",
"LowS... | [] | false | false | false | true | true | let blake2_malloc_st (al: Spec.alg) (ms: m_spec) =
| r: rid
-> ST.ST (state_p al ms)
(requires (fun h -> ST.is_eternal_region r))
(ensures
(fun h0 s h1 ->
live h1 s /\ M.(modifies loc_none h0 h1) /\ B.fresh_loc (loc_addr_of_buffer s) h0 h1 /\
(M.loc_includes (M.loc_region_only true r) (loc_addr_of_buffer s)) /\ freeable s)) | false | |
Hacl.Impl.Blake2.Generic.fst | Hacl.Impl.Blake2.Generic.g2z | val g2z: #al:Spec.alg -> #m:m_spec -> wv:state_p al m -> a:index_t -> b:index_t ->
Stack unit
(requires (fun h -> live h wv /\ a <> b))
(ensures (fun h0 _ h1 -> modifies (loc wv) h0 h1
/\ state_v h1 wv == Spec.g2z al (state_v h0 wv) (v a) (v b))) | val g2z: #al:Spec.alg -> #m:m_spec -> wv:state_p al m -> a:index_t -> b:index_t ->
Stack unit
(requires (fun h -> live h wv /\ a <> b))
(ensures (fun h0 _ h1 -> modifies (loc wv) h0 h1
/\ state_v h1 wv == Spec.g2z al (state_v h0 wv) (v a) (v b))) | let g2z #al #m wv a b =
let h0 = ST.get() in
let wv_a = rowi wv a in
let wv_b = rowi wv b in
add_row wv_a wv_b;
let h1 = ST.get() in
Lib.Sequence.eq_intro (state_v h1 wv) (Spec.g2z al (state_v h0 wv) (v a) (v b)) | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 82,
"end_line": 145,
"start_col": 0,
"start_line": 139
} | module Hacl.Impl.Blake2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.LoopCombinators
module ST = FStar.HyperStack.ST
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
module Spec = Spec.Blake2
open Hacl.Impl.Blake2.Co... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"L... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Constants",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"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 |
wv: Hacl.Impl.Blake2.Core.state_p al m ->
a: Hacl.Impl.Blake2.Core.index_t ->
b: Hacl.Impl.Blake2.Core.index_t
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"Hacl.Impl.Blake2.Core.state_p",
"Hacl.Impl.Blake2.Core.index_t",
"Lib.Sequence.eq_intro",
"Spec.Blake2.Definitions.row",
"Hacl.Impl.Blake2.Core.state_v",
"Spec.Blake2.g2z",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
... | [] | false | true | false | false | false | let g2z #al #m wv a b =
| let h0 = ST.get () in
let wv_a = rowi wv a in
let wv_b = rowi wv b in
add_row wv_a wv_b;
let h1 = ST.get () in
Lib.Sequence.eq_intro (state_v h1 wv) (Spec.g2z al (state_v h0 wv) (v a) (v b)) | false |
CQueue.Cell.fst | CQueue.Cell.elim_ccell_is_lvalue | val elim_ccell_is_lvalue
(#opened: _)
(#a: Type)
(c: ccell_ptrvalue a)
: SteelGhost unit opened
(ccell_is_lvalue c)
(fun _ -> emp)
(fun _ -> True)
(fun h _ _ ->
(h (ccell_is_lvalue c) <: ccell_ptrvalue a) == c /\
ccell_ptrvalue_is_null c == false
) | val elim_ccell_is_lvalue
(#opened: _)
(#a: Type)
(c: ccell_ptrvalue a)
: SteelGhost unit opened
(ccell_is_lvalue c)
(fun _ -> emp)
(fun _ -> True)
(fun h _ _ ->
(h (ccell_is_lvalue c) <: ccell_ptrvalue a) == c /\
ccell_ptrvalue_is_null c == false
) | let elim_ccell_is_lvalue
#_ #a c
=
change_slprop_rel
(ccell_is_lvalue c)
(ccell_is_lvalue0 c)
(fun x y -> x == y)
(fun m ->
assert_norm (hp_of (ccell_is_lvalue c) == hp_of (ccell_is_lvalue0 c));
assert_norm (sel_of (ccell_is_lvalue c) m === sel_of (ccell_is_lvalue0 c) m)
);
elim_vr... | {
"file_name": "share/steel/examples/steel/CQueue.Cell.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 45,
"end_line": 85,
"start_col": 0,
"start_line": 73
} | module CQueue.Cell
(* A Steel model of C cell structs *)
#push-options "--__no_positivity"
noeq
type mcell (a: Type0) = {
data: ref a;
next: ref (mcell a);
all_or_none_null: squash (is_null data == is_null next); // TODO: /\ freeable data /\ freeable next, if freeable is implemented as a pure space proposition ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "CQueue.Cell.fst"
} | [
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect.Atomic",
"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 | c: CQueue.Cell.ccell_ptrvalue a -> Steel.Effect.Atomic.SteelGhost Prims.unit | Steel.Effect.Atomic.SteelGhost | [] | [] | [
"Steel.Memory.inames",
"CQueue.Cell.ccell_ptrvalue",
"Steel.Effect.Atomic.elim_vrefine",
"Steel.Effect.Common.emp",
"CQueue.Cell.ccell_is_lvalue_refine",
"Prims.unit",
"Steel.Effect.Atomic.elim_vrewrite",
"Steel.Effect.Common.vrefine",
"CQueue.Cell.ccell_lvalue",
"CQueue.Cell.ccell_is_lvalue_rewri... | [] | false | true | false | false | false | let elim_ccell_is_lvalue #_ #a c =
| change_slprop_rel (ccell_is_lvalue c)
(ccell_is_lvalue0 c)
(fun x y -> x == y)
(fun m ->
assert_norm (hp_of (ccell_is_lvalue c) == hp_of (ccell_is_lvalue0 c));
assert_norm (sel_of (ccell_is_lvalue c) m === sel_of (ccell_is_lvalue0 c) m));
elim_vrewrite (emp `vrefine` (ccell_is_lvalue_refine c)) (ccell... | false |
Hacl.Impl.Blake2.Generic.fst | Hacl.Impl.Blake2.Generic.split_blocks | val split_blocks: al:Spec.alg -> len:size_t -> r:(size_t & size_t){
let (x,y) = r in
let (sx,sy) = Spec.split al (v len) in
sx == v x /\
sy == v y} | val split_blocks: al:Spec.alg -> len:size_t -> r:(size_t & size_t){
let (x,y) = r in
let (sx,sy) = Spec.split al (v len) in
sx == v x /\
sy == v y} | let split_blocks al len =
let nb = len /. size_block al in
let rem = len %. size_block al in
(if rem =. 0ul && nb >. 0ul then nb -! 1ul else nb),
(if rem =. 0ul && nb >. 0ul then size_block al else rem) | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Generic.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 58,
"end_line": 834,
"start_col": 0,
"start_line": 830
} | module Hacl.Impl.Blake2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.LoopCombinators
module ST = FStar.HyperStack.ST
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
module Spec = Spec.Blake2
open Hacl.Impl.Blake2.Co... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"L... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Core",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Blake2.Constants",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | al: Spec.Blake2.Definitions.alg -> len: Lib.IntTypes.size_t
-> r:
(Lib.IntTypes.size_t * Lib.IntTypes.size_t)
{ let _ = r in
(let FStar.Pervasives.Native.Mktuple2 #_ #_ x y = _ in
let _ = Spec.Blake2.split al (Lib.IntTypes.v len) in
(let FStar.Pervasives.Native.Mktuple2 #_ #_ sx ... | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Lib.IntTypes.size_t",
"FStar.Pervasives.Native.Mktuple2",
"Prims.op_AmpAmp",
"Lib.IntTypes.op_Equals_Dot",
"Lib.IntTypes.U32",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.op_Greater_Dot",
"Lib.IntTypes.op_Subtraction_Bang",
"Lib.IntTypes.PUB",
"Prims.bool",
"Hacl.... | [] | false | false | false | false | false | let split_blocks al len =
| let nb = len /. size_block al in
let rem = len %. size_block al in
(if rem =. 0ul && nb >. 0ul then nb -! 1ul else nb),
(if rem =. 0ul && nb >. 0ul then size_block al else rem) | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.