file_name stringlengths 5 52 | name stringlengths 4 95 | original_source_type stringlengths 0 23k | source_type stringlengths 9 23k | source_definition stringlengths 9 57.9k | source dict | source_range dict | file_context stringlengths 0 721k | dependencies dict | opens_and_abbrevs listlengths 2 94 | vconfig dict | interleaved bool 1
class | verbose_type stringlengths 1 7.42k | effect stringclasses 118
values | effect_flags listlengths 0 2 | mutual_with listlengths 0 11 | ideal_premises listlengths 0 236 | proof_features listlengths 0 1 | is_simple_lemma bool 2
classes | is_div bool 2
classes | is_proof bool 2
classes | is_simply_typed bool 2
classes | is_type bool 2
classes | partial_definition stringlengths 5 3.99k | completed_definiton stringlengths 1 1.63M | isa_cross_project_example bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_def | val make_seperated_hash_def (a b c d e f g h: nat32)
: (hash:
words_state SHA2_256
{ length hash == 8 /\ hash.[ 0 ] == to_uint32 a /\ hash.[ 1 ] == to_uint32 b /\
hash.[ 2 ] == to_uint32 c /\ hash.[ 3 ] == to_uint32 d /\ hash.[ 4 ] == to_uint32 e /\
hash.[ 5 ] == to_uint32 f /\ has... | val make_seperated_hash_def (a b c d e f g h: nat32)
: (hash:
words_state SHA2_256
{ length hash == 8 /\ hash.[ 0 ] == to_uint32 a /\ hash.[ 1 ] == to_uint32 b /\
hash.[ 2 ] == to_uint32 c /\ hash.[ 3 ] == to_uint32 d /\ hash.[ 4 ] == to_uint32 e /\
hash.[ 5 ] == to_uint32 f /\ has... | let make_seperated_hash_def (a b c d e f g h:nat32) :
(hash:words_state SHA2_256 {
length hash == 8 /\
hash.[0] == to_uint32 a /\
hash.[1] == to_uint32 b /\
hash.[2] == to_uint32 c /\
hash.[3] == to_uint32 d /\
hash.[4] == to_uint32 e /\
hash.[5] == to_ui... | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 8,
"end_line": 293,
"start_col": 0,
"start_line": 267
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Vale.Def.Words_s.nat32 ->
b: Vale.Def.Words_s.nat32 ->
c: Vale.Def.Words_s.nat32 ->
d: Vale.Def.Words_s.nat32 ->
e: Vale.Def.Words_s.nat32 ->
f: Vale.Def.Words_s.nat32 ->
g: Vale.Def.Words_s.nat32 ->
h: Vale.Def.Words_s.nat32
-> hash:
Spec.Hash.Definitions.words_state Spec.Hash... | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Words_s.nat32",
"Prims.unit",
"FStar.Seq.Properties.elim_of_list",
"Spec.Hash.Definitions.word",
"Spec.Hash.Definitions.SHA2_256",
"Prims._assert",
"Prims.eq2",
"Prims.int",
"FStar.Seq.Base.length",
"FStar.Seq.Base.seq",
"Prims.nat",
"FStar.List.Tot.Base.length",
"FStar.Seq.Base.se... | [] | false | false | false | false | false | let make_seperated_hash_def (a b c d e f g h: nat32)
: (hash:
words_state SHA2_256
{ length hash == 8 /\ hash.[ 0 ] == to_uint32 a /\ hash.[ 1 ] == to_uint32 b /\
hash.[ 2 ] == to_uint32 c /\ hash.[ 3 ] == to_uint32 d /\ hash.[ 4 ] == to_uint32 e /\
hash.[ 5 ] == to_uint32 f /\ has... | let a = to_uint32 a in
let b = to_uint32 b in
let c = to_uint32 c in
let d = to_uint32 d in
let e = to_uint32 e in
let f = to_uint32 f in
let g = to_uint32 g in
let h = to_uint32 h in
let l = [a; b; c; d; e; f; g; h] in
assert_norm (List.length l == 8);
let hash = seq_of_list l in
assert (length hash == 8);
elim_of_lis... | false |
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.lemma_vsel32 | val lemma_vsel32 (a b c:nat32) : Lemma
(ensures (isel32 a b c = (iand32 c a) *^ (iand32 (inot32 c) b))) | val lemma_vsel32 (a b c:nat32) : Lemma
(ensures (isel32 a b c = (iand32 c a) *^ (iand32 (inot32 c) b))) | let lemma_vsel32 (a b c:nat32) : Lemma
(ensures (isel32 a b c = (iand32 c a) *^ (iand32 (inot32 c) b)))
=
reveal_iand_all 32;
reveal_inot_all 32;
reveal_ixor_all 32;
lemma_equal_nth 32 (isel32 a b c) ((iand32 c a) *^ (iand32 (inot32 c) b)) | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 75,
"end_line": 347,
"start_col": 0,
"start_line": 341
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Vale.Def.Words_s.nat32 -> b: Vale.Def.Words_s.nat32 -> c: Vale.Def.Words_s.nat32
-> FStar.Pervasives.Lemma
(ensures
Vale.Def.Sel.isel32 a b c =
Vale.Arch.Types.iand32 c a *^ Vale.Arch.Types.iand32 (Vale.Arch.Types.inot32 c) b) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.Def.Words_s.nat32",
"Vale.Arch.TypesNative.lemma_equal_nth",
"Vale.Def.Sel.isel32",
"Vale.Arch.Types.op_Star_Hat",
"Vale.Arch.Types.iand32",
"Vale.Arch.Types.inot32",
"Prims.unit",
"Vale.Arch.TypesNative.reveal_ixor_all",
"Vale.Arch.TypesNative.reveal_inot_all",
"Vale.Arch.TypesNative.reveal... | [] | true | false | true | false | false | let lemma_vsel32 (a b c: nat32)
: Lemma (ensures (isel32 a b c = (iand32 c a) *^ (iand32 (inot32 c) b))) =
| reveal_iand_all 32;
reveal_inot_all 32;
reveal_ixor_all 32;
lemma_equal_nth 32 (isel32 a b c) ((iand32 c a) *^ (iand32 (inot32 c) b)) | false |
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 | val make_seperated_hash_quad32 (a b c d e f g h:quad32): Pure (hash256)
(requires True)
(ensures fun hash ->
length hash == 8 /\
hash.[0] == nat32_to_word a.hi3 /\
hash.[1] == nat32_to_word b.hi3 /\
hash.[2] == nat32_to_word c.hi3 /\
hash.[3] == nat32_to_word d.hi3 /\
... | val make_seperated_hash_quad32 (a b c d e f g h:quad32): Pure (hash256)
(requires True)
(ensures fun hash ->
length hash == 8 /\
hash.[0] == nat32_to_word a.hi3 /\
hash.[1] == nat32_to_word b.hi3 /\
hash.[2] == nat32_to_word c.hi3 /\
hash.[3] == nat32_to_word d.hi3 /\
... | let make_seperated_hash_quad32 = opaque_make make_seperated_hash_quad32_def | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 94,
"end_line": 324,
"start_col": 19,
"start_line": 324
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Vale.Def.Types_s.quad32 ->
b: Vale.Def.Types_s.quad32 ->
c: Vale.Def.Types_s.quad32 ->
d: Vale.Def.Types_s.quad32 ->
e: Vale.Def.Types_s.quad32 ->
f: Vale.Def.Types_s.quad32 ->
g: Vale.Def.Types_s.quad32 ->
h: Vale.Def.Types_s.quad32
-> Prims.Pure Vale.SHA.PPC64LE.SHA_helpers.hash2... | Prims.Pure | [] | [] | [
"Vale.Def.Opaque_s.opaque_make",
"Vale.Def.Types_s.quad32",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Prims.l_True",
"Prims.l_and",
"Prims.eq2",
"Prims.int",
"FStar.Seq.Base.length",
"Vale.SHA.PPC64LE.SHA_helpers.word",
"Spec.SHA2.op_String_Access",
"Vale.SHA.PPC64LE.SHA_helpers.nat32_to_word",
... | [] | false | false | false | false | false | let make_seperated_hash_quad32 =
| opaque_make make_seperated_hash_quad32_def | false |
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32_def | val make_seperated_hash_quad32_def (a b c d e f g h: quad32)
: (hash:
words_state SHA2_256
{ length hash == 8 /\ hash.[ 0 ] == to_uint32 a.hi3 /\ hash.[ 1 ] == to_uint32 b.hi3 /\
hash.[ 2 ] == to_uint32 c.hi3 /\ hash.[ 3 ] == to_uint32 d.hi3 /\
hash.[ 4 ] == to_uint32 e.hi3 /\ hash... | val make_seperated_hash_quad32_def (a b c d e f g h: quad32)
: (hash:
words_state SHA2_256
{ length hash == 8 /\ hash.[ 0 ] == to_uint32 a.hi3 /\ hash.[ 1 ] == to_uint32 b.hi3 /\
hash.[ 2 ] == to_uint32 c.hi3 /\ hash.[ 3 ] == to_uint32 d.hi3 /\
hash.[ 4 ] == to_uint32 e.hi3 /\ hash... | let make_seperated_hash_quad32_def (a b c d e f g h:quad32) :
(hash:words_state SHA2_256 {
length hash == 8 /\
hash.[0] == to_uint32 a.hi3 /\
hash.[1] == to_uint32 b.hi3 /\
hash.[2] == to_uint32 c.hi3 /\
hash.[3] == to_uint32 d.hi3 /\
hash.[4] == to_uint32 e.hi3 /... | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 8,
"end_line": 323,
"start_col": 0,
"start_line": 297
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Vale.Def.Types_s.quad32 ->
b: Vale.Def.Types_s.quad32 ->
c: Vale.Def.Types_s.quad32 ->
d: Vale.Def.Types_s.quad32 ->
e: Vale.Def.Types_s.quad32 ->
f: Vale.Def.Types_s.quad32 ->
g: Vale.Def.Types_s.quad32 ->
h: Vale.Def.Types_s.quad32
-> hash:
Spec.Hash.Definitions.words_state S... | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Types_s.quad32",
"Prims.unit",
"FStar.Seq.Properties.elim_of_list",
"Spec.Hash.Definitions.word",
"Spec.Hash.Definitions.SHA2_256",
"Prims._assert",
"Prims.eq2",
"Prims.int",
"FStar.Seq.Base.length",
"FStar.Seq.Base.seq",
"Prims.nat",
"FStar.List.Tot.Base.length",
"FStar.Seq.Base.s... | [] | false | false | false | false | false | let make_seperated_hash_quad32_def (a b c d e f g h: quad32)
: (hash:
words_state SHA2_256
{ length hash == 8 /\ hash.[ 0 ] == to_uint32 a.hi3 /\ hash.[ 1 ] == to_uint32 b.hi3 /\
hash.[ 2 ] == to_uint32 c.hi3 /\ hash.[ 3 ] == to_uint32 d.hi3 /\
hash.[ 4 ] == to_uint32 e.hi3 /\ hash... | let a = to_uint32 a.hi3 in
let b = to_uint32 b.hi3 in
let c = to_uint32 c.hi3 in
let d = to_uint32 d.hi3 in
let e = to_uint32 e.hi3 in
let f = to_uint32 f.hi3 in
let g = to_uint32 g.hi3 in
let h = to_uint32 h.hi3 in
let l = [a; b; c; d; e; f; g; h] in
assert_norm (List.length l == 8);
let hash = seq_of_list l in
assert... | false |
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.ch_256_def | val ch_256_def (x y z: nat32) : (a: nat32{a == (iand32 x y) *^ (iand32 (inot32 x) z)}) | val ch_256_def (x y z: nat32) : (a: nat32{a == (iand32 x y) *^ (iand32 (inot32 x) z)}) | let ch_256_def (x y z:nat32) :
(a:nat32 {a == (iand32 x y) *^ (iand32 (inot32 x) z)})
=
reveal_iand_all 32;
reveal_inot_all 32;
reveal_ixor_all 32;
ch256 x y z | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 355,
"start_col": 0,
"start_line": 349
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: Vale.Def.Words_s.nat32 -> y: Vale.Def.Words_s.nat32 -> z: Vale.Def.Words_s.nat32
-> a:
Vale.Def.Words_s.nat32
{a == Vale.Arch.Types.iand32 x y *^ Vale.Arch.Types.iand32 (Vale.Arch.Types.inot32 x) z} | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Words_s.nat32",
"Vale.SHA2.Wrapper.ch256",
"Prims.unit",
"Vale.Arch.TypesNative.reveal_ixor_all",
"Vale.Arch.TypesNative.reveal_inot_all",
"Vale.Arch.TypesNative.reveal_iand_all",
"Prims.eq2",
"Vale.Arch.Types.op_Star_Hat",
"Vale.Arch.Types.iand32",
"Vale.Arch.Types.inot32"
] | [] | false | false | false | false | false | let ch_256_def (x y z: nat32) : (a: nat32{a == (iand32 x y) *^ (iand32 (inot32 x) z)}) =
| reveal_iand_all 32;
reveal_inot_all 32;
reveal_ixor_all 32;
ch256 x y z | false |
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_0_0_partial | val lemma_sigma_0_0_partial (t:counter) (block:block_w) : Lemma
(requires 16 <= t /\ t < size_k_w_256)
(ensures (sigma256_0_0 (ws_opaque block (t-15)) == sigma_0_0_partial t block)) | val lemma_sigma_0_0_partial (t:counter) (block:block_w) : Lemma
(requires 16 <= t /\ t < size_k_w_256)
(ensures (sigma256_0_0 (ws_opaque block (t-15)) == sigma_0_0_partial t block)) | let lemma_sigma_0_0_partial (t:counter) (block:block_w) : Lemma
(requires 16 <= t /\ t < size_k_w(SHA2_256))
(ensures (sigma256_0_0 (ws_opaque block (t-15)) == sigma_0_0_partial t block))
=
sigma_0_0_partial_reveal () | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 29,
"end_line": 379,
"start_col": 0,
"start_line": 375
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: Vale.SHA.PPC64LE.SHA_helpers.counter -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w
-> FStar.Pervasives.Lemma (requires 16 <= t /\ t < Vale.SHA.PPC64LE.SHA_helpers.size_k_w_256)
(ensures
Vale.SHA2.Wrapper.sigma256_0_0 (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block (t - 15)) ==
Vale.SHA.PPC64LE... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.SHA.PPC64LE.SHA_helpers.counter",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.sigma_0_0_partial_reveal",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"Spec.SHA2.size_k_w",
"Spec.Hash.Definitions.SHA2_256",
"Prims.squas... | [] | true | false | true | false | false | let lemma_sigma_0_0_partial (t: counter) (block: block_w)
: Lemma (requires 16 <= t /\ t < size_k_w (SHA2_256))
(ensures (sigma256_0_0 (ws_opaque block (t - 15)) == sigma_0_0_partial t block)) =
| sigma_0_0_partial_reveal () | false |
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash | val make_seperated_hash (a b c d e f g h:nat32): Pure (hash256)
(requires True)
(ensures fun hash ->
length hash == 8 /\
hash.[0] == nat32_to_word a /\
hash.[1] == nat32_to_word b /\
hash.[2] == nat32_to_word c /\
hash.[3] == nat32_to_word d /\
hash.[4] == nat32... | val make_seperated_hash (a b c d e f g h:nat32): Pure (hash256)
(requires True)
(ensures fun hash ->
length hash == 8 /\
hash.[0] == nat32_to_word a /\
hash.[1] == nat32_to_word b /\
hash.[2] == nat32_to_word c /\
hash.[3] == nat32_to_word d /\
hash.[4] == nat32... | let make_seperated_hash = opaque_make make_seperated_hash_def | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 80,
"end_line": 294,
"start_col": 19,
"start_line": 294
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Vale.Def.Words_s.nat32 ->
b: Vale.Def.Words_s.nat32 ->
c: Vale.Def.Words_s.nat32 ->
d: Vale.Def.Words_s.nat32 ->
e: Vale.Def.Words_s.nat32 ->
f: Vale.Def.Words_s.nat32 ->
g: Vale.Def.Words_s.nat32 ->
h: Vale.Def.Words_s.nat32
-> Prims.Pure Vale.SHA.PPC64LE.SHA_helpers.hash256 | Prims.Pure | [] | [] | [
"Vale.Def.Opaque_s.opaque_make",
"Vale.Def.Words_s.nat32",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Prims.l_True",
"Prims.l_and",
"Prims.eq2",
"Prims.int",
"FStar.Seq.Base.length",
"Vale.SHA.PPC64LE.SHA_helpers.word",
"Spec.SHA2.op_String_Access",
"Vale.SHA.PPC64LE.SHA_helpers.nat32_to_word",
... | [] | false | false | false | false | false | let make_seperated_hash =
| opaque_make make_seperated_hash_def | false |
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.maj_256_def | val maj_256_def (x y z: nat32) : (a: nat32{a == (iand32 x y) *^ ((iand32 x z) *^ (iand32 y z))}) | val maj_256_def (x y z: nat32) : (a: nat32{a == (iand32 x y) *^ ((iand32 x z) *^ (iand32 y z))}) | let maj_256_def (x y z:nat32) :
(a:nat32 {a == (iand32 x y) *^ ((iand32 x z) *^ (iand32 y z))})
=
reveal_iand_all 32;
reveal_ixor_all 32;
maj256 x y z | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 371,
"start_col": 0,
"start_line": 366
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: Vale.Def.Words_s.nat32 -> y: Vale.Def.Words_s.nat32 -> z: Vale.Def.Words_s.nat32
-> a:
Vale.Def.Words_s.nat32
{ a ==
Vale.Arch.Types.iand32 x y *^ (Vale.Arch.Types.iand32 x z *^ Vale.Arch.Types.iand32 y z) } | Prims.Tot | [
"total"
] | [] | [
"Vale.Def.Words_s.nat32",
"Vale.SHA2.Wrapper.maj256",
"Prims.unit",
"Vale.Arch.TypesNative.reveal_ixor_all",
"Vale.Arch.TypesNative.reveal_iand_all",
"Prims.eq2",
"Vale.Arch.Types.op_Star_Hat",
"Vale.Arch.Types.iand32"
] | [] | false | false | false | false | false | let maj_256_def (x y z: nat32) : (a: nat32{a == (iand32 x y) *^ ((iand32 x z) *^ (iand32 y z))}) =
| reveal_iand_all 32;
reveal_ixor_all 32;
maj256 x y z | false |
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.lemma_eq_maj_xvsel32 | val lemma_eq_maj_xvsel32 (a b c:nat32) : Lemma
(ensures (isel32 c b (a *^ b) = (iand32 a b) *^ ((iand32 a c) *^ (iand32 b c)))) | val lemma_eq_maj_xvsel32 (a b c:nat32) : Lemma
(ensures (isel32 c b (a *^ b) = (iand32 a b) *^ ((iand32 a c) *^ (iand32 b c)))) | let lemma_eq_maj_xvsel32 (a b c:nat32) : Lemma
(ensures (isel32 c b (a *^ b) = (iand32 a b) *^ ((iand32 a c) *^ (iand32 b c))))
=
reveal_iand_all 32;
reveal_ixor_all 32;
lemma_equal_nth 32 (isel32 c b (a *^ b)) ((iand32 a b) *^ ((iand32 a c) *^ (iand32 b c))) | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 91,
"end_line": 364,
"start_col": 0,
"start_line": 359
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Vale.Def.Words_s.nat32 -> b: Vale.Def.Words_s.nat32 -> c: Vale.Def.Words_s.nat32
-> FStar.Pervasives.Lemma
(ensures
Vale.Def.Sel.isel32 c b (a *^ b) =
Vale.Arch.Types.iand32 a b *^ (Vale.Arch.Types.iand32 a c *^ Vale.Arch.Types.iand32 b c)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.Def.Words_s.nat32",
"Vale.Arch.TypesNative.lemma_equal_nth",
"Vale.Def.Sel.isel32",
"Vale.Arch.Types.op_Star_Hat",
"Vale.Arch.Types.iand32",
"Prims.unit",
"Vale.Arch.TypesNative.reveal_ixor_all",
"Vale.Arch.TypesNative.reveal_iand_all",
"Prims.l_True",
"Prims.squash",
"Prims.b2t",
"Prims... | [] | true | false | true | false | false | let lemma_eq_maj_xvsel32 (a b c: nat32)
: Lemma (ensures (isel32 c b (a *^ b) = (iand32 a b) *^ ((iand32 a c) *^ (iand32 b c)))) =
| reveal_iand_all 32;
reveal_ixor_all 32;
lemma_equal_nth 32 (isel32 c b (a *^ b)) ((iand32 a b) *^ ((iand32 a c) *^ (iand32 b c))) | false |
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.lemma_make_seperated_hash | val lemma_make_seperated_hash (hash:hash256) (a b c d e f g h:quad32) : Lemma
(requires length hash == 8 /\
a.hi3 == word_to_nat32 hash.[0] /\
b.hi3 == word_to_nat32 hash.[1] /\
c.hi3 == word_to_nat32 hash.[2] /\
d.hi3 == word_to_nat32 hash.[3] /\
e.hi3 == w... | val lemma_make_seperated_hash (hash:hash256) (a b c d e f g h:quad32) : Lemma
(requires length hash == 8 /\
a.hi3 == word_to_nat32 hash.[0] /\
b.hi3 == word_to_nat32 hash.[1] /\
c.hi3 == word_to_nat32 hash.[2] /\
d.hi3 == word_to_nat32 hash.[3] /\
e.hi3 == w... | let lemma_make_seperated_hash (hash:hash256) (a b c d e f g h:quad32) : Lemma
(requires length hash == 8 /\
a.hi3 == word_to_nat32 hash.[0] /\
b.hi3 == word_to_nat32 hash.[1] /\
c.hi3 == word_to_nat32 hash.[2] /\
d.hi3 == word_to_nat32 hash.[3] /\
e.hi3 == w... | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 66,
"end_line": 339,
"start_col": 0,
"start_line": 327
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
hash: Vale.SHA.PPC64LE.SHA_helpers.hash256 ->
a: Vale.Def.Types_s.quad32 ->
b: Vale.Def.Types_s.quad32 ->
c: Vale.Def.Types_s.quad32 ->
d: Vale.Def.Types_s.quad32 ->
e: Vale.Def.Types_s.quad32 ->
f: Vale.Def.Types_s.quad32 ->
g: Vale.Def.Types_s.quad32 ->
h: Vale.Def.Types_s.quad32
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Vale.Def.Types_s.quad32",
"Prims._assert",
"FStar.Seq.Base.equal",
"Vale.SHA.PPC64LE.SHA_helpers.word",
"Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32",
"Prims.unit",
"Prims.l_and",
"Prims.eq2",
"Prims.int",
"FStar.Seq.Base.length",
"Vale.Def.... | [] | true | false | true | false | false | let lemma_make_seperated_hash (hash: hash256) (a b c d e f g h: quad32)
: Lemma
(requires
length hash == 8 /\ a.hi3 == word_to_nat32 hash.[ 0 ] /\ b.hi3 == word_to_nat32 hash.[ 1 ] /\
c.hi3 == word_to_nat32 hash.[ 2 ] /\ d.hi3 == word_to_nat32 hash.[ 3 ] /\
e.hi3 == word_to_nat32 hash.... | assert (equal hash (make_seperated_hash_quad32 a b c d e f g h)) | false |
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_1_1_partial | val lemma_sigma_1_1_partial (t:counter) (block:block_w) (hash_orig:hash256) : Lemma
(requires t < size_k_w_256)
(ensures (sigma256_1_1 (word_to_nat32 ((repeat_range_vale t block hash_orig).[4])) == sigma_1_1_partial t block hash_orig)) | val lemma_sigma_1_1_partial (t:counter) (block:block_w) (hash_orig:hash256) : Lemma
(requires t < size_k_w_256)
(ensures (sigma256_1_1 (word_to_nat32 ((repeat_range_vale t block hash_orig).[4])) == sigma_1_1_partial t block hash_orig)) | let lemma_sigma_1_1_partial (t:counter) (block:block_w) (hash_orig:hash256) : Lemma
(requires t < size_k_w(SHA2_256))
(ensures (sigma256_1_1 (word_to_nat32 ((repeat_range_vale t block hash_orig).[4])) == sigma_1_1_partial t block hash_orig))
=
sigma_1_1_partial_reveal () | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 29,
"end_line": 397,
"start_col": 0,
"start_line": 393
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
t: Vale.SHA.PPC64LE.SHA_helpers.counter ->
block: Vale.SHA.PPC64LE.SHA_helpers.block_w ->
hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256
-> FStar.Pervasives.Lemma (requires t < Vale.SHA.PPC64LE.SHA_helpers.size_k_w_256)
(ensures
Vale.SHA2.Wrapper.sigma256_1_1 (Vale.SHA.PPC64LE.SHA_helpers.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.SHA.PPC64LE.SHA_helpers.counter",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Vale.SHA.PPC64LE.SHA_helpers.sigma_1_1_partial_reveal",
"Prims.unit",
"Prims.b2t",
"Prims.op_LessThan",
"Spec.SHA2.size_k_w",
"Spec.Hash.Definitions.SHA2_256",
"Prims.squash",
... | [] | true | false | true | false | false | let lemma_sigma_1_1_partial (t: counter) (block: block_w) (hash_orig: hash256)
: Lemma (requires t < size_k_w (SHA2_256))
(ensures
(sigma256_1_1 (word_to_nat32 ((repeat_range_vale t block hash_orig).[ 4 ])) ==
sigma_1_1_partial t block hash_orig)) =
| sigma_1_1_partial_reveal () | false |
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.lemma_add_mod_ws_rearrangement | val lemma_add_mod_ws_rearrangement (a b c d: UInt32.t)
: Lemma (let open Lib.IntTypes in a +. b +. c +. d == d +. c +. b +. a) | val lemma_add_mod_ws_rearrangement (a b c d: UInt32.t)
: Lemma (let open Lib.IntTypes in a +. b +. c +. d == d +. c +. b +. a) | let lemma_add_mod_ws_rearrangement (a b c d:UInt32.t) :
Lemma (let open Lib.IntTypes in
a +. b +. c +. d == d +. c +. b +. a)
=
let open Lib.IntTypes in
calc (==) {
a +. b +. c +. d;
(==) {}
(((a +. b) +. c) +. d);
(==) { lemma_add_mod_commutes ((a +. b) +. c) d;
lemma_add_mod... | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 491,
"start_col": 0,
"start_line": 474
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: FStar.UInt32.t -> b: FStar.UInt32.t -> c: FStar.UInt32.t -> d: FStar.UInt32.t
-> FStar.Pervasives.Lemma (ensures a +. b +. c +. d == d +. c +. b +. a) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.UInt32.t",
"FStar.Calc.calc_finish",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Prims.eq2",
"Lib.IntTypes.op_Plus_Dot",
"Prims.Cons",
"FStar.Preorder.relation",
"Prims.Nil",
"Prims.unit",
"FStar.Calc.calc_step",
"FStar.Calc.calc_init",
"FStar.Calc.calc_pack",
"... | [] | false | false | true | false | false | let lemma_add_mod_ws_rearrangement (a b c d: UInt32.t)
: Lemma (let open Lib.IntTypes in a +. b +. c +. d == d +. c +. b +. a) =
| let open Lib.IntTypes in
calc ( == ) {
a +. b +. c +. d;
( == ) { () }
(((a +. b) +. c) +. d);
( == ) { (lemma_add_mod_commutes ((a +. b) +. c) d;
lemma_add_mod_commutes (a +. b) c;
lemma_add_mod_commutes a b) }
d +. (c +. (b +. a));
( == ) { (lemma_add_mod_associates_U32 d c (b +. a);
lemma_add... | false |
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32_reveal | val make_seperated_hash_quad32_reveal : _: Prims.unit
-> FStar.Pervasives.Lemma
(ensures
Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 ==
Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32_def) | let make_seperated_hash_quad32_reveal = opaque_revealer (`%make_seperated_hash_quad32) make_seperated_hash_quad32 make_seperated_hash_quad32_def | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 156,
"end_line": 325,
"start_col": 12,
"start_line": 325
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: Prims.unit
-> FStar.Pervasives.Lemma
(ensures
Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32 ==
Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32_def) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.Def.Opaque_s.opaque_revealer",
"Vale.Def.Types_s.quad32",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Prims.l_True",
"Prims.l_and",
"Prims.eq2",
"Prims.int",
"FStar.Seq.Base.length",
"Vale.SHA.PPC64LE.SHA_helpers.word",
"Spec.SHA2.op_String_Access",
"Vale.SHA.PPC64LE.SHA_helpers.nat32_to_word... | [] | true | false | true | false | false | let make_seperated_hash_quad32_reveal =
| opaque_revealer (`%make_seperated_hash_quad32)
make_seperated_hash_quad32
make_seperated_hash_quad32_def | false | |
FStar.Int128.fsti | FStar.Int128.ct_abs | val ct_abs (a: t{min_int n < v a}) : Tot (b: t{v b = abs (v a)}) | val ct_abs (a: t{min_int n < v a}) : Tot (b: t{v b = abs (v a)}) | let ct_abs (a:t{min_int n < v a}) : Tot (b:t{v b = abs (v a)}) =
let mask = a >>>^ UInt32.uint_to_t (n - 1) in
if 0 <= v a then
begin
sign_bit_positive (v a);
nth_lemma (v mask) (FStar.Int.zero _);
logxor_lemma_1 (v a)
end
else
begin
sign_bit_negative (v a);
nth_lemma (v mask) (one... | {
"file_name": "ulib/FStar.Int128.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 21,
"end_line": 155,
"start_col": 0,
"start_line": 139
} | (*
Copyright 2008-2019 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.UInt.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Int64.fsti.checked",
"FStar.Int.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Int... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Int",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"sho... | {
"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: FStar.Int128.t{FStar.Int.min_int FStar.Int128.n < FStar.Int128.v a}
-> b: FStar.Int128.t{FStar.Int128.v b = Prims.abs (FStar.Int128.v a)} | Prims.Tot | [
"total"
] | [] | [
"FStar.Int128.t",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Int.min_int",
"FStar.Int128.n",
"FStar.Int128.v",
"FStar.Int128.op_Subtraction_Hat",
"FStar.Int128.op_Hat_Hat",
"Prims.unit",
"Prims.op_LessThanOrEqual",
"FStar.Int.logxor_lemma_1",
"FStar.Int.nth_lemma",
"FStar.Int.zero",
"FStar.I... | [] | false | false | false | false | false | let ct_abs (a: t{min_int n < v a}) : Tot (b: t{v b = abs (v a)}) =
| let mask = a >>>^ UInt32.uint_to_t (n - 1) in
if 0 <= v a
then
(sign_bit_positive (v a);
nth_lemma (v mask) (FStar.Int.zero _);
logxor_lemma_1 (v a))
else
(sign_bit_negative (v a);
nth_lemma (v mask) (ones _);
logxor_lemma_2 (v a);
lognot_negative (v a);
UInt.lemma_lognot_value #n (to_uint (... | false |
Ariadne.fst | Ariadne.log_pre' | val log_pre' (c: ctr) : relation (list (backup c)) | val log_pre' (c: ctr) : relation (list (backup c)) | let log_pre' (c:ctr) :relation (list (backup c)) = fun l1 l2 -> l1 `suffix_of` l2 | {
"file_name": "examples/preorders/Ariadne.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 81,
"end_line": 95,
"start_col": 0,
"start_line": 95
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.ST.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.MRef.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Heap.fst.checked",
"FStar.Al... | [
{
"abbrev": false,
"full_module": "FStar.All // Compared to the accompanying POPL'18 paper, we use F*'s All effect to",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.MRef",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"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: Ariadne.ctr -> FStar.Preorder.relation (Prims.list (Ariadne.backup c)) | Prims.Tot | [
"total"
] | [] | [
"Ariadne.ctr",
"Prims.list",
"Ariadne.backup",
"Ariadne.suffix_of",
"FStar.Preorder.relation"
] | [] | false | false | false | false | false | let log_pre' (c: ctr) : relation (list (backup c)) =
| fun l1 l2 -> l1 `suffix_of` l2 | false |
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.lemma_le_bytes_to_hash_quads_part1 | val lemma_le_bytes_to_hash_quads_part1 (s: seq quad32)
: Lemma (requires length s == 2)
(ensures
le_bytes_to_hash (le_seq_quad32_to_bytes s) ==
Vale.Lib.Seqs_s.seq_map nat32_to_word (Vale.Def.Words.Seq_s.seq_four_to_seq_LE s)) | val lemma_le_bytes_to_hash_quads_part1 (s: seq quad32)
: Lemma (requires length s == 2)
(ensures
le_bytes_to_hash (le_seq_quad32_to_bytes s) ==
Vale.Lib.Seqs_s.seq_map nat32_to_word (Vale.Def.Words.Seq_s.seq_four_to_seq_LE s)) | let lemma_le_bytes_to_hash_quads_part1 (s:seq quad32) : Lemma
(requires length s == 2)
(ensures le_bytes_to_hash (le_seq_quad32_to_bytes s) ==
Vale.Lib.Seqs_s.seq_map nat32_to_word (Vale.Def.Words.Seq_s.seq_four_to_seq_LE s))
=
let lhs = le_bytes_to_hash (le_seq_quad32_to_bytes s) in
assert (lhs ... | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 4,
"end_line": 664,
"start_col": 0,
"start_line": 655
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: FStar.Seq.Base.seq Vale.Def.Types_s.quad32
-> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length s == 2)
(ensures
Vale.SHA.PPC64LE.SHA_helpers.le_bytes_to_hash (Vale.Def.Types_s.le_seq_quad32_to_bytes s) ==
Vale.Lib.Seqs_s.seq_map Vale.SHA.PPC64LE.SHA_helpers.nat32_to_word
(Vale... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.quad32",
"Prims.unit",
"Vale.Def.Words.Seq.seq_nat8_to_seq_nat32_to_seq_nat8_LE",
"Vale.Def.Words.Seq_s.seq_four_to_seq_LE",
"Vale.Def.Types_s.nat32",
"Vale.Def.Types_s.le_seq_quad32_to_bytes_reveal",
"Prims._assert",
"Prims.eq2",
"Vale.SHA.PPC64LE.SHA_helpe... | [] | true | false | true | false | false | let lemma_le_bytes_to_hash_quads_part1 (s: seq quad32)
: Lemma (requires length s == 2)
(ensures
le_bytes_to_hash (le_seq_quad32_to_bytes s) ==
Vale.Lib.Seqs_s.seq_map nat32_to_word (Vale.Def.Words.Seq_s.seq_four_to_seq_LE s)) =
| let lhs = le_bytes_to_hash (le_seq_quad32_to_bytes s) in
assert (lhs ==
Vale.Lib.Seqs_s.seq_map nat32_to_word
(Vale.Def.Words.Seq_s.seq_nat8_to_seq_nat32_LE (le_seq_quad32_to_bytes s)));
le_seq_quad32_to_bytes_reveal ();
Vale.Def.Words.Seq.seq_nat8_to_seq_nat32_to_seq_nat8_LE (Vale.Def.Words.Seq_s.seq_four_to... | false |
Ariadne.fst | Ariadne.pre1 | val pre1 : c: Ariadne.case -> Prims.logical | let pre1 c = Writing? c \/ Crash? c | {
"file_name": "examples/preorders/Ariadne.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 35,
"end_line": 159,
"start_col": 0,
"start_line": 159
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.ST.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.MRef.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Heap.fst.checked",
"FStar.Al... | [
{
"abbrev": false,
"full_module": "FStar.All // Compared to the accompanying POPL'18 paper, we use F*'s All effect to",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.MRef",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"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: Ariadne.case -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"Ariadne.case",
"Prims.l_or",
"Prims.b2t",
"Ariadne.uu___is_Writing",
"Ariadne.uu___is_Crash",
"Prims.logical"
] | [] | false | false | false | true | true | let pre1 c =
| Writing? c \/ Crash? c | false | |
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.lemma_slice_commutes_reverse_bytes_quad32_seq | val lemma_slice_commutes_reverse_bytes_quad32_seq (s: seq quad32) (pivot: nat)
: Lemma (requires pivot <= length s)
(ensures
slice (reverse_bytes_quad32_seq s) 0 pivot == reverse_bytes_quad32_seq (slice s 0 pivot)) | val lemma_slice_commutes_reverse_bytes_quad32_seq (s: seq quad32) (pivot: nat)
: Lemma (requires pivot <= length s)
(ensures
slice (reverse_bytes_quad32_seq s) 0 pivot == reverse_bytes_quad32_seq (slice s 0 pivot)) | let lemma_slice_commutes_reverse_bytes_quad32_seq (s:seq quad32) (pivot:nat) : Lemma
(requires pivot <= length s)
(ensures slice (reverse_bytes_quad32_seq s) 0 pivot == reverse_bytes_quad32_seq (slice s 0 pivot))
=
let rs = reverse_bytes_quad32_seq s in
let srs = slice (reverse_bytes_quad32_seq s) 0 pivot in... | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 602,
"start_col": 0,
"start_line": 587
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 -> pivot: Prims.nat
-> FStar.Pervasives.Lemma (requires pivot <= FStar.Seq.Base.length s)
(ensures
FStar.Seq.Base.slice (Vale.Arch.Types.reverse_bytes_quad32_seq s) 0 pivot ==
Vale.Arch.Types.reverse_bytes_quad32_seq (FStar.Seq.Base.slice s 0 pivot)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.quad32",
"Prims.nat",
"Prims.op_Equality",
"Prims.int",
"Prims.unit",
"Prims._assert",
"FStar.Seq.Base.equal",
"FStar.Seq.Base.empty",
"Vale.Arch.Types.reverse_bytes_quad32_seq",
"Prims.bool",
"FStar.Seq.Base.slice",
"Prims.b2t",
"Prims.op_LessThanOr... | [] | false | false | true | false | false | let lemma_slice_commutes_reverse_bytes_quad32_seq (s: seq quad32) (pivot: nat)
: Lemma (requires pivot <= length s)
(ensures
slice (reverse_bytes_quad32_seq s) 0 pivot == reverse_bytes_quad32_seq (slice s 0 pivot)) =
| let rs = reverse_bytes_quad32_seq s in
let srs = slice (reverse_bytes_quad32_seq s) 0 pivot in
let ss = slice s 0 pivot in
let rss = reverse_bytes_quad32_seq ss in
if pivot = 0
then
(assert (equal ss empty);
assert (equal srs empty);
assert (equal empty (reverse_bytes_quad32_seq empty));
())
else (assert ... | false |
Ariadne.fst | Ariadne.suffix_of | val suffix_of : l1: Prims.list (Ariadne.backup c) -> l2: Prims.list (Ariadne.backup c) -> Prims.logical | let suffix_of (#c:ctr) (l1:list (backup c)) (l2:list (backup c)) =
l1 == l2 \/ strict_suffix_of l1 l2 | {
"file_name": "examples/preorders/Ariadne.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 36,
"end_line": 93,
"start_col": 0,
"start_line": 92
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.ST.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.MRef.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Heap.fst.checked",
"FStar.Al... | [
{
"abbrev": false,
"full_module": "FStar.All // Compared to the accompanying POPL'18 paper, we use F*'s All effect to",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.MRef",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"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 (Ariadne.backup c) -> l2: Prims.list (Ariadne.backup c) -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"Ariadne.ctr",
"Prims.list",
"Ariadne.backup",
"Prims.l_or",
"Prims.eq2",
"FStar.List.Tot.Base.strict_suffix_of",
"Prims.logical"
] | [] | false | false | false | false | true | let suffix_of (#c: ctr) (l1 l2: list (backup c)) =
| l1 == l2 \/ strict_suffix_of l1 l2 | false | |
Vale.X64.InsLemmas.fsti | Vale.X64.InsLemmas.make_instr_annotate | val make_instr_annotate
(#outs: list instr_out)
(#args: list instr_operand)
(#havoc_flags: flag_havoc)
(i: instr_t outs args havoc_flags)
(ann: S.instr_annotation (InstrTypeRecord i))
: make_instr_t outs args | val make_instr_annotate
(#outs: list instr_out)
(#args: list instr_operand)
(#havoc_flags: flag_havoc)
(i: instr_t outs args havoc_flags)
(ann: S.instr_annotation (InstrTypeRecord i))
: make_instr_t outs args | let make_instr_annotate
(#outs:list instr_out) (#args:list instr_operand) (#havoc_flags:flag_havoc)
(i:instr_t outs args havoc_flags) (ann:S.instr_annotation (InstrTypeRecord i))
: make_instr_t outs args =
make_instr_outs outs args (fun oprs -> BC.Instr (InstrTypeRecord i) oprs ann) | {
"file_name": "vale/code/arch/x64/Vale.X64.InsLemmas.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 79,
"end_line": 78,
"start_col": 0,
"start_line": 74
} | module Vale.X64.InsLemmas
open FStar.Mul
open Vale.Arch.HeapImpl
open Vale.X64.Machine_s
open Vale.X64.Instruction_s
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.Memory
module BC = Vale.X64.Bytes_Code_s
module S = Vale.X64.Machine_Semantics_s
let has_taint128 (o:operand128) (t:taint)... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Instruction_s.fsti.checked",
"Vale.X64.Decls.fsti.checked",... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Vale.X64.Bytes_Code_s",
"short_module": "BC"
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"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: Vale.X64.Instruction_s.instr_t outs args havoc_flags ->
ann: Vale.X64.Machine_Semantics_s.instr_annotation (Vale.X64.Instruction_s.InstrTypeRecord i)
-> Vale.X64.InsLemmas.make_instr_t outs args | Prims.Tot | [
"total"
] | [] | [
"Prims.list",
"Vale.X64.Instruction_s.instr_out",
"Vale.X64.Instruction_s.instr_operand",
"Vale.X64.Instruction_s.flag_havoc",
"Vale.X64.Instruction_s.instr_t",
"Vale.X64.Machine_Semantics_s.instr_annotation",
"Vale.X64.Instruction_s.InstrTypeRecord",
"Vale.X64.InsLemmas.make_instr_outs",
"Vale.X64.... | [] | false | false | false | false | false | let make_instr_annotate
(#outs: list instr_out)
(#args: list instr_operand)
(#havoc_flags: flag_havoc)
(i: instr_t outs args havoc_flags)
(ann: S.instr_annotation (InstrTypeRecord i))
: make_instr_t outs args =
| make_instr_outs outs args (fun oprs -> BC.Instr (InstrTypeRecord i) oprs ann) | false |
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.lemma_sigma_0_1_partial | val lemma_sigma_0_1_partial (t:counter) (block:block_w) : Lemma
(requires 16 <= t /\ t < size_k_w_256)
(ensures (sigma256_0_1 (ws_opaque block (t-2)) == sigma_0_1_partial t block)) | val lemma_sigma_0_1_partial (t:counter) (block:block_w) : Lemma
(requires 16 <= t /\ t < size_k_w_256)
(ensures (sigma256_0_1 (ws_opaque block (t-2)) == sigma_0_1_partial t block)) | let lemma_sigma_0_1_partial (t:counter) (block:block_w) : Lemma
(requires 16 <= t /\ t < size_k_w(SHA2_256))
(ensures (sigma256_0_1 (ws_opaque block (t-2)) == sigma_0_1_partial t block))
=
sigma_0_1_partial_reveal () | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 29,
"end_line": 385,
"start_col": 0,
"start_line": 381
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: Vale.SHA.PPC64LE.SHA_helpers.counter -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w
-> FStar.Pervasives.Lemma (requires 16 <= t /\ t < Vale.SHA.PPC64LE.SHA_helpers.size_k_w_256)
(ensures
Vale.SHA2.Wrapper.sigma256_0_1 (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block (t - 2)) ==
Vale.SHA.PPC64LE.... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.SHA.PPC64LE.SHA_helpers.counter",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.sigma_0_1_partial_reveal",
"Prims.unit",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"Spec.SHA2.size_k_w",
"Spec.Hash.Definitions.SHA2_256",
"Prims.squas... | [] | true | false | true | false | false | let lemma_sigma_0_1_partial (t: counter) (block: block_w)
: Lemma (requires 16 <= t /\ t < size_k_w (SHA2_256))
(ensures (sigma256_0_1 (ws_opaque block (t - 2)) == sigma_0_1_partial t block)) =
| sigma_0_1_partial_reveal () | false |
FStar.Classical.Sugar.fsti | FStar.Classical.Sugar.implies_elim | val implies_elim: p: Type -> q: Type -> squash (p ==> q) -> f: (unit -> Tot (squash p)) -> squash q | val implies_elim: p: Type -> q: Type -> squash (p ==> q) -> f: (unit -> Tot (squash p)) -> squash q | let implies_elim
(p:Type)
(q:Type)
(_:squash (p ==> q))
(f:unit -> Tot (squash p))
: squash q
= f() | {
"file_name": "ulib/FStar.Classical.Sugar.fsti",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 7,
"end_line": 78,
"start_col": 0,
"start_line": 72
} | (*
Copyright 2021 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Classical.Sugar.fsti"
} | [
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Classical",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"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: Type0 -> q: Type0 -> _: Prims.squash (p ==> q) -> f: (_: Prims.unit -> Prims.squash p)
-> Prims.squash q | Prims.Tot | [
"total"
] | [] | [
"Prims.squash",
"Prims.l_imp",
"Prims.unit"
] | [] | false | false | true | true | false | let implies_elim (p: Type) (q: Type) (_: squash (p ==> q)) (f: (unit -> Tot (squash p))) : squash q =
| f () | false |
Vale.X64.InsLemmas.fsti | Vale.X64.InsLemmas.make_instr | val make_instr
(#outs: list instr_out)
(#args: list instr_operand)
(#havoc_flags: flag_havoc)
(i: instr_t outs args havoc_flags)
: make_instr_t outs args | val make_instr
(#outs: list instr_out)
(#args: list instr_operand)
(#havoc_flags: flag_havoc)
(i: instr_t outs args havoc_flags)
: make_instr_t outs args | let make_instr
(#outs:list instr_out) (#args:list instr_operand) (#havoc_flags:flag_havoc)
(i:instr_t outs args havoc_flags)
: make_instr_t outs args =
make_instr_outs outs args (fun oprs -> BC.Instr (InstrTypeRecord i) oprs S.AnnotateNone) | {
"file_name": "vale/code/arch/x64/Vale.X64.InsLemmas.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 90,
"end_line": 71,
"start_col": 0,
"start_line": 67
} | module Vale.X64.InsLemmas
open FStar.Mul
open Vale.Arch.HeapImpl
open Vale.X64.Machine_s
open Vale.X64.Instruction_s
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.Memory
module BC = Vale.X64.Bytes_Code_s
module S = Vale.X64.Machine_Semantics_s
let has_taint128 (o:operand128) (t:taint)... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Instruction_s.fsti.checked",
"Vale.X64.Decls.fsti.checked",... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Vale.X64.Bytes_Code_s",
"short_module": "BC"
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"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: Vale.X64.Instruction_s.instr_t outs args havoc_flags -> Vale.X64.InsLemmas.make_instr_t outs args | Prims.Tot | [
"total"
] | [] | [
"Prims.list",
"Vale.X64.Instruction_s.instr_out",
"Vale.X64.Instruction_s.instr_operand",
"Vale.X64.Instruction_s.flag_havoc",
"Vale.X64.Instruction_s.instr_t",
"Vale.X64.InsLemmas.make_instr_outs",
"Vale.X64.Instruction_s.instr_operands_t",
"Vale.X64.Bytes_Code_s.Instr",
"Vale.X64.Machine_Semantics... | [] | false | false | false | false | false | let make_instr
(#outs: list instr_out)
(#args: list instr_operand)
(#havoc_flags: flag_havoc)
(i: instr_t outs args havoc_flags)
: make_instr_t outs args =
| make_instr_outs outs args (fun oprs -> BC.Instr (InstrTypeRecord i) oprs S.AnnotateNone) | false |
Hacl.Impl.RSAPSS.Padding.fst | Hacl.Impl.RSAPSS.Padding.pss_verify_ | val pss_verify_:
a:Hash.hash_alg{S.hash_is_supported a}
-> saltLen:salt_len_t a
-> msgLen:msg_len_t a
-> msg:lbuffer uint8 msgLen
-> emBits:em_len_t a saltLen
-> em:lbuffer uint8 (BD.blocks emBits 8ul) ->
Stack bool
(requires fun h -> live h msg /\ live h em /\ disjoint em msg)
(ensures fun h0 r h1... | val pss_verify_:
a:Hash.hash_alg{S.hash_is_supported a}
-> saltLen:salt_len_t a
-> msgLen:msg_len_t a
-> msg:lbuffer uint8 msgLen
-> emBits:em_len_t a saltLen
-> em:lbuffer uint8 (BD.blocks emBits 8ul) ->
Stack bool
(requires fun h -> live h msg /\ live h em /\ disjoint em msg)
(ensures fun h0 r h1... | let pss_verify_ a saltLen msgLen msg emBits em =
push_frame ();
let emLen = BD.blocks emBits 8ul in
let hLen = hash_len a in
let m1Hash0 = create hLen (u8 0) in
let dbLen = emLen -! hLen -! 1ul in
let maskedDB = sub em 0ul dbLen in
let m1Hash = sub em dbLen hLen in
let dbMask = create dbLen (u8 0) in
... | {
"file_name": "code/rsapss/Hacl.Impl.RSAPSS.Padding.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 5,
"end_line": 221,
"start_col": 0,
"start_line": 193
} | module Hacl.Impl.RSAPSS.Padding
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.RSAPSS.MGF
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module Hash = Spec.Agile.Hash
module S = Spec.RSAPSS
module BD = Hacl.Bignum.Definitions
#reset-opti... | {
"checked_file": "/",
"dependencies": [
"Spec.RSAPSS.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteBuffer.fsti.checked",
"... | [
{
"abbrev": true,
"full_module": "Hacl.Bignum.Definitions",
"short_module": "BD"
},
{
"abbrev": true,
"full_module": "Spec.RSAPSS",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Spec.Agile.Hash",
"short_module": "Hash"
},
{
"abbrev": true,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Spec.Hash.Definitions.hash_alg{Spec.RSAPSS.hash_is_supported a} ->
saltLen: Hacl.Impl.RSAPSS.Padding.salt_len_t a ->
msgLen: Hacl.Impl.RSAPSS.Padding.msg_len_t a ->
msg: Lib.Buffer.lbuffer Lib.IntTypes.uint8 msgLen ->
emBits: Hacl.Impl.RSAPSS.Padding.em_len_t a saltLen ->
em: Lib.Buffer.lbuf... | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Hash.Definitions.hash_alg",
"Prims.b2t",
"Spec.RSAPSS.hash_is_supported",
"Hacl.Impl.RSAPSS.Padding.salt_len_t",
"Hacl.Impl.RSAPSS.Padding.msg_len_t",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"Hacl.Impl.RSAPSS.Padding.em_len_t",
"Hacl.Bignum.Definitions.blocks",
"FStar.UInt32.__uint_to_t"... | [] | false | true | false | false | false | let pss_verify_ a saltLen msgLen msg emBits em =
| push_frame ();
let emLen = BD.blocks emBits 8ul in
let hLen = hash_len a in
let m1Hash0 = create hLen (u8 0) in
let dbLen = emLen -! hLen -! 1ul in
let maskedDB = sub em 0ul dbLen in
let m1Hash = sub em dbLen hLen in
let dbMask = create dbLen (u8 0) in
mgf_hash a hLen m1Hash dbLen dbMask;
xor_bytes dbLen dbMask maskedD... | false |
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.lemma_quads_to_block_be | val lemma_quads_to_block_be (qs:seq quad32) : Lemma
(requires length qs == 4)
(ensures
(let block = quads_to_block_be qs in
forall i . {:pattern (index qs i)} 0 <= i /\ i < 4 ==>
(qs.[i]).hi3 == ws_opaque block (4 * i + 0) /\
(qs.[i]).hi2 == ws_opaque block (4 * i + 1) /\
... | val lemma_quads_to_block_be (qs:seq quad32) : Lemma
(requires length qs == 4)
(ensures
(let block = quads_to_block_be qs in
forall i . {:pattern (index qs i)} 0 <= i /\ i < 4 ==>
(qs.[i]).hi3 == ws_opaque block (4 * i + 0) /\
(qs.[i]).hi2 == ws_opaque block (4 * i + 1) /\
... | let lemma_quads_to_block_be qs
=
reveal_opaque (`%seq_four_to_seq_BE) (seq_four_to_seq_BE #nat32);
reveal_opaque (`%ws) ws | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 25,
"end_line": 403,
"start_col": 0,
"start_line": 400
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"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 | qs: FStar.Seq.Base.seq Vale.Def.Types_s.quad32
-> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length qs == 4)
(ensures
(let block = Vale.SHA.PPC64LE.SHA_helpers.quads_to_block_be qs in
forall (i:
Prims.int
{ i >= 0 /\ i < FStar.Seq.Base.length qs /\ (i >= 0) /\ (i... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.quad32",
"FStar.Pervasives.reveal_opaque",
"Spec.Hash.Definitions.sha2_alg",
"Spec.SHA2.block_w",
"Spec.SHA2.counter",
"Prims.b2t",
"Prims.op_LessThan",
"Spec.SHA2.size_k_w",
"Spec.Hash.Definitions.word",
"Spec.SHA2.Lemmas.ws",
"Prims.unit",
"Vale.Def.... | [] | true | false | true | false | false | let lemma_quads_to_block_be qs =
| reveal_opaque (`%seq_four_to_seq_BE) (seq_four_to_seq_BE #nat32);
reveal_opaque (`%ws) ws | false |
Ariadne.fst | Ariadne.saved | val saved: counter -> record -> Type0 | val saved: counter -> record -> Type0 | let saved (Counter n c) s =
let m,u = s in
(m < n) \/ // an old state; authentication of m will fail, so nothing to say about it
(m = n /\ (match c with
| Ok v -> u=v
| Recover w v
| Writing w v
| Crash w v -> u=w \/ u=v)) \/
(m = n+1 /\ (match c with
| Ok _ | Recover _ _ -> False
| Writing v ... | {
"file_name": "examples/preorders/Ariadne.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 29,
"end_line": 71,
"start_col": 0,
"start_line": 60
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.ST.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.MRef.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Heap.fst.checked",
"FStar.Al... | [
{
"abbrev": false,
"full_module": "FStar.All // Compared to the accompanying POPL'18 paper, we use F*'s All effect to",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.MRef",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: Ariadne.counter -> s: Ariadne.record -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Ariadne.counter",
"Ariadne.record",
"Ariadne.index",
"Ariadne.case",
"Ariadne.state",
"Prims.l_or",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.l_and",
"Prims.op_Equality",
"Prims.logical",
"Prims.int",
"Prims.op_Addition",
"Prims.l_False"
] | [] | false | false | false | true | true | let saved (Counter n c) s =
| let m, u = s in
(m < n) \/
(m = n /\
(match c with
| Ok v -> u = v
| Recover w v | Writing w v | Crash w v -> u = w \/ u = v)) \/
(m = n + 1 /\
(match c with
| Ok _ | Recover _ _ -> False
| Writing v _ -> u = v
| Crash v w -> u = v \/ u = w)) | false |
Ariadne.fst | Ariadne.log_pre | val log_pre (c: ctr) : preorder (list (backup c)) | val log_pre (c: ctr) : preorder (list (backup c)) | let log_pre (c:ctr) :preorder (list (backup c)) = log_pre' c | {
"file_name": "examples/preorders/Ariadne.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 60,
"end_line": 96,
"start_col": 0,
"start_line": 96
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.ST.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.MRef.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Heap.fst.checked",
"FStar.Al... | [
{
"abbrev": false,
"full_module": "FStar.All // Compared to the accompanying POPL'18 paper, we use F*'s All effect to",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.MRef",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"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: Ariadne.ctr -> FStar.Preorder.preorder (Prims.list (Ariadne.backup c)) | Prims.Tot | [
"total"
] | [] | [
"Ariadne.ctr",
"Ariadne.log_pre'",
"FStar.Preorder.preorder",
"Prims.list",
"Ariadne.backup"
] | [] | false | false | false | false | false | let log_pre (c: ctr) : preorder (list (backup c)) =
| log_pre' c | false |
Ariadne.fst | Ariadne.step1 | val step1: c:case {pre1 c} -> case | val step1: c:case {pre1 c} -> case | let step1 = function
| Writing w v -> Ok w
| Crash v0 v1 -> Recover v0 v1 | {
"file_name": "examples/preorders/Ariadne.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 32,
"end_line": 163,
"start_col": 0,
"start_line": 161
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.ST.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.MRef.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Heap.fst.checked",
"FStar.Al... | [
{
"abbrev": false,
"full_module": "FStar.All // Compared to the accompanying POPL'18 paper, we use F*'s All effect to",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.MRef",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"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: Ariadne.case{Ariadne.pre1 c} -> Ariadne.case | Prims.Tot | [
"total"
] | [] | [
"Ariadne.case",
"Ariadne.pre1",
"Ariadne.state",
"Ariadne.Ok",
"Ariadne.Recover"
] | [] | false | false | false | false | false | let step1 =
| function
| Writing w v -> Ok w
| Crash v0 v1 -> Recover v0 v1 | false |
Ariadne.fst | Ariadne.save | val save: p:protected -> w:state -> All unit
(requires fun h0 ->
let Protect c _ = p in
let Counter _ c0 = sel h0 c in
pre0 c0 w)
(ensures fun h0 r h1 ->
let Protect c _ = p in
let Counter n c0 = sel h0 c in
pre0 c0 w /\ (
let c1 = step0 c0 w in
sel h1 c == Counter n c1)) | val save: p:protected -> w:state -> All unit
(requires fun h0 ->
let Protect c _ = p in
let Counter _ c0 = sel h0 c in
pre0 c0 w)
(ensures fun h0 r h1 ->
let Protect c _ = p in
let Counter n c0 = sel h0 c in
pre0 c0 w /\ (
let c1 = step0 c0 w in
sel h1 c == Counter n c1)) | let save p w =
let Protect c k = p in
let Counter n c0 = read c in
let c1 = step0 c0 w in
write c (Counter n c1);
let r = (n+1,w) in
witness (saved_backup c r);
let log0 = read k in
write k (r::log0) | {
"file_name": "examples/preorders/Ariadne.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 19,
"end_line": 154,
"start_col": 0,
"start_line": 146
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.ST.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.MRef.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Heap.fst.checked",
"FStar.Al... | [
{
"abbrev": false,
"full_module": "FStar.All // Compared to the accompanying POPL'18 paper, we use F*'s All effect to",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.MRef",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"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: Ariadne.protected -> w: Ariadne.state -> FStar.All.All Prims.unit | FStar.All.All | [] | [] | [
"Ariadne.protected",
"Ariadne.state",
"Ariadne.ctr",
"Ariadne.key",
"Ariadne.index",
"Ariadne.case",
"FStar.ST.write",
"Prims.list",
"Ariadne.backup",
"Ariadne.log_pre",
"Prims.Cons",
"Prims.unit",
"FStar.ST.read",
"FStar.MRef.witness",
"Ariadne.saved_backup",
"FStar.Pervasives.Native.... | [] | false | true | false | false | false | let save p w =
| let Protect c k = p in
let Counter n c0 = read c in
let c1 = step0 c0 w in
write c (Counter n c1);
let r = (n + 1, w) in
witness (saved_backup c r);
let log0 = read k in
write k (r :: log0) | false |
Ariadne.fst | Ariadne.incr | val incr: c:ctr -> w:state -> All unit
(requires fun h0 ->
let Counter _ c0 = sel h0 c in
pre1 c0)
(ensures fun h0 r h1 ->
let v0 = sel h0 c in
let Counter n0 c0 = v0 in
pre1 c0 /\ (
let c1 = step1 c0 in
let v1 = Counter (n0+1) c1 in
match r with
| V _ -> sel h1 c == v1
| _ -> sel h1 c ==... | val incr: c:ctr -> w:state -> All unit
(requires fun h0 ->
let Counter _ c0 = sel h0 c in
pre1 c0)
(ensures fun h0 r h1 ->
let v0 = sel h0 c in
let Counter n0 c0 = v0 in
pre1 c0 /\ (
let c1 = step1 c0 in
let v1 = Counter (n0+1) c1 in
match r with
| V _ -> sel h1 c == v1
| _ -> sel h1 c ==... | let incr c w =
let x = read c in
let Counter n0 c0 = x in
if n0 = 3 then failwith "crash" else
write c (Counter (n0+1) (step1 c0)) | {
"file_name": "examples/preorders/Ariadne.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 37,
"end_line": 184,
"start_col": 0,
"start_line": 180
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.ST.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.MRef.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Heap.fst.checked",
"FStar.Al... | [
{
"abbrev": false,
"full_module": "FStar.All // Compared to the accompanying POPL'18 paper, we use F*'s All effect to",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.MRef",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"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: Ariadne.ctr -> w: Ariadne.state -> FStar.All.All Prims.unit | FStar.All.All | [] | [] | [
"Ariadne.ctr",
"Ariadne.state",
"Ariadne.index",
"Ariadne.case",
"Prims.op_Equality",
"Prims.int",
"FStar.All.failwith",
"Prims.unit",
"Prims.bool",
"FStar.ST.write",
"Ariadne.counter",
"Ariadne.preorder'",
"Ariadne.Counter",
"Prims.op_Addition",
"Ariadne.step1",
"FStar.ST.read"
] | [] | false | true | false | false | false | let incr c w =
| let x = read c in
let Counter n0 c0 = x in
if n0 = 3 then failwith "crash" else write c (Counter (n0 + 1) (step1 c0)) | false |
Ariadne.fst | Ariadne.saved_backup | val saved_backup (c: ctr) (s: record) : (f: (heap -> Type0){FStar.ST.stable f}) | val saved_backup (c: ctr) (s: record) : (f: (heap -> Type0){FStar.ST.stable f}) | let saved_backup (c:ctr) (s:record) : (f:(heap -> Type0){FStar.ST.stable f}) =
fun h -> h `contains` c /\ saved (sel h c) s | {
"file_name": "examples/preorders/Ariadne.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 48,
"end_line": 88,
"start_col": 0,
"start_line": 87
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.ST.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.MRef.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Heap.fst.checked",
"FStar.Al... | [
{
"abbrev": false,
"full_module": "FStar.All // Compared to the accompanying POPL'18 paper, we use F*'s All effect to",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.MRef",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"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: Ariadne.ctr -> s: Ariadne.record -> f: (_: FStar.Monotonic.Heap.heap -> Type0){FStar.ST.stable f} | Prims.Tot | [
"total"
] | [] | [
"Ariadne.ctr",
"Ariadne.record",
"FStar.Monotonic.Heap.heap",
"Prims.l_and",
"FStar.Monotonic.Heap.contains",
"Ariadne.counter",
"Ariadne.preorder'",
"Ariadne.saved",
"FStar.Monotonic.Heap.sel",
"FStar.ST.stable"
] | [] | false | false | false | true | true | let saved_backup (c: ctr) (s: record) : (f: (heap -> Type0){FStar.ST.stable f}) =
| fun h -> h `contains` c /\ saved (sel h c) s | false |
Ariadne.fst | Ariadne.pre0 | val pre0 : c: Ariadne.case -> w: Ariadne.state -> Prims.logical | let pre0 c w =
match c with
| Ok u -> True
| Recover u v
| Writing u v
| Crash u v -> w==u \/ w==v | {
"file_name": "examples/preorders/Ariadne.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 29,
"end_line": 126,
"start_col": 0,
"start_line": 121
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.ST.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.MRef.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Heap.fst.checked",
"FStar.Al... | [
{
"abbrev": false,
"full_module": "FStar.All // Compared to the accompanying POPL'18 paper, we use F*'s All effect to",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.MRef",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"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: Ariadne.case -> w: Ariadne.state -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"Ariadne.case",
"Ariadne.state",
"Prims.l_True",
"Prims.l_or",
"Prims.eq2",
"Prims.logical"
] | [] | false | false | false | true | true | let pre0 c w =
| match c with
| Ok u -> True
| Recover u v | Writing u v | Crash u v -> w == u \/ w == v | false | |
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.lemma_add_mod_associates_U32 | val lemma_add_mod_associates_U32 (x y z: UInt32.t)
: Lemma (add_mod x (add_mod y z) == add_mod (add_mod x y) z) | val lemma_add_mod_associates_U32 (x y z: UInt32.t)
: Lemma (add_mod x (add_mod y z) == add_mod (add_mod x y) z) | let lemma_add_mod_associates_U32 (x y z:UInt32.t) :
Lemma (add_mod x (add_mod y z) == add_mod (add_mod x y) z)
=
let open Lib.IntTypes in
calc (==) {
v (x +. (y +. z));
(==) { }
(v x + (v y + v z) % pow2 32) % pow2 32;
(==) { FStar.Math.Lemmas.lemma_mod_add_distr (v x) (v y + v z) (pow2 32) }
... | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 39,
"end_line": 472,
"start_col": 0,
"start_line": 457
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: FStar.UInt32.t -> y: FStar.UInt32.t -> z: FStar.UInt32.t
-> FStar.Pervasives.Lemma
(ensures
FStar.UInt32.add_mod x (FStar.UInt32.add_mod y z) ==
FStar.UInt32.add_mod (FStar.UInt32.add_mod x y) z) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.UInt32.t",
"FStar.UInt32.v_inj",
"Lib.IntTypes.op_Plus_Dot",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Prims.unit",
"FStar.Calc.calc_finish",
"Lib.IntTypes.range_t",
"Prims.eq2",
"Lib.IntTypes.v",
"Prims.Cons",
"FStar.Preorder.relation",
"Prims.Nil",
"FStar.Calc.calc_step",
"Prims.... | [] | false | false | true | false | false | let lemma_add_mod_associates_U32 (x y z: UInt32.t)
: Lemma (add_mod x (add_mod y z) == add_mod (add_mod x y) z) =
| let open Lib.IntTypes in
calc ( == ) {
v (x +. (y +. z));
( == ) { () }
(v x + (v y + v z) % pow2 32) % pow2 32;
( == ) { FStar.Math.Lemmas.lemma_mod_add_distr (v x) (v y + v z) (pow2 32) }
((v x + v y) + v z) % pow2 32;
( == ) { FStar.Math.Lemmas.lemma_mod_add_distr (v z) (v x + v y) (pow2 32) }
((v x + ... | false |
Ariadne.fst | Ariadne.create | val create: v: state -> ST protected
(requires fun h0 -> True)
(ensures fun h0 (Protect c _) h1 -> sel h1 c == Counter 0 (Ok v)) | val create: v: state -> ST protected
(requires fun h0 -> True)
(ensures fun h0 (Protect c _) h1 -> sel h1 c == Counter 0 (Ok v)) | let create v =
let c = alloc (Counter 0 (Ok v)) in
let r = (0,v) in
witness (saved_backup c r);
let k = alloc [r] in
Protect c k | {
"file_name": "examples/preorders/Ariadne.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 13,
"end_line": 115,
"start_col": 0,
"start_line": 110
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.ST.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.MRef.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Heap.fst.checked",
"FStar.Al... | [
{
"abbrev": false,
"full_module": "FStar.All // Compared to the accompanying POPL'18 paper, we use F*'s All effect to",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.MRef",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | v: Ariadne.state -> FStar.ST.ST Ariadne.protected | FStar.ST.ST | [] | [] | [
"Ariadne.state",
"Ariadne.Protect",
"Ariadne.protected",
"FStar.ST.mref",
"Prims.list",
"Ariadne.backup",
"Ariadne.log_pre",
"FStar.ST.alloc",
"Prims.Cons",
"Prims.Nil",
"Prims.unit",
"FStar.MRef.witness",
"Ariadne.saved_backup",
"FStar.Pervasives.Native.tuple2",
"Ariadne.index",
"FSta... | [] | false | true | false | false | false | let create v =
| let c = alloc (Counter 0 (Ok v)) in
let r = (0, v) in
witness (saved_backup c r);
let k = alloc [r] in
Protect c k | false |
Ariadne.fst | Ariadne.preorder' | val preorder':preorder counter | val preorder':preorder counter | let preorder' :preorder counter = fun (x0:counter) (x1:counter) -> forall s. saved x0 s ==> saved x1 s | {
"file_name": "examples/preorders/Ariadne.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 102,
"end_line": 73,
"start_col": 0,
"start_line": 73
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.ST.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.MRef.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Heap.fst.checked",
"FStar.Al... | [
{
"abbrev": false,
"full_module": "FStar.All // Compared to the accompanying POPL'18 paper, we use F*'s All effect to",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.MRef",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | FStar.Preorder.preorder Ariadne.counter | Prims.Tot | [
"total"
] | [] | [
"Ariadne.counter",
"Prims.l_Forall",
"Ariadne.record",
"Prims.l_imp",
"Ariadne.saved",
"Prims.logical"
] | [] | false | false | false | true | false | let preorder':preorder counter =
| fun (x0: counter) (x1: counter) -> forall s. saved x0 s ==> saved x1 s | false |
Ariadne.fst | Ariadne.step0 | val step0 : c: Ariadne.case -> w: Ariadne.state -> Ariadne.case | let step0 c w =
match c with
| Ok u -> Writing w u
| Recover u v -> if w=u then Writing u v else Crash w u
| Writing u v
| Crash u v -> if w=u then Crash w v else Crash w u | {
"file_name": "examples/preorders/Ariadne.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 53,
"end_line": 132,
"start_col": 0,
"start_line": 127
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.ST.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.MRef.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Heap.fst.checked",
"FStar.Al... | [
{
"abbrev": false,
"full_module": "FStar.All // Compared to the accompanying POPL'18 paper, we use F*'s All effect to",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.MRef",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"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: Ariadne.case -> w: Ariadne.state -> Ariadne.case | Prims.Tot | [
"total"
] | [] | [
"Ariadne.case",
"Ariadne.state",
"Ariadne.Writing",
"Prims.op_Equality",
"Prims.bool",
"Ariadne.Crash"
] | [] | false | false | false | true | false | let step0 c w =
| match c with
| Ok u -> Writing w u
| Recover u v -> if w = u then Writing u v else Crash w u
| Writing u v | Crash u v -> if w = u then Crash w v else Crash w u | false | |
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.lemma_le_bytes_to_hash_quads | val lemma_le_bytes_to_hash_quads (s: seq quad32)
: Lemma (requires length s == 2)
(ensures
(let rhs = le_bytes_to_hash (le_seq_quad32_to_bytes s) in
rhs.[ 0 ] == to_uint32 (s.[ 0 ]).lo0 /\ rhs.[ 1 ] == to_uint32 (s.[ 0 ]).lo1 /\
rhs.[ 2 ] == to_uint32 (s.[ 0 ]).hi2 /\ rhs.[ 3 ] == ... | val lemma_le_bytes_to_hash_quads (s: seq quad32)
: Lemma (requires length s == 2)
(ensures
(let rhs = le_bytes_to_hash (le_seq_quad32_to_bytes s) in
rhs.[ 0 ] == to_uint32 (s.[ 0 ]).lo0 /\ rhs.[ 1 ] == to_uint32 (s.[ 0 ]).lo1 /\
rhs.[ 2 ] == to_uint32 (s.[ 0 ]).hi2 /\ rhs.[ 3 ] == ... | let lemma_le_bytes_to_hash_quads (s:seq quad32) : Lemma
(requires length s == 2)
(ensures (let rhs = le_bytes_to_hash (le_seq_quad32_to_bytes s) in
rhs.[0] == to_uint32 (s.[0]).lo0 /\
rhs.[1] == to_uint32 (s.[0]).lo1 /\
rhs.[2] == to_uint32 (s.[0]).hi2 /\
rhs.[3] == t... | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 4,
"end_line": 684,
"start_col": 0,
"start_line": 667
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: FStar.Seq.Base.seq Vale.Def.Types_s.quad32
-> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length s == 2)
(ensures
(let rhs =
Vale.SHA.PPC64LE.SHA_helpers.le_bytes_to_hash (Vale.Def.Types_s.le_seq_quad32_to_bytes s
)
in
rhs.[ 0 ] == Vale.SHA.PPC64LE.SH... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.quad32",
"Prims.unit",
"Prims._assert",
"Prims.eq2",
"Vale.SHA.PPC64LE.SHA_helpers.word",
"Vale.Lib.Seqs_s.seq_map",
"Vale.Def.Types_s.nat32",
"Vale.SHA.PPC64LE.SHA_helpers.nat32_to_word",
"Vale.Def.Words.Seq_s.seq_four_to_seq_LE",
"Vale.SHA.PPC64LE.SHA_he... | [] | true | false | true | false | false | let lemma_le_bytes_to_hash_quads (s: seq quad32)
: Lemma (requires length s == 2)
(ensures
(let rhs = le_bytes_to_hash (le_seq_quad32_to_bytes s) in
rhs.[ 0 ] == to_uint32 (s.[ 0 ]).lo0 /\ rhs.[ 1 ] == to_uint32 (s.[ 0 ]).lo1 /\
rhs.[ 2 ] == to_uint32 (s.[ 0 ]).hi2 /\ rhs.[ 3 ] == ... | reveal_opaque (`%seq_four_to_seq_LE) (seq_four_to_seq_LE #nat32);
let rhs = le_bytes_to_hash (le_seq_quad32_to_bytes s) in
lemma_le_bytes_to_hash_quads_part1 s;
assert (rhs == Vale.Lib.Seqs_s.seq_map nat32_to_word (Vale.Def.Words.Seq_s.seq_four_to_seq_LE s));
() | false |
Ariadne.fst | Ariadne.store | val store: p:protected -> w:state -> All unit
(requires fun h0 ->
let Protect c _ = p in
let Counter _ c0 = sel h0 c in
Ok? c0)
(ensures fun h0 r h1 ->
let Protect c _ = p in
let Counter _ c1 = sel h1 c in
V? r ==> c1 = Ok w) | val store: p:protected -> w:state -> All unit
(requires fun h0 ->
let Protect c _ = p in
let Counter _ c0 = sel h0 c in
Ok? c0)
(ensures fun h0 r h1 ->
let Protect c _ = p in
let Counter _ c1 = sel h1 c in
V? r ==> c1 = Ok w) | let store p w =
let Protect c _ = p in
save p w;
incr c w | {
"file_name": "examples/preorders/Ariadne.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 10,
"end_line": 200,
"start_col": 0,
"start_line": 197
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.ST.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.MRef.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Heap.fst.checked",
"FStar.Al... | [
{
"abbrev": false,
"full_module": "FStar.All // Compared to the accompanying POPL'18 paper, we use F*'s All effect to",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.MRef",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"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: Ariadne.protected -> w: Ariadne.state -> FStar.All.All Prims.unit | FStar.All.All | [] | [] | [
"Ariadne.protected",
"Ariadne.state",
"Ariadne.ctr",
"Ariadne.key",
"Ariadne.incr",
"Prims.unit",
"Ariadne.save"
] | [] | false | true | false | false | false | let store p w =
| let Protect c _ = p in
save p w;
incr c w | false |
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.lemma_ws_opaque | val lemma_ws_opaque (block:block_w) (t:counter) : Lemma
(requires 16 <= t && t < size_k_w_256)
(ensures (let sigma0 = sigma256_0_0 (ws_opaque block (t - 15)) in
let sigma1 = sigma256_0_1 (ws_opaque block (t - 2)) in
ws_opaque block t == add_wrap (add_wrap (add_wrap sigma1 (ws_opaque block (t... | val lemma_ws_opaque (block:block_w) (t:counter) : Lemma
(requires 16 <= t && t < size_k_w_256)
(ensures (let sigma0 = sigma256_0_0 (ws_opaque block (t - 15)) in
let sigma1 = sigma256_0_1 (ws_opaque block (t - 2)) in
ws_opaque block t == add_wrap (add_wrap (add_wrap sigma1 (ws_opaque block (t... | let lemma_ws_opaque (block:block_w) (t:counter) : Lemma
(requires 16 <= t && t < size_k_w_256)
(ensures (let sigma0 = sigma256_0_0 (ws_opaque block (t - 15)) in
let sigma1 = sigma256_0_1 (ws_opaque block (t - 2)) in
ws_opaque block t == add_wrap (add_wrap (add_wrap sigma1 (ws_opaque block (t... | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 519,
"start_col": 0,
"start_line": 494
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"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 | block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> t: Vale.SHA.PPC64LE.SHA_helpers.counter
-> FStar.Pervasives.Lemma (requires 16 <= t && t < Vale.SHA.PPC64LE.SHA_helpers.size_k_w_256)
(ensures
(let sigma0 =
Vale.SHA2.Wrapper.sigma256_0_0 (Vale.SHA.PPC64LE.SHA_helpers.ws_opaque block (t - 15))
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.counter",
"FStar.Calc.calc_finish",
"Vale.Def.Words_s.nat32",
"Prims.eq2",
"Vale.SHA.PPC64LE.SHA_helpers.ws_opaque",
"Vale.Def.Types_s.add_wrap",
"Vale.Def.Words_s.pow2_32",
"Prims.op_Subtraction",
"Prims.Cons",
"FStar.Preorde... | [] | false | false | true | false | false | let lemma_ws_opaque (block: block_w) (t: counter)
: Lemma (requires 16 <= t && t < size_k_w_256)
(ensures
(let sigma0 = sigma256_0_0 (ws_opaque block (t - 15)) in
let sigma1 = sigma256_0_1 (ws_opaque block (t - 2)) in
ws_opaque block t ==
add_wrap (add_wrap (add_wrap sigm... | let t16 = ws SHA2_256 block (t - 16) in
let t15 = ws SHA2_256 block (t - 15) in
let t7 = ws SHA2_256 block (t - 7) in
let t2 = ws SHA2_256 block (t - 2) in
let sigma0 = sigma256_0_0 (ws_opaque block (t - 15)) in
let sigma1 = sigma256_0_1 (ws_opaque block (t - 2)) in
let s1 = _sigma1 SHA2_256 t2 in
let s0 = _sigma0 SHA2... | false |
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.shuffle_core_properties | val shuffle_core_properties (block: block_w) (hash: hash256) (t: counter{t < size_k_w_256})
: Lemma
(let h = shuffle_core_opaque block hash t in
let open Lib.IntTypes in
let a0 = hash.[ 0 ] in
let b0 = hash.[ 1 ] in
let c0 = hash.[ 2 ] in
let d0 = hash.[ 3 ] in
let e0 = hash.... | val shuffle_core_properties (block: block_w) (hash: hash256) (t: counter{t < size_k_w_256})
: Lemma
(let h = shuffle_core_opaque block hash t in
let open Lib.IntTypes in
let a0 = hash.[ 0 ] in
let b0 = hash.[ 1 ] in
let c0 = hash.[ 2 ] in
let d0 = hash.[ 3 ] in
let e0 = hash.... | let shuffle_core_properties (block:block_w) (hash:hash256) (t:counter{t < size_k_w_256}) :
Lemma(let h = shuffle_core_opaque block hash t in
let open Lib.IntTypes in
let a0 = hash.[0] in
let b0 = hash.[1] in
let c0 = hash.[2] in
let d0 = hash.[3] in
let e0... | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 4,
"end_line": 124,
"start_col": 0,
"start_line": 87
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
block: Vale.SHA.PPC64LE.SHA_helpers.block_w ->
hash: Vale.SHA.PPC64LE.SHA_helpers.hash256 ->
t: Vale.SHA.PPC64LE.SHA_helpers.counter{t < Vale.SHA.PPC64LE.SHA_helpers.size_k_w_256}
-> FStar.Pervasives.Lemma
(ensures
(let h = Vale.SHA.PPC64LE.SHA_helpers.shuffle_core_opaque block hash t in
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Vale.SHA.PPC64LE.SHA_helpers.counter",
"Prims.b2t",
"Prims.op_LessThan",
"Vale.SHA.PPC64LE.SHA_helpers.size_k_w_256",
"Prims.unit",
"FStar.Seq.Properties.elim_of_list",
"FStar.UInt32.t",
"Prims._assert",
"Prims.eq2"... | [] | true | false | true | false | false | let shuffle_core_properties (block: block_w) (hash: hash256) (t: counter{t < size_k_w_256})
: Lemma
(let h = shuffle_core_opaque block hash t in
let open Lib.IntTypes in
let a0 = hash.[ 0 ] in
let b0 = hash.[ 1 ] in
let c0 = hash.[ 2 ] in
let d0 = hash.[ 3 ] in
let e0 = hash.... | Pervasives.reveal_opaque (`%shuffle_core) shuffle_core;
let h = shuffle_core SHA2_256 block hash t in
let a0 = hash.[ 0 ] in
let b0 = hash.[ 1 ] in
let c0 = hash.[ 2 ] in
let d0 = hash.[ 3 ] in
let e0 = hash.[ 4 ] in
let f0 = hash.[ 5 ] in
let g0 = hash.[ 6 ] in
let h0 = hash.[ 7 ] in
let t1 =
h0 +. (_Sigma1 SHA2_256... | false |
Ariadne.fst | Ariadne.recover | val recover: p:protected -> last_saved:backup (Protect?.c p) -> All (option state)
(requires fun h0 -> True)
(ensures fun h0 r h1 ->
let Protect c _ = p in
let Counter _ c0 = sel h0 c in
let Counter _ c1 = sel h1 c in
match r with
| V None -> h0 == h1
| V (Some w1) -> (
c1 == Ok w1 /\
(match c0... | val recover: p:protected -> last_saved:backup (Protect?.c p) -> All (option state)
(requires fun h0 -> True)
(ensures fun h0 r h1 ->
let Protect c _ = p in
let Counter _ c0 = sel h0 c in
let Counter _ c1 = sel h1 c in
match r with
| V None -> h0 == h1
| V (Some w1) -> (
c1 == Ok w1 /\
(match c0... | let recover p last_saved =
let Protect c _ = p in
let m, w = last_saved in
let Counter n c0 = read c in
if m = n // authenticated decryption (see earlier comments on backup keys)
then (
recall (saved_backup c last_saved);
save p w;
incr c w;
save p w;
incr c w;
Some w)
else None | {
"file_name": "examples/preorders/Ariadne.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 11,
"end_line": 232,
"start_col": 0,
"start_line": 220
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.ST.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.MRef.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Heap.fst.checked",
"FStar.Al... | [
{
"abbrev": false,
"full_module": "FStar.All // Compared to the accompanying POPL'18 paper, we use F*'s All effect to",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.MRef",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"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: Ariadne.protected -> last_saved: Ariadne.backup (Protect?.c p)
-> FStar.All.All (FStar.Pervasives.Native.option Ariadne.state) | FStar.All.All | [] | [] | [
"Ariadne.protected",
"Ariadne.backup",
"Ariadne.__proj__Protect__item__c",
"Ariadne.ctr",
"Ariadne.key",
"Ariadne.index",
"Ariadne.state",
"Ariadne.case",
"Prims.op_Equality",
"FStar.Pervasives.Native.Some",
"FStar.Pervasives.Native.option",
"Prims.unit",
"Ariadne.incr",
"Ariadne.save",
... | [] | false | true | false | false | false | let recover p last_saved =
| let Protect c _ = p in
let m, w = last_saved in
let Counter n c0 = read c in
if m = n
then
(recall (saved_backup c last_saved);
save p w;
incr c w;
save p w;
incr c w;
Some w)
else None | false |
Ariadne.fst | Ariadne.example | val example: trivial (trivial ctr) | val example: trivial (trivial ctr) | let example attack =
let p = create "hello" in
let Protect c k = p in
store p "world";
attack c;
match read k with
| r::_ ->
(match recover p r with
| Some _ -> store p "!\n"
| _ -> ())
| _ -> () | {
"file_name": "examples/preorders/Ariadne.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 9,
"end_line": 248,
"start_col": 0,
"start_line": 238
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.ST.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.MRef.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.Heap.fst.checked",
"FStar.Al... | [
{
"abbrev": false,
"full_module": "FStar.All // Compared to the accompanying POPL'18 paper, we use F*'s All effect to",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.MRef",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.ST",
"short_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Ariadne.trivial (Ariadne.trivial Ariadne.ctr) | Prims.Tot | [
"total"
] | [] | [
"Ariadne.trivial",
"Ariadne.ctr",
"Ariadne.key",
"Ariadne.backup",
"Prims.list",
"Ariadne.state",
"Ariadne.store",
"Prims.unit",
"FStar.Pervasives.Native.option",
"Ariadne.recover",
"FStar.ST.read",
"Ariadne.log_pre",
"Ariadne.protected",
"Ariadne.create"
] | [] | false | false | false | true | false | let example attack =
| let p = create "hello" in
let Protect c k = p in
store p "world";
attack c;
match read k with
| r :: _ ->
(match recover p r with
| Some _ -> store p "!\n"
| _ -> ())
| _ -> () | false |
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.lemma_update_multi_equiv_vale | val lemma_update_multi_equiv_vale (hash hash':hash256) (quads:seq quad32) (r_quads:seq quad32)
(nat8s:seq nat8) (blocks:seq byte) :
Lemma (requires length quads % 4 == 0 /\
r_quads == reverse_bytes_quad32_seq quads /\
nat8s == le_seq_quad32_to_bytes quads /\
blo... | val lemma_update_multi_equiv_vale (hash hash':hash256) (quads:seq quad32) (r_quads:seq quad32)
(nat8s:seq nat8) (blocks:seq byte) :
Lemma (requires length quads % 4 == 0 /\
r_quads == reverse_bytes_quad32_seq quads /\
nat8s == le_seq_quad32_to_bytes quads /\
blo... | let rec lemma_update_multi_equiv_vale (hash hash':hash256) (quads:seq quad32) (r_quads:seq quad32)
(nat8s:seq nat8) (blocks:seq UInt8.t) :
Lemma (requires length quads % 4 == 0 /\
r_quads == reverse_bytes_quad32_seq quads /\
nat8s == le_seq_quad32_to_bytes quads /\
... | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 5,
"end_line": 835,
"start_col": 0,
"start_line": 769
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
hash: Vale.SHA.PPC64LE.SHA_helpers.hash256 ->
hash': Vale.SHA.PPC64LE.SHA_helpers.hash256 ->
quads: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
r_quads: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
nat8s: FStar.Seq.Base.seq Vale.Def.Words_s.nat8 ->
blocks: FStar.Seq.Base.seq Vale.SHA.PPC64LE... | FStar.Pervasives.Lemma | [
"",
"lemma"
] | [] | [
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.quad32",
"Vale.Def.Words_s.nat8",
"FStar.UInt8.t",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"Prims.unit",
"Spec.Hash.Lemmas.update_multi_zero",
"Spec.Hash.Definitions.SHA2_256",
"Prims._assert",
... | [
"recursion"
] | false | false | true | false | false | let rec lemma_update_multi_equiv_vale
(hash hash': hash256)
(quads r_quads: seq quad32)
(nat8s: seq nat8)
(blocks: seq UInt8.t)
: Lemma
(requires
length quads % 4 == 0 /\ r_quads == reverse_bytes_quad32_seq quads /\
nat8s == le_seq_quad32_to_bytes quads /\ blocks == seq... | lemma_mod_transform quads;
assert (length blocks % 64 == 0);
update_multi_reveal ();
if length quads = 0
then
(lemma_le_seq_quad32_to_bytes_length quads;
lemma_update_multi_quads_short r_quads hash;
assert (equal blocks empty);
update_multi_zero SHA2_256 hash;
())
else
let num_blocks = (length quads... | false |
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.update_lemma | val update_lemma (a b c d e f g h a_old b_old c_old d_old e_old f_old g_old h_old a' b' c' d' e' f' g' h':quad32) (block:block_w) : Lemma
(requires (let hash_orig = make_seperated_hash_quad32 a_old b_old c_old d_old e_old f_old g_old h_old in
make_seperated_hash_quad32 a b c d e f g h ==
rep... | val update_lemma (a b c d e f g h a_old b_old c_old d_old e_old f_old g_old h_old a' b' c' d' e' f' g' h':quad32) (block:block_w) : Lemma
(requires (let hash_orig = make_seperated_hash_quad32 a_old b_old c_old d_old e_old f_old g_old h_old in
make_seperated_hash_quad32 a b c d e f g h ==
rep... | let update_lemma (a b c d e f g h a_old b_old c_old d_old e_old f_old g_old h_old a' b' c' d' e' f' g' h':quad32) (block:block_w) : Lemma
(requires (let hash_orig = make_seperated_hash_quad32 a_old b_old c_old d_old e_old f_old g_old h_old in
make_seperated_hash_quad32 a b c d e f g h ==
rep... | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 4,
"end_line": 584,
"start_col": 0,
"start_line": 548
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Vale.Def.Types_s.quad32 ->
b: Vale.Def.Types_s.quad32 ->
c: Vale.Def.Types_s.quad32 ->
d: Vale.Def.Types_s.quad32 ->
e: Vale.Def.Types_s.quad32 ->
f: Vale.Def.Types_s.quad32 ->
g: Vale.Def.Types_s.quad32 ->
h: Vale.Def.Types_s.quad32 ->
a_old: Vale.Def.Types_s.quad32 ->
b_old... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.Def.Types_s.quad32",
"Vale.SHA.PPC64LE.SHA_helpers.block_w",
"Prims.unit",
"Prims._assert",
"FStar.Seq.Base.equal",
"Vale.SHA.PPC64LE.SHA_helpers.word",
"Vale.SHA.PPC64LE.SHA_helpers.make_seperated_hash_quad32",
"Vale.SHA.PPC64LE.SHA_helpers.update_block",
"Spec.SHA2.Lemmas.shuffle_is_shuffle_... | [] | false | false | true | false | false | let update_lemma
(a b c d e f g h a_old b_old c_old d_old e_old f_old g_old h_old a' b' c' d' e' f' g' h':
quad32)
(block: block_w)
: Lemma
(requires
(let hash_orig =
make_seperated_hash_quad32 a_old b_old c_old d_old e_old f_old g_old h_old
in
mak... | let hash_orig = make_seperated_hash_quad32 a_old b_old c_old d_old e_old f_old g_old h_old in
let hash_1 = shuffle_opaque SHA2_256 hash_orig block in
Pervasives.reveal_opaque (`%shuffle) shuffle;
Pervasives.reveal_opaque (`%shuffle_core) shuffle_core;
let rec r (i: nat{i <= 64})
: Lemma
(Spec.Loops.repeat_range... | false |
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.lemma_hash_to_bytes | val lemma_hash_to_bytes (s:seq quad32) : Lemma
(requires length s == 2)
(ensures make_ordered_hash s.[0] s.[1] == le_bytes_to_hash (le_seq_quad32_to_bytes s)) | val lemma_hash_to_bytes (s:seq quad32) : Lemma
(requires length s == 2)
(ensures make_ordered_hash s.[0] s.[1] == le_bytes_to_hash (le_seq_quad32_to_bytes s)) | let lemma_hash_to_bytes (s:seq quad32) : Lemma
(requires length s == 2)
(ensures make_ordered_hash s.[0] s.[1] == le_bytes_to_hash (le_seq_quad32_to_bytes s))
=
lemma_le_bytes_to_hash_quads s;
assert (equal (make_ordered_hash s.[0] s.[1]) (le_bytes_to_hash (le_seq_quad32_to_bytes s)));
() | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 4,
"end_line": 693,
"start_col": 0,
"start_line": 687
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: FStar.Seq.Base.seq Vale.Def.Types_s.quad32
-> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length s == 2)
(ensures
Vale.SHA.PPC64LE.SHA_helpers.make_ordered_hash s.[ 0 ] s.[ 1 ] ==
Vale.SHA.PPC64LE.SHA_helpers.le_bytes_to_hash (Vale.Def.Types_s.le_seq_quad32_to_bytes s)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.quad32",
"Prims.unit",
"Prims._assert",
"FStar.Seq.Base.equal",
"Vale.SHA.PPC64LE.SHA_helpers.word",
"Vale.SHA.PPC64LE.SHA_helpers.make_ordered_hash",
"Spec.SHA2.op_String_Access",
"Vale.SHA.PPC64LE.SHA_helpers.le_bytes_to_hash",
"Vale.Def.Types_s.le_seq_qua... | [] | true | false | true | false | false | let lemma_hash_to_bytes (s: seq quad32)
: Lemma (requires length s == 2)
(ensures make_ordered_hash s.[ 0 ] s.[ 1 ] == le_bytes_to_hash (le_seq_quad32_to_bytes s)) =
| lemma_le_bytes_to_hash_quads s;
assert (equal (make_ordered_hash s.[ 0 ] s.[ 1 ]) (le_bytes_to_hash (le_seq_quad32_to_bytes s)));
() | false |
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.lemma_update_multi_quads | val lemma_update_multi_quads (s:seq quad32) (hash_orig:hash256) (bound:nat) : Lemma
(requires bound + 4 <= length s)
(ensures (let prefix_LE = slice s 0 bound in
let prefix_BE = reverse_bytes_quad32_seq prefix_LE in
let h_prefix = update_multi_quads prefix_BE hash_orig in
... | val lemma_update_multi_quads (s:seq quad32) (hash_orig:hash256) (bound:nat) : Lemma
(requires bound + 4 <= length s)
(ensures (let prefix_LE = slice s 0 bound in
let prefix_BE = reverse_bytes_quad32_seq prefix_LE in
let h_prefix = update_multi_quads prefix_BE hash_orig in
... | let lemma_update_multi_quads (s:seq quad32) (hash_orig:hash256) (bound:nat) : Lemma
(requires bound + 4 <= length s)
(ensures (let prefix_LE = slice s 0 bound in
let prefix_BE = reverse_bytes_quad32_seq prefix_LE in
let h_prefix = update_multi_quads prefix_BE hash_orig in
... | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 634,
"start_col": 0,
"start_line": 604
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
s: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256 ->
bound: Prims.nat
-> FStar.Pervasives.Lemma (requires bound + 4 <= FStar.Seq.Base.length s)
(ensures
(let prefix_LE = FStar.Seq.Base.slice s 0 bound in
let prefix_BE = Vale.Arch.Type... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.quad32",
"Vale.SHA.PPC64LE.SHA_helpers.hash256",
"Prims.nat",
"Prims.op_Equality",
"Prims.int",
"Prims.bool",
"Prims.unit",
"Prims._assert",
"FStar.Seq.Base.equal",
"FStar.Pervasives.Native.tuple2",
"FStar.Seq.Properties.split",
"Prims.op_Subtraction",... | [] | false | false | true | false | false | let lemma_update_multi_quads (s: seq quad32) (hash_orig: hash256) (bound: nat)
: Lemma (requires bound + 4 <= length s)
(ensures
(let prefix_LE = slice s 0 bound in
let prefix_BE = reverse_bytes_quad32_seq prefix_LE in
let h_prefix = update_multi_quads prefix_BE hash_orig in
... | let prefix_LE = slice s 0 bound in
let prefix_BE = reverse_bytes_quad32_seq prefix_LE in
let h_prefix = update_multi_quads prefix_BE hash_orig in
let block_quads_LE = slice s bound (bound + 4) in
let block_quads_BE = reverse_bytes_quad32_seq block_quads_LE in
let input_LE = slice s 0 (bound + 4) in
let input_BE = rever... | false |
Vale.X64.InsLemmas.fsti | Vale.X64.InsLemmas.has_taint128 | val has_taint128 (o: operand128) (t: taint) : bool | val has_taint128 (o: operand128) (t: taint) : bool | let has_taint128 (o:operand128) (t:taint) : bool =
match o with
| OMem (_, t') | OStack (_, t') -> t = t'
| _ -> true | {
"file_name": "vale/code/arch/x64/Vale.X64.InsLemmas.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 16,
"start_col": 0,
"start_line": 13
} | module Vale.X64.InsLemmas
open FStar.Mul
open Vale.Arch.HeapImpl
open Vale.X64.Machine_s
open Vale.X64.Instruction_s
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.Memory
module BC = Vale.X64.Bytes_Code_s | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Instruction_s.fsti.checked",
"Vale.X64.Decls.fsti.checked",... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Vale.X64.Bytes_Code_s",
"short_module": "BC"
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"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 | o: Vale.X64.Machine_s.operand128 -> t: Vale.Arch.HeapTypes_s.taint -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Machine_s.operand128",
"Vale.Arch.HeapTypes_s.taint",
"Vale.X64.Machine_s.maddr",
"Prims.op_Equality",
"Vale.X64.Machine_s.operand",
"Vale.X64.Machine_s.quad32",
"Vale.X64.Machine_s.reg_xmm",
"Prims.bool"
] | [] | false | false | false | true | false | let has_taint128 (o: operand128) (t: taint) : bool =
| match o with
| OMem (_, t') | OStack (_, t') -> t = t'
| _ -> true | false |
Vale.X64.InsLemmas.fsti | Vale.X64.InsLemmas.make_instr_outs | val make_instr_outs
(outs: list instr_out)
(args: list instr_operand)
(k: arrow (instr_operands_t outs args) S.ins)
: make_instr_t outs args | val make_instr_outs
(outs: list instr_out)
(args: list instr_operand)
(k: arrow (instr_operands_t outs args) S.ins)
: make_instr_t outs args | let rec make_instr_outs
(outs:list instr_out) (args:list instr_operand) (k:arrow (instr_operands_t outs args) S.ins)
: make_instr_t outs args =
match outs with
| [] -> make_instr_args args k
| (b, IOpEx i)::outs -> fun (o:instr_operand_t i) ->
let k = coerce #(arrow (instr_operand_t i & instr_operands... | {
"file_name": "vale/code/arch/x64/Vale.X64.InsLemmas.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 115,
"end_line": 64,
"start_col": 0,
"start_line": 55
} | module Vale.X64.InsLemmas
open FStar.Mul
open Vale.Arch.HeapImpl
open Vale.X64.Machine_s
open Vale.X64.Instruction_s
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.Memory
module BC = Vale.X64.Bytes_Code_s
module S = Vale.X64.Machine_Semantics_s
let has_taint128 (o:operand128) (t:taint)... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Instruction_s.fsti.checked",
"Vale.X64.Decls.fsti.checked",... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Vale.X64.Bytes_Code_s",
"short_module": "BC"
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"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 |
outs: Prims.list Vale.X64.Instruction_s.instr_out ->
args: Prims.list Vale.X64.Instruction_s.instr_operand ->
k:
Vale.X64.Instruction_s.arrow (Vale.X64.Instruction_s.instr_operands_t outs args)
Vale.X64.Machine_Semantics_s.ins
-> Vale.X64.InsLemmas.make_instr_t outs args | Prims.Tot | [
"total"
] | [] | [
"Prims.list",
"Vale.X64.Instruction_s.instr_out",
"Vale.X64.Instruction_s.instr_operand",
"Vale.X64.Instruction_s.arrow",
"Vale.X64.Instruction_s.instr_operands_t",
"Vale.X64.Machine_Semantics_s.ins",
"Vale.X64.InsLemmas.make_instr_args",
"Vale.X64.Instruction_s.instr_operand_inout",
"Vale.X64.Instr... | [
"recursion"
] | false | false | false | false | false | let rec make_instr_outs
(outs: list instr_out)
(args: list instr_operand)
(k: arrow (instr_operands_t outs args) S.ins)
: make_instr_t outs args =
| match outs with
| [] -> make_instr_args args k
| (b, IOpEx i) :: outs ->
fun (o: instr_operand_t i) ->
let k = coerce #(arrow (instr_operand_t i & instr_operands_t outs args) S.ins) k in
let k (oprs: instr_operands_t outs args) = k (o, oprs) in
make_instr_outs outs args k
| (_, IOpIm i) :: outs ->
coerc... | false |
Vale.X64.InsLemmas.fsti | Vale.X64.InsLemmas.make_instr_t_args | val make_instr_t_args (args: list instr_operand) : Type0 | val make_instr_t_args (args: list instr_operand) : Type0 | let rec make_instr_t_args (args:list instr_operand) : Type0 =
match normal args with
| [] -> S.ins
| (IOpEx i)::args -> arrow (instr_operand_t i) (make_instr_t_args args)
| (IOpIm _)::args -> make_instr_t_args args | {
"file_name": "vale/code/arch/x64/Vale.X64.InsLemmas.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 45,
"end_line": 33,
"start_col": 0,
"start_line": 29
} | module Vale.X64.InsLemmas
open FStar.Mul
open Vale.Arch.HeapImpl
open Vale.X64.Machine_s
open Vale.X64.Instruction_s
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.Memory
module BC = Vale.X64.Bytes_Code_s
module S = Vale.X64.Machine_Semantics_s
let has_taint128 (o:operand128) (t:taint)... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Instruction_s.fsti.checked",
"Vale.X64.Decls.fsti.checked",... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Vale.X64.Bytes_Code_s",
"short_module": "BC"
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"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 | args: Prims.list Vale.X64.Instruction_s.instr_operand -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.list",
"Vale.X64.Instruction_s.instr_operand",
"Vale.X64.Instruction_s.normal",
"Vale.X64.Machine_Semantics_s.ins",
"Vale.X64.Instruction_s.instr_operand_explicit",
"Vale.X64.Instruction_s.arrow",
"Vale.X64.Instruction_s.instr_operand_t",
"Vale.X64.InsLemmas.make_instr_t_args",
"Vale.X64.Inst... | [
"recursion"
] | false | false | false | true | true | let rec make_instr_t_args (args: list instr_operand) : Type0 =
| match normal args with
| [] -> S.ins
| IOpEx i :: args -> arrow (instr_operand_t i) (make_instr_t_args args)
| IOpIm _ :: args -> make_instr_t_args args | false |
Vale.X64.InsLemmas.fsti | Vale.X64.InsLemmas.make_instr_args | val make_instr_args (args: list instr_operand) (k: arrow (instr_operands_t_args args) S.ins)
: make_instr_t_args args | val make_instr_args (args: list instr_operand) (k: arrow (instr_operands_t_args args) S.ins)
: make_instr_t_args args | let rec make_instr_args
(args:list instr_operand) (k:arrow (instr_operands_t_args args) S.ins)
: make_instr_t_args args =
match args with
| [] -> k ()
| (IOpEx i)::args -> fun (o:instr_operand_t i) ->
let k = coerce #(arrow (instr_operand_t i & instr_operands_t_args args) S.ins) k in // REVIEW: workar... | {
"file_name": "vale/code/arch/x64/Vale.X64.InsLemmas.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 107,
"end_line": 52,
"start_col": 0,
"start_line": 43
} | module Vale.X64.InsLemmas
open FStar.Mul
open Vale.Arch.HeapImpl
open Vale.X64.Machine_s
open Vale.X64.Instruction_s
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.Memory
module BC = Vale.X64.Bytes_Code_s
module S = Vale.X64.Machine_Semantics_s
let has_taint128 (o:operand128) (t:taint)... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Instruction_s.fsti.checked",
"Vale.X64.Decls.fsti.checked",... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Vale.X64.Bytes_Code_s",
"short_module": "BC"
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"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 |
args: Prims.list Vale.X64.Instruction_s.instr_operand ->
k:
Vale.X64.Instruction_s.arrow (Vale.X64.Instruction_s.instr_operands_t_args args)
Vale.X64.Machine_Semantics_s.ins
-> Vale.X64.InsLemmas.make_instr_t_args args | Prims.Tot | [
"total"
] | [] | [
"Prims.list",
"Vale.X64.Instruction_s.instr_operand",
"Vale.X64.Instruction_s.arrow",
"Vale.X64.Instruction_s.instr_operands_t_args",
"Vale.X64.Machine_Semantics_s.ins",
"Vale.X64.Instruction_s.instr_operand_explicit",
"Vale.X64.Instruction_s.instr_operand_t",
"Vale.X64.InsLemmas.make_instr_args",
"... | [
"recursion"
] | false | false | false | false | false | let rec make_instr_args (args: list instr_operand) (k: arrow (instr_operands_t_args args) S.ins)
: make_instr_t_args args =
| match args with
| [] -> k ()
| IOpEx i :: args ->
fun (o: instr_operand_t i) ->
let k = coerce #(arrow (instr_operand_t i & instr_operands_t_args args) S.ins) k in
let k (oprs: instr_operands_t_args args) : S.ins = k (o, oprs) in
make_instr_args args k
| IOpIm i :: args ->
coerce (make_instr_args args (... | false |
Vale.X64.InsLemmas.fsti | Vale.X64.InsLemmas.make_instr_t | val make_instr_t (outs: list instr_out) (args: list instr_operand) : Type0 | val make_instr_t (outs: list instr_out) (args: list instr_operand) : Type0 | let rec make_instr_t (outs:list instr_out) (args:list instr_operand) : Type0 =
match normal outs with
| [] -> make_instr_t_args args
| (_, IOpEx i)::outs -> arrow (instr_operand_t i) (make_instr_t outs args)
| (_, IOpIm _)::outs -> make_instr_t outs args | {
"file_name": "vale/code/arch/x64/Vale.X64.InsLemmas.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 48,
"end_line": 40,
"start_col": 0,
"start_line": 36
} | module Vale.X64.InsLemmas
open FStar.Mul
open Vale.Arch.HeapImpl
open Vale.X64.Machine_s
open Vale.X64.Instruction_s
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.Memory
module BC = Vale.X64.Bytes_Code_s
module S = Vale.X64.Machine_Semantics_s
let has_taint128 (o:operand128) (t:taint)... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Instruction_s.fsti.checked",
"Vale.X64.Decls.fsti.checked",... | [
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": true,
"full_module": "Vale.X64.Bytes_Code_s",
"short_module": "BC"
},
{
"abbrev": false,
"full_module": "Vale.X64.Memory",
"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 |
outs: Prims.list Vale.X64.Instruction_s.instr_out ->
args: Prims.list Vale.X64.Instruction_s.instr_operand
-> Type0 | Prims.Tot | [
"total"
] | [] | [
"Prims.list",
"Vale.X64.Instruction_s.instr_out",
"Vale.X64.Instruction_s.instr_operand",
"Vale.X64.Instruction_s.normal",
"FStar.Pervasives.Native.tuple2",
"Vale.X64.Instruction_s.instr_operand_inout",
"Vale.X64.InsLemmas.make_instr_t_args",
"Vale.X64.Instruction_s.instr_operand_explicit",
"Vale.X6... | [
"recursion"
] | false | false | false | true | true | let rec make_instr_t (outs: list instr_out) (args: list instr_operand) : Type0 =
| match normal outs with
| [] -> make_instr_t_args args
| (_, IOpEx i) :: outs -> arrow (instr_operand_t i) (make_instr_t outs args)
| (_, IOpIm _) :: outs -> make_instr_t outs args | false |
Hacl.Impl.Blake2.Core.fst | Hacl.Impl.Blake2.Core.zero_element | val zero_element: a:Spec.alg -> m:m_spec -> element_t a m | val zero_element: a:Spec.alg -> m:m_spec -> element_t a m | let zero_element (a:Spec.alg) (m:m_spec) : element_t a m =
match a,m with
| Spec.Blake2S,M128 -> (vec_zero U32 4)
| Spec.Blake2S,M256 -> (vec_zero U32 4)
| Spec.Blake2B,M256 -> (vec_zero U64 4)
| _ -> Spec.zero a | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 20,
"end_line": 22,
"start_col": 0,
"start_line": 17
} | module Hacl.Impl.Blake2.Core
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.IntVector
module Spec = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1" | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Blake2.Definitions.alg -> m: Hacl.Impl.Blake2.Core.m_spec
-> Hacl.Impl.Blake2.Core.element_t a m | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"FStar.Pervasives.Native.Mktuple2",
"Lib.IntVector.vec_zero",
"Lib.IntTypes.U32",
"Lib.IntTypes.U64",
"FStar.Pervasives.Native.tuple2",
"Spec.Blake2.Definitions.zero",
"Hacl.Impl.Blake2.Core.element_t"
] | [] | false | false | false | false | false | let zero_element (a: Spec.alg) (m: m_spec) : element_t a m =
| match a, m with
| Spec.Blake2S, M128 -> (vec_zero U32 4)
| Spec.Blake2S, M256 -> (vec_zero U32 4)
| Spec.Blake2B, M256 -> (vec_zero U64 4)
| _ -> Spec.zero a | false |
Vale.AES.X64.GCMdecryptOpt.fst | Vale.AES.X64.GCMdecryptOpt.va_lemma_Gcm_blocks_decrypt_stdcall | val va_lemma_Gcm_blocks_decrypt_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool ->
alg:algorithm -> auth_b:buffer128 -> auth_bytes:nat64 -> auth_num:nat64 -> keys_b:buffer128 ->
iv_b:buffer128 -> iv:supported_iv_LE -> hkeys_b:buffer128 -> abytes_b:buffer128 ->
in128x6_b:buffer128 -> out128x6_b:buffer128 -> ... | val va_lemma_Gcm_blocks_decrypt_stdcall : va_b0:va_code -> va_s0:va_state -> win:bool ->
alg:algorithm -> auth_b:buffer128 -> auth_bytes:nat64 -> auth_num:nat64 -> keys_b:buffer128 ->
iv_b:buffer128 -> iv:supported_iv_LE -> hkeys_b:buffer128 -> abytes_b:buffer128 ->
in128x6_b:buffer128 -> out128x6_b:buffer128 -> ... | let va_lemma_Gcm_blocks_decrypt_stdcall va_b0 va_s0 win alg auth_b auth_bytes auth_num keys_b iv_b
iv hkeys_b abytes_b in128x6_b out128x6_b len128x6_num in128_b out128_b len128_num inout_b
cipher_num scratch_b tag_b key =
let (va_mods:va_mods_t) = [va_Mod_stackTaint; va_Mod_stack; va_Mod_flags; va_Mod_mem_layout;... | {
"file_name": "obj/Vale.AES.X64.GCMdecryptOpt.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 2317,
"start_col": 0,
"start_line": 2145
} | module Vale.AES.X64.GCMdecryptOpt
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open FStar.Seq
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.AES.AES_s
open Vale.AES.GCTR_s
open Vale.AES.GCTR
open Vale.AES.GCM
open Vale.AES.GHash_s
open Vale.AE... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.Stack.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.In... | [
{
"abbrev": false,
"full_module": "Vale.Lib.Basic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.OptPublic",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.GCMencryptOpt",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
win: Prims.bool ->
alg: Vale.AES.AES_common_s.algorithm ->
auth_b: Vale.X64.Memory.buffer128 ->
auth_bytes: Vale.X64.Memory.nat64 ->
auth_num: Vale.X64.Memory.nat64 ->
keys_b: Vale.X64.Memory.buffer128 ->
iv_b: Vale.... | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Prims.bool",
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Memory.buffer128",
"Vale.X64.Memory.nat64",
"Vale.AES.GCM_s.supported_iv_LE",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.QuickCodes.fuel",
"Prims.unit",
"FStar.Pervasiv... | [] | false | false | false | false | false | let va_lemma_Gcm_blocks_decrypt_stdcall
va_b0
va_s0
win
alg
auth_b
auth_bytes
auth_num
keys_b
iv_b
iv
hkeys_b
abytes_b
in128x6_b
out128x6_b
len128x6_num
in128_b
out128_b
len128_num
inout_b
cipher_num
... | let va_mods:va_mods_t =
[
va_Mod_stackTaint; va_Mod_stack; va_Mod_flags; va_Mod_mem_layout; va_Mod_mem_heaplet 6;
va_Mod_mem_heaplet 5; va_Mod_mem_heaplet 3; va_Mod_mem_heaplet 2; va_Mod_mem_heaplet 1;
va_Mod_xmm 15; va_Mod_xmm 14; va_Mod_xmm 13; va_Mod_xmm 12; va_Mod_xmm 11; va_Mod_xmm 10;
va_Mod_xmm... | false |
Hacl.Impl.Blake2.Core.fst | Hacl.Impl.Blake2.Core.row_v | val row_v: #a:Spec.alg -> #m:m_spec -> h:mem -> row_p a m -> GTot (Spec.row a) | val row_v: #a:Spec.alg -> #m:m_spec -> h:mem -> row_p a m -> GTot (Spec.row a) | let row_v #a #m h r =
match a,m with
| Spec.Blake2S,M128 -> vec_v (Lib.Sequence.index (as_seq h r) 0)
| Spec.Blake2S,M256 -> vec_v (Lib.Sequence.index (as_seq h r) 0)
| Spec.Blake2B,M256 -> vec_v (Lib.Sequence.index (as_seq h r) 0)
| _ -> as_seq h r | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 19,
"end_line": 30,
"start_col": 0,
"start_line": 25
} | module Hacl.Impl.Blake2.Core
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.IntVector
module Spec = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
noextract inline_for_extraction
let zero_element (a... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h: FStar.Monotonic.HyperStack.mem -> r: Hacl.Impl.Blake2.Core.row_p a m
-> Prims.GTot (Spec.Blake2.Definitions.row a) | Prims.GTot | [
"sometrivial"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"FStar.Monotonic.HyperStack.mem",
"Hacl.Impl.Blake2.Core.row_p",
"FStar.Pervasives.Native.Mktuple2",
"Lib.IntVector.vec_v",
"Spec.Blake2.Definitions.wt",
"Lib.Sequence.index",
"Hacl.Impl.Blake2.Core.element_t",
"Lib.IntTypes.v",
"Lib... | [] | false | false | false | false | false | let row_v #a #m h r =
| match a, m with
| Spec.Blake2S, M128 -> vec_v (Lib.Sequence.index (as_seq h r) 0)
| Spec.Blake2S, M256 -> vec_v (Lib.Sequence.index (as_seq h r) 0)
| Spec.Blake2B, M256 -> vec_v (Lib.Sequence.index (as_seq h r) 0)
| _ -> as_seq h r | false |
Hacl.Impl.Blake2.Core.fst | Hacl.Impl.Blake2.Core.g_rowi_disjoint_other | val g_rowi_disjoint_other: #a:Spec.alg -> #m:m_spec -> #b:Type -> st:state_p a m -> i:index_t -> x:buffer b ->
Lemma(requires (disjoint st x))
(ensures (disjoint (g_rowi st i) x))
[SMTPat (disjoint (g_rowi st i) x)] | val g_rowi_disjoint_other: #a:Spec.alg -> #m:m_spec -> #b:Type -> st:state_p a m -> i:index_t -> x:buffer b ->
Lemma(requires (disjoint st x))
(ensures (disjoint (g_rowi st i) x))
[SMTPat (disjoint (g_rowi st i) x)] | let g_rowi_disjoint_other #a #m #b st i x =
assert (v (i *. row_len a m) + v (row_len a m) <= length st);
LowStar.Monotonic.Buffer.loc_includes_gsub_buffer_r' #_ #(LowStar.Buffer.trivial_preorder (element_t a m)) #(LowStar.Buffer.trivial_preorder (element_t a m)) st (i *. row_len a m) (row_len a m)
(LowStar.Bu... | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 51,
"end_line": 86,
"start_col": 0,
"start_line": 83
} | module Hacl.Impl.Blake2.Core
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.IntVector
module Spec = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
noextract inline_for_extraction
let zero_element (a... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | st: Hacl.Impl.Blake2.Core.state_p a m -> i: Hacl.Impl.Blake2.Core.index_t -> x: Lib.Buffer.buffer b
-> FStar.Pervasives.Lemma (requires Lib.Buffer.disjoint st x)
(ensures Lib.Buffer.disjoint (Hacl.Impl.Blake2.Core.g_rowi st i) x)
[SMTPat (Lib.Buffer.disjoint (Hacl.Impl.Blake2.Core.g_rowi st i) x)] | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"Hacl.Impl.Blake2.Core.state_p",
"Hacl.Impl.Blake2.Core.index_t",
"Lib.Buffer.buffer",
"LowStar.Monotonic.Buffer.loc_includes_gsub_buffer_r'",
"Hacl.Impl.Blake2.Core.element_t",
"LowStar.Buffer.trivial_preorder",
"Lib.IntTypes.op_Star_Do... | [] | true | false | true | false | false | let g_rowi_disjoint_other #a #m #b st i x =
| assert (v (i *. row_len a m) + v (row_len a m) <= length st);
LowStar.Monotonic.Buffer.loc_includes_gsub_buffer_r' #_
#(LowStar.Buffer.trivial_preorder (element_t a m))
#(LowStar.Buffer.trivial_preorder (element_t a m))
st
(i *. row_len a m)
(row_len a m)
(LowStar.Buffer.trivial_preorder (element_t a m)) | false |
Hacl.Impl.Blake2.Core.fst | Hacl.Impl.Blake2.Core.modifies_one_row | val modifies_one_row: a:Spec.alg -> m:m_spec -> h0:mem -> h1:mem -> st:state_p a m -> i:index_t -> j:index_t ->
Lemma (requires (live h0 st /\ modifies (loc (g_rowi st i)) h0 h1 /\ v i <> v j))
(ensures (row_v h1 (g_rowi st j) == row_v h0 (g_rowi st j)))
[SMTPat (modifies (loc (g_rowi st i)) h0 h1); SMTPat (row_v h... | val modifies_one_row: a:Spec.alg -> m:m_spec -> h0:mem -> h1:mem -> st:state_p a m -> i:index_t -> j:index_t ->
Lemma (requires (live h0 st /\ modifies (loc (g_rowi st i)) h0 h1 /\ v i <> v j))
(ensures (row_v h1 (g_rowi st j) == row_v h0 (g_rowi st j)))
[SMTPat (modifies (loc (g_rowi st i)) h0 h1); SMTPat (row_v h... | let modifies_one_row a m h0 h1 st i j =
let ri = g_rowi st i in
let rj = g_rowi st j in
assert (live h0 ri);
assert (live h0 rj);
assert (modifies (loc ri) h0 h1);
assert (disjoint rj ri);
assert (as_seq h1 rj == as_seq h0 rj) | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 41,
"end_line": 126,
"start_col": 0,
"start_line": 119
} | module Hacl.Impl.Blake2.Core
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.IntVector
module Spec = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
noextract inline_for_extraction
let zero_element (a... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Spec.Blake2.Definitions.alg ->
m: Hacl.Impl.Blake2.Core.m_spec ->
h0: FStar.Monotonic.HyperStack.mem ->
h1: FStar.Monotonic.HyperStack.mem ->
st: Hacl.Impl.Blake2.Core.state_p a m ->
i: Hacl.Impl.Blake2.Core.index_t ->
j: Hacl.Impl.Blake2.Core.index_t
-> FStar.Pervasives.Lemma
(r... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"FStar.Monotonic.HyperStack.mem",
"Hacl.Impl.Blake2.Core.state_p",
"Hacl.Impl.Blake2.Core.index_t",
"Prims._assert",
"Prims.eq2",
"Lib.Sequence.lseq",
"Hacl.Impl.Blake2.Core.element_t",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.In... | [] | true | false | true | false | false | let modifies_one_row a m h0 h1 st i j =
| let ri = g_rowi st i in
let rj = g_rowi st j in
assert (live h0 ri);
assert (live h0 rj);
assert (modifies (loc ri) h0 h1);
assert (disjoint rj ri);
assert (as_seq h1 rj == as_seq h0 rj) | false |
Vale.Stdcalls.X64.Fadd.fsti | Vale.Stdcalls.X64.Fadd.uint64 | val uint64 : Prims.eqtype | let uint64 = UInt64.t | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.Fadd.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 21,
"end_line": 31,
"start_col": 0,
"start_line": 31
} | module Vale.Stdcalls.X64.Fadd
val z3rlimit_hack (x:nat) : squash (x < x + x + 1)
#reset-options "--z3rlimit 50"
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastWide",
"short_module": "FW"
},
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastHybrid",
"short_module": "FH"
},
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastUtil",
"short_module": "FU"
},
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Prims.eqtype | Prims.Tot | [
"total"
] | [] | [
"FStar.UInt64.t"
] | [] | false | false | false | true | false | let uint64 =
| UInt64.t | false | |
Hacl.Impl.Blake2.Core.fst | Hacl.Impl.Blake2.Core.copy_state | val copy_state: #a:Spec.alg -> #m:m_spec -> st2:state_p a m -> st1:state_p a m ->
Stack unit
(requires (fun h0 -> live h0 st1 /\ live h0 st2 /\ disjoint st1 st2))
(ensures (fun h0 r h1 -> modifies (loc st2) h0 h1 /\
state_v h1 st2 == state_v h0 st1)) | val copy_state: #a:Spec.alg -> #m:m_spec -> st2:state_p a m -> st1:state_p a m ->
Stack unit
(requires (fun h0 -> live h0 st1 /\ live h0 st2 /\ disjoint st1 st2))
(ensures (fun h0 r h1 -> modifies (loc st2) h0 h1 /\
state_v h1 st2 == state_v h0 st1)) | let copy_state #a #m st2 st1 =
copy #_ #_ #(le_sigh a m) st2 st1 | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 35,
"end_line": 304,
"start_col": 0,
"start_line": 303
} | module Hacl.Impl.Blake2.Core
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.IntVector
module Spec = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
noextract inline_for_extraction
let zero_element (a... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | st2: Hacl.Impl.Blake2.Core.state_p a m -> st1: Hacl.Impl.Blake2.Core.state_p a m
-> 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",
"Lib.Buffer.copy",
"Lib.Buffer.MUT",
"Hacl.Impl.Blake2.Core.element_t",
"Hacl.Impl.Blake2.Core.le_sigh",
"Prims.unit"
] | [] | false | true | false | false | false | let copy_state #a #m st2 st1 =
| copy #_ #_ #(le_sigh a m) st2 st1 | false |
Vale.Stdcalls.X64.Fadd.fsti | Vale.Stdcalls.X64.Fadd.tuint64 | val tuint64 : Vale.Interop.Base.td | let tuint64 = TD_Base TUInt64 | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.Fadd.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 29,
"end_line": 46,
"start_col": 0,
"start_line": 46
} | module Vale.Stdcalls.X64.Fadd
val z3rlimit_hack (x:nat) : squash (x < x + x + 1)
#reset-options "--z3rlimit 50"
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastWide",
"short_module": "FW"
},
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastHybrid",
"short_module": "FH"
},
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastUtil",
"short_module": "FU"
},
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Vale.Interop.Base.td | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.Base.TD_Base",
"Vale.Arch.HeapTypes_s.TUInt64"
] | [] | false | false | false | true | false | let tuint64 =
| TD_Base TUInt64 | false | |
Vale.Stdcalls.X64.Fadd.fsti | Vale.Stdcalls.X64.Fadd.t64_no_mod | val t64_no_mod : Vale.Interop.Base.td | let t64_no_mod = TD_Buffer TUInt64 TUInt64 ({modified=false; strict_disjointness=false; taint=MS.Secret}) | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.Fadd.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 105,
"end_line": 44,
"start_col": 0,
"start_line": 44
} | module Vale.Stdcalls.X64.Fadd
val z3rlimit_hack (x:nat) : squash (x < x + x + 1)
#reset-options "--z3rlimit 50"
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastWide",
"short_module": "FW"
},
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastHybrid",
"short_module": "FH"
},
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastUtil",
"short_module": "FU"
},
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Vale.Interop.Base.td | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.Base.TD_Buffer",
"Vale.Arch.HeapTypes_s.TUInt64",
"Vale.Interop.Base.Mkbuffer_qualifiers",
"Vale.Arch.HeapTypes_s.Secret"
] | [] | false | false | false | true | false | let t64_no_mod =
| TD_Buffer TUInt64 TUInt64 ({ modified = false; strict_disjointness = false; taint = MS.Secret }) | false | |
Vale.Stdcalls.X64.Fadd.fsti | Vale.Stdcalls.X64.Fadd.t64_mod | val t64_mod : Vale.Interop.Base.td | let t64_mod = TD_Buffer TUInt64 TUInt64 default_bq | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.Fadd.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 50,
"end_line": 42,
"start_col": 0,
"start_line": 42
} | module Vale.Stdcalls.X64.Fadd
val z3rlimit_hack (x:nat) : squash (x < x + x + 1)
#reset-options "--z3rlimit 50"
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastWide",
"short_module": "FW"
},
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastHybrid",
"short_module": "FH"
},
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastUtil",
"short_module": "FU"
},
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Vale.Interop.Base.td | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.Base.TD_Buffer",
"Vale.Arch.HeapTypes_s.TUInt64",
"Vale.Interop.Base.default_bq"
] | [] | false | false | false | true | false | let t64_mod =
| TD_Buffer TUInt64 TUInt64 default_bq | false | |
Hacl.Impl.Blake2.Core.fst | Hacl.Impl.Blake2.Core.rowi | val rowi: #a:Spec.alg -> #m:m_spec -> st:state_p a m -> idx:index_t ->
Stack (row_p a m)
(requires (fun h -> live h st))
(ensures (fun h0 r h1 -> h0 == h1 /\ live h1 r /\ r == g_rowi st idx)) | val rowi: #a:Spec.alg -> #m:m_spec -> st:state_p a m -> idx:index_t ->
Stack (row_p a m)
(requires (fun h -> live h st))
(ensures (fun h0 r h1 -> h0 == h1 /\ live h1 r /\ r == g_rowi st idx)) | let rowi (#a:Spec.alg) (#m:m_spec) (st:state_p a m) (idx:index_t) =
sub st (idx *. row_len a m) (row_len a m) | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 43,
"end_line": 135,
"start_col": 0,
"start_line": 134
} | module Hacl.Impl.Blake2.Core
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.IntVector
module Spec = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
noextract inline_for_extraction
let zero_element (a... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | st: Hacl.Impl.Blake2.Core.state_p a m -> idx: Hacl.Impl.Blake2.Core.index_t
-> FStar.HyperStack.ST.Stack (Hacl.Impl.Blake2.Core.row_p a m) | 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.Buffer.sub",
"Lib.Buffer.MUT",
"Hacl.Impl.Blake2.Core.element_t",
"Lib.IntTypes.op_Star_Dot",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"FStar.UInt32.__uint_to_t",
... | [] | false | true | false | false | false | let rowi (#a: Spec.alg) (#m: m_spec) (st: state_p a m) (idx: index_t) =
| sub st (idx *. row_len a m) (row_len a m) | false |
Hacl.Impl.Blake2.Core.fst | Hacl.Impl.Blake2.Core.load_row | val load_row: #a:Spec.alg -> #m:m_spec -> r1:row_p a m -> ws:lbuffer (word_t a) 4ul ->
Stack unit
(requires (fun h -> live h r1 /\ live h ws /\ disjoint r1 ws))
(ensures (fun h0 _ h1 -> modifies (loc r1) h0 h1 /\
row_v h1 r1 == Spec.( load_row (as_seq h0 ws)))) | val load_row: #a:Spec.alg -> #m:m_spec -> r1:row_p a m -> ws:lbuffer (word_t a) 4ul ->
Stack unit
(requires (fun h -> live h r1 /\ live h ws /\ disjoint r1 ws))
(ensures (fun h0 _ h1 -> modifies (loc r1) h0 h1 /\
row_v h1 r1 == Spec.( load_row (as_seq h0 ws)))) | let load_row #a #m r ws = create_row r ws.(0ul) ws.(1ul) ws.(2ul) ws.(3ul) | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 74,
"end_line": 250,
"start_col": 0,
"start_line": 250
} | module Hacl.Impl.Blake2.Core
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.IntVector
module Spec = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
noextract inline_for_extraction
let zero_element (a... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r1: Hacl.Impl.Blake2.Core.row_p a m -> ws: Lib.Buffer.lbuffer (Hacl.Impl.Blake2.Core.word_t a) 4ul
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"Hacl.Impl.Blake2.Core.row_p",
"Lib.Buffer.lbuffer",
"Hacl.Impl.Blake2.Core.word_t",
"FStar.UInt32.__uint_to_t",
"Hacl.Impl.Blake2.Core.create_row",
"Prims.unit",
"Lib.Buffer.op_Array_Access",
"Lib.Buffer.MUT"
] | [] | false | true | false | false | false | let load_row #a #m r ws =
| create_row r ws.(0ul) ws.(1ul) ws.(2ul) ws.(3ul) | false |
Vale.Stdcalls.X64.Fadd.fsti | Vale.Stdcalls.X64.Fadd.b64 | val b64 : Type0 | let b64 = buf_t TUInt64 TUInt64 | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.Fadd.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 31,
"end_line": 40,
"start_col": 0,
"start_line": 40
} | module Vale.Stdcalls.X64.Fadd
val z3rlimit_hack (x:nat) : squash (x < x + x + 1)
#reset-options "--z3rlimit 50"
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastWide",
"short_module": "FW"
},
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastHybrid",
"short_module": "FH"
},
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastUtil",
"short_module": "FU"
},
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"Vale.Interop.Base.buf_t",
"Vale.Arch.HeapTypes_s.TUInt64"
] | [] | false | false | false | true | true | let b64 =
| buf_t TUInt64 TUInt64 | false | |
Hacl.Impl.Blake2.Core.fst | Hacl.Impl.Blake2.Core.state_v | val state_v: #a:Spec.alg -> #m:m_spec -> mem -> state_p a m -> GTot (Spec.state a) | val state_v: #a:Spec.alg -> #m:m_spec -> mem -> state_p a m -> GTot (Spec.state a) | let state_v (#a:Spec.alg) (#m:m_spec) (h:mem) (st:state_p a m) : GTot (Spec.state a) =
let r0 = row_v h (g_rowi st 0ul) in
let r1 = row_v h (g_rowi st 1ul) in
let r2 = row_v h (g_rowi st 2ul) in
let r3 = row_v h (g_rowi st 3ul) in
Lib.Sequence.create4 r0 r1 r2 r3 | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 34,
"end_line": 95,
"start_col": 0,
"start_line": 90
} | module Hacl.Impl.Blake2.Core
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.IntVector
module Spec = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
noextract inline_for_extraction
let zero_element (a... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h: FStar.Monotonic.HyperStack.mem -> st: Hacl.Impl.Blake2.Core.state_p a m
-> Prims.GTot (Spec.Blake2.Definitions.state a) | Prims.GTot | [
"sometrivial"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"FStar.Monotonic.HyperStack.mem",
"Hacl.Impl.Blake2.Core.state_p",
"Lib.Sequence.create4",
"Spec.Blake2.Definitions.row",
"Lib.Sequence.lseq",
"Lib.IntTypes.int_t",
"Spec.Blake2.Definitions.wt",
"Lib.IntTypes.SEC",
"Hacl.Impl.Blake2.... | [] | false | false | false | false | false | let state_v (#a: Spec.alg) (#m: m_spec) (h: mem) (st: state_p a m) : GTot (Spec.state a) =
| let r0 = row_v h (g_rowi st 0ul) in
let r1 = row_v h (g_rowi st 1ul) in
let r2 = row_v h (g_rowi st 2ul) in
let r3 = row_v h (g_rowi st 3ul) in
Lib.Sequence.create4 r0 r1 r2 r3 | false |
Hacl.Impl.Blake2.Core.fst | Hacl.Impl.Blake2.Core.alloc_row | val alloc_row: a:Spec.alg -> m:m_spec ->
StackInline (row_p a m)
(requires (fun h -> True))
(ensures (fun h0 r h1 -> stack_allocated r h0 h1 (Lib.Sequence.create (v (row_len a m)) (zero_element a m)) /\
live h1 r /\
row_v h1 r == Spec.zero_row a)) | val alloc_row: a:Spec.alg -> m:m_spec ->
StackInline (row_p a m)
(requires (fun h -> True))
(ensures (fun h0 r h1 -> stack_allocated r h0 h1 (Lib.Sequence.create (v (row_len a m)) (zero_element a m)) /\
live h1 r /\
row_v h1 r == Spec.zero_row a)) | let alloc_row a m = create (row_len a m) (zero_element a m) | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 59,
"end_line": 232,
"start_col": 0,
"start_line": 232
} | module Hacl.Impl.Blake2.Core
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.IntVector
module Spec = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
noextract inline_for_extraction
let zero_element (a... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Blake2.Definitions.alg -> m: Hacl.Impl.Blake2.Core.m_spec
-> FStar.HyperStack.ST.StackInline (Hacl.Impl.Blake2.Core.row_p a m) | FStar.HyperStack.ST.StackInline | [] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"Lib.Buffer.create",
"Hacl.Impl.Blake2.Core.element_t",
"Hacl.Impl.Blake2.Core.row_len",
"Hacl.Impl.Blake2.Core.zero_element",
"Lib.Buffer.lbuffer",
"Hacl.Impl.Blake2.Core.row_p"
] | [] | false | true | false | false | false | let alloc_row a m =
| create (row_len a m) (zero_element a m) | false |
Hacl.Impl.Blake2.Core.fst | Hacl.Impl.Blake2.Core.create_default_params | val create_default_params: a:Spec.alg ->
salt: lbuffer uint8 (salt_len a) ->
personal: lbuffer uint8 (personal_len a) ->
Stack (blake2_params a)
(requires fun h -> live h salt /\ live h personal /\
as_seq h salt == Seq.create (Spec.salt_length a) (u8 0) /\
as_seq h personal == Seq.create (Spec.per... | val create_default_params: a:Spec.alg ->
salt: lbuffer uint8 (salt_len a) ->
personal: lbuffer uint8 (personal_len a) ->
Stack (blake2_params a)
(requires fun h -> live h salt /\ live h personal /\
as_seq h salt == Seq.create (Spec.salt_length a) (u8 0) /\
as_seq h personal == Seq.create (Spec.per... | let create_default_params a salt personal =
match a with
| Spec.Blake2S -> {
digest_length = u8 32;
key_length = u8 0;
fanout = u8 1;
depth = u8 1;
leaf_length = u32 0;
node_offset = u32 0;
xof_length = u16 0;
node_depth = u8 0;
inner_length = u8 0;
salt; ... | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 57,
"start_col": 0,
"start_line": 34
} | module Hacl.Impl.Blake2.Core
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.IntVector
module Spec = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
noextract inline_for_extraction
let zero_element (a... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Spec.Blake2.Definitions.alg ->
salt: Lib.Buffer.lbuffer Lib.IntTypes.uint8 (Hacl.Impl.Blake2.Core.salt_len a) ->
personal: Lib.Buffer.lbuffer Lib.IntTypes.uint8 (Hacl.Impl.Blake2.Core.personal_len a)
-> FStar.HyperStack.ST.Stack (Hacl.Impl.Blake2.Core.blake2_params a) | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Blake2.Definitions.alg",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"Hacl.Impl.Blake2.Core.salt_len",
"Hacl.Impl.Blake2.Core.personal_len",
"Hacl.Impl.Blake2.Core.Mkblake2s_params",
"Lib.IntTypes.u8",
"Lib.IntTypes.u32",
"Lib.IntTypes.u16",
"Hacl.Impl.Blake2.Core.blake2s_params",
"Hacl.Im... | [] | false | true | false | false | false | let create_default_params a salt personal =
| match a with
| Spec.Blake2S ->
{
digest_length = u8 32;
key_length = u8 0;
fanout = u8 1;
depth = u8 1;
leaf_length = u32 0;
node_offset = u32 0;
xof_length = u16 0;
node_depth = u8 0;
inner_length = u8 0;
salt = salt;
personal = personal
}
<:
blake2s_params
| Spec.Bl... | false |
Hacl.Impl.Blake2.Core.fst | Hacl.Impl.Blake2.Core.gather_row | val gather_row: #a:Spec.alg -> #ms:m_spec -> r:row_p a ms -> m:block_w a ->
i0: Spec.sigma_elt_t -> i1:Spec.sigma_elt_t -> i2:Spec.sigma_elt_t -> i3:Spec.sigma_elt_t
-> Stack unit
(requires (fun h -> live h r /\ live h m /\ disjoint r m))
(ensures (fun h0 _ h1 -> modifies (loc r) h0 h1 /\
row_v h... | val gather_row: #a:Spec.alg -> #ms:m_spec -> r:row_p a ms -> m:block_w a ->
i0: Spec.sigma_elt_t -> i1:Spec.sigma_elt_t -> i2:Spec.sigma_elt_t -> i3:Spec.sigma_elt_t
-> Stack unit
(requires (fun h -> live h r /\ live h m /\ disjoint r m))
(ensures (fun h0 _ h1 -> modifies (loc r) h0 h1 /\
row_v h... | let gather_row #a #ms r m i0 i1 i2 i3 =
create_row r m.(i0) m.(i1) m.(i2) m.(i3) | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 44,
"end_line": 282,
"start_col": 0,
"start_line": 281
} | module Hacl.Impl.Blake2.Core
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.IntVector
module Spec = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
noextract inline_for_extraction
let zero_element (a... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
r: Hacl.Impl.Blake2.Core.row_p a ms ->
m: Hacl.Impl.Blake2.Core.block_w a ->
i0: Spec.Blake2.Definitions.sigma_elt_t ->
i1: Spec.Blake2.Definitions.sigma_elt_t ->
i2: Spec.Blake2.Definitions.sigma_elt_t ->
i3: Spec.Blake2.Definitions.sigma_elt_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.row_p",
"Hacl.Impl.Blake2.Core.block_w",
"Spec.Blake2.Definitions.sigma_elt_t",
"Hacl.Impl.Blake2.Core.create_row",
"Prims.unit",
"Hacl.Impl.Blake2.Core.word_t",
"Lib.Buffer.op_Array_Access",
"Lib.Buffer.MUT",
... | [] | false | true | false | false | false | let gather_row #a #ms r m i0 i1 i2 i3 =
| create_row r m.(i0) m.(i1) m.(i2) m.(i3) | false |
Hacl.Impl.Blake2.Core.fst | Hacl.Impl.Blake2.Core.xor_row | val xor_row: #a:Spec.alg -> #m:m_spec -> r1:row_p a m -> r2:row_p a m ->
Stack unit
(requires (fun h -> live h r1 /\ live h r2 /\ disjoint r1 r2))
(ensures (fun h0 _ h1 -> modifies (loc r1) h0 h1 /\
row_v h1 r1 == Spec.( row_v h0 r1 ^| row_v h0 r2 ))) | val xor_row: #a:Spec.alg -> #m:m_spec -> r1:row_p a m -> r2:row_p a m ->
Stack unit
(requires (fun h -> live h r1 /\ live h r2 /\ disjoint r1 r2))
(ensures (fun h0 _ h1 -> modifies (loc r1) h0 h1 /\
row_v h1 r1 == Spec.( row_v h0 r1 ^| row_v h0 r2 ))) | let xor_row #a #m r1 r2 =
match a,m with
| Spec.Blake2S,M128 ->
r1.(0ul) <- vec_xor #U32 #4 r1.(0ul) r2.(0ul)
| Spec.Blake2S,M256 ->
r1.(0ul) <- vec_xor #U32 #4 r1.(0ul) r2.(0ul)
| Spec.Blake2B,M256 ->
r1.(0ul) <- vec_xor #U64 #4 r1.(0ul) r2.(0ul)
| _ -> map2T 4ul r1 (logxor #(Spec.wt a) #SEC) r1 ... | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 54,
"end_line": 147,
"start_col": 0,
"start_line": 139
} | module Hacl.Impl.Blake2.Core
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.IntVector
module Spec = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
noextract inline_for_extraction
let zero_element (a... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r1: Hacl.Impl.Blake2.Core.row_p a m -> r2: Hacl.Impl.Blake2.Core.row_p a m
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"Hacl.Impl.Blake2.Core.row_p",
"FStar.Pervasives.Native.Mktuple2",
"Lib.Buffer.op_Array_Assignment",
"Hacl.Impl.Blake2.Core.element_t",
"Hacl.Impl.Blake2.Core.row_len",
"FStar.UInt32.__uint_to_t",
"Prims.unit",
"Lib.IntVector.vec_xor",... | [] | false | true | false | false | false | let xor_row #a #m r1 r2 =
| match a, m with
| Spec.Blake2S, M128 -> r1.(0ul) <- vec_xor #U32 #4 r1.(0ul) r2.(0ul)
| Spec.Blake2S, M256 -> r1.(0ul) <- vec_xor #U32 #4 r1.(0ul) r2.(0ul)
| Spec.Blake2B, M256 -> r1.(0ul) <- vec_xor #U64 #4 r1.(0ul) r2.(0ul)
| _ -> map2T 4ul r1 (logxor #(Spec.wt a) #SEC) r1 r2 | false |
Vale.Stdcalls.X64.Fadd.fsti | Vale.Stdcalls.X64.Fadd.code_add1 | val code_add1 : Vale.X64.Decls.va_code | let code_add1 = FU.va_code_Fast_add1_stdcall IA.win | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.Fadd.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 51,
"end_line": 112,
"start_col": 0,
"start_line": 112
} | module Vale.Stdcalls.X64.Fadd
val z3rlimit_hack (x:nat) : squash (x < x + x + 1)
#reset-options "--z3rlimit 50"
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastWide",
"short_module": "FW"
},
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastHybrid",
"short_module": "FH"
},
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastUtil",
"short_module": "FU"
},
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Vale.X64.Decls.va_code | Prims.Tot | [
"total"
] | [] | [
"Vale.Curve25519.X64.FastUtil.va_code_Fast_add1_stdcall",
"Vale.Interop.Assumptions.win"
] | [] | false | false | false | true | false | let code_add1 =
| FU.va_code_Fast_add1_stdcall IA.win | false | |
Hacl.Impl.Blake2.Core.fst | Hacl.Impl.Blake2.Core.g_rowi_unchanged | val g_rowi_unchanged: #a:Spec.alg -> #m:m_spec -> h0:mem -> h1:mem -> st:state_p a m -> i:index_t ->
Lemma (requires (as_seq h0 st == as_seq h1 st))
(ensures (as_seq h0 (g_rowi st i) == as_seq h1 (g_rowi st i)))
[SMTPat (as_seq h0 (g_rowi st i)); SMTPat (as_seq h1 (g_rowi st i))] | val g_rowi_unchanged: #a:Spec.alg -> #m:m_spec -> h0:mem -> h1:mem -> st:state_p a m -> i:index_t ->
Lemma (requires (as_seq h0 st == as_seq h1 st))
(ensures (as_seq h0 (g_rowi st i) == as_seq h1 (g_rowi st i)))
[SMTPat (as_seq h0 (g_rowi st i)); SMTPat (as_seq h1 (g_rowi st i))] | let g_rowi_unchanged #a #m h0 h1 st i =
assert (v (i *. row_len a m) + v (row_len a m) <= length st);
LowStar.Monotonic.Buffer.as_seq_gsub #_ #(LowStar.Buffer.trivial_preorder (element_t a m)) #(LowStar.Buffer.trivial_preorder (element_t a m)) h0 st (i *. row_len a m) (row_len a m)
(LowStar.Buffer.trivial_preorde... | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 51,
"end_line": 81,
"start_col": 0,
"start_line": 76
} | module Hacl.Impl.Blake2.Core
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.IntVector
module Spec = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
noextract inline_for_extraction
let zero_element (a... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
h0: FStar.Monotonic.HyperStack.mem ->
h1: FStar.Monotonic.HyperStack.mem ->
st: Hacl.Impl.Blake2.Core.state_p a m ->
i: Hacl.Impl.Blake2.Core.index_t
-> FStar.Pervasives.Lemma (requires Lib.Buffer.as_seq h0 st == Lib.Buffer.as_seq h1 st)
(ensures
Lib.Buffer.as_seq h0 (Hacl.Impl.Blake2.C... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"FStar.Monotonic.HyperStack.mem",
"Hacl.Impl.Blake2.Core.state_p",
"Hacl.Impl.Blake2.Core.index_t",
"LowStar.Monotonic.Buffer.as_seq_gsub",
"Hacl.Impl.Blake2.Core.element_t",
"LowStar.Buffer.trivial_preorder",
"Lib.IntTypes.op_Star_Dot",... | [] | true | false | true | false | false | let g_rowi_unchanged #a #m h0 h1 st i =
| assert (v (i *. row_len a m) + v (row_len a m) <= length st);
LowStar.Monotonic.Buffer.as_seq_gsub #_
#(LowStar.Buffer.trivial_preorder (element_t a m))
#(LowStar.Buffer.trivial_preorder (element_t a m))
h0
st
(i *. row_len a m)
(row_len a m)
(LowStar.Buffer.trivial_preorder (element_t a m));
LowStar.Mono... | false |
Vale.Stdcalls.X64.Fadd.fsti | Vale.Stdcalls.X64.Fadd.fadd_pre | val fadd_pre:VSig.vale_pre fadd_dom | val fadd_pre:VSig.vale_pre fadd_dom | let fadd_pre : VSig.vale_pre fadd_dom =
fun (c:V.va_code)
(out:b64)
(f1:b64)
(f2:b64)
(va_s0:V.va_state) ->
FH.va_req_Fadd_stdcall c va_s0 IA.win
(as_vale_buffer out) (as_vale_buffer f1) (as_vale_buffer f2) | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.Fadd.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 68,
"end_line": 141,
"start_col": 0,
"start_line": 134
} | module Vale.Stdcalls.X64.Fadd
val z3rlimit_hack (x:nat) : squash (x < x + x + 1)
#reset-options "--z3rlimit 50"
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastWide",
"short_module": "FW"
},
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastHybrid",
"short_module": "FH"
},
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastUtil",
"short_module": "FU"
},
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Vale.AsLowStar.ValeSig.vale_pre Vale.Stdcalls.X64.Fadd.fadd_dom | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Decls.va_code",
"Vale.Stdcalls.X64.Fadd.b64",
"Vale.X64.Decls.va_state",
"Vale.Curve25519.X64.FastHybrid.va_req_Fadd_stdcall",
"Vale.Interop.Assumptions.win",
"Vale.X64.MemoryAdapters.as_vale_buffer",
"Vale.Arch.HeapTypes_s.TUInt64",
"Prims.prop"
] | [] | false | false | false | true | false | let fadd_pre:VSig.vale_pre fadd_dom =
| fun (c: V.va_code) (out: b64) (f1: b64) (f2: b64) (va_s0: V.va_state) ->
FH.va_req_Fadd_stdcall c va_s0 IA.win (as_vale_buffer out) (as_vale_buffer f1) (as_vale_buffer f2) | false |
Hacl.Impl.Blake2.Core.fst | Hacl.Impl.Blake2.Core.g_rowi_disjoint | val g_rowi_disjoint: #a:Spec.alg -> #m:m_spec -> st:state_p a m -> idx1:index_t -> idx2:index_t ->
Lemma (ensures (v idx1 <> v idx2 ==> disjoint (g_rowi st idx1) (g_rowi st idx2)))
[SMTPat (disjoint (g_rowi st idx1) (g_rowi st idx2))] | val g_rowi_disjoint: #a:Spec.alg -> #m:m_spec -> st:state_p a m -> idx1:index_t -> idx2:index_t ->
Lemma (ensures (v idx1 <> v idx2 ==> disjoint (g_rowi st idx1) (g_rowi st idx2)))
[SMTPat (disjoint (g_rowi st idx1) (g_rowi st idx2))] | let g_rowi_disjoint #a #m st idx1 idx2 =
if idx1 <. idx2 then (
assert (v (idx1 *. row_len a m) + v (row_len a m) <= v (idx2 *. row_len a m));
assert (g_rowi st idx1 ==
gsub st (idx1 *. row_len a m) (row_len a m));
assert (g_rowi st idx2 ==
gsub st (idx2 *. row_len a m) (row_len a m));
LowSta... | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 9,
"end_line": 74,
"start_col": 0,
"start_line": 60
} | module Hacl.Impl.Blake2.Core
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.IntVector
module Spec = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
noextract inline_for_extraction
let zero_element (a... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
st: Hacl.Impl.Blake2.Core.state_p a m ->
idx1: Hacl.Impl.Blake2.Core.index_t ->
idx2: Hacl.Impl.Blake2.Core.index_t
-> FStar.Pervasives.Lemma
(ensures
Lib.IntTypes.v idx1 <> Lib.IntTypes.v idx2 ==>
Lib.Buffer.disjoint (Hacl.Impl.Blake2.Core.g_rowi st idx1)
(Hacl.Impl.Blake... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"Hacl.Impl.Blake2.Core.state_p",
"Hacl.Impl.Blake2.Core.index_t",
"Lib.IntTypes.op_Less_Dot",
"Lib.IntTypes.U32",
"LowStar.Monotonic.Buffer.loc_disjoint_gsub_buffer",
"Hacl.Impl.Blake2.Core.element_t",
"LowStar.Buffer.trivial_preorder",
... | [] | false | false | true | false | false | let g_rowi_disjoint #a #m st idx1 idx2 =
| if idx1 <. idx2
then
(assert (v (idx1 *. row_len a m) + v (row_len a m) <= v (idx2 *. row_len a m));
assert (g_rowi st idx1 == gsub st (idx1 *. row_len a m) (row_len a m));
assert (g_rowi st idx2 == gsub st (idx2 *. row_len a m) (row_len a m));
LowStar.Monotonic.Buffer.loc_disjoint_gsub_buffer #_
#(... | false |
CQueue.LList.fsti | CQueue.LList.cllist_lvalue | val cllist_lvalue : a: Type0 -> Type0 | let cllist_lvalue (a: Type0) = (c: cllist_ptrvalue a { cllist_ptrvalue_is_null c == false }) | {
"file_name": "share/steel/examples/steel/CQueue.LList.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 92,
"end_line": 24,
"start_col": 0,
"start_line": 24
} | module CQueue.LList
include CQueue.Cell
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.FractionalPermission
open Steel.Reference
(* A C lvalue view of a llist struct, as a pair of two references for its head and tail fields (C language aspects only, no semantic content)
See CQueue.c: clli... | {
"checked_file": "/",
"dependencies": [
"Steel.Reference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.che... | [
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Type0 -> Type0 | Prims.Tot | [
"total"
] | [] | [
"CQueue.LList.cllist_ptrvalue",
"Prims.eq2",
"Prims.bool",
"CQueue.LList.cllist_ptrvalue_is_null"
] | [] | false | false | false | true | true | let cllist_lvalue (a: Type0) =
| (c: cllist_ptrvalue a {cllist_ptrvalue_is_null c == false}) | false | |
Hacl.Impl.Blake2.Core.fst | Hacl.Impl.Blake2.Core.ror_row | val ror_row: #a:Spec.alg -> #m:m_spec -> r1:row_p a m -> r2:rotval (Spec.wt a) ->
Stack unit
(requires (fun h -> live h r1))
(ensures (fun h0 _ h1 -> modifies (loc r1) h0 h1 /\
row_v h1 r1 == Spec.( row_v h0 r1 >>>| r2 ))) | val ror_row: #a:Spec.alg -> #m:m_spec -> r1:row_p a m -> r2:rotval (Spec.wt a) ->
Stack unit
(requires (fun h -> live h r1))
(ensures (fun h0 _ h1 -> modifies (loc r1) h0 h1 /\
row_v h1 r1 == Spec.( row_v h0 r1 >>>| r2 ))) | let ror_row #a #m r1 r2 =
match a,m with
| Spec.Blake2S,M128 ->
r1.(0ul) <- vec_rotate_right #U32 #4 r1.(0ul) r2
| Spec.Blake2S,M256 ->
r1.(0ul) <- vec_rotate_right #U32 #4 r1.(0ul) r2
| Spec.Blake2B,M256 ->
r1.(0ul) <- vec_rotate_right #U64 #4 r1.(0ul) r2
| _ ->
let r1:lbuffer (Spec.word_t a)... | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 39,
"end_line": 174,
"start_col": 0,
"start_line": 164
} | module Hacl.Impl.Blake2.Core
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.IntVector
module Spec = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
noextract inline_for_extraction
let zero_element (a... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r1: Hacl.Impl.Blake2.Core.row_p a m -> r2: Lib.IntTypes.rotval (Spec.Blake2.Definitions.wt a)
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"Hacl.Impl.Blake2.Core.row_p",
"Lib.IntTypes.rotval",
"Spec.Blake2.Definitions.wt",
"FStar.Pervasives.Native.Mktuple2",
"Lib.Buffer.op_Array_Assignment",
"Hacl.Impl.Blake2.Core.element_t",
"Hacl.Impl.Blake2.Core.row_len",
"FStar.UInt32... | [] | false | true | false | false | false | let ror_row #a #m r1 r2 =
| match a, m with
| Spec.Blake2S, M128 -> r1.(0ul) <- vec_rotate_right #U32 #4 r1.(0ul) r2
| Spec.Blake2S, M256 -> r1.(0ul) <- vec_rotate_right #U32 #4 r1.(0ul) r2
| Spec.Blake2B, M256 -> r1.(0ul) <- vec_rotate_right #U64 #4 r1.(0ul) r2
| _ ->
let r1:lbuffer (Spec.word_t a) 4ul = r1 in
mapT 4ul r1 (rotate_right_i r2)... | false |
CQueue.LList.fsti | CQueue.LList.cllist' | val cllist' (#a: Type0) (c: cllist_ptrvalue a) : GTot vprop' | val cllist' (#a: Type0) (c: cllist_ptrvalue a) : GTot vprop' | let cllist'
(#a: Type0)
(c: cllist_ptrvalue a)
: GTot vprop'
= {
hp = cllist_hp c;
t = vllist a;
sel = cllist_sel c;
} | {
"file_name": "share/steel/examples/steel/CQueue.LList.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 1,
"end_line": 63,
"start_col": 0,
"start_line": 55
} | module CQueue.LList
include CQueue.Cell
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.FractionalPermission
open Steel.Reference
(* A C lvalue view of a llist struct, as a pair of two references for its head and tail fields (C language aspects only, no semantic content)
See CQueue.c: clli... | {
"checked_file": "/",
"dependencies": [
"Steel.Reference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.che... | [
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | c: CQueue.LList.cllist_ptrvalue a -> Prims.GTot Steel.Effect.Common.vprop' | Prims.GTot | [
"sometrivial"
] | [] | [
"CQueue.LList.cllist_ptrvalue",
"Steel.Effect.Common.Mkvprop'",
"CQueue.LList.cllist_hp",
"CQueue.LList.vllist",
"CQueue.LList.cllist_sel",
"Steel.Effect.Common.vprop'"
] | [] | false | false | false | false | false | let cllist' (#a: Type0) (c: cllist_ptrvalue a) : GTot vprop' =
| { hp = cllist_hp c; t = vllist a; sel = cllist_sel c } | false |
Vale.Stdcalls.X64.Fadd.fsti | Vale.Stdcalls.X64.Fadd.code_Fadd | val code_Fadd : Vale.X64.Decls.va_code | let code_Fadd = FH.va_code_Fadd_stdcall IA.win | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.Fadd.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 46,
"end_line": 191,
"start_col": 0,
"start_line": 191
} | module Vale.Stdcalls.X64.Fadd
val z3rlimit_hack (x:nat) : squash (x < x + x + 1)
#reset-options "--z3rlimit 50"
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastWide",
"short_module": "FW"
},
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastHybrid",
"short_module": "FH"
},
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastUtil",
"short_module": "FU"
},
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Vale.X64.Decls.va_code | Prims.Tot | [
"total"
] | [] | [
"Vale.Curve25519.X64.FastHybrid.va_code_Fadd_stdcall",
"Vale.Interop.Assumptions.win"
] | [] | false | false | false | true | false | let code_Fadd =
| FH.va_code_Fadd_stdcall IA.win | false | |
Hacl.Impl.Blake2.Core.fst | Hacl.Impl.Blake2.Core.add_row | val add_row: #a:Spec.alg -> #m:m_spec -> r1:row_p a m -> r2:row_p a m ->
Stack unit
(requires (fun h -> live h r1 /\ live h r2 /\ disjoint r1 r2))
(ensures (fun h0 _ h1 -> modifies (loc r1) h0 h1 /\
row_v h1 r1 == Spec.( row_v h0 r1 +| row_v h0 r2 ))) | val add_row: #a:Spec.alg -> #m:m_spec -> r1:row_p a m -> r2:row_p a m ->
Stack unit
(requires (fun h -> live h r1 /\ live h r2 /\ disjoint r1 r2))
(ensures (fun h0 _ h1 -> modifies (loc r1) h0 h1 /\
row_v h1 r1 == Spec.( row_v h0 r1 +| row_v h0 r2 ))) | let add_row #a #m r1 r2 =
match a,m with
| Spec.Blake2S,M128 ->
r1.(0ul) <- vec_add_mod #U32 #4 r1.(0ul) r2.(0ul)
| Spec.Blake2S,M256 ->
r1.(0ul) <- vec_add_mod #U32 #4 r1.(0ul) r2.(0ul)
| Spec.Blake2B,M256 ->
r1.(0ul) <- vec_add_mod #U64 #4 r1.(0ul) r2.(0ul)
| _ -> map2T 4ul r1 (add_mod #(Spec.wt... | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 55,
"end_line": 159,
"start_col": 0,
"start_line": 151
} | module Hacl.Impl.Blake2.Core
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.IntVector
module Spec = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
noextract inline_for_extraction
let zero_element (a... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r1: Hacl.Impl.Blake2.Core.row_p a m -> r2: Hacl.Impl.Blake2.Core.row_p a m
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"Hacl.Impl.Blake2.Core.row_p",
"FStar.Pervasives.Native.Mktuple2",
"Lib.Buffer.op_Array_Assignment",
"Hacl.Impl.Blake2.Core.element_t",
"Hacl.Impl.Blake2.Core.row_len",
"FStar.UInt32.__uint_to_t",
"Prims.unit",
"Lib.IntVector.vec_add_m... | [] | false | true | false | false | false | let add_row #a #m r1 r2 =
| match a, m with
| Spec.Blake2S, M128 -> r1.(0ul) <- vec_add_mod #U32 #4 r1.(0ul) r2.(0ul)
| Spec.Blake2S, M256 -> r1.(0ul) <- vec_add_mod #U32 #4 r1.(0ul) r2.(0ul)
| Spec.Blake2B, M256 -> r1.(0ul) <- vec_add_mod #U64 #4 r1.(0ul) r2.(0ul)
| _ -> map2T 4ul r1 (add_mod #(Spec.wt a) #SEC) r1 r2 | false |
Vale.Stdcalls.X64.Fadd.fsti | Vale.Stdcalls.X64.Fadd.fadd_post | val fadd_post:VSig.vale_post fadd_dom | val fadd_post:VSig.vale_post fadd_dom | let fadd_post : VSig.vale_post fadd_dom =
fun (c:V.va_code)
(out:b64)
(f1:b64)
(f2:b64)
(va_s0:V.va_state)
(va_s1:V.va_state)
(f:V.va_fuel) ->
FH.va_ens_Fadd_stdcall c va_s0 IA.win (as_vale_buffer out) (as_vale_buffer f1) (as_vale_buffer f2) va_s1 f | {
"file_name": "vale/code/arch/x64/interop/Vale.Stdcalls.X64.Fadd.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 112,
"end_line": 152,
"start_col": 0,
"start_line": 144
} | module Vale.Stdcalls.X64.Fadd
val z3rlimit_hack (x:nat) : squash (x < x + x + 1)
#reset-options "--z3rlimit 50"
open FStar.HyperStack.ST
module B = LowStar.Buffer
module HS = FStar.HyperStack
open FStar.Mul
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
open Vale.Def.Types_s
open Vale.Interop... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.MemoryAdapters.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Interop.X64.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Int... | [
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastWide",
"short_module": "FW"
},
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastHybrid",
"short_module": "FH"
},
{
"abbrev": true,
"full_module": "Vale.Curve25519.X64.FastUtil",
"short_module": "FU"
},
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Vale.AsLowStar.ValeSig.vale_post Vale.Stdcalls.X64.Fadd.fadd_dom | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Decls.va_code",
"Vale.Stdcalls.X64.Fadd.b64",
"Vale.X64.Decls.va_state",
"Vale.X64.Decls.va_fuel",
"Vale.Curve25519.X64.FastHybrid.va_ens_Fadd_stdcall",
"Vale.Interop.Assumptions.win",
"Vale.X64.MemoryAdapters.as_vale_buffer",
"Vale.Arch.HeapTypes_s.TUInt64",
"Prims.prop"
] | [] | false | false | false | true | false | let fadd_post:VSig.vale_post fadd_dom =
| fun
(c: V.va_code)
(out: b64)
(f1: b64)
(f2: b64)
(va_s0: V.va_state)
(va_s1: V.va_state)
(f: V.va_fuel)
->
FH.va_ens_Fadd_stdcall c
va_s0
IA.win
(as_vale_buffer out)
(as_vale_buffer f1)
(as_vale_buffer f2)
va_s1
f | false |
Hacl.Impl.Blake2.Core.fst | Hacl.Impl.Blake2.Core.create4_lemma | val create4_lemma: #a:Type -> x0:a -> x1:a -> x2:a -> x3:a ->
Lemma (ensures (
let l = [ x0; x1; x2; x3 ] in
assert_norm (List.Tot.length l = 4);
Lib.Sequence.createL l == Lib.Sequence.create4 x0 x1 x2 x3))
[SMTPat (Lib.Sequence.createL [x0;x1;x2;x3])] | val create4_lemma: #a:Type -> x0:a -> x1:a -> x2:a -> x3:a ->
Lemma (ensures (
let l = [ x0; x1; x2; x3 ] in
assert_norm (List.Tot.length l = 4);
Lib.Sequence.createL l == Lib.Sequence.create4 x0 x1 x2 x3))
[SMTPat (Lib.Sequence.createL [x0;x1;x2;x3])] | let create4_lemma #a x0 x1 x2 x3 =
let open Lib.Sequence in
let l : list a = [x0;x1;x2;x3] in
assert_norm (List.Tot.length l = 4);
let s1 : lseq a 4 = of_list l in
let s2 : lseq a 4 = create4 x0 x1 x2 x3 in
Seq.intro_of_list s2 l;
eq_intro s1 s2 | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 228,
"start_col": 0,
"start_line": 221
} | module Hacl.Impl.Blake2.Core
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.IntVector
module Spec = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
noextract inline_for_extraction
let zero_element (a... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x0: a -> x1: a -> x2: a -> x3: a
-> FStar.Pervasives.Lemma
(ensures
(let l = [x0; x1; x2; x3] in
FStar.Pervasives.assert_norm (FStar.List.Tot.Base.length l = 4);
Lib.Sequence.createL l == Lib.Sequence.create4 x0 x1 x2 x3))
[SMTPat (Lib.Sequence.createL [x0; x1; x2; x3])] | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Lib.Sequence.eq_intro",
"Prims.unit",
"FStar.Seq.Properties.intro_of_list",
"Lib.Sequence.lseq",
"Lib.Sequence.create4",
"Lib.Sequence.of_list",
"FStar.Pervasives.assert_norm",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"Prims.Cons",
"Prims.... | [] | true | false | true | false | false | let create4_lemma #a x0 x1 x2 x3 =
| let open Lib.Sequence in
let l:list a = [x0; x1; x2; x3] in
assert_norm (List.Tot.length l = 4);
let s1:lseq a 4 = of_list l in
let s2:lseq a 4 = create4 x0 x1 x2 x3 in
Seq.intro_of_list s2 l;
eq_intro s1 s2 | false |
Hacl.Impl.Blake2.Core.fst | Hacl.Impl.Blake2.Core.le_sigh | val le_sigh (a:Spec.alg) (m:m_spec): x:size_t { x == 4ul *. row_len a m } | val le_sigh (a:Spec.alg) (m:m_spec): x:size_t { x == 4ul *. row_len a m } | let le_sigh (a:Spec.alg) (m:m_spec): x:size_t { x == 4ul *. row_len a m } =
let open FStar.Mul in
assert_norm ((4 * 1) % pow2 32 = 4);
assert_norm ((4 * 4) % pow2 32 = 16);
Lib.IntTypes.mul_mod_lemma 4ul 1ul;
Lib.IntTypes.mul_mod_lemma 4ul 4ul;
match a,m with
| Spec.Blake2S,M128 -> 4ul
| Spec.Blake2S,M... | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 295,
"start_col": 0,
"start_line": 285
} | module Hacl.Impl.Blake2.Core
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.IntVector
module Spec = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
noextract inline_for_extraction
let zero_element (a... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Blake2.Definitions.alg -> m: Hacl.Impl.Blake2.Core.m_spec
-> x: Lib.IntTypes.size_t{x == 4ul *. Hacl.Impl.Blake2.Core.row_len a m} | Prims.Tot | [
"total"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"FStar.Pervasives.Native.Mktuple2",
"FStar.UInt32.__uint_to_t",
"FStar.Pervasives.Native.tuple2",
"Lib.IntTypes.size_t",
"Prims.eq2",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Lib.IntTypes.op_Star_Dot",
"Hacl.I... | [] | false | false | false | false | false | let le_sigh (a: Spec.alg) (m: m_spec) : x: size_t{x == 4ul *. row_len a m} =
| let open FStar.Mul in
assert_norm ((4 * 1) % pow2 32 = 4);
assert_norm ((4 * 4) % pow2 32 = 16);
Lib.IntTypes.mul_mod_lemma 4ul 1ul;
Lib.IntTypes.mul_mod_lemma 4ul 4ul;
match a, m with
| Spec.Blake2S, M128 -> 4ul
| Spec.Blake2S, M256 -> 4ul
| Spec.Blake2B, M256 -> 4ul
| _ -> 16ul | false |
CQueue.LList.fsti | CQueue.LList.cllist | val cllist (#a: Type0) (c: cllist_ptrvalue a) : Tot vprop | val cllist (#a: Type0) (c: cllist_ptrvalue a) : Tot vprop | let cllist (#a: Type0) (c: cllist_ptrvalue a) : Tot vprop =
VUnit (cllist' c) | {
"file_name": "share/steel/examples/steel/CQueue.LList.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 19,
"end_line": 67,
"start_col": 0,
"start_line": 66
} | module CQueue.LList
include CQueue.Cell
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.FractionalPermission
open Steel.Reference
(* A C lvalue view of a llist struct, as a pair of two references for its head and tail fields (C language aspects only, no semantic content)
See CQueue.c: clli... | {
"checked_file": "/",
"dependencies": [
"Steel.Reference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.che... | [
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | c: CQueue.LList.cllist_ptrvalue a -> Steel.Effect.Common.vprop | Prims.Tot | [
"total"
] | [] | [
"CQueue.LList.cllist_ptrvalue",
"Steel.Effect.Common.VUnit",
"CQueue.LList.cllist'",
"Steel.Effect.Common.vprop"
] | [] | false | false | false | true | false | let cllist (#a: Type0) (c: cllist_ptrvalue a) : Tot vprop =
| VUnit (cllist' c) | false |
Vale.SHA.PPC64LE.SHA_helpers.fst | Vale.SHA.PPC64LE.SHA_helpers.lemma_be_to_n_4 | val lemma_be_to_n_4 (s: seq4 nat8)
: Lemma
(Lib.ByteSequence.nat_from_bytes_be #Lib.IntTypes.SEC (seq_nat8_to_seq_uint8 s) ==
be_bytes_to_nat32 s) | val lemma_be_to_n_4 (s: seq4 nat8)
: Lemma
(Lib.ByteSequence.nat_from_bytes_be #Lib.IntTypes.SEC (seq_nat8_to_seq_uint8 s) ==
be_bytes_to_nat32 s) | let lemma_be_to_n_4 (s:seq4 nat8) : Lemma
(Lib.ByteSequence.nat_from_bytes_be #Lib.IntTypes.SEC (seq_nat8_to_seq_uint8 s) == be_bytes_to_nat32 s)
=
let open Lib.IntTypes in
let open Vale.Def.Words.Four_s in
assert (pow2 8 = 0x100);
assert (pow2 16 = 0x10000);
assert_norm (pow2 24 = 0x1000000);
let x = s... | {
"file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 184,
"start_col": 0,
"start_line": 156
} | module Vale.SHA.PPC64LE.SHA_helpers
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Spec.SHA2
open Spec.SHA2.Lemmas
open Spec.Agile.Hash
open Spec.Hash.Definitions
open Spec.Hash.Lemmas
open Vale.Def.Types_s
open Vale.Def.Words_s
open FStar.Seq
open FStar.UInt32 // Interop with UInt-based SHA spec
ope... | {
"checked_file": "/",
"dependencies": [
"Vale.SHA2.Wrapper.fst.checked",
"Vale.SHA2.Wrapper.fst.checked",
"Vale.Lib.Seqs_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Seq.fsti.checked",
"Vale.Def.W... | [
{
"abbrev": false,
"full_module": "FStar.UInt32 // Interop with UInt-based SHA spec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.SHA2.Wrapper",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Def.Sel",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: Vale.Def.Words.Seq_s.seq4 Vale.Def.Words_s.nat8
-> FStar.Pervasives.Lemma
(ensures
Lib.ByteSequence.nat_from_bytes_be (Vale.Def.Words.Seq_s.seq_nat8_to_seq_uint8 s) ==
Vale.Def.Types_s.be_bytes_to_nat32 s) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Vale.Def.Words.Seq_s.seq4",
"Vale.Def.Words_s.nat8",
"FStar.Calc.calc_finish",
"Prims.nat",
"Prims.eq2",
"Vale.Def.Types_s.be_bytes_to_nat32",
"Prims.Cons",
"FStar.Preorder.relation",
"Prims.Nil",
"Prims.unit",
"FStar.Calc.calc_step",
"Vale.Def.Words.Four_s.four_to_nat_unfold",
"Vale.Def.Wo... | [] | false | false | true | false | false | let lemma_be_to_n_4 (s: seq4 nat8)
: Lemma
(Lib.ByteSequence.nat_from_bytes_be #Lib.IntTypes.SEC (seq_nat8_to_seq_uint8 s) ==
be_bytes_to_nat32 s) =
| let open Lib.IntTypes in
let open Vale.Def.Words.Four_s in
assert (pow2 8 = 0x100);
assert (pow2 16 = 0x10000);
assert_norm (pow2 24 = 0x1000000);
let x = seq_nat8_to_seq_uint8 s in
let f = Lib.ByteSequence.nat_from_intseq_be_ #U8 #SEC in
calc ( == ) {
f x <: nat;
( == ) { () }
FStar.UInt8.v (last x) + pow2 8 * f... | false |
Hacl.Impl.Blake2.Core.fst | Hacl.Impl.Blake2.Core.create_row | val create_row: #a:Spec.alg -> #m:m_spec -> r1:row_p a m -> w0:word_t a -> w1:word_t a -> w2:word_t a -> w3:word_t a ->
Stack unit
(requires (fun h -> live h r1))
(ensures (fun h0 _ h1 -> modifies (loc r1) h0 h1 /\
row_v h1 r1 == Spec.( create_row w0 w1 w2 w3 ))) | val create_row: #a:Spec.alg -> #m:m_spec -> r1:row_p a m -> w0:word_t a -> w1:word_t a -> w2:word_t a -> w3:word_t a ->
Stack unit
(requires (fun h -> live h r1))
(ensures (fun h0 _ h1 -> modifies (loc r1) h0 h1 /\
row_v h1 r1 == Spec.( create_row w0 w1 w2 w3 ))) | let create_row #a #m r w0 w1 w2 w3 =
match a,m with
| Spec.Blake2S,M256
| Spec.Blake2S,M128
| Spec.Blake2B,M256 ->
r.(0ul) <- vec_load4 w0 w1 w2 w3
| _ ->
r.(0ul) <- w0;
r.(1ul) <- w1;
r.(2ul) <- w2;
r.(3ul) <- w3;
let h1 = ST.get() in
Lib.Sequence.eq_intro (as_seq h1 r) (Lib.Seque... | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 74,
"end_line": 247,
"start_col": 0,
"start_line": 235
} | module Hacl.Impl.Blake2.Core
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.IntVector
module Spec = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
noextract inline_for_extraction
let zero_element (a... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
r1: Hacl.Impl.Blake2.Core.row_p a m ->
w0: Hacl.Impl.Blake2.Core.word_t a ->
w1: Hacl.Impl.Blake2.Core.word_t a ->
w2: Hacl.Impl.Blake2.Core.word_t a ->
w3: Hacl.Impl.Blake2.Core.word_t a
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"Hacl.Impl.Blake2.Core.row_p",
"Hacl.Impl.Blake2.Core.word_t",
"FStar.Pervasives.Native.Mktuple2",
"Lib.Buffer.op_Array_Assignment",
"Hacl.Impl.Blake2.Core.element_t",
"Hacl.Impl.Blake2.Core.row_len",
"FStar.UInt32.__uint_to_t",
"Lib.I... | [] | false | true | false | false | false | let create_row #a #m r w0 w1 w2 w3 =
| match a, m with
| Spec.Blake2S, M256 | Spec.Blake2S, M128 | Spec.Blake2B, M256 -> r.(0ul) <- vec_load4 w0 w1 w2 w3
| _ ->
r.(0ul) <- w0;
r.(1ul) <- w1;
r.(2ul) <- w2;
r.(3ul) <- w3;
let h1 = ST.get () in
Lib.Sequence.eq_intro (as_seq h1 r) (Lib.Sequence.create4 w0 w1 w2 w3) | false |
Hacl.Impl.Blake2.Core.fst | Hacl.Impl.Blake2.Core.alloc_state | val alloc_state: a:Spec.alg -> m:m_spec ->
StackInline (state_p a m)
(requires (fun h -> True))
(ensures (fun h0 r h1 -> stack_allocated r h0 h1 (Lib.Sequence.create (4 * v (row_len a m)) (zero_element a m)) /\
live h1 r)) | val alloc_state: a:Spec.alg -> m:m_spec ->
StackInline (state_p a m)
(requires (fun h -> True))
(ensures (fun h0 r h1 -> stack_allocated r h0 h1 (Lib.Sequence.create (4 * v (row_len a m)) (zero_element a m)) /\
live h1 r)) | let alloc_state a m =
// See git blame below. I never managed to get the previous expression (4ul *.
// row_len a m) to reduce, which generated VLAs in the C code.
create (le_sigh a m) (zero_element a m) | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 41,
"end_line": 301,
"start_col": 0,
"start_line": 298
} | module Hacl.Impl.Blake2.Core
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.IntVector
module Spec = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
noextract inline_for_extraction
let zero_element (a... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.Blake2.Definitions.alg -> m: Hacl.Impl.Blake2.Core.m_spec
-> FStar.HyperStack.ST.StackInline (Hacl.Impl.Blake2.Core.state_p a m) | FStar.HyperStack.ST.StackInline | [] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"Lib.Buffer.create",
"Hacl.Impl.Blake2.Core.element_t",
"Hacl.Impl.Blake2.Core.le_sigh",
"Hacl.Impl.Blake2.Core.zero_element",
"Lib.Buffer.lbuffer",
"Hacl.Impl.Blake2.Core.state_p"
] | [] | false | true | false | false | false | let alloc_state a m =
| create (le_sigh a m) (zero_element a m) | false |
Hacl.Impl.Blake2.Core.fst | Hacl.Impl.Blake2.Core.store_row | val store_row: #a:Spec.alg -> #m:m_spec -> b:lbuffer uint8 (size_row a) -> r:row_p a m ->
Stack unit
(requires (fun h -> live h r /\ live h b /\ disjoint r b))
(ensures (fun h0 _ h1 -> modifies (loc b) h0 h1 /\
as_seq h1 b == Lib.ByteSequence.uints_to_bytes_le (row_v h0 r))) | val store_row: #a:Spec.alg -> #m:m_spec -> b:lbuffer uint8 (size_row a) -> r:row_p a m ->
Stack unit
(requires (fun h -> live h r /\ live h b /\ disjoint r b))
(ensures (fun h0 _ h1 -> modifies (loc b) h0 h1 /\
as_seq h1 b == Lib.ByteSequence.uints_to_bytes_le (row_v h0 r))) | let store_row #a #m b r =
match a,m with
| Spec.Blake2S,M256
| Spec.Blake2S,M128 ->
vec_store_le #U32 #4 b r.(0ul)
| Spec.Blake2B,M256 ->
vec_store_le #U64 #4 b r.(0ul)
| _ ->
uints_to_bytes_le #(Spec.wt a) 4ul b r | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 42,
"end_line": 261,
"start_col": 0,
"start_line": 253
} | module Hacl.Impl.Blake2.Core
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.IntVector
module Spec = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
noextract inline_for_extraction
let zero_element (a... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
b: Lib.Buffer.lbuffer Lib.IntTypes.uint8 (Hacl.Impl.Blake2.Core.size_row a) ->
r: Hacl.Impl.Blake2.Core.row_p a m
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"Hacl.Impl.Blake2.Core.size_row",
"Hacl.Impl.Blake2.Core.row_p",
"FStar.Pervasives.Native.Mktuple2",
"Lib.IntVector.vec_store_le",
"Lib.IntTypes.U32",
"Prims.unit",
"Lib.IntVector.vec_t",
... | [] | false | true | false | false | false | let store_row #a #m b r =
| match a, m with
| Spec.Blake2S, M256 | Spec.Blake2S, M128 -> vec_store_le #U32 #4 b r.(0ul)
| Spec.Blake2B, M256 -> vec_store_le #U64 #4 b r.(0ul)
| _ -> uints_to_bytes_le #(Spec.wt a) 4ul b r | false |
Hacl.Impl.Blake2.Core.fst | Hacl.Impl.Blake2.Core.state_v_eq_lemma | val state_v_eq_lemma: #a:Spec.alg -> #m:m_spec -> h0:mem -> h1:mem -> st1:state_p a m -> st2:state_p a m ->
Lemma (requires (as_seq h0 st1 == as_seq h1 st2))
(ensures (state_v h0 st1 == state_v h1 st2))
[SMTPat (state_v #a #m h0 st1); SMTPat (state_v #a #m h1 st2)] | val state_v_eq_lemma: #a:Spec.alg -> #m:m_spec -> h0:mem -> h1:mem -> st1:state_p a m -> st2:state_p a m ->
Lemma (requires (as_seq h0 st1 == as_seq h1 st2))
(ensures (state_v h0 st1 == state_v h1 st2))
[SMTPat (state_v #a #m h0 st1); SMTPat (state_v #a #m h1 st2)] | let state_v_eq_lemma #a #m h0 h1 st1 st2 =
assert (v (0ul *. row_len a m) == 0);
LowStar.Monotonic.Buffer.as_seq_gsub #_ #(LowStar.Buffer.trivial_preorder (element_t a m)) #(LowStar.Buffer.trivial_preorder (element_t a m)) h0 st1 0ul (row_len a m)
(LowStar.Buffer.trivial_preorder (element_t a m));
assert (as_se... | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 57,
"end_line": 111,
"start_col": 0,
"start_line": 98
} | module Hacl.Impl.Blake2.Core
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.IntVector
module Spec = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
noextract inline_for_extraction
let zero_element (a... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
h0: FStar.Monotonic.HyperStack.mem ->
h1: FStar.Monotonic.HyperStack.mem ->
st1: Hacl.Impl.Blake2.Core.state_p a m ->
st2: Hacl.Impl.Blake2.Core.state_p a m
-> FStar.Pervasives.Lemma (requires Lib.Buffer.as_seq h0 st1 == Lib.Buffer.as_seq h1 st2)
(ensures Hacl.Impl.Blake2.Core.state_v h0 st1 ==... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"FStar.Monotonic.HyperStack.mem",
"Hacl.Impl.Blake2.Core.state_p",
"Lib.Sequence.eq_intro",
"Spec.Blake2.Definitions.row",
"Hacl.Impl.Blake2.Core.state_v",
"Prims.unit",
"Hacl.Impl.Blake2.Core.row_v_lemma",
"Hacl.Impl.Blake2.Core.g_row... | [] | true | false | true | false | false | let state_v_eq_lemma #a #m h0 h1 st1 st2 =
| assert (v (0ul *. row_len a m) == 0);
LowStar.Monotonic.Buffer.as_seq_gsub #_
#(LowStar.Buffer.trivial_preorder (element_t a m))
#(LowStar.Buffer.trivial_preorder (element_t a m))
h0
st1
0ul
(row_len a m)
(LowStar.Buffer.trivial_preorder (element_t a m));
assert (as_seq h0 (g_rowi st1 0ul) == Seq.slice (a... | false |
Pulse.Extract.Main.fst | Pulse.Extract.Main.name | val name : Type0 | let name = ppname & nat | {
"file_name": "lib/steel/pulse/Pulse.Extract.Main.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 23,
"end_line": 44,
"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": [
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Naming.fsti.checked",
"Pulse.Syntax.Base.fsti.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.... | [
{
"abbrev": true,
"full_module": "Pulse.Extract.CompilerLib",
"short_module": "ECL"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "Pulse.Syntax.Naming",
"short_module": "LN"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Pervasives.Native.tuple2",
"Pulse.Syntax.Base.ppname",
"Prims.nat"
] | [] | false | false | false | true | true | let name =
| ppname & nat | false | |
Hacl.Impl.Blake2.Core.fst | Hacl.Impl.Blake2.Core.store_row32 | val store_row32: #a:Spec.alg -> #m:m_spec -> b:lbuffer (word_t a) 4ul -> r:row_p a m ->
Stack unit
(requires (fun h -> live h r /\ live h b /\ disjoint r b))
(ensures (fun h0 _ h1 -> modifies (loc b) h0 h1 /\
Spec.( load_row (as_seq h1 b)) == row_v h0 r)) | val store_row32: #a:Spec.alg -> #m:m_spec -> b:lbuffer (word_t a) 4ul -> r:row_p a m ->
Stack unit
(requires (fun h -> live h r /\ live h b /\ disjoint r b))
(ensures (fun h0 _ h1 -> modifies (loc b) h0 h1 /\
Spec.( load_row (as_seq h1 b)) == row_v h0 r)) | let store_row32 #a #m b r =
push_frame();
let h0 = ST.get() in
let b8 = create (size_row a) (u8 0) in
store_row b8 r;
let h1 = ST.get() in
uints_from_bytes_le b b8;
let h2 = ST.get() in
assert (as_seq h1 b8 == Lib.ByteSequence.uints_to_bytes_le #(Spec.wt a) (row_v h0 r));
assert (as_seq h2 b == Lib.... | {
"file_name": "code/blake2/Hacl.Impl.Blake2.Core.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 13,
"end_line": 278,
"start_col": 0,
"start_line": 264
} | module Hacl.Impl.Blake2.Core
module ST = FStar.HyperStack.ST
open FStar.HyperStack
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Lib.IntVector
module Spec = Spec.Blake2
#set-options "--max_fuel 0 --max_ifuel 1"
noextract inline_for_extraction
let zero_element (a... | {
"checked_file": "/",
"dependencies": [
"Spec.Blake2.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntVector.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Spec.Blake2",
"short_module": "Spec"
},
{
"abbrev": false,
"full_module": "Lib.IntVector",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteBuffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: Lib.Buffer.lbuffer (Hacl.Impl.Blake2.Core.word_t a) 4ul -> r: Hacl.Impl.Blake2.Core.row_p a m
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Blake2.Definitions.alg",
"Hacl.Impl.Blake2.Core.m_spec",
"Lib.Buffer.lbuffer",
"Hacl.Impl.Blake2.Core.word_t",
"FStar.UInt32.__uint_to_t",
"Hacl.Impl.Blake2.Core.row_p",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Lib.ByteSequence.lemma_uints_to_from_bytes_le_preserves_value",
"Spec.Blak... | [] | false | true | false | false | false | let store_row32 #a #m b r =
| push_frame ();
let h0 = ST.get () in
let b8 = create (size_row a) (u8 0) in
store_row b8 r;
let h1 = ST.get () in
uints_from_bytes_le b b8;
let h2 = ST.get () in
assert (as_seq h1 b8 == Lib.ByteSequence.uints_to_bytes_le #(Spec.wt a) (row_v h0 r));
assert (as_seq h2 b == Lib.ByteSequence.uints_from_bytes_le #(Spec.wt a... | false |
Pulse.Extract.Main.fst | Pulse.Extract.Main.uenv_of_env | val uenv_of_env : g: Pulse.Extract.Main.env -> Pulse.Extract.CompilerLib.uenv | let uenv_of_env (g:env) = set_tcenv g.uenv_inner (tcenv_of_env g) | {
"file_name": "lib/steel/pulse/Pulse.Extract.Main.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 65,
"end_line": 48,
"start_col": 0,
"start_line": 48
} | (*
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.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Naming.fsti.checked",
"Pulse.Syntax.Base.fsti.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.... | [
{
"abbrev": true,
"full_module": "Pulse.Extract.CompilerLib",
"short_module": "ECL"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "Pulse.Syntax.Naming",
"short_module": "LN"
},
{
"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 | g: Pulse.Extract.Main.env -> Pulse.Extract.CompilerLib.uenv | Prims.Tot | [
"total"
] | [] | [
"Pulse.Extract.Main.env",
"Pulse.Extract.CompilerLib.set_tcenv",
"Pulse.Extract.Main.__proj__Mkenv__item__uenv_inner",
"Pulse.Extract.Main.tcenv_of_env",
"Pulse.Extract.CompilerLib.uenv"
] | [] | false | false | false | true | false | let uenv_of_env (g: env) =
| set_tcenv g.uenv_inner (tcenv_of_env g) | false | |
LList.fst | LList.datas | val datas (#a: Type) (l: list (cell a)) : list a | val datas (#a: Type) (l: list (cell a)) : list a | let rec datas (#a:Type) (l:list (cell a)) : list a =
match l with
| [] -> []
| hd::tl -> data hd :: datas tl | {
"file_name": "share/steel/examples/steel/LList.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 33,
"end_line": 15,
"start_col": 0,
"start_line": 12
} | module LList
open Steel.Memory
open Steel.Effect.Atomic
open Steel.Effect
open Steel.FractionalPermission
open Steel.Reference
include LList.Invariant
module L = FStar.List.Tot.Base
#set-options "--ide_id_info_off" | {
"checked_file": "/",
"dependencies": [
"Steel.Reference.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"LList.Invariant.fsti.checked",
"FStar.Pervasives.Nati... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot.Base",
"short_module": "L"
},
{
"abbrev": false,
"full_module": "LList.Invariant",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Reference",
"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 | l: Prims.list (LList.Invariant.cell a) -> Prims.list a | Prims.Tot | [
"total"
] | [] | [
"Prims.list",
"LList.Invariant.cell",
"Prims.Nil",
"Prims.Cons",
"LList.Invariant.data",
"LList.datas"
] | [
"recursion"
] | false | false | false | true | false | let rec datas (#a: Type) (l: list (cell a)) : list a =
| match l with
| [] -> []
| hd :: tl -> data hd :: datas tl | false |
Pulse.Extract.Main.fst | Pulse.Extract.Main.term_as_mlexpr | val term_as_mlexpr (g: env) (t: term) : T.Tac mlexpr | val term_as_mlexpr (g: env) (t: term) : T.Tac mlexpr | let term_as_mlexpr (g:env) (t:term)
: T.Tac mlexpr
= let t = Elab.elab_term t in
let uenv = uenv_of_env g in
let t = normalize_for_extraction uenv t in
let mlt, _, _ = term_as_mlexpr uenv t in
mlt | {
"file_name": "lib/steel/pulse/Pulse.Extract.Main.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 7,
"end_line": 62,
"start_col": 0,
"start_line": 56
} | (*
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.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Naming.fsti.checked",
"Pulse.Syntax.Base.fsti.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.... | [
{
"abbrev": true,
"full_module": "Pulse.Extract.CompilerLib",
"short_module": "ECL"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "Pulse.Syntax.Naming",
"short_module": "LN"
},
{
"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 | g: Pulse.Extract.Main.env -> t: Pulse.Syntax.Base.term
-> FStar.Tactics.Effect.Tac Pulse.Extract.CompilerLib.mlexpr | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Extract.Main.env",
"Pulse.Syntax.Base.term",
"Pulse.Extract.CompilerLib.mlexpr",
"Pulse.Extract.CompilerLib.e_tag",
"Pulse.Extract.CompilerLib.mlty",
"FStar.Pervasives.Native.tuple3",
"Pulse.Extract.CompilerLib.term_as_mlexpr",
"FStar.Tactics.NamedView.term",
"Pulse.Extract.CompilerLib.normal... | [] | false | true | false | false | false | let term_as_mlexpr (g: env) (t: term) : T.Tac mlexpr =
| let t = Elab.elab_term t in
let uenv = uenv_of_env g in
let t = normalize_for_extraction uenv t in
let mlt, _, _ = term_as_mlexpr uenv t in
mlt | false |
Pulse.Extract.Main.fst | Pulse.Extract.Main.topenv_of_env | val topenv_of_env : g: Pulse.Extract.Main.env -> FStar.Reflection.Typing.fstar_top_env | let topenv_of_env (g:env) = E.fstar_env g.coreenv | {
"file_name": "lib/steel/pulse/Pulse.Extract.Main.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 49,
"end_line": 46,
"start_col": 0,
"start_line": 46
} | (*
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.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Naming.fsti.checked",
"Pulse.Syntax.Base.fsti.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.... | [
{
"abbrev": true,
"full_module": "Pulse.Extract.CompilerLib",
"short_module": "ECL"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "Pulse.Syntax.Naming",
"short_module": "LN"
},
{
"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 | g: Pulse.Extract.Main.env -> FStar.Reflection.Typing.fstar_top_env | Prims.Tot | [
"total"
] | [] | [
"Pulse.Extract.Main.env",
"Pulse.Typing.Env.fstar_env",
"Pulse.Extract.Main.__proj__Mkenv__item__coreenv",
"FStar.Reflection.Typing.fstar_top_env"
] | [] | false | false | false | true | false | let topenv_of_env (g: env) =
| E.fstar_env g.coreenv | false | |
Pulse.Extract.Main.fst | Pulse.Extract.Main.debug | val debug (g: env) (f: (unit -> T.Tac string)) : T.Tac unit | val debug (g: env) (f: (unit -> T.Tac string)) : T.Tac unit | let debug (g:env) (f: unit -> T.Tac string)
: T.Tac unit
= if RU.debug_at_level (E.fstar_env g.coreenv) "pulse_extraction"
then T.print (f()) | {
"file_name": "lib/steel/pulse/Pulse.Extract.Main.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 22,
"end_line": 53,
"start_col": 0,
"start_line": 50
} | (*
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.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Naming.fsti.checked",
"Pulse.Syntax.Base.fsti.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.... | [
{
"abbrev": true,
"full_module": "Pulse.Extract.CompilerLib",
"short_module": "ECL"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "Pulse.Syntax.Naming",
"short_module": "LN"
},
{
"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 | g: Pulse.Extract.Main.env -> f: (_: Prims.unit -> FStar.Tactics.Effect.Tac Prims.string)
-> FStar.Tactics.Effect.Tac Prims.unit | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Extract.Main.env",
"Prims.unit",
"Prims.string",
"Pulse.RuntimeUtils.debug_at_level",
"Pulse.Typing.Env.fstar_env",
"Pulse.Extract.Main.__proj__Mkenv__item__coreenv",
"FStar.Stubs.Tactics.V2.Builtins.print",
"Prims.bool"
] | [] | false | true | false | false | false | let debug (g: env) (f: (unit -> T.Tac string)) : T.Tac unit =
| if RU.debug_at_level (E.fstar_env g.coreenv) "pulse_extraction" then T.print (f ()) | false |
Hacl.Impl.P256.PointAdd.fst | Hacl.Impl.P256.PointAdd.point_add | val point_add: res:point -> p:point -> q:point -> Stack unit
(requires fun h ->
live h p /\ live h q /\ live h res /\
eq_or_disjoint p q /\ eq_or_disjoint q res /\ eq_or_disjoint p res /\
point_inv h p /\ point_inv h q)
(ensures fun h0 _ h1 -> modifies (loc res) h0 h1 /\
point_inv h1 res /\
from... | val point_add: res:point -> p:point -> q:point -> Stack unit
(requires fun h ->
live h p /\ live h q /\ live h res /\
eq_or_disjoint p q /\ eq_or_disjoint q res /\ eq_or_disjoint p res /\
point_inv h p /\ point_inv h q)
(ensures fun h0 _ h1 -> modifies (loc res) h0 h1 /\
point_inv h1 res /\
from... | let point_add res p q =
push_frame ();
let tmp = create 36ul (u64 0) in
let t0 = sub tmp 0ul 24ul in
let t1 = sub tmp 24ul 12ul in
point_add_noalloc t0 t1 p q;
copy res t1;
pop_frame () | {
"file_name": "code/ecdsap256/Hacl.Impl.P256.PointAdd.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 308,
"start_col": 0,
"start_line": 301
} | module Hacl.Impl.P256.PointAdd
open FStar.Mul
open FStar.HyperStack.All
open FStar.HyperStack
module ST = FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.P256.Bignum
open Hacl.Impl.P256.Field
module S = Spec.P256
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
inline_for_extraction noextrac... | {
"checked_file": "/",
"dependencies": [
"Spec.P256.fst.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.P256.Field.fsti.checked",
"Hacl.Impl.P256.Bignum.fsti.checked",
"FStar.UInt32.fsti.checke... | [
{
"abbrev": true,
"full_module": "Spec.P256",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "Hacl.Impl.P256.Field",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.P256.Bignum",
"short_module": null
},
{
"abbrev": false,
"full_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | res: Hacl.Impl.P256.Point.point -> p: Hacl.Impl.P256.Point.point -> q: Hacl.Impl.P256.Point.point
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Hacl.Impl.P256.Point.point",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Lib.Buffer.copy",
"Lib.Buffer.MUT",
"Lib.IntTypes.uint64",
"FStar.UInt32.__uint_to_t",
"Hacl.Impl.P256.PointAdd.point_add_noalloc",
"Lib.Buffer.lbuffer_t",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC"... | [] | false | true | false | false | false | let point_add res p q =
| push_frame ();
let tmp = create 36ul (u64 0) in
let t0 = sub tmp 0ul 24ul in
let t1 = sub tmp 24ul 12ul in
point_add_noalloc t0 t1 p q;
copy res t1;
pop_frame () | false |
Pulse.Extract.Main.fst | Pulse.Extract.Main.term_as_mlty | val term_as_mlty (g: env) (t: term) : T.Tac mlty | val term_as_mlty (g: env) (t: term) : T.Tac mlty | let term_as_mlty (g:env) (t:term)
: T.Tac mlty
= let t = Elab.elab_term t in
term_as_mlty (uenv_of_env g) t | {
"file_name": "lib/steel/pulse/Pulse.Extract.Main.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 34,
"end_line": 67,
"start_col": 0,
"start_line": 64
} | (*
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.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Naming.fsti.checked",
"Pulse.Syntax.Base.fsti.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.... | [
{
"abbrev": true,
"full_module": "Pulse.Extract.CompilerLib",
"short_module": "ECL"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "Pulse.Syntax.Naming",
"short_module": "LN"
},
{
"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 | g: Pulse.Extract.Main.env -> t: Pulse.Syntax.Base.term
-> FStar.Tactics.Effect.Tac Pulse.Extract.CompilerLib.mlty | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Extract.Main.env",
"Pulse.Syntax.Base.term",
"Pulse.Extract.CompilerLib.term_as_mlty",
"Pulse.Extract.Main.uenv_of_env",
"Pulse.Extract.CompilerLib.mlty",
"FStar.Stubs.Reflection.Types.term",
"Pulse.Elaborate.Pure.elab_term"
] | [] | false | true | false | false | false | let term_as_mlty (g: env) (t: term) : T.Tac mlty =
| let t = Elab.elab_term t in
term_as_mlty (uenv_of_env g) t | false |
Pulse.Extract.Main.fst | Pulse.Extract.Main.tcenv_of_env | val tcenv_of_env : g: Pulse.Extract.Main.env -> FStar.Stubs.Reflection.Types.env | let tcenv_of_env (g:env) = Pulse.Typing.elab_env g.coreenv | {
"file_name": "lib/steel/pulse/Pulse.Extract.Main.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 58,
"end_line": 47,
"start_col": 0,
"start_line": 47
} | (*
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.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Naming.fsti.checked",
"Pulse.Syntax.Base.fsti.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.... | [
{
"abbrev": true,
"full_module": "Pulse.Extract.CompilerLib",
"short_module": "ECL"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"abbrev": true,
"full_module": "Pulse.Syntax.Naming",
"short_module": "LN"
},
{
"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 | g: Pulse.Extract.Main.env -> FStar.Stubs.Reflection.Types.env | Prims.Tot | [
"total"
] | [] | [
"Pulse.Extract.Main.env",
"Pulse.Typing.elab_env",
"Pulse.Extract.Main.__proj__Mkenv__item__coreenv",
"FStar.Stubs.Reflection.Types.env"
] | [] | false | false | false | true | false | let tcenv_of_env (g: env) =
| Pulse.Typing.elab_env g.coreenv | false | |
Pulse.Extract.Main.fst | Pulse.Extract.Main.extend_env_pat | val extend_env_pat : g: Pulse.Extract.Main.env -> p: Pulse.Syntax.Base.pattern
-> FStar.Tactics.Effect.Tac
((Pulse.Extract.Main.env * Pulse.Extract.CompilerLib.mlpattern) *
Prims.list Pulse.Typing.Env.binding) | let extend_env_pat g p =
let g, pats, bs = extend_env_pat_core g p in
match pats with
| [p] -> g, p, bs
| _ -> T.raise (Extraction_failure "Unexpected extraction of pattern") | {
"file_name": "lib/steel/pulse/Pulse.Extract.Main.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 72,
"end_line": 132,
"start_col": 0,
"start_line": 128
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Naming.fsti.checked",
"Pulse.Syntax.Base.fsti.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module": "Pulse.Extract.CompilerLib",
"short_module": "ECL"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"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 | g: Pulse.Extract.Main.env -> p: Pulse.Syntax.Base.pattern
-> FStar.Tactics.Effect.Tac
((Pulse.Extract.Main.env * Pulse.Extract.CompilerLib.mlpattern) *
Prims.list Pulse.Typing.Env.binding) | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Extract.Main.env",
"Pulse.Syntax.Base.pattern",
"Prims.list",
"Pulse.Extract.CompilerLib.mlpattern",
"Pulse.Typing.Env.binding",
"FStar.Pervasives.Native.Mktuple3",
"FStar.Pervasives.Native.tuple3",
"FStar.Tactics.Effect.raise",
"Pulse.Extract.Main.Extraction_failure",
"Pulse.Extract.Main.e... | [] | false | true | false | false | false | let extend_env_pat g p =
| let g, pats, bs = extend_env_pat_core g p in
match pats with
| [p] -> g, p, bs
| _ -> T.raise (Extraction_failure "Unexpected extraction of pattern") | false | |
Pulse.Extract.Main.fst | Pulse.Extract.Main.is_erasable | val is_erasable (p: st_term) : T.Tac bool | val is_erasable (p: st_term) : T.Tac bool | let is_erasable (p:st_term) : T.Tac bool =
let tag = T.unseal p.effect_tag in
match tag with
| Some STT_Ghost -> true
| _ -> false | {
"file_name": "lib/steel/pulse/Pulse.Extract.Main.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 14,
"end_line": 139,
"start_col": 0,
"start_line": 135
} | (*
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.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Naming.fsti.checked",
"Pulse.Syntax.Base.fsti.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module": "Pulse.Extract.CompilerLib",
"short_module": "ECL"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"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 | p: Pulse.Syntax.Base.st_term -> FStar.Tactics.Effect.Tac Prims.bool | FStar.Tactics.Effect.Tac | [] | [] | [
"Pulse.Syntax.Base.st_term",
"FStar.Pervasives.Native.option",
"Pulse.Syntax.Base.ctag",
"Prims.bool",
"FStar.Tactics.Unseal.unseal",
"Pulse.Syntax.Base.__proj__Mkst_term__item__effect_tag"
] | [] | false | true | false | false | false | let is_erasable (p: st_term) : T.Tac bool =
| let tag = T.unseal p.effect_tag in
match tag with
| Some STT_Ghost -> true
| _ -> false | false |
Pulse.Extract.Main.fst | Pulse.Extract.Main.fresh | val fresh : g: Pulse.Extract.Main.env
-> v: Pulse.Syntax.Base.var{~(FStar.Set.mem v (Pulse.Typing.Env.dom (Mkenv?.coreenv g)))} | let fresh (g:env) = Pulse.Typing.fresh g.coreenv | {
"file_name": "lib/steel/pulse/Pulse.Extract.Main.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 48,
"end_line": 308,
"start_col": 0,
"start_line": 308
} | (*
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.Env.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Pure.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.Naming.fsti.checked",
"Pulse.Syntax.Base.fsti.checked",
"Pulse.RuntimeUtils.fsti.checked",
"Pulse.... | [
{
"abbrev": true,
"full_module": "FStar.Reflection.V2",
"short_module": "R"
},
{
"abbrev": true,
"full_module": "Pulse.Extract.CompilerLib",
"short_module": "ECL"
},
{
"abbrev": true,
"full_module": "Pulse.RuntimeUtils",
"short_module": "RU"
},
{
"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 | g: Pulse.Extract.Main.env
-> v: Pulse.Syntax.Base.var{~(FStar.Set.mem v (Pulse.Typing.Env.dom (Mkenv?.coreenv g)))} | Prims.Tot | [
"total"
] | [] | [
"Pulse.Extract.Main.env",
"Pulse.Typing.Env.fresh",
"Pulse.Extract.Main.__proj__Mkenv__item__coreenv",
"Pulse.Syntax.Base.var",
"Prims.l_not",
"Prims.b2t",
"FStar.Set.mem",
"Pulse.Typing.Env.dom"
] | [] | false | false | false | false | false | let fresh (g: env) =
| Pulse.Typing.fresh g.coreenv | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.