effect stringclasses 48
values | original_source_type stringlengths 0 23k | opens_and_abbrevs listlengths 2 92 | isa_cross_project_example bool 1
class | source_definition stringlengths 9 57.9k | partial_definition stringlengths 7 23.3k | is_div bool 2
classes | is_type null | is_proof bool 2
classes | completed_definiton stringlengths 1 250k | dependencies dict | effect_flags listlengths 0 2 | ideal_premises listlengths 0 236 | mutual_with listlengths 0 11 | file_context stringlengths 0 407k | interleaved bool 1
class | is_simply_typed bool 2
classes | file_name stringlengths 5 48 | vconfig dict | is_simple_lemma null | source_type stringlengths 10 23k | proof_features listlengths 0 1 | name stringlengths 8 95 | source dict | verbose_type stringlengths 1 7.42k | source_range dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
FStar.Pervasives.Lemma | val gctr_partial_opaque_completed (alg:algorithm) (plain cipher:seq quad32) (key:seq nat32) (icb:quad32) : Lemma
(requires
is_aes_key_word alg key /\
length plain == length cipher /\
length plain < pow2_32 /\
gctr_partial alg (length cipher) plain cipher key icb
)
(ensures cipher == gctr_encrypt_r... | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GCM_helpers_BE",
"short_module": null
},
{
"abbrev": false,
... | false | let gctr_partial_opaque_completed (alg:algorithm) (plain cipher:seq quad32) (key:seq nat32) (icb:quad32) : Lemma
(requires
is_aes_key_word alg key /\
length plain == length cipher /\
length plain < pow2_32 /\
gctr_partial alg (length cipher) plain cipher key icb
)
(ensures cipher == gctr_encrypt_r... | val gctr_partial_opaque_completed (alg:algorithm) (plain cipher:seq quad32) (key:seq nat32) (icb:quad32) : Lemma
(requires
is_aes_key_word alg key /\
length plain == length cipher /\
length plain < pow2_32 /\
gctr_partial alg (length cipher) plain cipher key icb
)
(ensures cipher == gctr_encrypt_r... | false | null | true | gctr_partial_reveal ();
gctr_partial_completed alg plain cipher key icb | {
"checked_file": "Vale.AES.GCTR_BE.fst.checked",
"dependencies": [
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.TypesNative_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Op... | [
"lemma"
] | [
"Vale.AES.AES_common_s.algorithm",
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.quad32",
"Vale.Def.Types_s.nat32",
"Vale.AES.GCTR_BE.gctr_partial_completed",
"Prims.unit",
"Vale.AES.GCTR_BE.gctr_partial_reveal",
"Prims.l_and",
"Vale.AES.AES_BE_s.is_aes_key_word",
"Prims.eq2",
"Prims.nat",
"FStar.Se... | [] | module Vale.AES.GCTR_BE
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open Vale.AES.GCM_helpers_BE
open FStar.Math.Lemmas
open Vale.Lib.Seqs
open V... | false | false | Vale.AES.GCTR_BE.fst | {
"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... | null | val gctr_partial_opaque_completed (alg:algorithm) (plain cipher:seq quad32) (key:seq nat32) (icb:quad32) : Lemma
(requires
is_aes_key_word alg key /\
length plain == length cipher /\
length plain < pow2_32 /\
gctr_partial alg (length cipher) plain cipher key icb
)
(ensures cipher == gctr_encrypt_r... | [] | Vale.AES.GCTR_BE.gctr_partial_opaque_completed | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
alg: Vale.AES.AES_common_s.algorithm ->
plain: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
cipher: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
key: FStar.Seq.Base.seq Vale.Def.Types_s.nat32 ->
icb: Vale.Def.Types_s.quad32
-> FStar.Pervasives.Lemma
(requires
Vale.AES.AES_BE_s.is_... | {
"end_col": 49,
"end_line": 136,
"start_col": 2,
"start_line": 135
} |
FStar.Pervasives.Lemma | val nat32_xor_bytewise_1_helper2 (x x': nat32) (t t': four nat8)
: Lemma
(requires x == four_to_nat 8 t /\ x' == four_to_nat 8 t' /\ x / 0x1000000 == x' / 0x1000000)
(ensures t.hi3 == t'.hi3) | [
{
"abbrev": false,
"full_module": "FStar.Seq.Properties",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
... | false | let nat32_xor_bytewise_1_helper2 (x x':nat32) (t t':four nat8) : Lemma
(requires
x == four_to_nat 8 t /\
x' == four_to_nat 8 t' /\
x / 0x1000000 == x' / 0x1000000
)
(ensures t.hi3 == t'.hi3)
=
let Mkfour t0 t1 t2 t3 = t in
let Mkfour t0' t1' t2' t3' = t' in
let t012 = t0 + 0x100 * t1 + 0x10000... | val nat32_xor_bytewise_1_helper2 (x x': nat32) (t t': four nat8)
: Lemma
(requires x == four_to_nat 8 t /\ x' == four_to_nat 8 t' /\ x / 0x1000000 == x' / 0x1000000)
(ensures t.hi3 == t'.hi3)
let nat32_xor_bytewise_1_helper2 (x x': nat32) (t t': four nat8)
: Lemma
(requires x == four_to_nat 8 ... | false | null | true | let Mkfour t0 t1 t2 t3 = t in
let Mkfour t0' t1' t2' t3' = t' in
let t012 = t0 + 0x100 * t1 + 0x10000 * t2 in
let t012' = t0' + 0x100 * t1' + 0x10000 * t2' in
assert_norm (four_to_nat 8 t == four_to_nat_unfold 8 t);
assert_norm (four_to_nat 8 t' == four_to_nat_unfold 8 t');
nat32_xor_bytewise_1_helper1 t3 t3' t012 t012... | {
"checked_file": "Vale.AES.GCTR_BE.fst.checked",
"dependencies": [
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.TypesNative_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Op... | [
"lemma"
] | [
"Vale.Def.Types_s.nat32",
"Vale.Def.Words_s.four",
"Vale.Def.Types_s.nat8",
"Prims.unit",
"Vale.AES.GCTR_BE.nat32_xor_bytewise_1_helper1",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Vale.Def.Words_s.natN",
"Prims.pow2",
"FStar.Mul.op_Star",
"Vale.Def.Words.Four_s.four_to_nat",
"Vale.Def.Wor... | [] | module Vale.AES.GCTR_BE
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open Vale.AES.GCM_helpers_BE
open FStar.Math.Lemmas
open Vale.Lib.Seqs
open V... | false | false | Vale.AES.GCTR_BE.fst | {
"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... | null | val nat32_xor_bytewise_1_helper2 (x x': nat32) (t t': four nat8)
: Lemma
(requires x == four_to_nat 8 t /\ x' == four_to_nat 8 t' /\ x / 0x1000000 == x' / 0x1000000)
(ensures t.hi3 == t'.hi3) | [] | Vale.AES.GCTR_BE.nat32_xor_bytewise_1_helper2 | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
x: Vale.Def.Types_s.nat32 ->
x': Vale.Def.Types_s.nat32 ->
t: Vale.Def.Words_s.four Vale.Def.Types_s.nat8 ->
t': Vale.Def.Words_s.four Vale.Def.Types_s.nat8
-> FStar.Pervasives.Lemma
(requires
x == Vale.Def.Words.Four_s.four_to_nat 8 t /\ x' == Vale.Def.Words.Four_s.four_to_nat 8 t' /\
... | {
"end_col": 4,
"end_line": 236,
"start_col": 3,
"start_line": 228
} |
FStar.Pervasives.Lemma | val gctr_partial_completed (alg:algorithm) (plain cipher:seq quad32) (key:seq nat32) (icb:quad32) : Lemma
(requires
is_aes_key_word alg key /\
length plain == length cipher /\
length plain < pow2_32 /\
gctr_partial_def alg (length cipher) plain cipher key icb
)
(ensures cipher == gctr_encrypt_recu... | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GCM_helpers_BE",
"short_module": null
},
{
"abbrev": false,
... | false | let gctr_partial_completed (alg:algorithm) (plain cipher:seq quad32) (key:seq nat32) (icb:quad32) =
gctr_indexed icb plain alg key cipher;
() | val gctr_partial_completed (alg:algorithm) (plain cipher:seq quad32) (key:seq nat32) (icb:quad32) : Lemma
(requires
is_aes_key_word alg key /\
length plain == length cipher /\
length plain < pow2_32 /\
gctr_partial_def alg (length cipher) plain cipher key icb
)
(ensures cipher == gctr_encrypt_recu... | false | null | true | gctr_indexed icb plain alg key cipher;
() | {
"checked_file": "Vale.AES.GCTR_BE.fst.checked",
"dependencies": [
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.TypesNative_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Op... | [
"lemma"
] | [
"Vale.AES.AES_common_s.algorithm",
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.quad32",
"Vale.Def.Types_s.nat32",
"Prims.unit",
"Vale.AES.GCTR_BE.gctr_indexed"
] | [] | module Vale.AES.GCTR_BE
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open Vale.AES.GCM_helpers_BE
open FStar.Math.Lemmas
open Vale.Lib.Seqs
open V... | false | false | Vale.AES.GCTR_BE.fst | {
"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... | null | val gctr_partial_completed (alg:algorithm) (plain cipher:seq quad32) (key:seq nat32) (icb:quad32) : Lemma
(requires
is_aes_key_word alg key /\
length plain == length cipher /\
length plain < pow2_32 /\
gctr_partial_def alg (length cipher) plain cipher key icb
)
(ensures cipher == gctr_encrypt_recu... | [] | Vale.AES.GCTR_BE.gctr_partial_completed | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
alg: Vale.AES.AES_common_s.algorithm ->
plain: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
cipher: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
key: FStar.Seq.Base.seq Vale.Def.Types_s.nat32 ->
icb: Vale.Def.Types_s.quad32
-> FStar.Pervasives.Lemma
(requires
Vale.AES.AES_BE_s.is_... | {
"end_col": 4,
"end_line": 124,
"start_col": 2,
"start_line": 123
} |
FStar.Pervasives.Lemma | val nat32_xor_bytewise_3_helper3 (k k': nat32) (s s': four nat8)
: Lemma
(requires
k == four_to_nat 8 s /\ k' == four_to_nat 8 s' /\ s.hi3 == s'.hi3 /\ s.hi2 == s'.hi2 /\
s.lo1 == s'.lo1) (ensures k / 0x100 == k' / 0x100) | [
{
"abbrev": false,
"full_module": "FStar.Seq.Properties",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
... | false | let nat32_xor_bytewise_3_helper3 (k k':nat32) (s s':four nat8) : Lemma
(requires
k == four_to_nat 8 s /\
k' == four_to_nat 8 s' /\
s.hi3 == s'.hi3 /\ s.hi2 == s'.hi2 /\ s.lo1 == s'.lo1
)
(ensures k / 0x100 == k' / 0x100)
=
let Mkfour _ _ _ _ = s in
let Mkfour _ _ _ _ = s' in
assert_norm (four... | val nat32_xor_bytewise_3_helper3 (k k': nat32) (s s': four nat8)
: Lemma
(requires
k == four_to_nat 8 s /\ k' == four_to_nat 8 s' /\ s.hi3 == s'.hi3 /\ s.hi2 == s'.hi2 /\
s.lo1 == s'.lo1) (ensures k / 0x100 == k' / 0x100)
let nat32_xor_bytewise_3_helper3 (k k': nat32) (s s': four nat8)
: L... | false | null | true | let Mkfour _ _ _ _ = s in
let Mkfour _ _ _ _ = s' in
assert_norm (four_to_nat 8 s == four_to_nat_unfold 8 s);
assert_norm (four_to_nat 8 s' == four_to_nat_unfold 8 s');
() | {
"checked_file": "Vale.AES.GCTR_BE.fst.checked",
"dependencies": [
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.TypesNative_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Op... | [
"lemma"
] | [
"Vale.Def.Types_s.nat32",
"Vale.Def.Words_s.four",
"Vale.Def.Types_s.nat8",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Vale.Def.Words_s.natN",
"Prims.pow2",
"FStar.Mul.op_Star",
"Vale.Def.Words.Four_s.four_to_nat",
"Vale.Def.Words.Four_s.four_to_nat_unfold",
"Vale.Def.Words_s.... | [] | module Vale.AES.GCTR_BE
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open Vale.AES.GCM_helpers_BE
open FStar.Math.Lemmas
open Vale.Lib.Seqs
open V... | false | false | Vale.AES.GCTR_BE.fst | {
"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... | null | val nat32_xor_bytewise_3_helper3 (k k': nat32) (s s': four nat8)
: Lemma
(requires
k == four_to_nat 8 s /\ k' == four_to_nat 8 s' /\ s.hi3 == s'.hi3 /\ s.hi2 == s'.hi2 /\
s.lo1 == s'.lo1) (ensures k / 0x100 == k' / 0x100) | [] | Vale.AES.GCTR_BE.nat32_xor_bytewise_3_helper3 | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
k: Vale.Def.Types_s.nat32 ->
k': Vale.Def.Types_s.nat32 ->
s: Vale.Def.Words_s.four Vale.Def.Types_s.nat8 ->
s': Vale.Def.Words_s.four Vale.Def.Types_s.nat8
-> FStar.Pervasives.Lemma
(requires
k == Vale.Def.Words.Four_s.four_to_nat 8 s /\ k' == Vale.Def.Words.Four_s.four_to_nat 8 s' /\
... | {
"end_col": 4,
"end_line": 314,
"start_col": 3,
"start_line": 309
} |
FStar.Pervasives.Lemma | val gctr_partial_to_full_basic (icb:quad32) (plain:seq quad32) (alg:algorithm) (key:seq nat32) (cipher:seq quad32) : Lemma
(requires
is_aes_key_word alg key /\
cipher == gctr_encrypt_recursive icb plain alg key 0 /\
length plain * 16 < pow2_32
)
(ensures seq_nat32_to_seq_nat8_BE (seq_four_to_seq_BE ci... | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GCM_helpers_BE",
"short_module": null
},
{
"abbrev": false,
... | false | let gctr_partial_to_full_basic (icb:quad32) (plain:seq quad32) (alg:algorithm) (key:seq nat32) (cipher:seq quad32) =
gctr_encrypt_reveal ();
let p = seq_nat32_to_seq_nat8_BE (seq_four_to_seq_BE plain) in
assert (length p % 16 == 0);
let plain_quads = be_bytes_to_seq_quad32 p in
let cipher_quads = gctr_encrypt... | val gctr_partial_to_full_basic (icb:quad32) (plain:seq quad32) (alg:algorithm) (key:seq nat32) (cipher:seq quad32) : Lemma
(requires
is_aes_key_word alg key /\
cipher == gctr_encrypt_recursive icb plain alg key 0 /\
length plain * 16 < pow2_32
)
(ensures seq_nat32_to_seq_nat8_BE (seq_four_to_seq_BE ci... | false | null | true | gctr_encrypt_reveal ();
let p = seq_nat32_to_seq_nat8_BE (seq_four_to_seq_BE plain) in
assert (length p % 16 == 0);
let plain_quads = be_bytes_to_seq_quad32 p in
let cipher_quads = gctr_encrypt_recursive icb plain_quads alg key 0 in
let cipher_bytes = seq_nat32_to_seq_nat8_BE (seq_four_to_seq_BE cipher_quads) in
be_byt... | {
"checked_file": "Vale.AES.GCTR_BE.fst.checked",
"dependencies": [
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.TypesNative_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Op... | [
"lemma"
] | [
"Vale.Def.Types_s.quad32",
"FStar.Seq.Base.seq",
"Vale.AES.AES_common_s.algorithm",
"Vale.Def.Types_s.nat32",
"Prims.unit",
"Vale.Arch.Types.be_bytes_to_seq_quad32_to_bytes",
"Vale.Def.Words_s.nat8",
"Vale.Def.Words.Seq_s.seq_nat32_to_seq_nat8_BE",
"Vale.Def.Words.Seq_s.seq_four_to_seq_BE",
"Vale.... | [] | module Vale.AES.GCTR_BE
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open Vale.AES.GCM_helpers_BE
open FStar.Math.Lemmas
open Vale.Lib.Seqs
open V... | false | false | Vale.AES.GCTR_BE.fst | {
"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... | null | val gctr_partial_to_full_basic (icb:quad32) (plain:seq quad32) (alg:algorithm) (key:seq nat32) (cipher:seq quad32) : Lemma
(requires
is_aes_key_word alg key /\
cipher == gctr_encrypt_recursive icb plain alg key 0 /\
length plain * 16 < pow2_32
)
(ensures seq_nat32_to_seq_nat8_BE (seq_four_to_seq_BE ci... | [] | Vale.AES.GCTR_BE.gctr_partial_to_full_basic | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
icb: Vale.Def.Types_s.quad32 ->
plain: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
alg: Vale.AES.AES_common_s.algorithm ->
key: FStar.Seq.Base.seq Vale.Def.Types_s.nat32 ->
cipher: FStar.Seq.Base.seq Vale.Def.Types_s.quad32
-> FStar.Pervasives.Lemma
(requires
Vale.AES.AES_BE_s.is_... | {
"end_col": 4,
"end_line": 146,
"start_col": 2,
"start_line": 139
} |
FStar.Pervasives.Lemma | val nat32_xor_bytewise_2_helper2 (x x': nat32) (t t': four nat8)
: Lemma (requires x == four_to_nat 8 t /\ x' == four_to_nat 8 t' /\ x / 0x10000 == x' / 0x10000)
(ensures t.hi3 == t'.hi3 /\ t.hi2 == t'.hi2) | [
{
"abbrev": false,
"full_module": "FStar.Seq.Properties",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
... | false | let nat32_xor_bytewise_2_helper2 (x x':nat32) (t t':four nat8) : Lemma
(requires
x == four_to_nat 8 t /\
x' == four_to_nat 8 t' /\
x / 0x10000 == x' / 0x10000
)
(ensures t.hi3 == t'.hi3 /\ t.hi2 == t'.hi2)
=
let Mkfour t0 t1 t2 t3 = t in
let Mkfour t0' t1' t2' t3' = t' in
let t01 = t0 + 0x100 ... | val nat32_xor_bytewise_2_helper2 (x x': nat32) (t t': four nat8)
: Lemma (requires x == four_to_nat 8 t /\ x' == four_to_nat 8 t' /\ x / 0x10000 == x' / 0x10000)
(ensures t.hi3 == t'.hi3 /\ t.hi2 == t'.hi2)
let nat32_xor_bytewise_2_helper2 (x x': nat32) (t t': four nat8)
: Lemma (requires x == four_to_nat... | false | null | true | let Mkfour t0 t1 t2 t3 = t in
let Mkfour t0' t1' t2' t3' = t' in
let t01 = t0 + 0x100 * t1 in
let t23 = t2 + 0x100 * t3 in
let t01' = t0' + 0x100 * t1' in
let t23' = t2' + 0x100 * t3' in
assert_norm (four_to_nat 8 t == four_to_nat_unfold 8 t);
assert_norm (four_to_nat 8 t' == four_to_nat_unfold 8 t');
nat32_xor_bytewis... | {
"checked_file": "Vale.AES.GCTR_BE.fst.checked",
"dependencies": [
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.TypesNative_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Op... | [
"lemma"
] | [
"Vale.Def.Types_s.nat32",
"Vale.Def.Words_s.four",
"Vale.Def.Types_s.nat8",
"Prims.unit",
"Vale.AES.GCTR_BE.nat32_xor_bytewise_2_helper1",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Vale.Def.Words_s.natN",
"Prims.pow2",
"FStar.Mul.op_Star",
"Vale.Def.Words.Four_s.four_to_nat",
"Vale.Def.Wor... | [] | module Vale.AES.GCTR_BE
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open Vale.AES.GCM_helpers_BE
open FStar.Math.Lemmas
open Vale.Lib.Seqs
open V... | false | false | Vale.AES.GCTR_BE.fst | {
"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... | null | val nat32_xor_bytewise_2_helper2 (x x': nat32) (t t': four nat8)
: Lemma (requires x == four_to_nat 8 t /\ x' == four_to_nat 8 t' /\ x / 0x10000 == x' / 0x10000)
(ensures t.hi3 == t'.hi3 /\ t.hi2 == t'.hi2) | [] | Vale.AES.GCTR_BE.nat32_xor_bytewise_2_helper2 | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
x: Vale.Def.Types_s.nat32 ->
x': Vale.Def.Types_s.nat32 ->
t: Vale.Def.Words_s.four Vale.Def.Types_s.nat8 ->
t': Vale.Def.Words_s.four Vale.Def.Types_s.nat8
-> FStar.Pervasives.Lemma
(requires
x == Vale.Def.Words.Four_s.four_to_nat 8 t /\ x' == Vale.Def.Words.Four_s.four_to_nat 8 t' /\
... | {
"end_col": 4,
"end_line": 255,
"start_col": 3,
"start_line": 245
} |
FStar.Pervasives.Lemma | val nat32_xor_bytewise_3_helper2 (x x': nat32) (t t': four nat8)
: Lemma (requires x == four_to_nat 8 t /\ x' == four_to_nat 8 t' /\ x / 0x100 == x' / 0x100)
(ensures t.hi3 == t'.hi3 /\ t.hi2 == t'.hi2 /\ t.lo1 == t'.lo1) | [
{
"abbrev": false,
"full_module": "FStar.Seq.Properties",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
... | false | let nat32_xor_bytewise_3_helper2 (x x':nat32) (t t':four nat8) : Lemma
(requires
x == four_to_nat 8 t /\
x' == four_to_nat 8 t' /\
x / 0x100 == x' / 0x100
)
(ensures t.hi3 == t'.hi3 /\ t.hi2 == t'.hi2 /\ t.lo1 == t'.lo1)
=
let Mkfour t0 t1 t2 t3 = t in
let Mkfour t0' t1' t2' t3' = t' in
let t1... | val nat32_xor_bytewise_3_helper2 (x x': nat32) (t t': four nat8)
: Lemma (requires x == four_to_nat 8 t /\ x' == four_to_nat 8 t' /\ x / 0x100 == x' / 0x100)
(ensures t.hi3 == t'.hi3 /\ t.hi2 == t'.hi2 /\ t.lo1 == t'.lo1)
let nat32_xor_bytewise_3_helper2 (x x': nat32) (t t': four nat8)
: Lemma (requires x... | false | null | true | let Mkfour t0 t1 t2 t3 = t in
let Mkfour t0' t1' t2' t3' = t' in
let t123 = t1 + 0x100 * t2 + 0x10000 * t3 in
let t123' = t1' + 0x100 * t2' + 0x10000 * t3' in
assert_norm (four_to_nat 8 t == four_to_nat_unfold 8 t);
assert_norm (four_to_nat 8 t' == four_to_nat_unfold 8 t');
nat32_xor_bytewise_3_helper1 t123 t123' t0 t0... | {
"checked_file": "Vale.AES.GCTR_BE.fst.checked",
"dependencies": [
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.TypesNative_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Op... | [
"lemma"
] | [
"Vale.Def.Types_s.nat32",
"Vale.Def.Words_s.four",
"Vale.Def.Types_s.nat8",
"Prims.unit",
"Vale.AES.GCTR_BE.nat32_xor_bytewise_3_helper1",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Vale.Def.Words_s.natN",
"Prims.pow2",
"FStar.Mul.op_Star",
"Vale.Def.Words.Four_s.four_to_nat",
"Vale.Def.Wor... | [] | module Vale.AES.GCTR_BE
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open Vale.AES.GCM_helpers_BE
open FStar.Math.Lemmas
open Vale.Lib.Seqs
open V... | false | false | Vale.AES.GCTR_BE.fst | {
"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... | null | val nat32_xor_bytewise_3_helper2 (x x': nat32) (t t': four nat8)
: Lemma (requires x == four_to_nat 8 t /\ x' == four_to_nat 8 t' /\ x / 0x100 == x' / 0x100)
(ensures t.hi3 == t'.hi3 /\ t.hi2 == t'.hi2 /\ t.lo1 == t'.lo1) | [] | Vale.AES.GCTR_BE.nat32_xor_bytewise_3_helper2 | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
x: Vale.Def.Types_s.nat32 ->
x': Vale.Def.Types_s.nat32 ->
t: Vale.Def.Words_s.four Vale.Def.Types_s.nat8 ->
t': Vale.Def.Words_s.four Vale.Def.Types_s.nat8
-> FStar.Pervasives.Lemma
(requires
x == Vale.Def.Words.Four_s.four_to_nat 8 t /\ x' == Vale.Def.Words.Four_s.four_to_nat 8 t' /\
... | {
"end_col": 4,
"end_line": 272,
"start_col": 3,
"start_line": 264
} |
FStar.Pervasives.Lemma | val nat32_xor_bytewise_3 (k k' x x' m: nat32) (s s' t t': four nat8)
: Lemma
(requires
k == four_to_nat 8 s /\ k' == four_to_nat 8 s' /\ x == four_to_nat 8 t /\
x' == four_to_nat 8 t' /\ ixor k m == x /\ ixor k' m == x' /\ s.hi3 == s'.hi3 /\
s.hi2 == s'.hi2 /\ s.lo1 == s'.lo1)
(e... | [
{
"abbrev": false,
"full_module": "FStar.Seq.Properties",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
... | false | let nat32_xor_bytewise_3 (k k' x x' m:nat32) (s s' t t':four nat8) : Lemma
(requires
k == four_to_nat 8 s /\
k' == four_to_nat 8 s' /\
x == four_to_nat 8 t /\
x' == four_to_nat 8 t' /\
ixor k m == x /\
ixor k' m == x' /\
s.hi3 == s'.hi3 /\ s.hi2 == s'.hi2 /\ s.lo1 == s'.lo1
)
(ensures ... | val nat32_xor_bytewise_3 (k k' x x' m: nat32) (s s' t t': four nat8)
: Lemma
(requires
k == four_to_nat 8 s /\ k' == four_to_nat 8 s' /\ x == four_to_nat 8 t /\
x' == four_to_nat 8 t' /\ ixor k m == x /\ ixor k' m == x' /\ s.hi3 == s'.hi3 /\
s.hi2 == s'.hi2 /\ s.lo1 == s'.lo1)
(e... | false | null | true | let Mkfour s0 s1 s2 s3 = s in
let Mkfour s0' s1' s2' s3' = s' in
let Mkfour t0 t1 t2 t3 = t in
let Mkfour t0' t1' t2' t3' = t' in
nat32_xor_bytewise_3_helper3 k k' s s';
lemma_ishr_32 k 8;
lemma_ishr_32 k' 8;
lemma_ishr_32 x 8;
lemma_ishr_32 x' 8;
lemma_ishr_ixor_32 k m 8;
lemma_ishr_ixor_32 k' m 8;
nat32_xor_bytewise_... | {
"checked_file": "Vale.AES.GCTR_BE.fst.checked",
"dependencies": [
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.TypesNative_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Op... | [
"lemma"
] | [
"Vale.Def.Types_s.nat32",
"Vale.Def.Words_s.four",
"Vale.Def.Types_s.nat8",
"Prims.unit",
"Vale.AES.GCTR_BE.nat32_xor_bytewise_3_helper2",
"Vale.AES.GCTR_BE.lemma_ishr_ixor_32",
"Vale.AES.Types_helpers.lemma_ishr_32",
"Vale.AES.GCTR_BE.nat32_xor_bytewise_3_helper3",
"Vale.Def.Words_s.nat8",
"Prims... | [] | module Vale.AES.GCTR_BE
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open Vale.AES.GCM_helpers_BE
open FStar.Math.Lemmas
open Vale.Lib.Seqs
open V... | false | false | Vale.AES.GCTR_BE.fst | {
"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... | null | val nat32_xor_bytewise_3 (k k' x x' m: nat32) (s s' t t': four nat8)
: Lemma
(requires
k == four_to_nat 8 s /\ k' == four_to_nat 8 s' /\ x == four_to_nat 8 t /\
x' == four_to_nat 8 t' /\ ixor k m == x /\ ixor k' m == x' /\ s.hi3 == s'.hi3 /\
s.hi2 == s'.hi2 /\ s.lo1 == s'.lo1)
(e... | [] | Vale.AES.GCTR_BE.nat32_xor_bytewise_3 | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
k: Vale.Def.Types_s.nat32 ->
k': Vale.Def.Types_s.nat32 ->
x: Vale.Def.Types_s.nat32 ->
x': Vale.Def.Types_s.nat32 ->
m: Vale.Def.Types_s.nat32 ->
s: Vale.Def.Words_s.four Vale.Def.Types_s.nat8 ->
s': Vale.Def.Words_s.four Vale.Def.Types_s.nat8 ->
t: Vale.Def.Words_s.four Vale.Def.Types... | {
"end_col": 4,
"end_line": 393,
"start_col": 3,
"start_line": 380
} |
FStar.Pervasives.Lemma | val nat32_xor_bytewise_1_helper3 (k k': nat32) (s s': four nat8)
: Lemma (requires k == four_to_nat 8 s /\ k' == four_to_nat 8 s' /\ s.hi3 == s'.hi3)
(ensures k / 0x1000000 == k' / 0x1000000) | [
{
"abbrev": false,
"full_module": "FStar.Seq.Properties",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
... | false | let nat32_xor_bytewise_1_helper3 (k k':nat32) (s s':four nat8) : Lemma
(requires
k == four_to_nat 8 s /\
k' == four_to_nat 8 s' /\
s.hi3 == s'.hi3
)
(ensures k / 0x1000000 == k' / 0x1000000)
=
let Mkfour _ _ _ _ = s in
let Mkfour _ _ _ _ = s' in
assert_norm (four_to_nat 8 s == four_to_nat_un... | val nat32_xor_bytewise_1_helper3 (k k': nat32) (s s': four nat8)
: Lemma (requires k == four_to_nat 8 s /\ k' == four_to_nat 8 s' /\ s.hi3 == s'.hi3)
(ensures k / 0x1000000 == k' / 0x1000000)
let nat32_xor_bytewise_1_helper3 (k k': nat32) (s s': four nat8)
: Lemma (requires k == four_to_nat 8 s /\ k' == f... | false | null | true | let Mkfour _ _ _ _ = s in
let Mkfour _ _ _ _ = s' in
assert_norm (four_to_nat 8 s == four_to_nat_unfold 8 s);
assert_norm (four_to_nat 8 s' == four_to_nat_unfold 8 s');
() | {
"checked_file": "Vale.AES.GCTR_BE.fst.checked",
"dependencies": [
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.TypesNative_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Op... | [
"lemma"
] | [
"Vale.Def.Types_s.nat32",
"Vale.Def.Words_s.four",
"Vale.Def.Types_s.nat8",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Vale.Def.Words_s.natN",
"Prims.pow2",
"FStar.Mul.op_Star",
"Vale.Def.Words.Four_s.four_to_nat",
"Vale.Def.Words.Four_s.four_to_nat_unfold",
"Vale.Def.Words_s.... | [] | module Vale.AES.GCTR_BE
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open Vale.AES.GCM_helpers_BE
open FStar.Math.Lemmas
open Vale.Lib.Seqs
open V... | false | false | Vale.AES.GCTR_BE.fst | {
"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... | null | val nat32_xor_bytewise_1_helper3 (k k': nat32) (s s': four nat8)
: Lemma (requires k == four_to_nat 8 s /\ k' == four_to_nat 8 s' /\ s.hi3 == s'.hi3)
(ensures k / 0x1000000 == k' / 0x1000000) | [] | Vale.AES.GCTR_BE.nat32_xor_bytewise_1_helper3 | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
k: Vale.Def.Types_s.nat32 ->
k': Vale.Def.Types_s.nat32 ->
s: Vale.Def.Words_s.four Vale.Def.Types_s.nat8 ->
s': Vale.Def.Words_s.four Vale.Def.Types_s.nat8
-> FStar.Pervasives.Lemma
(requires
k == Vale.Def.Words.Four_s.four_to_nat 8 s /\ k' == Vale.Def.Words.Four_s.four_to_nat 8 s' /\
... | {
"end_col": 4,
"end_line": 286,
"start_col": 3,
"start_line": 281
} |
FStar.Pervasives.Lemma | val nat32_xor_bytewise_1 (k k' x x' m: nat32) (s s' t t': four nat8)
: Lemma
(requires
k == four_to_nat 8 s /\ k' == four_to_nat 8 s' /\ x == four_to_nat 8 t /\
x' == four_to_nat 8 t' /\ ixor k m == x /\ ixor k' m == x' /\ s.hi3 == s'.hi3)
(ensures t.hi3 == t'.hi3) | [
{
"abbrev": false,
"full_module": "FStar.Seq.Properties",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
... | false | let nat32_xor_bytewise_1 (k k' x x' m:nat32) (s s' t t':four nat8) : Lemma
(requires
k == four_to_nat 8 s /\
k' == four_to_nat 8 s' /\
x == four_to_nat 8 t /\
x' == four_to_nat 8 t' /\
ixor k m == x /\
ixor k' m == x' /\
s.hi3 == s'.hi3
)
(ensures t.hi3 == t'.hi3)
=
let Mkfour s0 s... | val nat32_xor_bytewise_1 (k k' x x' m: nat32) (s s' t t': four nat8)
: Lemma
(requires
k == four_to_nat 8 s /\ k' == four_to_nat 8 s' /\ x == four_to_nat 8 t /\
x' == four_to_nat 8 t' /\ ixor k m == x /\ ixor k' m == x' /\ s.hi3 == s'.hi3)
(ensures t.hi3 == t'.hi3)
let nat32_xor_bytewise... | false | null | true | let Mkfour s0 s1 s2 s3 = s in
let Mkfour s0' s1' s2' s3' = s' in
let Mkfour t0 t1 t2 t3 = t in
let Mkfour t0' t1' t2' t3' = t' in
nat32_xor_bytewise_1_helper3 k k' s s';
lemma_ishr_32 k 24;
lemma_ishr_32 k' 24;
lemma_ishr_32 x 24;
lemma_ishr_32 x' 24;
lemma_ishr_ixor_32 k m 24;
lemma_ishr_ixor_32 k' m 24;
assert_norm (... | {
"checked_file": "Vale.AES.GCTR_BE.fst.checked",
"dependencies": [
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.TypesNative_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Op... | [
"lemma"
] | [
"Vale.Def.Types_s.nat32",
"Vale.Def.Words_s.four",
"Vale.Def.Types_s.nat8",
"Prims.unit",
"Vale.AES.GCTR_BE.nat32_xor_bytewise_1_helper2",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"Prims.pow2",
"Vale.AES.Types_helpers.pow2_24",
"Vale.AES.GCTR_BE.lemma_ishr_ixor_32",
"Vale.AES.... | [] | module Vale.AES.GCTR_BE
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open Vale.AES.GCM_helpers_BE
open FStar.Math.Lemmas
open Vale.Lib.Seqs
open V... | false | false | Vale.AES.GCTR_BE.fst | {
"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... | null | val nat32_xor_bytewise_1 (k k' x x' m: nat32) (s s' t t': four nat8)
: Lemma
(requires
k == four_to_nat 8 s /\ k' == four_to_nat 8 s' /\ x == four_to_nat 8 t /\
x' == four_to_nat 8 t' /\ ixor k m == x /\ ixor k' m == x' /\ s.hi3 == s'.hi3)
(ensures t.hi3 == t'.hi3) | [] | Vale.AES.GCTR_BE.nat32_xor_bytewise_1 | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
k: Vale.Def.Types_s.nat32 ->
k': Vale.Def.Types_s.nat32 ->
x: Vale.Def.Types_s.nat32 ->
x': Vale.Def.Types_s.nat32 ->
m: Vale.Def.Types_s.nat32 ->
s: Vale.Def.Words_s.four Vale.Def.Types_s.nat8 ->
s': Vale.Def.Words_s.four Vale.Def.Types_s.nat8 ->
t: Vale.Def.Words_s.four Vale.Def.Types... | {
"end_col": 4,
"end_line": 341,
"start_col": 3,
"start_line": 327
} |
FStar.Pervasives.Lemma | val slice_pad_to_128_bits (s: seq nat8 {0 < length s /\ length s < 16})
: Lemma (slice (pad_to_128_bits s) 0 (length s) == s) | [
{
"abbrev": false,
"full_module": "FStar.Seq.Properties",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
... | false | let slice_pad_to_128_bits (s:seq nat8 { 0 < length s /\ length s < 16 }) :
Lemma(slice (pad_to_128_bits s) 0 (length s) == s)
=
assert (length s % 16 == length s);
assert (equal s (slice (pad_to_128_bits s) 0 (length s)));
() | val slice_pad_to_128_bits (s: seq nat8 {0 < length s /\ length s < 16})
: Lemma (slice (pad_to_128_bits s) 0 (length s) == s)
let slice_pad_to_128_bits (s: seq nat8 {0 < length s /\ length s < 16})
: Lemma (slice (pad_to_128_bits s) 0 (length s) == s) = | false | null | true | assert (length s % 16 == length s);
assert (equal s (slice (pad_to_128_bits s) 0 (length s)));
() | {
"checked_file": "Vale.AES.GCTR_BE.fst.checked",
"dependencies": [
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.TypesNative_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Op... | [
"lemma"
] | [
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.nat8",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Seq.Base.length",
"Prims.unit",
"Prims._assert",
"FStar.Seq.Base.equal",
"FStar.Seq.Base.slice",
"Vale.AES.GCTR_BE_s.pad_to_128_bits",
"Prims.eq2",
"Prims.int",
"Prims.op_Modulus",
"Pri... | [] | module Vale.AES.GCTR_BE
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open Vale.AES.GCM_helpers_BE
open FStar.Math.Lemmas
open Vale.Lib.Seqs
open V... | false | false | Vale.AES.GCTR_BE.fst | {
"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... | null | val slice_pad_to_128_bits (s: seq nat8 {0 < length s /\ length s < 16})
: Lemma (slice (pad_to_128_bits s) 0 (length s) == s) | [] | Vale.AES.GCTR_BE.slice_pad_to_128_bits | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
s:
FStar.Seq.Base.seq Vale.Def.Types_s.nat8
{0 < FStar.Seq.Base.length s /\ FStar.Seq.Base.length s < 16}
-> FStar.Pervasives.Lemma
(ensures
FStar.Seq.Base.slice (Vale.AES.GCTR_BE_s.pad_to_128_bits s) 0 (FStar.Seq.Base.length s) == s) | {
"end_col": 4,
"end_line": 487,
"start_col": 2,
"start_line": 485
} |
FStar.Pervasives.Lemma | val lemma_slice_orig_index (#a: Type) (s s': seq a) (m n: nat)
: Lemma
(requires length s == length s' /\ m <= n /\ n <= length s /\ slice s m n == slice s' m n)
(ensures
(forall (i: int). {:pattern (index s i)\/(index s' i)}
m <= i /\ i < n ==> index s i == index s' i)) | [
{
"abbrev": false,
"full_module": "FStar.Seq.Properties",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
... | false | let lemma_slice_orig_index (#a:Type) (s s':seq a) (m n:nat) : Lemma
(requires length s == length s' /\ m <= n /\ n <= length s /\ slice s m n == slice s' m n)
(ensures (forall (i:int).{:pattern (index s i) \/ (index s' i)} m <= i /\ i < n ==> index s i == index s' i))
=
let aux (i:nat{m <= i /\ i < n}) : Lemma ... | val lemma_slice_orig_index (#a: Type) (s s': seq a) (m n: nat)
: Lemma
(requires length s == length s' /\ m <= n /\ n <= length s /\ slice s m n == slice s' m n)
(ensures
(forall (i: int). {:pattern (index s i)\/(index s' i)}
m <= i /\ i < n ==> index s i == index s' i))
let lemma_sl... | false | null | true | let aux (i: nat{m <= i /\ i < n}) : Lemma (index s i == index s' i) =
lemma_index_slice s m n (i - m);
lemma_index_slice s' m n (i - m)
in
Classical.forall_intro aux | {
"checked_file": "Vale.AES.GCTR_BE.fst.checked",
"dependencies": [
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.TypesNative_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Op... | [
"lemma"
] | [
"FStar.Seq.Base.seq",
"Prims.nat",
"FStar.Classical.forall_intro",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"Prims.eq2",
"FStar.Seq.Base.index",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.Nil",
"FStar.Pervasives.pattern",
"FStar.Seq.Base.lemm... | [] | module Vale.AES.GCTR_BE
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open Vale.AES.GCM_helpers_BE
open FStar.Math.Lemmas
open Vale.Lib.Seqs
open V... | false | false | Vale.AES.GCTR_BE.fst | {
"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... | null | val lemma_slice_orig_index (#a: Type) (s s': seq a) (m n: nat)
: Lemma
(requires length s == length s' /\ m <= n /\ n <= length s /\ slice s m n == slice s' m n)
(ensures
(forall (i: int). {:pattern (index s i)\/(index s' i)}
m <= i /\ i < n ==> index s i == index s' i)) | [] | Vale.AES.GCTR_BE.lemma_slice_orig_index | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | s: FStar.Seq.Base.seq a -> s': FStar.Seq.Base.seq a -> m: Prims.nat -> n: Prims.nat
-> FStar.Pervasives.Lemma
(requires
FStar.Seq.Base.length s == FStar.Seq.Base.length s' /\ m <= n /\
n <= FStar.Seq.Base.length s /\ FStar.Seq.Base.slice s m n == FStar.Seq.Base.slice s' m n)
(ensures
... | {
"end_col": 31,
"end_line": 178,
"start_col": 3,
"start_line": 174
} |
FStar.Pervasives.Lemma | val nat32_xor_bytewise_2_helper3 (k k': nat32) (s s': four nat8)
: Lemma
(requires k == four_to_nat 8 s /\ k' == four_to_nat 8 s' /\ s.hi3 == s'.hi3 /\ s.hi2 == s'.hi2
) (ensures k / 0x10000 == k' / 0x10000) | [
{
"abbrev": false,
"full_module": "FStar.Seq.Properties",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
... | false | let nat32_xor_bytewise_2_helper3 (k k':nat32) (s s':four nat8) : Lemma
(requires
k == four_to_nat 8 s /\
k' == four_to_nat 8 s' /\
s.hi3 == s'.hi3 /\ s.hi2 == s'.hi2
)
(ensures k / 0x10000 == k' / 0x10000)
=
let Mkfour _ _ _ _ = s in
let Mkfour _ _ _ _ = s' in
assert_norm (four_to_nat 8 s ==... | val nat32_xor_bytewise_2_helper3 (k k': nat32) (s s': four nat8)
: Lemma
(requires k == four_to_nat 8 s /\ k' == four_to_nat 8 s' /\ s.hi3 == s'.hi3 /\ s.hi2 == s'.hi2
) (ensures k / 0x10000 == k' / 0x10000)
let nat32_xor_bytewise_2_helper3 (k k': nat32) (s s': four nat8)
: Lemma
(requires k =... | false | null | true | let Mkfour _ _ _ _ = s in
let Mkfour _ _ _ _ = s' in
assert_norm (four_to_nat 8 s == four_to_nat_unfold 8 s);
assert_norm (four_to_nat 8 s' == four_to_nat_unfold 8 s');
() | {
"checked_file": "Vale.AES.GCTR_BE.fst.checked",
"dependencies": [
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.TypesNative_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Op... | [
"lemma"
] | [
"Vale.Def.Types_s.nat32",
"Vale.Def.Words_s.four",
"Vale.Def.Types_s.nat8",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Vale.Def.Words_s.natN",
"Prims.pow2",
"FStar.Mul.op_Star",
"Vale.Def.Words.Four_s.four_to_nat",
"Vale.Def.Words.Four_s.four_to_nat_unfold",
"Vale.Def.Words_s.... | [] | module Vale.AES.GCTR_BE
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open Vale.AES.GCM_helpers_BE
open FStar.Math.Lemmas
open Vale.Lib.Seqs
open V... | false | false | Vale.AES.GCTR_BE.fst | {
"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... | null | val nat32_xor_bytewise_2_helper3 (k k': nat32) (s s': four nat8)
: Lemma
(requires k == four_to_nat 8 s /\ k' == four_to_nat 8 s' /\ s.hi3 == s'.hi3 /\ s.hi2 == s'.hi2
) (ensures k / 0x10000 == k' / 0x10000) | [] | Vale.AES.GCTR_BE.nat32_xor_bytewise_2_helper3 | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
k: Vale.Def.Types_s.nat32 ->
k': Vale.Def.Types_s.nat32 ->
s: Vale.Def.Words_s.four Vale.Def.Types_s.nat8 ->
s': Vale.Def.Words_s.four Vale.Def.Types_s.nat8
-> FStar.Pervasives.Lemma
(requires
k == Vale.Def.Words.Four_s.four_to_nat 8 s /\ k' == Vale.Def.Words.Four_s.four_to_nat 8 s' /\
... | {
"end_col": 4,
"end_line": 300,
"start_col": 3,
"start_line": 295
} |
FStar.Pervasives.Lemma | val gctr_indexed
(icb: quad32)
(plain: gctr_plain_internal)
(alg: algorithm)
(key: aes_key_word alg)
(cipher: seq quad32)
: Lemma
(requires
length cipher == length plain /\
(forall i. {:pattern index cipher i}
0 <= i /\ i < length cipher ==>
... | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"fu... | false | let gctr_indexed (icb:quad32) (plain:gctr_plain_internal)
(alg:algorithm) (key:aes_key_word alg) (cipher:seq quad32) : Lemma
(requires length cipher == length plain /\
(forall i . {:pattern index cipher i} 0 <= i /\ i < length cipher ==>
index cipher i == quad32_xor (in... | val gctr_indexed
(icb: quad32)
(plain: gctr_plain_internal)
(alg: algorithm)
(key: aes_key_word alg)
(cipher: seq quad32)
: Lemma
(requires
length cipher == length plain /\
(forall i. {:pattern index cipher i}
0 <= i /\ i < length cipher ==>
... | false | null | true | gctr_indexed_helper icb plain alg key 0;
let c = gctr_encrypt_recursive icb plain alg key 0 in
assert (equal cipher c) | {
"checked_file": "Vale.AES.GCTR_BE.fst.checked",
"dependencies": [
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.TypesNative_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Op... | [
"lemma"
] | [
"Vale.Def.Types_s.quad32",
"Vale.AES.GCTR_BE_s.gctr_plain_internal",
"Vale.AES.AES_common_s.algorithm",
"Vale.AES.AES_BE_s.aes_key_word",
"FStar.Seq.Base.seq",
"Prims._assert",
"FStar.Seq.Base.equal",
"Vale.AES.GCTR_BE_s.gctr_encrypt_recursive",
"Prims.unit",
"Vale.AES.GCTR_BE.gctr_indexed_helper"... | [] | module Vale.AES.GCTR_BE
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open Vale.AES.GCM_helpers_BE
open FStar.Math.Lemmas
open Vale.Lib.Seqs
open V... | false | false | Vale.AES.GCTR_BE.fst | {
"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... | null | val gctr_indexed
(icb: quad32)
(plain: gctr_plain_internal)
(alg: algorithm)
(key: aes_key_word alg)
(cipher: seq quad32)
: Lemma
(requires
length cipher == length plain /\
(forall i. {:pattern index cipher i}
0 <= i /\ i < length cipher ==>
... | [] | Vale.AES.GCTR_BE.gctr_indexed | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
icb: Vale.Def.Types_s.quad32 ->
plain: Vale.AES.GCTR_BE_s.gctr_plain_internal ->
alg: Vale.AES.AES_common_s.algorithm ->
key: Vale.AES.AES_BE_s.aes_key_word alg ->
cipher: FStar.Seq.Base.seq Vale.Def.Types_s.quad32
-> FStar.Pervasives.Lemma
(requires
FStar.Seq.Base.length cipher == ... | {
"end_col": 24,
"end_line": 120,
"start_col": 2,
"start_line": 118
} |
FStar.Pervasives.Lemma | val step1 (p: seq quad32) (num_bytes: nat{num_bytes < 16 * length p})
: Lemma
(let num_extra = num_bytes % 16 in
let num_blocks = num_bytes / 16 in
let full_blocks, final_block =
split (slice (seq_nat32_to_seq_nat8_BE (seq_four_to_seq_BE p)) 0 num_bytes)
(num_blocks * 16)
in
... | [
{
"abbrev": false,
"full_module": "FStar.Seq.Properties",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
... | false | let step1 (p:seq quad32) (num_bytes:nat{ num_bytes < 16 * length p }) : Lemma
(let num_extra = num_bytes % 16 in
let num_blocks = num_bytes / 16 in
let full_blocks, final_block = split (slice (seq_nat32_to_seq_nat8_BE (seq_four_to_seq_BE p)) 0 num_bytes) (num_blocks * 16) in
let full_quads_BE = be_bytes_to_s... | val step1 (p: seq quad32) (num_bytes: nat{num_bytes < 16 * length p})
: Lemma
(let num_extra = num_bytes % 16 in
let num_blocks = num_bytes / 16 in
let full_blocks, final_block =
split (slice (seq_nat32_to_seq_nat8_BE (seq_four_to_seq_BE p)) 0 num_bytes)
(num_blocks * 16)
in
... | false | null | true | let num_extra = num_bytes % 16 in
let num_blocks = num_bytes / 16 in
let full_blocks, final_block =
split (slice (seq_nat32_to_seq_nat8_BE (seq_four_to_seq_BE p)) 0 num_bytes) (num_blocks * 16)
in
let full_quads_BE = be_bytes_to_seq_quad32 full_blocks in
let p_prefix = slice p 0 num_blocks in
assert (length full_bloc... | {
"checked_file": "Vale.AES.GCTR_BE.fst.checked",
"dependencies": [
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.TypesNative_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Op... | [
"lemma"
] | [
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.quad32",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Mul.op_Star",
"FStar.Seq.Base.length",
"Vale.Def.Words_s.nat8",
"Prims.unit",
"Prims._assert",
"Prims.eq2",
"FStar.Seq.Base.slice",
"Vale.Arch.Types.be_bytes_to_seq_quad32_to_bytes",
"Val... | [] | module Vale.AES.GCTR_BE
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open Vale.AES.GCM_helpers_BE
open FStar.Math.Lemmas
open Vale.Lib.Seqs
open V... | false | false | Vale.AES.GCTR_BE.fst | {
"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... | null | val step1 (p: seq quad32) (num_bytes: nat{num_bytes < 16 * length p})
: Lemma
(let num_extra = num_bytes % 16 in
let num_blocks = num_bytes / 16 in
let full_blocks, final_block =
split (slice (seq_nat32_to_seq_nat8_BE (seq_four_to_seq_BE p)) 0 num_bytes)
(num_blocks * 16)
in
... | [] | Vale.AES.GCTR_BE.step1 | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
p: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
num_bytes: Prims.nat{num_bytes < 16 * FStar.Seq.Base.length p}
-> FStar.Pervasives.Lemma
(ensures
(let num_extra = num_bytes % 16 in
let num_blocks = num_bytes / 16 in
let _ =
FStar.Seq.Properties.split (FStar.Seq.Base.slice... | {
"end_col": 4,
"end_line": 168,
"start_col": 3,
"start_line": 155
} |
FStar.Pervasives.Lemma | val gctr_encrypt_one_block (icb plain:quad32) (alg:algorithm) (key:seq nat32) : Lemma
(requires is_aes_key_word alg key)
(ensures
gctr_encrypt icb (be_quad32_to_bytes plain) alg key ==
seq_nat32_to_seq_nat8_BE (seq_four_to_seq_BE (create 1 (quad32_xor plain (aes_encrypt_word alg key icb))))
) | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GCM_helpers_BE",
"short_module": null
},
{
"abbrev": false,
... | false | let gctr_encrypt_one_block (icb plain:quad32) (alg:algorithm) (key:seq nat32) =
gctr_encrypt_reveal ();
assert(inc32 icb 0 == icb);
let encrypted_icb = aes_encrypt_word alg key icb in
let p = be_quad32_to_bytes plain in
let plain_quads = be_bytes_to_seq_quad32 p in
let p_seq = create 1 plain in
assert (le... | val gctr_encrypt_one_block (icb plain:quad32) (alg:algorithm) (key:seq nat32) : Lemma
(requires is_aes_key_word alg key)
(ensures
gctr_encrypt icb (be_quad32_to_bytes plain) alg key ==
seq_nat32_to_seq_nat8_BE (seq_four_to_seq_BE (create 1 (quad32_xor plain (aes_encrypt_word alg key icb))))
)
let gctr_e... | false | null | true | gctr_encrypt_reveal ();
assert (inc32 icb 0 == icb);
let encrypted_icb = aes_encrypt_word alg key icb in
let p = be_quad32_to_bytes plain in
let plain_quads = be_bytes_to_seq_quad32 p in
let p_seq = create 1 plain in
assert (length p == 16);
be_bytes_to_seq_quad32_to_bytes_one_quad plain;
assert (p_seq == plain_quads);... | {
"checked_file": "Vale.AES.GCTR_BE.fst.checked",
"dependencies": [
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.TypesNative_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Op... | [
"lemma"
] | [
"Vale.Def.Types_s.quad32",
"Vale.AES.AES_common_s.algorithm",
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.nat32",
"Prims.unit",
"FStar.Seq.Base.append_empty_r",
"FStar.Seq.Base.create",
"Vale.Def.Types_s.quad32_xor",
"Prims._assert",
"Prims.eq2",
"Vale.AES.GCTR_BE_s.gctr_encrypt_recursive",
"FStar... | [] | module Vale.AES.GCTR_BE
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open Vale.AES.GCM_helpers_BE
open FStar.Math.Lemmas
open Vale.Lib.Seqs
open V... | false | false | Vale.AES.GCTR_BE.fst | {
"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... | null | val gctr_encrypt_one_block (icb plain:quad32) (alg:algorithm) (key:seq nat32) : Lemma
(requires is_aes_key_word alg key)
(ensures
gctr_encrypt icb (be_quad32_to_bytes plain) alg key ==
seq_nat32_to_seq_nat8_BE (seq_four_to_seq_BE (create 1 (quad32_xor plain (aes_encrypt_word alg key icb))))
) | [] | Vale.AES.GCTR_BE.gctr_encrypt_one_block | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
icb: Vale.Def.Types_s.quad32 ->
plain: Vale.Def.Types_s.quad32 ->
alg: Vale.AES.AES_common_s.algorithm ->
key: FStar.Seq.Base.seq Vale.Def.Types_s.nat32
-> FStar.Pervasives.Lemma (requires Vale.AES.AES_BE_s.is_aes_key_word alg key)
(ensures
Vale.AES.GCTR_BE_s.gctr_encrypt icb (Vale.Arch... | {
"end_col": 4,
"end_line": 596,
"start_col": 2,
"start_line": 571
} |
FStar.Pervasives.Lemma | val gctr_encrypt_length (icb: quad32) (plain: gctr_plain) (alg: algorithm) (key: aes_key_word alg)
: Lemma (length (gctr_encrypt icb plain alg key) == length plain)
[SMTPat (length (gctr_encrypt icb plain alg key))] | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"fu... | false | let gctr_encrypt_length (icb:quad32) (plain:gctr_plain)
(alg:algorithm) (key:aes_key_word alg) :
Lemma(length (gctr_encrypt icb plain alg key) == length plain)
[SMTPat (length (gctr_encrypt icb plain alg key))]
=
reveal_opaque (`%be_bytes_to_seq_quad32) be_bytes_to_seq_quad32;
gct... | val gctr_encrypt_length (icb: quad32) (plain: gctr_plain) (alg: algorithm) (key: aes_key_word alg)
: Lemma (length (gctr_encrypt icb plain alg key) == length plain)
[SMTPat (length (gctr_encrypt icb plain alg key))]
let gctr_encrypt_length (icb: quad32) (plain: gctr_plain) (alg: algorithm) (key: aes_key_word ... | false | null | true | reveal_opaque (`%be_bytes_to_seq_quad32) be_bytes_to_seq_quad32;
gctr_encrypt_reveal ();
let num_extra = (length plain) % 16 in
let result = gctr_encrypt icb plain alg key in
if num_extra = 0
then
(let plain_quads = be_bytes_to_seq_quad32 plain in
gctr_encrypt_recursive_length icb plain_quads alg key 0)
else
(l... | {
"checked_file": "Vale.AES.GCTR_BE.fst.checked",
"dependencies": [
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.TypesNative_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Op... | [
"lemma"
] | [
"Vale.Def.Types_s.quad32",
"Vale.AES.GCTR_BE_s.gctr_plain",
"Vale.AES.AES_common_s.algorithm",
"Vale.AES.AES_BE_s.aes_key_word",
"Prims.op_Equality",
"Prims.int",
"Vale.AES.GCTR_BE.gctr_encrypt_recursive_length",
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.be_bytes_to_seq_quad32",
"Prims.bool",
"Val... | [] | module Vale.AES.GCTR_BE
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open Vale.AES.GCM_helpers_BE
open FStar.Math.Lemmas
open Vale.Lib.Seqs
open V... | false | false | Vale.AES.GCTR_BE.fst | {
"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... | null | val gctr_encrypt_length (icb: quad32) (plain: gctr_plain) (alg: algorithm) (key: aes_key_word alg)
: Lemma (length (gctr_encrypt icb plain alg key) == length plain)
[SMTPat (length (gctr_encrypt icb plain alg key))] | [] | Vale.AES.GCTR_BE.gctr_encrypt_length | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
icb: Vale.Def.Types_s.quad32 ->
plain: Vale.AES.GCTR_BE_s.gctr_plain ->
alg: Vale.AES.AES_common_s.algorithm ->
key: Vale.AES.AES_BE_s.aes_key_word alg
-> FStar.Pervasives.Lemma
(ensures
FStar.Seq.Base.length (Vale.AES.GCTR_BE_s.gctr_encrypt icb plain alg key) ==
FStar.Seq.Base.... | {
"end_col": 3,
"end_line": 83,
"start_col": 2,
"start_line": 56
} |
FStar.Pervasives.Lemma | val step2
(s: seq nat8 {0 < length s /\ length s < 16})
(q icb_BE: quad32)
(alg: algorithm)
(key: aes_key_word alg)
(i: int)
: Lemma
(let q_bytes = be_quad32_to_bytes q in
let q_bytes_prefix = slice q_bytes 0 (length s) in
let q_cipher = gctr_encrypt_block icb_BE q alg ... | [
{
"abbrev": false,
"full_module": "FStar.Seq.Properties",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
... | false | let step2 (s:seq nat8 { 0 < length s /\ length s < 16 }) (q:quad32) (icb_BE:quad32) (alg:algorithm) (key:aes_key_word alg) (i:int):
Lemma(let q_bytes = be_quad32_to_bytes q in
let q_bytes_prefix = slice q_bytes 0 (length s) in
let q_cipher = gctr_encrypt_block icb_BE q alg key i in
let q_ciph... | val step2
(s: seq nat8 {0 < length s /\ length s < 16})
(q icb_BE: quad32)
(alg: algorithm)
(key: aes_key_word alg)
(i: int)
: Lemma
(let q_bytes = be_quad32_to_bytes q in
let q_bytes_prefix = slice q_bytes 0 (length s) in
let q_cipher = gctr_encrypt_block icb_BE q alg ... | false | null | true | let q_bytes = be_quad32_to_bytes q in
let q_bytes_prefix = slice q_bytes 0 (length s) in
let q_cipher = gctr_encrypt_block icb_BE q alg key i in
let q_cipher_bytes = slice (be_quad32_to_bytes q_cipher) 0 (length s) in
let s_quad = be_bytes_to_quad32 (pad_to_128_bits s) in
let s_cipher = gctr_encrypt_block icb_BE s_quad... | {
"checked_file": "Vale.AES.GCTR_BE.fst.checked",
"dependencies": [
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.TypesNative_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Op... | [
"lemma"
] | [
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.nat8",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Seq.Base.length",
"Vale.Def.Types_s.quad32",
"Vale.AES.AES_common_s.algorithm",
"Vale.AES.AES_BE_s.aes_key_word",
"Prims.int",
"Prims.unit",
"Prims.op_Equality",
"Vale.AES.GCTR_BE.quad32_xo... | [] | module Vale.AES.GCTR_BE
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open Vale.AES.GCM_helpers_BE
open FStar.Math.Lemmas
open Vale.Lib.Seqs
open V... | false | false | Vale.AES.GCTR_BE.fst | {
"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... | null | val step2
(s: seq nat8 {0 < length s /\ length s < 16})
(q icb_BE: quad32)
(alg: algorithm)
(key: aes_key_word alg)
(i: int)
: Lemma
(let q_bytes = be_quad32_to_bytes q in
let q_bytes_prefix = slice q_bytes 0 (length s) in
let q_cipher = gctr_encrypt_block icb_BE q alg ... | [] | Vale.AES.GCTR_BE.step2 | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
s:
FStar.Seq.Base.seq Vale.Def.Types_s.nat8
{0 < FStar.Seq.Base.length s /\ FStar.Seq.Base.length s < 16} ->
q: Vale.Def.Types_s.quad32 ->
icb_BE: Vale.Def.Types_s.quad32 ->
alg: Vale.AES.AES_common_s.algorithm ->
key: Vale.AES.AES_BE_s.aes_key_word alg ->
i: Prims.int
-> FStar.... | {
"end_col": 4,
"end_line": 516,
"start_col": 3,
"start_line": 498
} |
FStar.Pervasives.Lemma | val gctr_partial_opaque_ignores_postfix (alg:algorithm) (bound:nat32) (plain plain' cipher cipher':seq quad32) (key:seq nat32) (icb:quad32) : Lemma
(requires is_aes_key_word alg key /\
length plain >= bound /\
length cipher >= bound /\
length plain' >= bound /\
length c... | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GCM_helpers_BE",
"short_module": null
},
{
"abbrev": false,
... | false | let gctr_partial_opaque_ignores_postfix alg bound plain plain' cipher cipher' key icb =
gctr_partial_reveal ();
// OBSERVE:
assert (forall i . 0 <= i /\ i < bound ==> index plain i == index (slice plain 0 bound) i);
assert (forall i . 0 <= i /\ i < bound ==> index plain' i == index (slice plain' 0 bound) i);
... | val gctr_partial_opaque_ignores_postfix (alg:algorithm) (bound:nat32) (plain plain' cipher cipher':seq quad32) (key:seq nat32) (icb:quad32) : Lemma
(requires is_aes_key_word alg key /\
length plain >= bound /\
length cipher >= bound /\
length plain' >= bound /\
length c... | false | null | true | gctr_partial_reveal ();
assert (forall i. 0 <= i /\ i < bound ==> index plain i == index (slice plain 0 bound) i);
assert (forall i. 0 <= i /\ i < bound ==> index plain' i == index (slice plain' 0 bound) i);
assert (forall i. 0 <= i /\ i < bound ==> index cipher i == index (slice cipher 0 bound) i);
assert (forall i. 0... | {
"checked_file": "Vale.AES.GCTR_BE.fst.checked",
"dependencies": [
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.TypesNative_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Op... | [
"lemma"
] | [
"Vale.AES.AES_common_s.algorithm",
"Vale.Def.Types_s.nat32",
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.quad32",
"Prims.unit",
"Prims._assert",
"Prims.l_Forall",
"Prims.int",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"Prims.op_LessThan",
"FStar.Seq.Base.length",
"FStar.Seq.Ba... | [] | module Vale.AES.GCTR_BE
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open Vale.AES.GCM_helpers_BE
open FStar.Math.Lemmas
open Vale.Lib.Seqs
open V... | false | false | Vale.AES.GCTR_BE.fst | {
"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... | null | val gctr_partial_opaque_ignores_postfix (alg:algorithm) (bound:nat32) (plain plain' cipher cipher':seq quad32) (key:seq nat32) (icb:quad32) : Lemma
(requires is_aes_key_word alg key /\
length plain >= bound /\
length cipher >= bound /\
length plain' >= bound /\
length c... | [] | Vale.AES.GCTR_BE.gctr_partial_opaque_ignores_postfix | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
alg: Vale.AES.AES_common_s.algorithm ->
bound: Vale.Def.Types_s.nat32 ->
plain: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
plain': FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
cipher: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
cipher': FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
ke... | {
"end_col": 4,
"end_line": 37,
"start_col": 2,
"start_line": 31
} |
FStar.Pervasives.Lemma | val gctr_indexed_helper
(icb: quad32)
(plain: gctr_plain_internal)
(alg: algorithm)
(key: aes_key_word alg)
(i: int)
: Lemma (requires True)
(ensures
(let cipher = gctr_encrypt_recursive icb plain alg key i in
length cipher == length plain /\
(forall j... | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Math.Lemmas",
"short_module": null
},
{
"abbrev": false,
"fu... | false | let rec gctr_indexed_helper (icb:quad32) (plain:gctr_plain_internal)
(alg:algorithm) (key:aes_key_word alg) (i:int) : Lemma
(requires True)
(ensures (let cipher = gctr_encrypt_recursive icb plain alg key i in
length cipher == length plain /\
(forall j . {:pattern i... | val gctr_indexed_helper
(icb: quad32)
(plain: gctr_plain_internal)
(alg: algorithm)
(key: aes_key_word alg)
(i: int)
: Lemma (requires True)
(ensures
(let cipher = gctr_encrypt_recursive icb plain alg key i in
length cipher == length plain /\
(forall j... | false | null | true | if length plain = 0
then ()
else
let tl = tail plain in
let cipher = gctr_encrypt_recursive icb plain alg key i in
let r_cipher = gctr_encrypt_recursive icb tl alg key (i + 1) in
let helper (j: int)
: Lemma
((0 <= j /\ j < length plain) ==>
(index cipher j == quad32_xor (index plain j) (aes_... | {
"checked_file": "Vale.AES.GCTR_BE.fst.checked",
"dependencies": [
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.TypesNative_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Op... | [
"lemma",
""
] | [
"Vale.Def.Types_s.quad32",
"Vale.AES.GCTR_BE_s.gctr_plain_internal",
"Vale.AES.AES_common_s.algorithm",
"Vale.AES.AES_BE_s.aes_key_word",
"Prims.int",
"Prims.op_Equality",
"FStar.Seq.Base.length",
"Prims.bool",
"FStar.Classical.forall_intro",
"Prims.l_imp",
"Prims.l_and",
"Prims.b2t",
"Prims... | [] | module Vale.AES.GCTR_BE
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open Vale.AES.GCM_helpers_BE
open FStar.Math.Lemmas
open Vale.Lib.Seqs
open V... | false | false | Vale.AES.GCTR_BE.fst | {
"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... | null | val gctr_indexed_helper
(icb: quad32)
(plain: gctr_plain_internal)
(alg: algorithm)
(key: aes_key_word alg)
(i: int)
: Lemma (requires True)
(ensures
(let cipher = gctr_encrypt_recursive icb plain alg key i in
length cipher == length plain /\
(forall j... | [
"recursion"
] | Vale.AES.GCTR_BE.gctr_indexed_helper | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
icb: Vale.Def.Types_s.quad32 ->
plain: Vale.AES.GCTR_BE_s.gctr_plain_internal ->
alg: Vale.AES.AES_common_s.algorithm ->
key: Vale.AES.AES_BE_s.aes_key_word alg ->
i: Prims.int
-> FStar.Pervasives.Lemma
(ensures
(let cipher = Vale.AES.GCTR_BE_s.gctr_encrypt_recursive icb plain alg k... | {
"end_col": 41,
"end_line": 109,
"start_col": 2,
"start_line": 95
} |
FStar.Pervasives.Lemma | val nat32_xor_bytewise (k k' m: nat32) (s s' t t': seq4 nat8) (n: nat)
: Lemma
(requires
n <= 4 /\ k == four_to_nat 8 (seq_to_four_BE s) /\ k' == four_to_nat 8 (seq_to_four_BE s') /\
ixor k m == four_to_nat 8 (seq_to_four_BE t) /\
ixor k' m == four_to_nat 8 (seq_to_four_BE t') /\ equal... | [
{
"abbrev": false,
"full_module": "FStar.Seq.Properties",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
... | false | let nat32_xor_bytewise (k k' m:nat32) (s s' t t':seq4 nat8) (n:nat) : Lemma
(requires
n <= 4 /\
k == four_to_nat 8 (seq_to_four_BE s) /\
k' == four_to_nat 8 (seq_to_four_BE s') /\
ixor k m == four_to_nat 8 (seq_to_four_BE t) /\
ixor k' m == four_to_nat 8 (seq_to_four_BE t') /\
equal (slice s 0... | val nat32_xor_bytewise (k k' m: nat32) (s s' t t': seq4 nat8) (n: nat)
: Lemma
(requires
n <= 4 /\ k == four_to_nat 8 (seq_to_four_BE s) /\ k' == four_to_nat 8 (seq_to_four_BE s') /\
ixor k m == four_to_nat 8 (seq_to_four_BE t) /\
ixor k' m == four_to_nat 8 (seq_to_four_BE t') /\ equal... | false | null | true | assert (n > 0 ==> index (slice s 0 n) 0 == index (slice s' 0 n) 0);
assert (n > 1 ==> index (slice s 0 n) 1 == index (slice s' 0 n) 1);
assert (n > 2 ==> index (slice s 0 n) 2 == index (slice s' 0 n) 2);
assert (n > 3 ==> index (slice s 0 n) 3 == index (slice s' 0 n) 3);
let x = ixor k m in
let x' = ixor k' m in
if n =... | {
"checked_file": "Vale.AES.GCTR_BE.fst.checked",
"dependencies": [
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.TypesNative_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Op... | [
"lemma"
] | [
"Vale.Def.Types_s.nat32",
"Vale.Def.Words.Seq_s.seq4",
"Vale.Def.Types_s.nat8",
"Prims.nat",
"Prims.unit",
"Vale.AES.GCTR_BE.lemma_slice_orig_index",
"Prims._assert",
"FStar.Seq.Base.equal",
"FStar.Seq.Base.slice",
"Prims.op_Equality",
"Prims.int",
"Vale.AES.GCTR_BE.nat32_xor_bytewise_4",
"V... | [] | module Vale.AES.GCTR_BE
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open Vale.AES.GCM_helpers_BE
open FStar.Math.Lemmas
open Vale.Lib.Seqs
open V... | false | false | Vale.AES.GCTR_BE.fst | {
"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... | null | val nat32_xor_bytewise (k k' m: nat32) (s s' t t': seq4 nat8) (n: nat)
: Lemma
(requires
n <= 4 /\ k == four_to_nat 8 (seq_to_four_BE s) /\ k' == four_to_nat 8 (seq_to_four_BE s') /\
ixor k m == four_to_nat 8 (seq_to_four_BE t) /\
ixor k' m == four_to_nat 8 (seq_to_four_BE t') /\ equal... | [] | Vale.AES.GCTR_BE.nat32_xor_bytewise | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
k: Vale.Def.Types_s.nat32 ->
k': Vale.Def.Types_s.nat32 ->
m: Vale.Def.Types_s.nat32 ->
s: Vale.Def.Words.Seq_s.seq4 Vale.Def.Types_s.nat8 ->
s': Vale.Def.Words.Seq_s.seq4 Vale.Def.Types_s.nat8 ->
t: Vale.Def.Words.Seq_s.seq4 Vale.Def.Types_s.nat8 ->
t': Vale.Def.Words.Seq_s.seq4 Vale.Def.T... | {
"end_col": 4,
"end_line": 440,
"start_col": 2,
"start_line": 428
} |
FStar.Pervasives.Lemma | val gctr_partial_to_full_advanced (icb_BE:quad32) (plain:seq quad32) (cipher:seq quad32) (alg:algorithm) (key:seq nat32) (num_bytes:nat) : Lemma
(requires
is_aes_key_word alg key /\
1 <= num_bytes /\
num_bytes < 16 * length plain /\
16 * (length plain - 1) < num_bytes /\
num_bytes % 16 <> 0 /\ num... | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GCM_helpers_BE",
"short_module": null
},
{
"abbrev": false,
... | false | let gctr_partial_to_full_advanced (icb_BE:quad32) (plain:seq quad32) (cipher:seq quad32) (alg:algorithm) (key:seq nat32) (num_bytes:nat) =
gctr_encrypt_reveal ();
let num_blocks = num_bytes / 16 in
let plain_bytes = slice (seq_nat32_to_seq_nat8_BE (seq_four_to_seq_BE plain)) 0 num_bytes in
let cipher_bytes = sl... | val gctr_partial_to_full_advanced (icb_BE:quad32) (plain:seq quad32) (cipher:seq quad32) (alg:algorithm) (key:seq nat32) (num_bytes:nat) : Lemma
(requires
is_aes_key_word alg key /\
1 <= num_bytes /\
num_bytes < 16 * length plain /\
16 * (length plain - 1) < num_bytes /\
num_bytes % 16 <> 0 /\ num... | false | null | true | gctr_encrypt_reveal ();
let num_blocks = num_bytes / 16 in
let plain_bytes = slice (seq_nat32_to_seq_nat8_BE (seq_four_to_seq_BE plain)) 0 num_bytes in
let cipher_bytes = slice (seq_nat32_to_seq_nat8_BE (seq_four_to_seq_BE cipher)) 0 num_bytes in
step1 plain num_bytes;
let s = slice (seq_nat32_to_seq_nat8_BE (seq_four_... | {
"checked_file": "Vale.AES.GCTR_BE.fst.checked",
"dependencies": [
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.TypesNative_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Op... | [
"lemma"
] | [
"Vale.Def.Types_s.quad32",
"FStar.Seq.Base.seq",
"Vale.AES.AES_common_s.algorithm",
"Vale.Def.Types_s.nat32",
"Prims.nat",
"Vale.Def.Words_s.nat8",
"Prims.unit",
"Prims._assert",
"Prims.eq2",
"FStar.Seq.Base.op_At_Bar",
"Vale.Def.Words.Seq_s.seq_nat32_to_seq_nat8_BE",
"Vale.Def.Words.Seq_s.seq... | [] | module Vale.AES.GCTR_BE
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open Vale.AES.GCM_helpers_BE
open FStar.Math.Lemmas
open Vale.Lib.Seqs
open V... | false | false | Vale.AES.GCTR_BE.fst | {
"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... | null | val gctr_partial_to_full_advanced (icb_BE:quad32) (plain:seq quad32) (cipher:seq quad32) (alg:algorithm) (key:seq nat32) (num_bytes:nat) : Lemma
(requires
is_aes_key_word alg key /\
1 <= num_bytes /\
num_bytes < 16 * length plain /\
16 * (length plain - 1) < num_bytes /\
num_bytes % 16 <> 0 /\ num... | [] | Vale.AES.GCTR_BE.gctr_partial_to_full_advanced | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
icb_BE: Vale.Def.Types_s.quad32 ->
plain: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
cipher: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
alg: Vale.AES.AES_common_s.algorithm ->
key: FStar.Seq.Base.seq Vale.Def.Types_s.nat32 ->
num_bytes: Prims.nat
-> FStar.Pervasives.Lemma
(require... | {
"end_col": 4,
"end_line": 568,
"start_col": 2,
"start_line": 522
} |
FStar.Pervasives.Lemma | val lemma_gctr_partial_append (alg:algorithm) (b1 b2:nat) (p1 c1 p2 c2:seq quad32) (key:seq nat32) (icb1 icb2:quad32) : Lemma
(requires gctr_partial alg b1 p1 c1 key icb1 /\
gctr_partial alg b2 p2 c2 key icb2 /\
b1 == length p1 /\ b1 == length c1 /\
b2 == length p2 /\ b2 == length ... | [
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.GCM_helpers_BE",
"short_module": null
},
{
"abbrev": false,
... | false | let lemma_gctr_partial_append alg b1 b2 p1 c1 p2 c2 key icb1 icb2 =
gctr_partial_reveal ();
() | val lemma_gctr_partial_append (alg:algorithm) (b1 b2:nat) (p1 c1 p2 c2:seq quad32) (key:seq nat32) (icb1 icb2:quad32) : Lemma
(requires gctr_partial alg b1 p1 c1 key icb1 /\
gctr_partial alg b2 p2 c2 key icb2 /\
b1 == length p1 /\ b1 == length c1 /\
b2 == length p2 /\ b2 == length ... | false | null | true | gctr_partial_reveal ();
() | {
"checked_file": "Vale.AES.GCTR_BE.fst.checked",
"dependencies": [
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.TypesNative_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Op... | [
"lemma"
] | [
"Vale.AES.AES_common_s.algorithm",
"Prims.nat",
"FStar.Seq.Base.seq",
"Vale.Def.Types_s.quad32",
"Vale.Def.Types_s.nat32",
"Prims.unit",
"Vale.AES.GCTR_BE.gctr_partial_reveal"
] | [] | module Vale.AES.GCTR_BE
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open Vale.AES.GCM_helpers_BE
open FStar.Math.Lemmas
open Vale.Lib.Seqs
open V... | false | false | Vale.AES.GCTR_BE.fst | {
"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... | null | val lemma_gctr_partial_append (alg:algorithm) (b1 b2:nat) (p1 c1 p2 c2:seq quad32) (key:seq nat32) (icb1 icb2:quad32) : Lemma
(requires gctr_partial alg b1 p1 c1 key icb1 /\
gctr_partial alg b2 p2 c2 key icb2 /\
b1 == length p1 /\ b1 == length c1 /\
b2 == length p2 /\ b2 == length ... | [] | Vale.AES.GCTR_BE.lemma_gctr_partial_append | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
alg: Vale.AES.AES_common_s.algorithm ->
b1: Prims.nat ->
b2: Prims.nat ->
p1: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
c1: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
p2: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
c2: FStar.Seq.Base.seq Vale.Def.Types_s.quad32 ->
key: FStar.Se... | {
"end_col": 4,
"end_line": 28,
"start_col": 2,
"start_line": 27
} |
FStar.Pervasives.Lemma | val quad32_xor_bytewise (q q' r: quad32) (n: nat{n <= 16})
: Lemma
(requires
(let q_bytes = be_quad32_to_bytes q in
let q'_bytes = be_quad32_to_bytes q' in
slice q_bytes 0 n == slice q'_bytes 0 n))
(ensures
(let q_bytes = be_quad32_to_bytes q in
let q'_bytes... | [
{
"abbrev": false,
"full_module": "FStar.Seq.Properties",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
... | false | let quad32_xor_bytewise (q q' r:quad32) (n:nat{ n <= 16 }) : Lemma
(requires (let q_bytes = be_quad32_to_bytes q in
let q'_bytes = be_quad32_to_bytes q' in
slice q_bytes 0 n == slice q'_bytes 0 n))
(ensures (let q_bytes = be_quad32_to_bytes q in
let q'_bytes = be_quad32_to_by... | val quad32_xor_bytewise (q q' r: quad32) (n: nat{n <= 16})
: Lemma
(requires
(let q_bytes = be_quad32_to_bytes q in
let q'_bytes = be_quad32_to_bytes q' in
slice q_bytes 0 n == slice q'_bytes 0 n))
(ensures
(let q_bytes = be_quad32_to_bytes q in
let q'_bytes... | false | null | true | let s = be_quad32_to_bytes q in
let s' = be_quad32_to_bytes q' in
let t = be_quad32_to_bytes (quad32_xor q r) in
let t' = be_quad32_to_bytes (quad32_xor q' r) in
lemma_slices_be_quad32_to_bytes q;
lemma_slices_be_quad32_to_bytes q';
lemma_slices_be_quad32_to_bytes (quad32_xor q r);
lemma_slices_be_quad32_to_bytes (quad... | {
"checked_file": "Vale.AES.GCTR_BE.fst.checked",
"dependencies": [
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.TypesNative_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Op... | [
"lemma"
] | [
"Vale.Def.Types_s.quad32",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.unit",
"Prims._assert",
"FStar.Seq.Base.equal",
"Vale.Def.Words_s.nat8",
"FStar.Seq.Base.slice",
"Prims.op_LessThan",
"Vale.AES.GCTR_BE.nat32_xor_bytewise",
"Vale.Def.Words_s.__proj__Mkfour__item__hi3",
"... | [] | module Vale.AES.GCTR_BE
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open Vale.AES.GCM_helpers_BE
open FStar.Math.Lemmas
open Vale.Lib.Seqs
open V... | false | false | Vale.AES.GCTR_BE.fst | {
"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... | null | val quad32_xor_bytewise (q q' r: quad32) (n: nat{n <= 16})
: Lemma
(requires
(let q_bytes = be_quad32_to_bytes q in
let q'_bytes = be_quad32_to_bytes q' in
slice q_bytes 0 n == slice q'_bytes 0 n))
(ensures
(let q_bytes = be_quad32_to_bytes q in
let q'_bytes... | [] | Vale.AES.GCTR_BE.quad32_xor_bytewise | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
q: Vale.Def.Types_s.quad32 ->
q': Vale.Def.Types_s.quad32 ->
r: Vale.Def.Types_s.quad32 ->
n: Prims.nat{n <= 16}
-> FStar.Pervasives.Lemma
(requires
(let q_bytes = Vale.Arch.Types.be_quad32_to_bytes q in
let q'_bytes = Vale.Arch.Types.be_quad32_to_bytes q' in
FStar.S... | {
"end_col": 4,
"end_line": 480,
"start_col": 3,
"start_line": 451
} |
FStar.Pervasives.Lemma | val nat32_xor_bytewise_4 (k k' x x' m: nat32) (s s' t t': four nat8)
: Lemma
(requires
k == four_to_nat 8 s /\ k' == four_to_nat 8 s' /\ x == four_to_nat 8 t /\
x' == four_to_nat 8 t' /\ ixor k m == x /\ ixor k' m == x' /\ s == s') (ensures t == t') | [
{
"abbrev": false,
"full_module": "FStar.Seq.Properties",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.Types_helpers",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
... | false | let nat32_xor_bytewise_4 (k k' x x' m:nat32) (s s' t t':four nat8) : Lemma
(requires
k == four_to_nat 8 s /\
k' == four_to_nat 8 s' /\
x == four_to_nat 8 t /\
x' == four_to_nat 8 t' /\
ixor k m == x /\
ixor k' m == x' /\
s == s'
)
(ensures t == t')
=
let Mkfour s0 s1 s2 s3 = s in
... | val nat32_xor_bytewise_4 (k k' x x' m: nat32) (s s' t t': four nat8)
: Lemma
(requires
k == four_to_nat 8 s /\ k' == four_to_nat 8 s' /\ x == four_to_nat 8 t /\
x' == four_to_nat 8 t' /\ ixor k m == x /\ ixor k' m == x' /\ s == s') (ensures t == t')
let nat32_xor_bytewise_4 (k k' x x' m: nat32... | false | null | true | let Mkfour s0 s1 s2 s3 = s in
let Mkfour s0' s1' s2' s3' = s' in
let Mkfour t0 t1 t2 t3 = t in
let Mkfour t0' t1' t2' t3' = t' in
assert_norm (four_to_nat 8 t' == four_to_nat_unfold 8 t');
assert_norm (four_to_nat 8 t == four_to_nat_unfold 8 t);
() | {
"checked_file": "Vale.AES.GCTR_BE.fst.checked",
"dependencies": [
"Vale.Lib.Seqs.fsti.checked",
"Vale.Def.Words_s.fsti.checked",
"Vale.Def.Words.Seq_s.fsti.checked",
"Vale.Def.Words.Four_s.fsti.checked",
"Vale.Def.TypesNative_s.fst.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Op... | [
"lemma"
] | [
"Vale.Def.Types_s.nat32",
"Vale.Def.Words_s.four",
"Vale.Def.Types_s.nat8",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Vale.Def.Words_s.natN",
"Prims.pow2",
"FStar.Mul.op_Star",
"Vale.Def.Words.Four_s.four_to_nat",
"Vale.Def.Words.Four_s.four_to_nat_unfold",
"Vale.Def.Words_s.... | [] | module Vale.AES.GCTR_BE
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Words.Seq_s
open Vale.Def.Words.Four_s
open Vale.Def.Types_s
open Vale.Arch.Types
open FStar.Mul
open FStar.Seq
open Vale.AES.AES_BE_s
open Vale.AES.GCTR_BE_s
open Vale.AES.GCM_helpers_BE
open FStar.Math.Lemmas
open Vale.Lib.Seqs
open V... | false | false | Vale.AES.GCTR_BE.fst | {
"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... | null | val nat32_xor_bytewise_4 (k k' x x' m: nat32) (s s' t t': four nat8)
: Lemma
(requires
k == four_to_nat 8 s /\ k' == four_to_nat 8 s' /\ x == four_to_nat 8 t /\
x' == four_to_nat 8 t' /\ ixor k m == x /\ ixor k' m == x' /\ s == s') (ensures t == t') | [] | Vale.AES.GCTR_BE.nat32_xor_bytewise_4 | {
"file_name": "vale/code/crypto/aes/Vale.AES.GCTR_BE.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
k: Vale.Def.Types_s.nat32 ->
k': Vale.Def.Types_s.nat32 ->
x: Vale.Def.Types_s.nat32 ->
x': Vale.Def.Types_s.nat32 ->
m: Vale.Def.Types_s.nat32 ->
s: Vale.Def.Words_s.four Vale.Def.Types_s.nat8 ->
s': Vale.Def.Words_s.four Vale.Def.Types_s.nat8 ->
t: Vale.Def.Words_s.four Vale.Def.Types... | {
"end_col": 4,
"end_line": 414,
"start_col": 3,
"start_line": 407
} |
FStar.HyperStack.ST.Stack | val store_sha512_modq_pre_pre2:
out:lbuffer uint8 32ul
-> prefix:lbuffer uint8 32ul
-> prefix2:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h input /\ live h out /\ live h prefix /\ live h prefix2 /\
disjoint prefix out /\ disjoint prefi... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.BignumQ.Mul",
"short_module": "F56"
},
{
"abbrev": true,
"full_module": "Hacl.Streaming.SHA2",
"short_module": "Hash"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
... | false | let store_sha512_modq_pre_pre2 out prefix prefix2 len input =
push_frame ();
let tmp = create 5ul (u64 0) in
sha512_modq_pre_pre2 tmp prefix prefix2 len input;
Hacl.Impl.Store56.store_56 out tmp;
pop_frame () | val store_sha512_modq_pre_pre2:
out:lbuffer uint8 32ul
-> prefix:lbuffer uint8 32ul
-> prefix2:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h input /\ live h out /\ live h prefix /\ live h prefix2 /\
disjoint prefix out /\ disjoint prefi... | true | null | false | push_frame ();
let tmp = create 5ul (u64 0) in
sha512_modq_pre_pre2 tmp prefix prefix2 len input;
Hacl.Impl.Store56.store_56 out tmp;
pop_frame () | {
"checked_file": "Hacl.Impl.SHA512.ModQ.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Ed25519.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"LowStar.Ignore.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.size_t",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Hacl.Impl.Store56.store_56",
"Hacl.Impl.SHA512.ModQ.sha512_modq_pre_pre2",
"Lib.Buffer.lbuffer_t",
"Lib.Buffer.MUT",
"Lib.IntTypes.int_t",
"Lib.IntType... | [] | module Hacl.Impl.SHA512.ModQ
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module BSeq = Lib.ByteSequence
module Hash = Hacl.Streaming.SHA2
module F56 = Hacl.Impl.BignumQ.Mul
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
val sha... | false | false | Hacl.Impl.SHA512.ModQ.fst | {
"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... | null | val store_sha512_modq_pre_pre2:
out:lbuffer uint8 32ul
-> prefix:lbuffer uint8 32ul
-> prefix2:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h input /\ live h out /\ live h prefix /\ live h prefix2 /\
disjoint prefix out /\ disjoint prefi... | [] | Hacl.Impl.SHA512.ModQ.store_sha512_modq_pre_pre2 | {
"file_name": "code/ed25519/Hacl.Impl.SHA512.ModQ.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
out: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
prefix: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
prefix2: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
len: Lib.IntTypes.size_t ->
input: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len
-> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 14,
"end_line": 173,
"start_col": 2,
"start_line": 169
} |
FStar.HyperStack.ST.Stack | val store_sha512_modq_pre:
out:lbuffer uint8 32ul
-> outq:lbuffer uint64 5ul
-> prefix:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h input /\ live h out /\ live h prefix /\ live h outq /\
disjoint prefix out /\ disjoint out input /\ dis... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.BignumQ.Mul",
"short_module": "F56"
},
{
"abbrev": true,
"full_module": "Hacl.Streaming.SHA2",
"short_module": "Hash"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
... | false | let store_sha512_modq_pre out outq prefix len input =
sha512_modq_pre outq prefix len input;
Hacl.Impl.Store56.store_56 out outq | val store_sha512_modq_pre:
out:lbuffer uint8 32ul
-> outq:lbuffer uint64 5ul
-> prefix:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h input /\ live h out /\ live h prefix /\ live h outq /\
disjoint prefix out /\ disjoint out input /\ dis... | true | null | false | sha512_modq_pre outq prefix len input;
Hacl.Impl.Store56.store_56 out outq | {
"checked_file": "Hacl.Impl.SHA512.ModQ.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Ed25519.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"LowStar.Ignore.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.uint64",
"Lib.IntTypes.size_t",
"Hacl.Impl.Store56.store_56",
"Prims.unit",
"Hacl.Impl.SHA512.ModQ.sha512_modq_pre"
] | [] | module Hacl.Impl.SHA512.ModQ
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module BSeq = Lib.ByteSequence
module Hash = Hacl.Streaming.SHA2
module F56 = Hacl.Impl.BignumQ.Mul
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
val sha... | false | false | Hacl.Impl.SHA512.ModQ.fst | {
"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... | null | val store_sha512_modq_pre:
out:lbuffer uint8 32ul
-> outq:lbuffer uint64 5ul
-> prefix:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h input /\ live h out /\ live h prefix /\ live h outq /\
disjoint prefix out /\ disjoint out input /\ dis... | [] | Hacl.Impl.SHA512.ModQ.store_sha512_modq_pre | {
"file_name": "code/ed25519/Hacl.Impl.SHA512.ModQ.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
out: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
outq: Lib.Buffer.lbuffer Lib.IntTypes.uint64 5ul ->
prefix: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
len: Lib.IntTypes.size_t ->
input: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len
-> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 37,
"end_line": 150,
"start_col": 2,
"start_line": 149
} |
FStar.HyperStack.ST.Stack | val sha512_modq_pre:
out:lbuffer uint64 5ul
-> prefix:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h input /\ live h out /\ live h prefix /\
disjoint prefix out /\ disjoint out input)
(ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.BignumQ.Mul",
"short_module": "F56"
},
{
"abbrev": true,
"full_module": "Hacl.Streaming.SHA2",
"short_module": "Hash"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
... | false | let sha512_modq_pre out prefix len input =
push_frame();
let tmp = create 10ul (u64 0) in
let hash = create 64ul (u8 0) in
sha512_pre_msg hash prefix len input;
Hacl.Impl.Load56.load_64_bytes tmp hash;
Hacl.Impl.BignumQ.Mul.barrett_reduction out tmp;
assert_norm (pow2 56 == 0x100000000000000);
pop_frame... | val sha512_modq_pre:
out:lbuffer uint64 5ul
-> prefix:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h input /\ live h out /\ live h prefix /\
disjoint prefix out /\ disjoint out input)
(ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /... | true | null | false | push_frame ();
let tmp = create 10ul (u64 0) in
let hash = create 64ul (u8 0) in
sha512_pre_msg hash prefix len input;
Hacl.Impl.Load56.load_64_bytes tmp hash;
Hacl.Impl.BignumQ.Mul.barrett_reduction out tmp;
assert_norm (pow2 56 == 0x100000000000000);
pop_frame () | {
"checked_file": "Hacl.Impl.SHA512.ModQ.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Ed25519.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"LowStar.Ignore.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint64",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.uint8",
"Lib.IntTypes.size_t",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"Prims.pow2",
"Hacl.Impl.BignumQ.Mul.barrett_reduction",
"Hacl.Impl.L... | [] | module Hacl.Impl.SHA512.ModQ
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module BSeq = Lib.ByteSequence
module Hash = Hacl.Streaming.SHA2
module F56 = Hacl.Impl.BignumQ.Mul
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
val sha... | false | false | Hacl.Impl.SHA512.ModQ.fst | {
"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... | null | val sha512_modq_pre:
out:lbuffer uint64 5ul
-> prefix:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h input /\ live h out /\ live h prefix /\
disjoint prefix out /\ disjoint out input)
(ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /... | [] | Hacl.Impl.SHA512.ModQ.sha512_modq_pre | {
"file_name": "code/ed25519/Hacl.Impl.SHA512.ModQ.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
out: Lib.Buffer.lbuffer Lib.IntTypes.uint64 5ul ->
prefix: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
len: Lib.IntTypes.size_t ->
input: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len
-> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 13,
"end_line": 101,
"start_col": 2,
"start_line": 94
} |
FStar.HyperStack.ST.Stack | val sha512_modq_pre_pre2:
out:lbuffer uint64 5ul
-> prefix:lbuffer uint8 32ul
-> prefix2:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h input /\ live h out /\ live h prefix /\ live h prefix2 /\
disjoint prefix out /\ disjoint prefix2 out... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.BignumQ.Mul",
"short_module": "F56"
},
{
"abbrev": true,
"full_module": "Hacl.Streaming.SHA2",
"short_module": "Hash"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
... | false | let sha512_modq_pre_pre2 out prefix prefix2 len input =
push_frame();
let tmp = create 10ul (u64 0) in
let hash = create 64ul (u8 0) in
sha512_pre_pre2_msg hash prefix prefix2 len input;
Hacl.Impl.Load56.load_64_bytes tmp hash;
Hacl.Impl.BignumQ.Mul.barrett_reduction out tmp;
assert_norm (pow2 56 == 0x100... | val sha512_modq_pre_pre2:
out:lbuffer uint64 5ul
-> prefix:lbuffer uint8 32ul
-> prefix2:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h input /\ live h out /\ live h prefix /\ live h prefix2 /\
disjoint prefix out /\ disjoint prefix2 out... | true | null | false | push_frame ();
let tmp = create 10ul (u64 0) in
let hash = create 64ul (u8 0) in
sha512_pre_pre2_msg hash prefix prefix2 len input;
Hacl.Impl.Load56.load_64_bytes tmp hash;
Hacl.Impl.BignumQ.Mul.barrett_reduction out tmp;
assert_norm (pow2 56 == 0x100000000000000);
pop_frame () | {
"checked_file": "Hacl.Impl.SHA512.ModQ.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Ed25519.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"LowStar.Ignore.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint64",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.uint8",
"Lib.IntTypes.size_t",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"Prims.pow2",
"Hacl.Impl.BignumQ.Mul.barrett_reduction",
"Hacl.Impl.L... | [] | module Hacl.Impl.SHA512.ModQ
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module BSeq = Lib.ByteSequence
module Hash = Hacl.Streaming.SHA2
module F56 = Hacl.Impl.BignumQ.Mul
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
val sha... | false | false | Hacl.Impl.SHA512.ModQ.fst | {
"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... | null | val sha512_modq_pre_pre2:
out:lbuffer uint64 5ul
-> prefix:lbuffer uint8 32ul
-> prefix2:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h input /\ live h out /\ live h prefix /\ live h prefix2 /\
disjoint prefix out /\ disjoint prefix2 out... | [] | Hacl.Impl.SHA512.ModQ.sha512_modq_pre_pre2 | {
"file_name": "code/ed25519/Hacl.Impl.SHA512.ModQ.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
out: Lib.Buffer.lbuffer Lib.IntTypes.uint64 5ul ->
prefix: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
prefix2: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
len: Lib.IntTypes.size_t ->
input: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len
-> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 13,
"end_line": 128,
"start_col": 2,
"start_line": 121
} |
FStar.HyperStack.ST.Stack | val sha512_pre_msg:
hash:lbuffer uint8 64ul
-> prefix:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h hash /\ live h prefix /\ live h input /\
disjoint input hash /\ disjoint prefix hash)
(ensures fun h0 _ h1 -> modifies (loc hash) h0 h... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.BignumQ.Mul",
"short_module": "F56"
},
{
"abbrev": true,
"full_module": "Hacl.Streaming.SHA2",
"short_module": "Hash"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
... | false | let sha512_pre_msg hash prefix len input =
push_frame ();
let h0 = ST.get () in
let st = Hash.alloca_512 () in
let err0 = Hash.update_512 st prefix 32ul in
let err1 = Hash.update_512 st input len in
LowStar.Ignore.ignore err0;
LowStar.Ignore.ignore err1;
Hash.finish_512 st hash ();
let h1 = ST.get () ... | val sha512_pre_msg:
hash:lbuffer uint8 64ul
-> prefix:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h hash /\ live h prefix /\ live h input /\
disjoint input hash /\ disjoint prefix hash)
(ensures fun h0 _ h1 -> modifies (loc hash) h0 h... | true | null | false | push_frame ();
let h0 = ST.get () in
let st = Hash.alloca_512 () in
let err0 = Hash.update_512 st prefix 32ul in
let err1 = Hash.update_512 st input len in
LowStar.Ignore.ignore err0;
LowStar.Ignore.ignore err1;
Hash.finish_512 st hash ();
let h1 = ST.get () in
assert (as_seq h1 hash ==
Spec.Agile.Hash.hash Spec.Ha... | {
"checked_file": "Hacl.Impl.SHA512.ModQ.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Ed25519.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"LowStar.Ignore.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.size_t",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"FStar.Seq.Base.append_empty_l",
"Lib.Buffer.as_seq",
"Lib.Buffer.MUT",
"Prims._assert",
"Prims.eq2",
"Lib.Sequence.lseq",
"Lib.IntTypes.uint_t",
"L... | [] | module Hacl.Impl.SHA512.ModQ
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module BSeq = Lib.ByteSequence
module Hash = Hacl.Streaming.SHA2
module F56 = Hacl.Impl.BignumQ.Mul
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
val sha... | false | false | Hacl.Impl.SHA512.ModQ.fst | {
"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... | null | val sha512_pre_msg:
hash:lbuffer uint8 64ul
-> prefix:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h hash /\ live h prefix /\ live h input /\
disjoint input hash /\ disjoint prefix hash)
(ensures fun h0 _ h1 -> modifies (loc hash) h0 h... | [] | Hacl.Impl.SHA512.ModQ.sha512_pre_msg | {
"file_name": "code/ed25519/Hacl.Impl.SHA512.ModQ.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
hash: Lib.Buffer.lbuffer Lib.IntTypes.uint8 64ul ->
prefix: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
len: Lib.IntTypes.size_t ->
input: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len
-> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 14,
"end_line": 45,
"start_col": 2,
"start_line": 33
} |
FStar.HyperStack.ST.Stack | val sha512_pre_pre2_msg:
hash:lbuffer uint8 64ul
-> prefix:lbuffer uint8 32ul
-> prefix2:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h hash /\ live h prefix /\ live h prefix2 /\ live h input /\
disjoint prefix hash /\ disjoint prefix2 h... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.BignumQ.Mul",
"short_module": "F56"
},
{
"abbrev": true,
"full_module": "Hacl.Streaming.SHA2",
"short_module": "Hash"
},
{
"abbrev": true,
"full_module": "Lib.ByteSequence",
"short_module": "BSeq"
},
{
"abbrev": true,
... | false | let sha512_pre_pre2_msg hash prefix prefix2 len input =
push_frame ();
let h0 = ST.get () in
let st = Hash.alloca_512 () in
let err0 = Hash.update_512 st prefix 32ul in
let err1 = Hash.update_512 st prefix2 32ul in
let err2 = Hash.update_512 st input len in
LowStar.Ignore.ignore err0;
LowStar.Ignore.ign... | val sha512_pre_pre2_msg:
hash:lbuffer uint8 64ul
-> prefix:lbuffer uint8 32ul
-> prefix2:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h hash /\ live h prefix /\ live h prefix2 /\ live h input /\
disjoint prefix hash /\ disjoint prefix2 h... | true | null | false | push_frame ();
let h0 = ST.get () in
let st = Hash.alloca_512 () in
let err0 = Hash.update_512 st prefix 32ul in
let err1 = Hash.update_512 st prefix2 32ul in
let err2 = Hash.update_512 st input len in
LowStar.Ignore.ignore err0;
LowStar.Ignore.ignore err1;
LowStar.Ignore.ignore err2;
Hash.finish_512 st hash ();
Seq.ap... | {
"checked_file": "Hacl.Impl.SHA512.ModQ.fst.checked",
"dependencies": [
"Spec.Hash.Definitions.fst.checked",
"Spec.Ed25519.fst.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"LowStar.Ignore.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.size_t",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"FStar.Seq.Base.append_empty_l",
"Lib.Buffer.as_seq",
"Lib.Buffer.MUT",
"Hacl.Streaming.SHA2.finish_512",
"LowStar.Ignore.ignore",
"Hacl.Streaming.Types... | [] | module Hacl.Impl.SHA512.ModQ
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module BSeq = Lib.ByteSequence
module Hash = Hacl.Streaming.SHA2
module F56 = Hacl.Impl.BignumQ.Mul
#reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
val sha... | false | false | Hacl.Impl.SHA512.ModQ.fst | {
"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... | null | val sha512_pre_pre2_msg:
hash:lbuffer uint8 64ul
-> prefix:lbuffer uint8 32ul
-> prefix2:lbuffer uint8 32ul
-> len:size_t
-> input:lbuffer uint8 len ->
Stack unit
(requires fun h ->
live h hash /\ live h prefix /\ live h prefix2 /\ live h input /\
disjoint prefix hash /\ disjoint prefix2 h... | [] | Hacl.Impl.SHA512.ModQ.sha512_pre_pre2_msg | {
"file_name": "code/ed25519/Hacl.Impl.SHA512.ModQ.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
hash: Lib.Buffer.lbuffer Lib.IntTypes.uint8 64ul ->
prefix: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
prefix2: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
len: Lib.IntTypes.size_t ->
input: Lib.Buffer.lbuffer Lib.IntTypes.uint8 len
-> FStar.HyperStack.ST.Stack Prims.unit | {
"end_col": 14,
"end_line": 75,
"start_col": 2,
"start_line": 64
} |
Prims.Tot | val va_code_Stack_lemma : va_dummy:unit -> Tot va_code | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_code_Stack_lemma () =
(va_Block (va_CNil ())) | val va_code_Stack_lemma : va_dummy:unit -> Tot va_code
let va_code_Stack_lemma () = | false | null | false | (va_Block (va_CNil ())) | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [
"total"
] | [
"Prims.unit",
"Vale.X64.Decls.va_Block",
"Vale.X64.Decls.va_CNil",
"Vale.X64.Decls.va_code"
] | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | true | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_code_Stack_lemma : va_dummy:unit -> Tot va_code | [] | Vale.X64.InsStack.va_code_Stack_lemma | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | va_dummy: Prims.unit -> Vale.X64.Decls.va_code | {
"end_col": 25,
"end_line": 27,
"start_col": 2,
"start_line": 27
} |
Prims.Tot | val va_codegen_success_Pop : dst:va_operand_dst_opr64 -> Tot va_pbool | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_codegen_success_Pop dst =
(va_ttrue ()) | val va_codegen_success_Pop : dst:va_operand_dst_opr64 -> Tot va_pbool
let va_codegen_success_Pop dst = | false | null | false | (va_ttrue ()) | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [
"total"
] | [
"Vale.X64.Decls.va_operand_dst_opr64",
"Vale.X64.Decls.va_ttrue",
"Vale.X64.Decls.va_pbool"
] | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | true | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_codegen_success_Pop : dst:va_operand_dst_opr64 -> Tot va_pbool | [] | Vale.X64.InsStack.va_codegen_success_Pop | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | dst: Vale.X64.Decls.va_operand_dst_opr64 -> Vale.X64.Decls.va_pbool | {
"end_col": 15,
"end_line": 60,
"start_col": 2,
"start_line": 60
} |
Prims.Tot | val va_codegen_success_Push_Secret : src:va_operand_reg_opr64 -> Tot va_pbool | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_codegen_success_Push_Secret src =
(va_ttrue ()) | val va_codegen_success_Push_Secret : src:va_operand_reg_opr64 -> Tot va_pbool
let va_codegen_success_Push_Secret src = | false | null | false | (va_ttrue ()) | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [
"total"
] | [
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.Decls.va_ttrue",
"Vale.X64.Decls.va_pbool"
] | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | true | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_codegen_success_Push_Secret : src:va_operand_reg_opr64 -> Tot va_pbool | [] | Vale.X64.InsStack.va_codegen_success_Push_Secret | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | src: Vale.X64.Decls.va_operand_reg_opr64 -> Vale.X64.Decls.va_pbool | {
"end_col": 15,
"end_line": 156,
"start_col": 2,
"start_line": 156
} |
Prims.Tot | val va_code_Push_Secret : src:va_operand_reg_opr64 -> Tot va_code | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_code_Push_Secret src =
(Ins (BC.Push src Secret)) | val va_code_Push_Secret : src:va_operand_reg_opr64 -> Tot va_code
let va_code_Push_Secret src = | false | null | false | (Ins (BC.Push src Secret)) | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [
"total"
] | [
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.Machine_s.Ins",
"Vale.X64.Decls.ins",
"Vale.X64.Decls.ocmp",
"Vale.X64.Bytes_Code_s.Push",
"Vale.X64.Machine_Semantics_s.instr_annotation",
"Vale.Arch.HeapTypes_s.Secret",
"Vale.X64.Decls.va_code"
] | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | true | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_code_Push_Secret : src:va_operand_reg_opr64 -> Tot va_code | [] | Vale.X64.InsStack.va_code_Push_Secret | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | src: Vale.X64.Decls.va_operand_reg_opr64 -> Vale.X64.Decls.va_code | {
"end_col": 28,
"end_line": 152,
"start_col": 2,
"start_line": 152
} |
Prims.Tot | val va_codegen_success_Pop_Secret : dst:va_operand_dst_opr64 -> Tot va_pbool | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_codegen_success_Pop_Secret dst =
(va_ttrue ()) | val va_codegen_success_Pop_Secret : dst:va_operand_dst_opr64 -> Tot va_pbool
let va_codegen_success_Pop_Secret dst = | false | null | false | (va_ttrue ()) | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [
"total"
] | [
"Vale.X64.Decls.va_operand_dst_opr64",
"Vale.X64.Decls.va_ttrue",
"Vale.X64.Decls.va_pbool"
] | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | true | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_codegen_success_Pop_Secret : dst:va_operand_dst_opr64 -> Tot va_pbool | [] | Vale.X64.InsStack.va_codegen_success_Pop_Secret | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | dst: Vale.X64.Decls.va_operand_dst_opr64 -> Vale.X64.Decls.va_pbool | {
"end_col": 15,
"end_line": 124,
"start_col": 2,
"start_line": 124
} |
Prims.Tot | val va_codegen_success_Push : src:va_operand_reg_opr64 -> Tot va_pbool | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_codegen_success_Push src =
(va_ttrue ()) | val va_codegen_success_Push : src:va_operand_reg_opr64 -> Tot va_pbool
let va_codegen_success_Push src = | false | null | false | (va_ttrue ()) | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [
"total"
] | [
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.Decls.va_ttrue",
"Vale.X64.Decls.va_pbool"
] | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | true | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_codegen_success_Push : src:va_operand_reg_opr64 -> Tot va_pbool | [] | Vale.X64.InsStack.va_codegen_success_Push | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | src: Vale.X64.Decls.va_operand_reg_opr64 -> Vale.X64.Decls.va_pbool | {
"end_col": 15,
"end_line": 92,
"start_col": 2,
"start_line": 92
} |
Prims.Tot | val va_code_Push : src:va_operand_reg_opr64 -> Tot va_code | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_code_Push src =
(Ins (BC.Push src Public)) | val va_code_Push : src:va_operand_reg_opr64 -> Tot va_code
let va_code_Push src = | false | null | false | (Ins (BC.Push src Public)) | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [
"total"
] | [
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.Machine_s.Ins",
"Vale.X64.Decls.ins",
"Vale.X64.Decls.ocmp",
"Vale.X64.Bytes_Code_s.Push",
"Vale.X64.Machine_Semantics_s.instr_annotation",
"Vale.Arch.HeapTypes_s.Public",
"Vale.X64.Decls.va_code"
] | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | true | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_code_Push : src:va_operand_reg_opr64 -> Tot va_code | [] | Vale.X64.InsStack.va_code_Push | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | src: Vale.X64.Decls.va_operand_reg_opr64 -> Vale.X64.Decls.va_code | {
"end_col": 28,
"end_line": 88,
"start_col": 2,
"start_line": 88
} |
Prims.Tot | val va_codegen_success_PopXmm : dst:va_operand_xmm -> tmp:va_operand_reg_opr64 -> Tot va_pbool | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_codegen_success_PopXmm dst tmp =
(va_pbool_and (va_codegen_success_Pop (va_coerce_reg_opr64_to_dst_opr64 tmp)) (va_pbool_and
(va_codegen_success_Pinsrq dst (va_coerce_reg_opr64_to_opr64 tmp) 1) (va_pbool_and
(va_codegen_success_Pop (va_coerce_reg_opr64_to_dst_opr64 tmp)) (va_pbool_and
(va_codegen_s... | val va_codegen_success_PopXmm : dst:va_operand_xmm -> tmp:va_operand_reg_opr64 -> Tot va_pbool
let va_codegen_success_PopXmm dst tmp = | false | null | false | (va_pbool_and (va_codegen_success_Pop (va_coerce_reg_opr64_to_dst_opr64 tmp))
(va_pbool_and (va_codegen_success_Pinsrq dst (va_coerce_reg_opr64_to_opr64 tmp) 1)
(va_pbool_and (va_codegen_success_Pop (va_coerce_reg_opr64_to_dst_opr64 tmp))
(va_pbool_and (va_codegen_success_Pinsrq dst (va_coerce_r... | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [
"total"
] | [
"Vale.X64.Decls.va_operand_xmm",
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.Decls.va_pbool_and",
"Vale.X64.InsStack.va_codegen_success_Pop",
"Vale.X64.Decls.va_coerce_reg_opr64_to_dst_opr64",
"Vale.X64.InsVector.va_codegen_success_Pinsrq",
"Vale.X64.Decls.va_coerce_reg_opr64_to_opr64",
"Vale.X64... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | true | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_codegen_success_PopXmm : dst:va_operand_xmm -> tmp:va_operand_reg_opr64 -> Tot va_pbool | [] | Vale.X64.InsStack.va_codegen_success_PopXmm | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | dst: Vale.X64.Decls.va_operand_xmm -> tmp: Vale.X64.Decls.va_operand_reg_opr64
-> Vale.X64.Decls.va_pbool | {
"end_col": 90,
"end_line": 279,
"start_col": 2,
"start_line": 276
} |
Prims.Tot | val va_codegen_success_Stack_lemma : va_dummy:unit -> Tot va_pbool | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_codegen_success_Stack_lemma () =
(va_ttrue ()) | val va_codegen_success_Stack_lemma : va_dummy:unit -> Tot va_pbool
let va_codegen_success_Stack_lemma () = | false | null | false | (va_ttrue ()) | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [
"total"
] | [
"Prims.unit",
"Vale.X64.Decls.va_ttrue",
"Vale.X64.Decls.va_pbool"
] | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | true | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_codegen_success_Stack_lemma : va_dummy:unit -> Tot va_pbool | [] | Vale.X64.InsStack.va_codegen_success_Stack_lemma | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | va_dummy: Prims.unit -> Vale.X64.Decls.va_pbool | {
"end_col": 15,
"end_line": 31,
"start_col": 2,
"start_line": 31
} |
Prims.Tot | val va_code_Pop : dst:va_operand_dst_opr64 -> Tot va_code | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_code_Pop dst =
(Ins (BC.Pop dst Public)) | val va_code_Pop : dst:va_operand_dst_opr64 -> Tot va_code
let va_code_Pop dst = | false | null | false | (Ins (BC.Pop dst Public)) | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [
"total"
] | [
"Vale.X64.Decls.va_operand_dst_opr64",
"Vale.X64.Machine_s.Ins",
"Vale.X64.Decls.ins",
"Vale.X64.Decls.ocmp",
"Vale.X64.Bytes_Code_s.Pop",
"Vale.X64.Machine_Semantics_s.instr_annotation",
"Vale.Arch.HeapTypes_s.Public",
"Vale.X64.Decls.va_code"
] | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | true | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_code_Pop : dst:va_operand_dst_opr64 -> Tot va_code | [] | Vale.X64.InsStack.va_code_Pop | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | dst: Vale.X64.Decls.va_operand_dst_opr64 -> Vale.X64.Decls.va_code | {
"end_col": 27,
"end_line": 56,
"start_col": 2,
"start_line": 56
} |
Prims.Tot | val va_codegen_success_PopXmm_Secret : dst:va_operand_xmm -> tmp:va_operand_reg_opr64 -> Tot
va_pbool | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_codegen_success_PopXmm_Secret dst tmp =
(va_pbool_and (va_codegen_success_Pop_Secret (va_coerce_reg_opr64_to_dst_opr64 tmp))
(va_pbool_and (va_codegen_success_Pinsrq dst (va_coerce_reg_opr64_to_opr64 tmp) 1)
(va_pbool_and (va_codegen_success_Pop_Secret (va_coerce_reg_opr64_to_dst_opr64 tmp))
(va_pb... | val va_codegen_success_PopXmm_Secret : dst:va_operand_xmm -> tmp:va_operand_reg_opr64 -> Tot
va_pbool
let va_codegen_success_PopXmm_Secret dst tmp = | false | null | false | (va_pbool_and (va_codegen_success_Pop_Secret (va_coerce_reg_opr64_to_dst_opr64 tmp))
(va_pbool_and (va_codegen_success_Pinsrq dst (va_coerce_reg_opr64_to_opr64 tmp) 1)
(va_pbool_and (va_codegen_success_Pop_Secret (va_coerce_reg_opr64_to_dst_opr64 tmp))
(va_pbool_and (va_codegen_success_Pinsrq ds... | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [
"total"
] | [
"Vale.X64.Decls.va_operand_xmm",
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.Decls.va_pbool_and",
"Vale.X64.InsStack.va_codegen_success_Pop_Secret",
"Vale.X64.Decls.va_coerce_reg_opr64_to_dst_opr64",
"Vale.X64.InsVector.va_codegen_success_Pinsrq",
"Vale.X64.Decls.va_coerce_reg_opr64_to_opr64",
"V... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | true | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_codegen_success_PopXmm_Secret : dst:va_operand_xmm -> tmp:va_operand_reg_opr64 -> Tot
va_pbool | [] | Vale.X64.InsStack.va_codegen_success_PopXmm_Secret | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | dst: Vale.X64.Decls.va_operand_xmm -> tmp: Vale.X64.Decls.va_operand_reg_opr64
-> Vale.X64.Decls.va_pbool | {
"end_col": 11,
"end_line": 382,
"start_col": 2,
"start_line": 378
} |
Prims.Tot | val va_code_PushXmm_Secret : src:va_operand_xmm -> tmp:va_operand_reg_opr64 -> Tot va_code | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_code_PushXmm_Secret src tmp =
(va_Block (va_CCons (va_code_Pextrq (va_coerce_reg_opr64_to_dst_opr64 tmp) src 0) (va_CCons
(va_code_Push_Secret tmp) (va_CCons (va_code_Pextrq (va_coerce_reg_opr64_to_dst_opr64 tmp) src
1) (va_CCons (va_code_Push_Secret tmp) (va_CNil ())))))) | val va_code_PushXmm_Secret : src:va_operand_xmm -> tmp:va_operand_reg_opr64 -> Tot va_code
let va_code_PushXmm_Secret src tmp = | false | null | false | (va_Block (va_CCons (va_code_Pextrq (va_coerce_reg_opr64_to_dst_opr64 tmp) src 0)
(va_CCons (va_code_Push_Secret tmp)
(va_CCons (va_code_Pextrq (va_coerce_reg_opr64_to_dst_opr64 tmp) src 1)
(va_CCons (va_code_Push_Secret tmp) (va_CNil ())))))) | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [
"total"
] | [
"Vale.X64.Decls.va_operand_xmm",
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.Decls.va_Block",
"Vale.X64.Decls.va_CCons",
"Vale.X64.InsVector.va_code_Pextrq",
"Vale.X64.Decls.va_coerce_reg_opr64_to_dst_opr64",
"Vale.X64.InsStack.va_code_Push_Secret",
"Vale.X64.Decls.va_CNil",
"Vale.X64.Decls.va_... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | true | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_code_PushXmm_Secret : src:va_operand_xmm -> tmp:va_operand_reg_opr64 -> Tot va_code | [] | Vale.X64.InsStack.va_code_PushXmm_Secret | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | src: Vale.X64.Decls.va_operand_xmm -> tmp: Vale.X64.Decls.va_operand_reg_opr64
-> Vale.X64.Decls.va_code | {
"end_col": 60,
"end_line": 323,
"start_col": 2,
"start_line": 321
} |
Prims.Tot | val va_code_Pop_Secret : dst:va_operand_dst_opr64 -> Tot va_code | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_code_Pop_Secret dst =
(Ins (BC.Pop dst Secret)) | val va_code_Pop_Secret : dst:va_operand_dst_opr64 -> Tot va_code
let va_code_Pop_Secret dst = | false | null | false | (Ins (BC.Pop dst Secret)) | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [
"total"
] | [
"Vale.X64.Decls.va_operand_dst_opr64",
"Vale.X64.Machine_s.Ins",
"Vale.X64.Decls.ins",
"Vale.X64.Decls.ocmp",
"Vale.X64.Bytes_Code_s.Pop",
"Vale.X64.Machine_Semantics_s.instr_annotation",
"Vale.Arch.HeapTypes_s.Secret",
"Vale.X64.Decls.va_code"
] | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | true | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_code_Pop_Secret : dst:va_operand_dst_opr64 -> Tot va_code | [] | Vale.X64.InsStack.va_code_Pop_Secret | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | dst: Vale.X64.Decls.va_operand_dst_opr64 -> Vale.X64.Decls.va_code | {
"end_col": 27,
"end_line": 120,
"start_col": 2,
"start_line": 120
} |
Prims.Tot | val va_codegen_success_PushXmm : src:va_operand_xmm -> tmp:va_operand_reg_opr64 -> Tot va_pbool | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_codegen_success_PushXmm src tmp =
(va_pbool_and (va_codegen_success_Pextrq (va_coerce_reg_opr64_to_dst_opr64 tmp) src 0)
(va_pbool_and (va_codegen_success_Push tmp) (va_pbool_and (va_codegen_success_Pextrq
(va_coerce_reg_opr64_to_dst_opr64 tmp) src 1) (va_pbool_and (va_codegen_success_Push tmp)
(va... | val va_codegen_success_PushXmm : src:va_operand_xmm -> tmp:va_operand_reg_opr64 -> Tot va_pbool
let va_codegen_success_PushXmm src tmp = | false | null | false | (va_pbool_and (va_codegen_success_Pextrq (va_coerce_reg_opr64_to_dst_opr64 tmp) src 0)
(va_pbool_and (va_codegen_success_Push tmp)
(va_pbool_and (va_codegen_success_Pextrq (va_coerce_reg_opr64_to_dst_opr64 tmp) src 1)
(va_pbool_and (va_codegen_success_Push tmp) (va_ttrue ()))))) | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [
"total"
] | [
"Vale.X64.Decls.va_operand_xmm",
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.Decls.va_pbool_and",
"Vale.X64.InsVector.va_codegen_success_Pextrq",
"Vale.X64.Decls.va_coerce_reg_opr64_to_dst_opr64",
"Vale.X64.InsStack.va_codegen_success_Push",
"Vale.X64.Decls.va_ttrue",
"Vale.X64.Decls.va_pbool"
] | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | true | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_codegen_success_PushXmm : src:va_operand_xmm -> tmp:va_operand_reg_opr64 -> Tot va_pbool | [] | Vale.X64.InsStack.va_codegen_success_PushXmm | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | src: Vale.X64.Decls.va_operand_xmm -> tmp: Vale.X64.Decls.va_operand_reg_opr64
-> Vale.X64.Decls.va_pbool | {
"end_col": 21,
"end_line": 228,
"start_col": 2,
"start_line": 225
} |
Prims.Tot | val va_codegen_success_Load64_stack : dst:va_operand_dst_opr64 -> src:va_operand_reg_opr64 ->
offset:int -> Tot va_pbool | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_codegen_success_Load64_stack dst src offset =
(va_ttrue ()) | val va_codegen_success_Load64_stack : dst:va_operand_dst_opr64 -> src:va_operand_reg_opr64 ->
offset:int -> Tot va_pbool
let va_codegen_success_Load64_stack dst src offset = | false | null | false | (va_ttrue ()) | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [
"total"
] | [
"Vale.X64.Decls.va_operand_dst_opr64",
"Vale.X64.Decls.va_operand_reg_opr64",
"Prims.int",
"Vale.X64.Decls.va_ttrue",
"Vale.X64.Decls.va_pbool"
] | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | true | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_codegen_success_Load64_stack : dst:va_operand_dst_opr64 -> src:va_operand_reg_opr64 ->
offset:int -> Tot va_pbool | [] | Vale.X64.InsStack.va_codegen_success_Load64_stack | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
dst: Vale.X64.Decls.va_operand_dst_opr64 ->
src: Vale.X64.Decls.va_operand_reg_opr64 ->
offset: Prims.int
-> Vale.X64.Decls.va_pbool | {
"end_col": 15,
"end_line": 189,
"start_col": 2,
"start_line": 189
} |
Prims.Tot | val va_code_PushXmm : src:va_operand_xmm -> tmp:va_operand_reg_opr64 -> Tot va_code | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_code_PushXmm src tmp =
(va_Block (va_CCons (va_code_Pextrq (va_coerce_reg_opr64_to_dst_opr64 tmp) src 0) (va_CCons
(va_code_Push tmp) (va_CCons (va_code_Pextrq (va_coerce_reg_opr64_to_dst_opr64 tmp) src 1)
(va_CCons (va_code_Push tmp) (va_CNil ())))))) | val va_code_PushXmm : src:va_operand_xmm -> tmp:va_operand_reg_opr64 -> Tot va_code
let va_code_PushXmm src tmp = | false | null | false | (va_Block (va_CCons (va_code_Pextrq (va_coerce_reg_opr64_to_dst_opr64 tmp) src 0)
(va_CCons (va_code_Push tmp)
(va_CCons (va_code_Pextrq (va_coerce_reg_opr64_to_dst_opr64 tmp) src 1)
(va_CCons (va_code_Push tmp) (va_CNil ())))))) | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [
"total"
] | [
"Vale.X64.Decls.va_operand_xmm",
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.Decls.va_Block",
"Vale.X64.Decls.va_CCons",
"Vale.X64.InsVector.va_code_Pextrq",
"Vale.X64.Decls.va_coerce_reg_opr64_to_dst_opr64",
"Vale.X64.InsStack.va_code_Push",
"Vale.X64.Decls.va_CNil",
"Vale.X64.Decls.va_code"
] | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | true | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_code_PushXmm : src:va_operand_xmm -> tmp:va_operand_reg_opr64 -> Tot va_code | [] | Vale.X64.InsStack.va_code_PushXmm | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | src: Vale.X64.Decls.va_operand_xmm -> tmp: Vale.X64.Decls.va_operand_reg_opr64
-> Vale.X64.Decls.va_code | {
"end_col": 50,
"end_line": 221,
"start_col": 2,
"start_line": 219
} |
Prims.Tot | val va_code_PopXmm : dst:va_operand_xmm -> tmp:va_operand_reg_opr64 -> Tot va_code | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_code_PopXmm dst tmp =
(va_Block (va_CCons (va_code_Pop (va_coerce_reg_opr64_to_dst_opr64 tmp)) (va_CCons
(va_code_Pinsrq dst (va_coerce_reg_opr64_to_opr64 tmp) 1) (va_CCons (va_code_Pop
(va_coerce_reg_opr64_to_dst_opr64 tmp)) (va_CCons (va_code_Pinsrq dst
(va_coerce_reg_opr64_to_opr64 tmp) 0) (va_C... | val va_code_PopXmm : dst:va_operand_xmm -> tmp:va_operand_reg_opr64 -> Tot va_code
let va_code_PopXmm dst tmp = | false | null | false | (va_Block (va_CCons (va_code_Pop (va_coerce_reg_opr64_to_dst_opr64 tmp))
(va_CCons (va_code_Pinsrq dst (va_coerce_reg_opr64_to_opr64 tmp) 1)
(va_CCons (va_code_Pop (va_coerce_reg_opr64_to_dst_opr64 tmp))
(va_CCons (va_code_Pinsrq dst (va_coerce_reg_opr64_to_opr64 tmp) 0) (va_CNil ())... | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [
"total"
] | [
"Vale.X64.Decls.va_operand_xmm",
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.Decls.va_Block",
"Vale.X64.Decls.va_CCons",
"Vale.X64.InsStack.va_code_Pop",
"Vale.X64.Decls.va_coerce_reg_opr64_to_dst_opr64",
"Vale.X64.InsVector.va_code_Pinsrq",
"Vale.X64.Decls.va_coerce_reg_opr64_to_opr64",
"Vale.... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | true | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_code_PopXmm : dst:va_operand_xmm -> tmp:va_operand_reg_opr64 -> Tot va_code | [] | Vale.X64.InsStack.va_code_PopXmm | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | dst: Vale.X64.Decls.va_operand_xmm -> tmp: Vale.X64.Decls.va_operand_reg_opr64
-> Vale.X64.Decls.va_code | {
"end_col": 59,
"end_line": 272,
"start_col": 2,
"start_line": 269
} |
Prims.Tot | val va_codegen_success_PushXmm_Secret : src:va_operand_xmm -> tmp:va_operand_reg_opr64 -> Tot
va_pbool | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_codegen_success_PushXmm_Secret src tmp =
(va_pbool_and (va_codegen_success_Pextrq (va_coerce_reg_opr64_to_dst_opr64 tmp) src 0)
(va_pbool_and (va_codegen_success_Push_Secret tmp) (va_pbool_and (va_codegen_success_Pextrq
(va_coerce_reg_opr64_to_dst_opr64 tmp) src 1) (va_pbool_and (va_codegen_success_Pus... | val va_codegen_success_PushXmm_Secret : src:va_operand_xmm -> tmp:va_operand_reg_opr64 -> Tot
va_pbool
let va_codegen_success_PushXmm_Secret src tmp = | false | null | false | (va_pbool_and (va_codegen_success_Pextrq (va_coerce_reg_opr64_to_dst_opr64 tmp) src 0)
(va_pbool_and (va_codegen_success_Push_Secret tmp)
(va_pbool_and (va_codegen_success_Pextrq (va_coerce_reg_opr64_to_dst_opr64 tmp) src 1)
(va_pbool_and (va_codegen_success_Push_Secret tmp) (va_ttrue ()))))) | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [
"total"
] | [
"Vale.X64.Decls.va_operand_xmm",
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.Decls.va_pbool_and",
"Vale.X64.InsVector.va_codegen_success_Pextrq",
"Vale.X64.Decls.va_coerce_reg_opr64_to_dst_opr64",
"Vale.X64.InsStack.va_codegen_success_Push_Secret",
"Vale.X64.Decls.va_ttrue",
"Vale.X64.Decls.va_pb... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | true | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_codegen_success_PushXmm_Secret : src:va_operand_xmm -> tmp:va_operand_reg_opr64 -> Tot
va_pbool | [] | Vale.X64.InsStack.va_codegen_success_PushXmm_Secret | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | src: Vale.X64.Decls.va_operand_xmm -> tmp: Vale.X64.Decls.va_operand_reg_opr64
-> Vale.X64.Decls.va_pbool | {
"end_col": 26,
"end_line": 330,
"start_col": 2,
"start_line": 327
} |
Prims.Tot | val va_code_PopXmm_Secret : dst:va_operand_xmm -> tmp:va_operand_reg_opr64 -> Tot va_code | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_code_PopXmm_Secret dst tmp =
(va_Block (va_CCons (va_code_Pop_Secret (va_coerce_reg_opr64_to_dst_opr64 tmp)) (va_CCons
(va_code_Pinsrq dst (va_coerce_reg_opr64_to_opr64 tmp) 1) (va_CCons (va_code_Pop_Secret
(va_coerce_reg_opr64_to_dst_opr64 tmp)) (va_CCons (va_code_Pinsrq dst
(va_coerce_reg_opr64_t... | val va_code_PopXmm_Secret : dst:va_operand_xmm -> tmp:va_operand_reg_opr64 -> Tot va_code
let va_code_PopXmm_Secret dst tmp = | false | null | false | (va_Block (va_CCons (va_code_Pop_Secret (va_coerce_reg_opr64_to_dst_opr64 tmp))
(va_CCons (va_code_Pinsrq dst (va_coerce_reg_opr64_to_opr64 tmp) 1)
(va_CCons (va_code_Pop_Secret (va_coerce_reg_opr64_to_dst_opr64 tmp))
(va_CCons (va_code_Pinsrq dst (va_coerce_reg_opr64_to_opr64 tmp) 0... | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [
"total"
] | [
"Vale.X64.Decls.va_operand_xmm",
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.Decls.va_Block",
"Vale.X64.Decls.va_CCons",
"Vale.X64.InsStack.va_code_Pop_Secret",
"Vale.X64.Decls.va_coerce_reg_opr64_to_dst_opr64",
"Vale.X64.InsVector.va_code_Pinsrq",
"Vale.X64.Decls.va_coerce_reg_opr64_to_opr64",
... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | true | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_code_PopXmm_Secret : dst:va_operand_xmm -> tmp:va_operand_reg_opr64 -> Tot va_code | [] | Vale.X64.InsStack.va_code_PopXmm_Secret | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | dst: Vale.X64.Decls.va_operand_xmm -> tmp: Vale.X64.Decls.va_operand_reg_opr64
-> Vale.X64.Decls.va_code | {
"end_col": 59,
"end_line": 374,
"start_col": 2,
"start_line": 371
} |
Prims.Tot | val va_code_Load64_stack : dst:va_operand_dst_opr64 -> src:va_operand_reg_opr64 -> offset:int ->
Tot va_code | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_code_Load64_stack dst src offset =
(mk_ins (make_instr_annotate (I.ins_Mov64) (S.AnnotateMov64 ()) dst (OStack ((MReg (get_reg src)
offset, Public))))) | val va_code_Load64_stack : dst:va_operand_dst_opr64 -> src:va_operand_reg_opr64 -> offset:int ->
Tot va_code
let va_code_Load64_stack dst src offset = | false | null | false | (mk_ins (make_instr_annotate (I.ins_Mov64)
(S.AnnotateMov64 ())
dst
(OStack ((MReg (get_reg src) offset, Public))))) | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [
"total"
] | [
"Vale.X64.Decls.va_operand_dst_opr64",
"Vale.X64.Decls.va_operand_reg_opr64",
"Prims.int",
"Vale.X64.Taint_Semantics.mk_ins",
"Vale.X64.InsLemmas.make_instr_annotate",
"Prims.Cons",
"Vale.X64.Instruction_s.instr_out",
"Vale.X64.Instruction_s.out",
"Vale.X64.Instruction_s.op64",
"Prims.Nil",
"Val... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | true | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_code_Load64_stack : dst:va_operand_dst_opr64 -> src:va_operand_reg_opr64 -> offset:int ->
Tot va_code | [] | Vale.X64.InsStack.va_code_Load64_stack | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
dst: Vale.X64.Decls.va_operand_dst_opr64 ->
src: Vale.X64.Decls.va_operand_reg_opr64 ->
offset: Prims.int
-> Vale.X64.Decls.va_code | {
"end_col": 23,
"end_line": 185,
"start_col": 2,
"start_line": 184
} |
Prims.Ghost | val va_lemma_Stack_lemma : va_b0:va_code -> va_s0:va_state -> base:operand64 -> offset:int ->
t:taint
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Stack_lemma ()) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
... | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_lemma_Stack_lemma va_b0 va_s0 base offset t =
va_reveal_opaque (`%va_code_Stack_lemma) (va_code_Stack_lemma ());
let (va_old_s:va_state) = va_s0 in
let (va_b1:va_codes) = va_get_block va_b0 in
let (va_sM, va_fM) = va_lemma_empty_total va_s0 va_b1 in
(va_sM, va_fM) | val va_lemma_Stack_lemma : va_b0:va_code -> va_s0:va_state -> base:operand64 -> offset:int ->
t:taint
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Stack_lemma ()) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
... | false | null | false | va_reveal_opaque (`%va_code_Stack_lemma) (va_code_Stack_lemma ());
let va_old_s:va_state = va_s0 in
let va_b1:va_codes = va_get_block va_b0 in
let va_sM, va_fM = va_lemma_empty_total va_s0 va_b1 in
(va_sM, va_fM) | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Vale.X64.Machine_s.operand64",
"Prims.int",
"Vale.Arch.HeapTypes_s.taint",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Pervasives.Native.tuple2",
"Vale.X64.State.vale_state",
"Vale.X64.Decls.va_lemma_empty_total",
"Pr... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | false | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_lemma_Stack_lemma : va_b0:va_code -> va_s0:va_state -> base:operand64 -> offset:int ->
t:taint
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Stack_lemma ()) va_s0 /\ va_get_ok va_s0))
(ensures (fun (va_sM, va_fM) -> va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\
... | [] | Vale.X64.InsStack.va_lemma_Stack_lemma | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
base: Vale.X64.Machine_s.operand64 ->
offset: Prims.int ->
t: Vale.Arch.HeapTypes_s.taint
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) | {
"end_col": 16,
"end_line": 39,
"start_col": 2,
"start_line": 35
} |
Prims.Ghost | val va_wpProof_Stack_lemma : base:operand64 -> offset:int -> t:taint -> va_s0:va_state ->
va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Stack_lemma base offset t va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Stack_lemma ())... | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_wpProof_Stack_lemma base offset t va_s0 va_k =
let (va_sM, va_f0) = va_lemma_Stack_lemma (va_code_Stack_lemma ()) va_s0 base offset t in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_ok va_sM va_s0));
va_lemma_norm_mods ([]) va_sM va_s0;
let va_g = () in
(va_sM, va_f0, va_g) | val va_wpProof_Stack_lemma : base:operand64 -> offset:int -> t:taint -> va_s0:va_state ->
va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Stack_lemma base offset t va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Stack_lemma ())... | false | null | false | let va_sM, va_f0 = va_lemma_Stack_lemma (va_code_Stack_lemma ()) va_s0 base offset t in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_ok va_sM va_s0));
va_lemma_norm_mods ([]) va_sM va_s0;
let va_g = () in
(va_sM, va_f0, va_g) | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [] | [
"Vale.X64.Machine_s.operand64",
"Prims.int",
"Vale.Arch.HeapTypes_s.taint",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple3",
"Vale.X64.QuickCode.va_lemma_norm_mods",
"Prims.Nil",
"Vale.X64.QuickCode.mod_t",
"Prims._assert",
"Vale.X64.Decls.... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | false | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_wpProof_Stack_lemma : base:operand64 -> offset:int -> t:taint -> va_s0:va_state ->
va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Stack_lemma base offset t va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Stack_lemma ())... | [] | Vale.X64.InsStack.va_wpProof_Stack_lemma | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
base: Vale.X64.Machine_s.operand64 ->
offset: Prims.int ->
t: Vale.Arch.HeapTypes_s.taint ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Prims.Ghost ((Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) * Prims.unit) | {
"end_col": 22,
"end_line": 49,
"start_col": 53,
"start_line": 43
} |
Prims.Ghost | val va_wpProof_Push_Secret : src:va_operand_reg_opr64 -> va_s0:va_state -> va_k:(va_state -> unit
-> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Push_Secret src va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Push_Secret src) ([va_Mod_stackTaint;
... | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_wpProof_Push_Secret src va_s0 va_k =
let (va_sM, va_f0) = va_lemma_Push_Secret (va_code_Push_Secret src) va_s0 src in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_stackTaint va_sM (va_update_stack va_sM (va_update_reg64
rRsp va_sM (va_update_ok va_sM va_s0)))));
va_lemma_norm_mods ... | val va_wpProof_Push_Secret : src:va_operand_reg_opr64 -> va_s0:va_state -> va_k:(va_state -> unit
-> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Push_Secret src va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Push_Secret src) ([va_Mod_stackTaint;
... | false | null | false | let va_sM, va_f0 = va_lemma_Push_Secret (va_code_Push_Secret src) va_s0 src in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_stackTaint va_sM
(va_update_stack va_sM (va_update_reg64 rRsp va_sM (va_update_ok va_sM va_s0)))));
va_lemma_norm_mods ([va_Mod_stackTaint; va_Mod_stack; va_Mod_... | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [] | [
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple3",
"Vale.X64.QuickCode.va_lemma_norm_mods",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_stackTaint",
"Vale.X64.QuickCode.va_Mod_stack"... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | false | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_wpProof_Push_Secret : src:va_operand_reg_opr64 -> va_s0:va_state -> va_k:(va_state -> unit
-> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Push_Secret src va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Push_Secret src) ([va_Mod_stackTaint;
... | [] | Vale.X64.InsStack.va_wpProof_Push_Secret | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
src: Vale.X64.Decls.va_operand_reg_opr64 ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Prims.Ghost ((Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) * Prims.unit) | {
"end_col": 22,
"end_line": 177,
"start_col": 43,
"start_line": 170
} |
Prims.Ghost | val va_wpProof_Pop_Secret : dst:va_operand_dst_opr64 -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Pop_Secret dst va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Pop_Secret dst) ([va_Mod_stack;
va_Mod... | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_wpProof_Pop_Secret dst va_s0 va_k =
let (va_sM, va_f0) = va_lemma_Pop_Secret (va_code_Pop_Secret dst) va_s0 dst in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_stack va_sM (va_update_reg64 rRsp va_sM (va_update_ok va_sM
(va_update_operand_dst_opr64 dst va_sM va_s0)))));
va_lemma_no... | val va_wpProof_Pop_Secret : dst:va_operand_dst_opr64 -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Pop_Secret dst va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Pop_Secret dst) ([va_Mod_stack;
va_Mod... | false | null | false | let va_sM, va_f0 = va_lemma_Pop_Secret (va_code_Pop_Secret dst) va_s0 dst in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_stack va_sM
(va_update_reg64 rRsp
va_sM
(va_update_ok va_sM (va_update_operand_dst_opr64 dst va_sM va_s0)))));
va_lemma_norm_mods ([va_... | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [] | [
"Vale.X64.Decls.va_operand_dst_opr64",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple3",
"Vale.X64.QuickCode.va_lemma_norm_mods",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_stack",
"Vale.X64.QuickCode.va_Mod_reg64",
"... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | false | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_wpProof_Pop_Secret : dst:va_operand_dst_opr64 -> va_s0:va_state -> va_k:(va_state -> unit ->
Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Pop_Secret dst va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Pop_Secret dst) ([va_Mod_stack;
va_Mod... | [] | Vale.X64.InsStack.va_wpProof_Pop_Secret | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
dst: Vale.X64.Decls.va_operand_dst_opr64 ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Prims.Ghost ((Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) * Prims.unit) | {
"end_col": 22,
"end_line": 145,
"start_col": 42,
"start_line": 138
} |
Prims.Ghost | val va_wpProof_PopXmm_Secret : dst:va_operand_xmm -> tmp:va_operand_reg_opr64 ->
expected_xmm:quad32 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_PopXmm_Secret dst tmp expected_xmm va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g... | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_wpProof_PopXmm_Secret dst tmp expected_xmm va_s0 va_k =
let (va_sM, va_f0) = va_lemma_PopXmm_Secret (va_code_PopXmm_Secret dst tmp) va_s0 dst tmp
expected_xmm in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_stack va_sM (va_update_reg64 rRsp va_sM (va_update_ok va_sM
(va_update_op... | val va_wpProof_PopXmm_Secret : dst:va_operand_xmm -> tmp:va_operand_reg_opr64 ->
expected_xmm:quad32 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_PopXmm_Secret dst tmp expected_xmm va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g... | false | null | false | let va_sM, va_f0 =
va_lemma_PopXmm_Secret (va_code_PopXmm_Secret dst tmp) va_s0 dst tmp expected_xmm
in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_stack va_sM
(va_update_reg64 rRsp
va_sM
(va_update_ok va_sM
(va_update_operand_reg_opr64... | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [] | [
"Vale.X64.Decls.va_operand_xmm",
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.Decls.quad32",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple3",
"Vale.X64.QuickCode.va_lemma_norm_mods",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.Qui... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | false | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_wpProof_PopXmm_Secret : dst:va_operand_xmm -> tmp:va_operand_reg_opr64 ->
expected_xmm:quad32 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_PopXmm_Secret dst tmp expected_xmm va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g... | [] | Vale.X64.InsStack.va_wpProof_PopXmm_Secret | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
dst: Vale.X64.Decls.va_operand_xmm ->
tmp: Vale.X64.Decls.va_operand_reg_opr64 ->
expected_xmm: Vale.X64.Decls.quad32 ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Prims.Ghost ((Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) * Prims.unit) | {
"end_col": 22,
"end_line": 420,
"start_col": 62,
"start_line": 411
} |
Prims.Ghost | val va_wpProof_Push : src:va_operand_reg_opr64 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Push src va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Push src) ([va_Mod_stackTaint;
va_Mod_stack; va_Mod_... | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_wpProof_Push src va_s0 va_k =
let (va_sM, va_f0) = va_lemma_Push (va_code_Push src) va_s0 src in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_stackTaint va_sM (va_update_stack va_sM (va_update_reg64
rRsp va_sM (va_update_ok va_sM va_s0)))));
va_lemma_norm_mods ([va_Mod_stackTaint; ... | val va_wpProof_Push : src:va_operand_reg_opr64 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Push src va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Push src) ([va_Mod_stackTaint;
va_Mod_stack; va_Mod_... | false | null | false | let va_sM, va_f0 = va_lemma_Push (va_code_Push src) va_s0 src in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_stackTaint va_sM
(va_update_stack va_sM (va_update_reg64 rRsp va_sM (va_update_ok va_sM va_s0)))));
va_lemma_norm_mods ([va_Mod_stackTaint; va_Mod_stack; va_Mod_reg64 rRsp]) v... | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [] | [
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple3",
"Vale.X64.QuickCode.va_lemma_norm_mods",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_stackTaint",
"Vale.X64.QuickCode.va_Mod_stack"... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | false | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_wpProof_Push : src:va_operand_reg_opr64 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Push src va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Push src) ([va_Mod_stackTaint;
va_Mod_stack; va_Mod_... | [] | Vale.X64.InsStack.va_wpProof_Push | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
src: Vale.X64.Decls.va_operand_reg_opr64 ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Prims.Ghost ((Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) * Prims.unit) | {
"end_col": 22,
"end_line": 113,
"start_col": 36,
"start_line": 106
} |
Prims.Ghost | val va_lemma_Push_Secret : va_b0:va_code -> va_s0:va_state -> src:va_operand_reg_opr64
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Push_Secret src) va_s0 /\ va_is_src_reg_opr64 src
va_s0 /\ va_get_ok va_s0 /\ va_get_reg64 rRsp va_s0 <= Vale.X64.Stack_i.init_rsp (va_get_stack
va_... | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_lemma_Push_Secret va_b0 va_s0 src =
va_reveal_opaque (`%va_code_Push_Secret) (va_code_Push_Secret src);
let (va_old_s:va_state) = va_s0 in
va_ins_lemma (Ins (BC.Push src Secret)) va_s0;
let (va_sM, va_fM) = va_eval_ins (Ins (BC.Push src Secret)) va_s0 in
Vale.X64.Stack_Sems.equiv_store_stack64 (va_get_... | val va_lemma_Push_Secret : va_b0:va_code -> va_s0:va_state -> src:va_operand_reg_opr64
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Push_Secret src) va_s0 /\ va_is_src_reg_opr64 src
va_s0 /\ va_get_ok va_s0 /\ va_get_reg64 rRsp va_s0 <= Vale.X64.Stack_i.init_rsp (va_get_stack
va_... | false | null | false | va_reveal_opaque (`%va_code_Push_Secret) (va_code_Push_Secret src);
let va_old_s:va_state = va_s0 in
va_ins_lemma (Ins (BC.Push src Secret)) va_s0;
let va_sM, va_fM = va_eval_ins (Ins (BC.Push src Secret)) va_s0 in
Vale.X64.Stack_Sems.equiv_store_stack64 (va_get_reg64 rRsp va_sM)
(va_eval_reg_opr64 va_old_s src)
(v... | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.State.vale_state",
"Vale.X64.Lemmas.fuel",
"FStar.Pervasives.Native.Mktuple2",
"Vale.X64.Decls.va_fuel",
"Prims.unit",
"Vale.X64.Stack_Sems.equiv_store_stack64",
"Vale.X64.Decls.va_get_reg64",
"... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | false | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_lemma_Push_Secret : va_b0:va_code -> va_s0:va_state -> src:va_operand_reg_opr64
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Push_Secret src) va_s0 /\ va_is_src_reg_opr64 src
va_s0 /\ va_get_ok va_s0 /\ va_get_reg64 rRsp va_s0 <= Vale.X64.Stack_i.init_rsp (va_get_stack
va_... | [] | Vale.X64.InsStack.va_lemma_Push_Secret | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
src: Vale.X64.Decls.va_operand_reg_opr64
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) | {
"end_col": 16,
"end_line": 166,
"start_col": 2,
"start_line": 160
} |
Prims.Ghost | val va_wpProof_Pop : dst:va_operand_dst_opr64 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Pop dst va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Pop dst) ([va_Mod_stack; va_Mod_reg64
rRsp; va_mod_dst... | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_wpProof_Pop dst va_s0 va_k =
let (va_sM, va_f0) = va_lemma_Pop (va_code_Pop dst) va_s0 dst in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_stack va_sM (va_update_reg64 rRsp va_sM (va_update_ok va_sM
(va_update_operand_dst_opr64 dst va_sM va_s0)))));
va_lemma_norm_mods ([va_Mod_stac... | val va_wpProof_Pop : dst:va_operand_dst_opr64 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Pop dst va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Pop dst) ([va_Mod_stack; va_Mod_reg64
rRsp; va_mod_dst... | false | null | false | let va_sM, va_f0 = va_lemma_Pop (va_code_Pop dst) va_s0 dst in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_stack va_sM
(va_update_reg64 rRsp
va_sM
(va_update_ok va_sM (va_update_operand_dst_opr64 dst va_sM va_s0)))));
va_lemma_norm_mods ([va_Mod_stack; va_... | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [] | [
"Vale.X64.Decls.va_operand_dst_opr64",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple3",
"Vale.X64.QuickCode.va_lemma_norm_mods",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_stack",
"Vale.X64.QuickCode.va_Mod_reg64",
"... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | false | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_wpProof_Pop : dst:va_operand_dst_opr64 -> va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Pop dst va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_Pop dst) ([va_Mod_stack; va_Mod_reg64
rRsp; va_mod_dst... | [] | Vale.X64.InsStack.va_wpProof_Pop | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
dst: Vale.X64.Decls.va_operand_dst_opr64 ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Prims.Ghost ((Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) * Prims.unit) | {
"end_col": 22,
"end_line": 81,
"start_col": 35,
"start_line": 74
} |
Prims.Ghost | val va_wpProof_Load64_stack : dst:va_operand_dst_opr64 -> src:va_operand_reg_opr64 -> offset:int ->
va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Load64_stack dst src offset va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_e... | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_wpProof_Load64_stack dst src offset va_s0 va_k =
let (va_sM, va_f0) = va_lemma_Load64_stack (va_code_Load64_stack dst src offset) va_s0 dst src
offset in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_dst_opr64 dst va_sM va_s0)));
va_lemma_norm_mods ([va_m... | val va_wpProof_Load64_stack : dst:va_operand_dst_opr64 -> src:va_operand_reg_opr64 -> offset:int ->
va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Load64_stack dst src offset va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_e... | false | null | false | let va_sM, va_f0 =
va_lemma_Load64_stack (va_code_Load64_stack dst src offset) va_s0 dst src offset
in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_ok va_sM (va_update_operand_dst_opr64 dst va_sM va_s0)));
va_lemma_norm_mods ([va_mod_dst_opr64 dst]) va_sM va_s0;
let va_g = () in
(va_sM, va_f0, va_g... | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [] | [
"Vale.X64.Decls.va_operand_dst_opr64",
"Vale.X64.Decls.va_operand_reg_opr64",
"Prims.int",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple3",
"Vale.X64.QuickCode.va_lemma_norm_mods",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | false | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_wpProof_Load64_stack : dst:va_operand_dst_opr64 -> src:va_operand_reg_opr64 -> offset:int ->
va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_Load64_stack dst src offset va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_e... | [] | Vale.X64.InsStack.va_wpProof_Load64_stack | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
dst: Vale.X64.Decls.va_operand_dst_opr64 ->
src: Vale.X64.Decls.va_operand_reg_opr64 ->
offset: Prims.int ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Prims.Ghost ((Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) * Prims.unit) | {
"end_col": 22,
"end_line": 212,
"start_col": 55,
"start_line": 205
} |
Prims.Ghost | val va_wpProof_PushXmm_Secret : src:va_operand_xmm -> tmp:va_operand_reg_opr64 -> va_s0:va_state ->
va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_PushXmm_Secret src tmp va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_PushXmm_... | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_wpProof_PushXmm_Secret src tmp va_s0 va_k =
let (va_sM, va_f0) = va_lemma_PushXmm_Secret (va_code_PushXmm_Secret src tmp) va_s0 src tmp in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_stackTaint va_sM (va_update_stack va_sM (va_update_reg64
rRsp va_sM (va_update_ok va_sM (va_update_o... | val va_wpProof_PushXmm_Secret : src:va_operand_xmm -> tmp:va_operand_reg_opr64 -> va_s0:va_state ->
va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_PushXmm_Secret src tmp va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_PushXmm_... | false | null | false | let va_sM, va_f0 = va_lemma_PushXmm_Secret (va_code_PushXmm_Secret src tmp) va_s0 src tmp in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_stackTaint va_sM
(va_update_stack va_sM
(va_update_reg64 rRsp
va_sM
(va_update_ok va_sM (va_updat... | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [] | [
"Vale.X64.Decls.va_operand_xmm",
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple3",
"Vale.X64.QuickCode.va_lemma_norm_mods",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_stackTaint",
... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | false | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_wpProof_PushXmm_Secret : src:va_operand_xmm -> tmp:va_operand_reg_opr64 -> va_s0:va_state ->
va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_PushXmm_Secret src tmp va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_PushXmm_... | [] | Vale.X64.InsStack.va_wpProof_PushXmm_Secret | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
src: Vale.X64.Decls.va_operand_xmm ->
tmp: Vale.X64.Decls.va_operand_reg_opr64 ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Prims.Ghost ((Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) * Prims.unit) | {
"end_col": 22,
"end_line": 364,
"start_col": 50,
"start_line": 356
} |
Prims.Ghost | val va_lemma_Push : va_b0:va_code -> va_s0:va_state -> src:va_operand_reg_opr64
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Push src) va_s0 /\ va_is_src_reg_opr64 src va_s0 /\
va_get_ok va_s0 /\ va_get_reg64 rRsp va_s0 <= Vale.X64.Stack_i.init_rsp (va_get_stack va_s0) /\
Vale.X6... | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_lemma_Push va_b0 va_s0 src =
va_reveal_opaque (`%va_code_Push) (va_code_Push src);
let (va_old_s:va_state) = va_s0 in
va_ins_lemma (Ins (BC.Push src Public)) va_s0;
let (va_sM, va_fM) = va_eval_ins (Ins (BC.Push src Public)) va_s0 in
Vale.X64.Stack_Sems.equiv_store_stack64 (va_get_reg64 rRsp va_sM) (va... | val va_lemma_Push : va_b0:va_code -> va_s0:va_state -> src:va_operand_reg_opr64
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Push src) va_s0 /\ va_is_src_reg_opr64 src va_s0 /\
va_get_ok va_s0 /\ va_get_reg64 rRsp va_s0 <= Vale.X64.Stack_i.init_rsp (va_get_stack va_s0) /\
Vale.X6... | false | null | false | va_reveal_opaque (`%va_code_Push) (va_code_Push src);
let va_old_s:va_state = va_s0 in
va_ins_lemma (Ins (BC.Push src Public)) va_s0;
let va_sM, va_fM = va_eval_ins (Ins (BC.Push src Public)) va_s0 in
Vale.X64.Stack_Sems.equiv_store_stack64 (va_get_reg64 rRsp va_sM)
(va_eval_reg_opr64 va_old_s src)
(va_get_stack va... | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.State.vale_state",
"Vale.X64.Lemmas.fuel",
"FStar.Pervasives.Native.Mktuple2",
"Vale.X64.Decls.va_fuel",
"Prims.unit",
"Vale.X64.Stack_Sems.equiv_store_stack64",
"Vale.X64.Decls.va_get_reg64",
"... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | false | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_lemma_Push : va_b0:va_code -> va_s0:va_state -> src:va_operand_reg_opr64
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Push src) va_s0 /\ va_is_src_reg_opr64 src va_s0 /\
va_get_ok va_s0 /\ va_get_reg64 rRsp va_s0 <= Vale.X64.Stack_i.init_rsp (va_get_stack va_s0) /\
Vale.X6... | [] | Vale.X64.InsStack.va_lemma_Push | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
src: Vale.X64.Decls.va_operand_reg_opr64
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) | {
"end_col": 16,
"end_line": 102,
"start_col": 2,
"start_line": 96
} |
Prims.Ghost | val va_wpProof_PushXmm : src:va_operand_xmm -> tmp:va_operand_reg_opr64 -> va_s0:va_state ->
va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_PushXmm src tmp va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_PushXmm src tmp) ([va_... | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_wpProof_PushXmm src tmp va_s0 va_k =
let (va_sM, va_f0) = va_lemma_PushXmm (va_code_PushXmm src tmp) va_s0 src tmp in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_stackTaint va_sM (va_update_stack va_sM (va_update_reg64
rRsp va_sM (va_update_ok va_sM (va_update_operand_reg_opr64 tmp ... | val va_wpProof_PushXmm : src:va_operand_xmm -> tmp:va_operand_reg_opr64 -> va_s0:va_state ->
va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_PushXmm src tmp va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_PushXmm src tmp) ([va_... | false | null | false | let va_sM, va_f0 = va_lemma_PushXmm (va_code_PushXmm src tmp) va_s0 src tmp in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_stackTaint va_sM
(va_update_stack va_sM
(va_update_reg64 rRsp
va_sM
(va_update_ok va_sM (va_update_operand_reg_... | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [] | [
"Vale.X64.Decls.va_operand_xmm",
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple3",
"Vale.X64.QuickCode.va_lemma_norm_mods",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.QuickCode.va_Mod_stackTaint",
... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | false | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_wpProof_PushXmm : src:va_operand_xmm -> tmp:va_operand_reg_opr64 -> va_s0:va_state ->
va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_PushXmm src tmp va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensure (va_code_PushXmm src tmp) ([va_... | [] | Vale.X64.InsStack.va_wpProof_PushXmm | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
src: Vale.X64.Decls.va_operand_xmm ->
tmp: Vale.X64.Decls.va_operand_reg_opr64 ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Prims.Ghost ((Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) * Prims.unit) | {
"end_col": 22,
"end_line": 262,
"start_col": 43,
"start_line": 254
} |
Prims.Ghost | val va_wpProof_PopXmm : dst:va_operand_xmm -> tmp:va_operand_reg_opr64 -> expected_xmm:quad32 ->
va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_PopXmm dst tmp expected_xmm va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensu... | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_wpProof_PopXmm dst tmp expected_xmm va_s0 va_k =
let (va_sM, va_f0) = va_lemma_PopXmm (va_code_PopXmm dst tmp) va_s0 dst tmp expected_xmm in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM (va_update_stack va_sM (va_update_reg64 rRsp va_sM (va_update_ok va_sM
(va_update_operand_reg_opr64 tmp va_sM... | val va_wpProof_PopXmm : dst:va_operand_xmm -> tmp:va_operand_reg_opr64 -> expected_xmm:quad32 ->
va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_PopXmm dst tmp expected_xmm va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensu... | false | null | false | let va_sM, va_f0 = va_lemma_PopXmm (va_code_PopXmm dst tmp) va_s0 dst tmp expected_xmm in
va_lemma_upd_update va_sM;
assert (va_state_eq va_sM
(va_update_stack va_sM
(va_update_reg64 rRsp
va_sM
(va_update_ok va_sM
(va_update_operand_reg_opr64 tmp va_sM (va_u... | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [] | [
"Vale.X64.Decls.va_operand_xmm",
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.Decls.quad32",
"Vale.X64.Decls.va_state",
"Prims.unit",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple3",
"Vale.X64.QuickCode.va_lemma_norm_mods",
"Prims.Cons",
"Vale.X64.QuickCode.mod_t",
"Vale.X64.Qui... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | false | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_wpProof_PopXmm : dst:va_operand_xmm -> tmp:va_operand_reg_opr64 -> expected_xmm:quad32 ->
va_s0:va_state -> va_k:(va_state -> unit -> Type0)
-> Ghost (va_state & va_fuel & unit)
(requires (va_t_require va_s0 /\ va_wp_PopXmm dst tmp expected_xmm va_s0 va_k))
(ensures (fun (va_sM, va_f0, va_g) -> va_t_ensu... | [] | Vale.X64.InsStack.va_wpProof_PopXmm | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
dst: Vale.X64.Decls.va_operand_xmm ->
tmp: Vale.X64.Decls.va_operand_reg_opr64 ->
expected_xmm: Vale.X64.Decls.quad32 ->
va_s0: Vale.X64.Decls.va_state ->
va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0)
-> Prims.Ghost ((Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) * Prims.unit) | {
"end_col": 22,
"end_line": 314,
"start_col": 55,
"start_line": 306
} |
Prims.Ghost | val va_lemma_PushXmm_Secret : va_b0:va_code -> va_s0:va_state -> src:va_operand_xmm ->
tmp:va_operand_reg_opr64
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_PushXmm_Secret src tmp) va_s0 /\ va_is_src_xmm src
va_s0 /\ va_is_dst_reg_opr64 tmp va_s0 /\ va_get_ok va_s0 /\ sse_enabled /... | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_lemma_PushXmm_Secret va_b0 va_s0 src tmp =
va_reveal_opaque (`%va_code_PushXmm_Secret) (va_code_PushXmm_Secret src tmp);
let (va_old_s:va_state) = va_s0 in
let (va_b1:va_codes) = va_get_block va_b0 in
let (va_s2, va_fc2) = va_lemma_Pextrq (va_hd va_b1) va_s0 (va_coerce_reg_opr64_to_dst_opr64 tmp)
src... | val va_lemma_PushXmm_Secret : va_b0:va_code -> va_s0:va_state -> src:va_operand_xmm ->
tmp:va_operand_reg_opr64
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_PushXmm_Secret src tmp) va_s0 /\ va_is_src_xmm src
va_s0 /\ va_is_dst_reg_opr64 tmp va_s0 /\ va_get_ok va_s0 /\ sse_enabled /... | false | null | false | va_reveal_opaque (`%va_code_PushXmm_Secret) (va_code_PushXmm_Secret src tmp);
let va_old_s:va_state = va_s0 in
let va_b1:va_codes = va_get_block va_b0 in
let va_s2, va_fc2 =
va_lemma_Pextrq (va_hd va_b1) va_s0 (va_coerce_reg_opr64_to_dst_opr64 tmp) src 0
in
let va_b2 = va_tl va_b1 in
let va_s3, va_fc3 = va_lemma_Push... | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Vale.X64.Decls.va_operand_xmm",
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple2",
"Vale.X64.Decls.va_lemma_merge_total",
"FStar.Pervasives.Native.tuple2",
"Vale.X64.State.vale_state",
"Vale.X64... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | false | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_lemma_PushXmm_Secret : va_b0:va_code -> va_s0:va_state -> src:va_operand_xmm ->
tmp:va_operand_reg_opr64
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_PushXmm_Secret src tmp) va_s0 /\ va_is_src_xmm src
va_s0 /\ va_is_dst_reg_opr64 tmp va_s0 /\ va_get_ok va_s0 /\ sse_enabled /... | [] | Vale.X64.InsStack.va_lemma_PushXmm_Secret | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
src: Vale.X64.Decls.va_operand_xmm ->
tmp: Vale.X64.Decls.va_operand_reg_opr64
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) | {
"end_col": 16,
"end_line": 352,
"start_col": 2,
"start_line": 334
} |
Prims.Ghost | val va_lemma_PopXmm : va_b0:va_code -> va_s0:va_state -> dst:va_operand_xmm ->
tmp:va_operand_reg_opr64 -> expected_xmm:quad32
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_PopXmm dst tmp) va_s0 /\ va_is_dst_xmm dst va_s0 /\
va_is_dst_reg_opr64 tmp va_s0 /\ va_get_ok va_s0 /\ sse_en... | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_lemma_PopXmm va_b0 va_s0 dst tmp expected_xmm =
va_reveal_opaque (`%va_code_PopXmm) (va_code_PopXmm dst tmp);
let (va_old_s:va_state) = va_s0 in
let (va_b1:va_codes) = va_get_block va_b0 in
let (va_s2, va_fc2) = va_lemma_Pop (va_hd va_b1) va_s0 (va_coerce_reg_opr64_to_dst_opr64 tmp) in
let va_b2 = va_t... | val va_lemma_PopXmm : va_b0:va_code -> va_s0:va_state -> dst:va_operand_xmm ->
tmp:va_operand_reg_opr64 -> expected_xmm:quad32
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_PopXmm dst tmp) va_s0 /\ va_is_dst_xmm dst va_s0 /\
va_is_dst_reg_opr64 tmp va_s0 /\ va_get_ok va_s0 /\ sse_en... | false | null | false | va_reveal_opaque (`%va_code_PopXmm) (va_code_PopXmm dst tmp);
let va_old_s:va_state = va_s0 in
let va_b1:va_codes = va_get_block va_b0 in
let va_s2, va_fc2 = va_lemma_Pop (va_hd va_b1) va_s0 (va_coerce_reg_opr64_to_dst_opr64 tmp) in
let va_b2 = va_tl va_b1 in
let va_s3, va_fc3 = va_lemma_Pinsrq (va_hd va_b2) va_s2 dst ... | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Vale.X64.Decls.va_operand_xmm",
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.Decls.quad32",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple2",
"Vale.X64.Decls.va_lemma_merge_total",
"FStar.Pervasives.Native.tuple2",
"Vale.X64.Sta... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | false | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_lemma_PopXmm : va_b0:va_code -> va_s0:va_state -> dst:va_operand_xmm ->
tmp:va_operand_reg_opr64 -> expected_xmm:quad32
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_PopXmm dst tmp) va_s0 /\ va_is_dst_xmm dst va_s0 /\
va_is_dst_reg_opr64 tmp va_s0 /\ va_get_ok va_s0 /\ sse_en... | [] | Vale.X64.InsStack.va_lemma_PopXmm | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
dst: Vale.X64.Decls.va_operand_xmm ->
tmp: Vale.X64.Decls.va_operand_reg_opr64 ->
expected_xmm: Vale.X64.Decls.quad32
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) | {
"end_col": 16,
"end_line": 302,
"start_col": 2,
"start_line": 283
} |
Prims.Ghost | val va_lemma_PushXmm : va_b0:va_code -> va_s0:va_state -> src:va_operand_xmm ->
tmp:va_operand_reg_opr64
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_PushXmm src tmp) va_s0 /\ va_is_src_xmm src va_s0 /\
va_is_dst_reg_opr64 tmp va_s0 /\ va_get_ok va_s0 /\ sse_enabled /\ va_get_reg64... | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_lemma_PushXmm va_b0 va_s0 src tmp =
va_reveal_opaque (`%va_code_PushXmm) (va_code_PushXmm src tmp);
let (va_old_s:va_state) = va_s0 in
let (va_b1:va_codes) = va_get_block va_b0 in
let (va_s2, va_fc2) = va_lemma_Pextrq (va_hd va_b1) va_s0 (va_coerce_reg_opr64_to_dst_opr64 tmp)
src 0 in
let va_b2 = v... | val va_lemma_PushXmm : va_b0:va_code -> va_s0:va_state -> src:va_operand_xmm ->
tmp:va_operand_reg_opr64
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_PushXmm src tmp) va_s0 /\ va_is_src_xmm src va_s0 /\
va_is_dst_reg_opr64 tmp va_s0 /\ va_get_ok va_s0 /\ sse_enabled /\ va_get_reg64... | false | null | false | va_reveal_opaque (`%va_code_PushXmm) (va_code_PushXmm src tmp);
let va_old_s:va_state = va_s0 in
let va_b1:va_codes = va_get_block va_b0 in
let va_s2, va_fc2 =
va_lemma_Pextrq (va_hd va_b1) va_s0 (va_coerce_reg_opr64_to_dst_opr64 tmp) src 0
in
let va_b2 = va_tl va_b1 in
let va_s3, va_fc3 = va_lemma_Push (va_hd va_b2)... | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Vale.X64.Decls.va_operand_xmm",
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple2",
"Vale.X64.Decls.va_lemma_merge_total",
"FStar.Pervasives.Native.tuple2",
"Vale.X64.State.vale_state",
"Vale.X64... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | false | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_lemma_PushXmm : va_b0:va_code -> va_s0:va_state -> src:va_operand_xmm ->
tmp:va_operand_reg_opr64
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_PushXmm src tmp) va_s0 /\ va_is_src_xmm src va_s0 /\
va_is_dst_reg_opr64 tmp va_s0 /\ va_get_ok va_s0 /\ sse_enabled /\ va_get_reg64... | [] | Vale.X64.InsStack.va_lemma_PushXmm | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
src: Vale.X64.Decls.va_operand_xmm ->
tmp: Vale.X64.Decls.va_operand_reg_opr64
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) | {
"end_col": 16,
"end_line": 250,
"start_col": 2,
"start_line": 232
} |
Prims.Ghost | val va_lemma_PopXmm_Secret : va_b0:va_code -> va_s0:va_state -> dst:va_operand_xmm ->
tmp:va_operand_reg_opr64 -> expected_xmm:quad32
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_PopXmm_Secret dst tmp) va_s0 /\ va_is_dst_xmm dst
va_s0 /\ va_is_dst_reg_opr64 tmp va_s0 /\ va_get_ok v... | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_lemma_PopXmm_Secret va_b0 va_s0 dst tmp expected_xmm =
va_reveal_opaque (`%va_code_PopXmm_Secret) (va_code_PopXmm_Secret dst tmp);
let (va_old_s:va_state) = va_s0 in
let (va_b1:va_codes) = va_get_block va_b0 in
let (va_s2, va_fc2) = va_lemma_Pop_Secret (va_hd va_b1) va_s0 (va_coerce_reg_opr64_to_dst_opr6... | val va_lemma_PopXmm_Secret : va_b0:va_code -> va_s0:va_state -> dst:va_operand_xmm ->
tmp:va_operand_reg_opr64 -> expected_xmm:quad32
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_PopXmm_Secret dst tmp) va_s0 /\ va_is_dst_xmm dst
va_s0 /\ va_is_dst_reg_opr64 tmp va_s0 /\ va_get_ok v... | false | null | false | va_reveal_opaque (`%va_code_PopXmm_Secret) (va_code_PopXmm_Secret dst tmp);
let va_old_s:va_state = va_s0 in
let va_b1:va_codes = va_get_block va_b0 in
let va_s2, va_fc2 =
va_lemma_Pop_Secret (va_hd va_b1) va_s0 (va_coerce_reg_opr64_to_dst_opr64 tmp)
in
let va_b2 = va_tl va_b1 in
let va_s3, va_fc3 = va_lemma_Pinsrq (... | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Vale.X64.Decls.va_operand_xmm",
"Vale.X64.Decls.va_operand_reg_opr64",
"Vale.X64.Decls.quad32",
"Vale.X64.Decls.va_fuel",
"FStar.Pervasives.Native.Mktuple2",
"Vale.X64.Decls.va_lemma_merge_total",
"FStar.Pervasives.Native.tuple2",
"Vale.X64.Sta... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | false | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_lemma_PopXmm_Secret : va_b0:va_code -> va_s0:va_state -> dst:va_operand_xmm ->
tmp:va_operand_reg_opr64 -> expected_xmm:quad32
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_PopXmm_Secret dst tmp) va_s0 /\ va_is_dst_xmm dst
va_s0 /\ va_is_dst_reg_opr64 tmp va_s0 /\ va_get_ok v... | [] | Vale.X64.InsStack.va_lemma_PopXmm_Secret | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
dst: Vale.X64.Decls.va_operand_xmm ->
tmp: Vale.X64.Decls.va_operand_reg_opr64 ->
expected_xmm: Vale.X64.Decls.quad32
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) | {
"end_col": 16,
"end_line": 407,
"start_col": 2,
"start_line": 386
} |
Prims.Ghost | val va_lemma_Pop_Secret : va_b0:va_code -> va_s0:va_state -> dst:va_operand_dst_opr64
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Pop_Secret dst) va_s0 /\ va_is_dst_dst_opr64 dst va_s0
/\ va_get_ok va_s0 /\ Vale.X64.Stack_i.valid_src_stack64 (va_get_reg64 rRsp va_s0)
(va_get_sta... | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_lemma_Pop_Secret va_b0 va_s0 dst =
va_reveal_opaque (`%va_code_Pop_Secret) (va_code_Pop_Secret dst);
let (va_old_s:va_state) = va_s0 in
va_ins_lemma (Ins (BC.Pop dst Secret)) va_s0;
let (va_sM, va_fM) = va_eval_ins (Ins (BC.Pop dst Secret)) va_s0 in
Vale.X64.Stack_i.lemma_valid_taint_stack64 (va_get_re... | val va_lemma_Pop_Secret : va_b0:va_code -> va_s0:va_state -> dst:va_operand_dst_opr64
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Pop_Secret dst) va_s0 /\ va_is_dst_dst_opr64 dst va_s0
/\ va_get_ok va_s0 /\ Vale.X64.Stack_i.valid_src_stack64 (va_get_reg64 rRsp va_s0)
(va_get_sta... | false | null | false | va_reveal_opaque (`%va_code_Pop_Secret) (va_code_Pop_Secret dst);
let va_old_s:va_state = va_s0 in
va_ins_lemma (Ins (BC.Pop dst Secret)) va_s0;
let va_sM, va_fM = va_eval_ins (Ins (BC.Pop dst Secret)) va_s0 in
Vale.X64.Stack_i.lemma_valid_taint_stack64 (va_get_reg64 rRsp va_old_s)
Secret
(va_get_stackTaint va_old_... | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Vale.X64.Decls.va_operand_dst_opr64",
"Vale.X64.State.vale_state",
"Vale.X64.Lemmas.fuel",
"FStar.Pervasives.Native.Mktuple2",
"Vale.X64.Decls.va_fuel",
"Prims.unit",
"Vale.X64.Stack_i.lemma_valid_taint_stack64",
"Vale.X64.Decls.va_get_reg64",
... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | false | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_lemma_Pop_Secret : va_b0:va_code -> va_s0:va_state -> dst:va_operand_dst_opr64
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Pop_Secret dst) va_s0 /\ va_is_dst_dst_opr64 dst va_s0
/\ va_get_ok va_s0 /\ Vale.X64.Stack_i.valid_src_stack64 (va_get_reg64 rRsp va_s0)
(va_get_sta... | [] | Vale.X64.InsStack.va_lemma_Pop_Secret | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
dst: Vale.X64.Decls.va_operand_dst_opr64
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) | {
"end_col": 16,
"end_line": 134,
"start_col": 2,
"start_line": 128
} |
Prims.Ghost | val va_lemma_Pop : va_b0:va_code -> va_s0:va_state -> dst:va_operand_dst_opr64
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Pop dst) va_s0 /\ va_is_dst_dst_opr64 dst va_s0 /\
va_get_ok va_s0 /\ Vale.X64.Stack_i.valid_src_stack64 (va_get_reg64 rRsp va_s0) (va_get_stack
va_s0) /\ V... | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_lemma_Pop va_b0 va_s0 dst =
va_reveal_opaque (`%va_code_Pop) (va_code_Pop dst);
let (va_old_s:va_state) = va_s0 in
va_ins_lemma (Ins (BC.Pop dst Public)) va_s0;
let (va_sM, va_fM) = va_eval_ins (Ins (BC.Pop dst Public)) va_s0 in
Vale.X64.Stack_i.lemma_valid_taint_stack64 (va_get_reg64 rRsp va_old_s) Pu... | val va_lemma_Pop : va_b0:va_code -> va_s0:va_state -> dst:va_operand_dst_opr64
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Pop dst) va_s0 /\ va_is_dst_dst_opr64 dst va_s0 /\
va_get_ok va_s0 /\ Vale.X64.Stack_i.valid_src_stack64 (va_get_reg64 rRsp va_s0) (va_get_stack
va_s0) /\ V... | false | null | false | va_reveal_opaque (`%va_code_Pop) (va_code_Pop dst);
let va_old_s:va_state = va_s0 in
va_ins_lemma (Ins (BC.Pop dst Public)) va_s0;
let va_sM, va_fM = va_eval_ins (Ins (BC.Pop dst Public)) va_s0 in
Vale.X64.Stack_i.lemma_valid_taint_stack64 (va_get_reg64 rRsp va_old_s)
Public
(va_get_stackTaint va_old_s);
(va_sM, va... | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Vale.X64.Decls.va_operand_dst_opr64",
"Vale.X64.State.vale_state",
"Vale.X64.Lemmas.fuel",
"FStar.Pervasives.Native.Mktuple2",
"Vale.X64.Decls.va_fuel",
"Prims.unit",
"Vale.X64.Stack_i.lemma_valid_taint_stack64",
"Vale.X64.Decls.va_get_reg64",
... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | false | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_lemma_Pop : va_b0:va_code -> va_s0:va_state -> dst:va_operand_dst_opr64
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Pop dst) va_s0 /\ va_is_dst_dst_opr64 dst va_s0 /\
va_get_ok va_s0 /\ Vale.X64.Stack_i.valid_src_stack64 (va_get_reg64 rRsp va_s0) (va_get_stack
va_s0) /\ V... | [] | Vale.X64.InsStack.va_lemma_Pop | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
dst: Vale.X64.Decls.va_operand_dst_opr64
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) | {
"end_col": 16,
"end_line": 70,
"start_col": 2,
"start_line": 64
} |
Prims.Ghost | val va_lemma_Load64_stack : va_b0:va_code -> va_s0:va_state -> dst:va_operand_dst_opr64 ->
src:va_operand_reg_opr64 -> offset:int
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Load64_stack dst src offset) va_s0 /\
va_is_dst_dst_opr64 dst va_s0 /\ va_is_src_reg_opr64 src va_s0 /\ va_... | [
{
"abbrev": false,
"full_module": "Vale.X64.Taint_Semantics",
"short_module": null
},
{
"abbrev": true,
"full_module": "Vale.X64.Print_s",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": tr... | false | let va_lemma_Load64_stack va_b0 va_s0 dst src offset =
va_reveal_opaque (`%va_code_Load64_stack) (va_code_Load64_stack dst src offset);
let (va_old_s:va_state) = va_s0 in
va_ins_lemma (mk_ins (make_instr_annotate (I.ins_Mov64) (S.AnnotateMov64 ()) dst (OStack ((MReg
(get_reg src) offset, Public))))) va_s0;
... | val va_lemma_Load64_stack : va_b0:va_code -> va_s0:va_state -> dst:va_operand_dst_opr64 ->
src:va_operand_reg_opr64 -> offset:int
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Load64_stack dst src offset) va_s0 /\
va_is_dst_dst_opr64 dst va_s0 /\ va_is_src_reg_opr64 src va_s0 /\ va_... | false | null | false | va_reveal_opaque (`%va_code_Load64_stack) (va_code_Load64_stack dst src offset);
let va_old_s:va_state = va_s0 in
va_ins_lemma (mk_ins (make_instr_annotate (I.ins_Mov64)
(S.AnnotateMov64 ())
dst
(OStack ((MReg (get_reg src) offset, Public)))))
va_s0;
let va_sM, va_fM =
va_eval_ins (mk_... | {
"checked_file": "Vale.X64.InsStack.fst.checked",
"dependencies": [
"Vale.X64.Taint_Semantics.fst.checked",
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_Sems.fsti.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.Stack_i.fst.checked",
"Vale.X64.P... | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Vale.X64.Decls.va_operand_dst_opr64",
"Vale.X64.Decls.va_operand_reg_opr64",
"Prims.int",
"Vale.X64.State.vale_state",
"Vale.X64.Lemmas.fuel",
"FStar.Pervasives.Native.Mktuple2",
"Vale.X64.Decls.va_fuel",
"Prims.unit",
"Vale.X64.Stack_i.lemma... | [] | module Vale.X64.InsStack
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.Stack_i
open Vale.X64
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Decls
open Vale.X64.InsBasic
open Vale.X64.InsVector
open Vale.X64.InsLemmas
module I = Vale.X64.Instructions_s
module BC = Vale.X64.Bytes_Code_s
module S... | false | false | Vale.X64.InsStack.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 4,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val va_lemma_Load64_stack : va_b0:va_code -> va_s0:va_state -> dst:va_operand_dst_opr64 ->
src:va_operand_reg_opr64 -> offset:int
-> Ghost (va_state & va_fuel)
(requires (va_require_total va_b0 (va_code_Load64_stack dst src offset) va_s0 /\
va_is_dst_dst_opr64 dst va_s0 /\ va_is_src_reg_opr64 src va_s0 /\ va_... | [] | Vale.X64.InsStack.va_lemma_Load64_stack | {
"file_name": "obj/Vale.X64.InsStack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
dst: Vale.X64.Decls.va_operand_dst_opr64 ->
src: Vale.X64.Decls.va_operand_reg_opr64 ->
offset: Prims.int
-> Prims.Ghost (Vale.X64.Decls.va_state * Vale.X64.Decls.va_fuel) | {
"end_col": 16,
"end_line": 201,
"start_col": 2,
"start_line": 193
} |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Pulse.Checker.VPropEquiv",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Soundness.Common",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Elaborate",
"short_module": null
},
{
"abbrev": false... | false | let vprop_equiv_refl_type =
let var = 0 in
let v = mk_name var in
let v_typ = elab_term tm_vprop in
mk_arrow (v_typ, R.Q_Explicit)
(RT.close_term (stt_vprop_equiv v v) var) | let vprop_equiv_refl_type = | false | null | false | let var = 0 in
let v = mk_name var in
let v_typ = elab_term tm_vprop in
mk_arrow (v_typ, R.Q_Explicit) (RT.close_term (stt_vprop_equiv v v) var) | {
"checked_file": "Pulse.Soundness.VPropEquiv.fst.checked",
"dependencies": [
"Pulse.Typing.Combinators.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Soundness.Common.fst.checked",
"Pulse.Reflection.Util.fst.checked",
"Pulse.Elaborate.Pure.fst.checked",
"P... | [
"total"
] | [
"Pulse.Reflection.Util.mk_arrow",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Reflection.Types.term",
"FStar.Reflection.V2.Data.aqualv",
"FStar.Reflection.V2.Data.Q_Explicit",
"FStar.Reflection.Typing.close_term",
"Pulse.Reflection.Util.stt_vprop_equiv",
"Pulse.Elaborate.Pure.elab_term",
"Pulse.Synta... | [] | module Pulse.Soundness.VPropEquiv
module RT = FStar.Reflection.Typing
module R = FStar.Reflection.V2
module L = FStar.List.Tot
module T = FStar.Tactics.V2
open FStar.List.Tot
open Pulse.Syntax
open Pulse.Reflection.Util
open Pulse.Elaborate.Pure
open Pulse.Typing
open Pulse.Typing.Combinators
open Pulse.Elaborate
open ... | false | true | Pulse.Soundness.VPropEquiv.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val vprop_equiv_refl_type : FStar.Reflection.Types.term | [] | Pulse.Soundness.VPropEquiv.vprop_equiv_refl_type | {
"file_name": "lib/steel/pulse/Pulse.Soundness.VPropEquiv.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | FStar.Reflection.Types.term | {
"end_col": 52,
"end_line": 23,
"start_col": 27,
"start_line": 18
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Pulse.Checker.VPropEquiv",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Soundness.Common",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Elaborate",
"short_module": null
},
{
"abbrev": false... | false | let vprop_tm = R.pack_ln (R.Tv_FVar (R.pack_fv vprop_lid)) | let vprop_tm = | false | null | false | R.pack_ln (R.Tv_FVar (R.pack_fv vprop_lid)) | {
"checked_file": "Pulse.Soundness.VPropEquiv.fst.checked",
"dependencies": [
"Pulse.Typing.Combinators.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Soundness.Common.fst.checked",
"Pulse.Reflection.Util.fst.checked",
"Pulse.Elaborate.Pure.fst.checked",
"P... | [
"total"
] | [
"FStar.Reflection.V2.Builtins.pack_ln",
"FStar.Reflection.V2.Data.Tv_FVar",
"FStar.Reflection.V2.Builtins.pack_fv",
"Pulse.Reflection.Util.vprop_lid"
] | [] | module Pulse.Soundness.VPropEquiv
module RT = FStar.Reflection.Typing
module R = FStar.Reflection.V2
module L = FStar.List.Tot
module T = FStar.Tactics.V2
open FStar.List.Tot
open Pulse.Syntax
open Pulse.Reflection.Util
open Pulse.Elaborate.Pure
open Pulse.Typing
open Pulse.Typing.Combinators
open Pulse.Elaborate
open ... | false | true | Pulse.Soundness.VPropEquiv.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val vprop_tm : FStar.Reflection.Types.term | [] | Pulse.Soundness.VPropEquiv.vprop_tm | {
"file_name": "lib/steel/pulse/Pulse.Soundness.VPropEquiv.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | FStar.Reflection.Types.term | {
"end_col": 59,
"end_line": 108,
"start_col": 15,
"start_line": 108
} | |
Prims.GTot | val vprop_equiv_unit_soundness (#g:stt_env) (#v0 #v1:term)
(d0:tot_typing g v0 tm_vprop)
(eq:vprop_equiv g v0 v1)
: GTot (RT.tot_typing (elab_env g) (`())
(stt_vprop_equiv (elab_term v0) (elab_term v1))) | [
{
"abbrev": false,
"full_module": "Pulse.Checker.VPropEquiv",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Soundness.Common",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Elaborate",
"short_module": null
},
{
"abbrev": false... | false | let vprop_equiv_unit_soundness (#g:stt_env) (#v0 #v1:term)
(d0:tot_typing g v0 tm_vprop)
(eq:vprop_equiv g v0 v1)
: GTot (RT.tot_typing (elab_env g) (`()) (stt_vprop_equiv (elab_term v0) (elab_term v1)))
= let (| pf, s |) = vprop_equiv_soundness d0 eq i... | val vprop_equiv_unit_soundness (#g:stt_env) (#v0 #v1:term)
(d0:tot_typing g v0 tm_vprop)
(eq:vprop_equiv g v0 v1)
: GTot (RT.tot_typing (elab_env g) (`())
(stt_vprop_equiv (elab_term v0) (elab_term v1)))
let vprop_equiv_unit_soundness
(#... | false | null | false | let (| pf , s |) = vprop_equiv_soundness d0 eq in
let d1 = fst (vprop_equiv_typing eq) d0 in
let s_prop = stt_vprop_equiv_is_prop (tot_typing_soundness d0) (tot_typing_soundness d1) in
RT.T_PropIrrelevance _ _ _ _ _ s s_prop | {
"checked_file": "Pulse.Soundness.VPropEquiv.fst.checked",
"dependencies": [
"Pulse.Typing.Combinators.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Soundness.Common.fst.checked",
"Pulse.Reflection.Util.fst.checked",
"Pulse.Elaborate.Pure.fst.checked",
"P... | [
"sometrivial"
] | [
"Pulse.Soundness.Common.stt_env",
"Pulse.Syntax.Base.term",
"Pulse.Typing.tot_typing",
"Pulse.Syntax.Base.tm_vprop",
"Pulse.Typing.vprop_equiv",
"FStar.Reflection.Types.term",
"FStar.Reflection.Typing.tot_typing",
"Pulse.Typing.elab_env",
"Pulse.Reflection.Util.stt_vprop_equiv",
"Pulse.Elaborate.P... | [] | module Pulse.Soundness.VPropEquiv
module RT = FStar.Reflection.Typing
module R = FStar.Reflection.V2
module L = FStar.List.Tot
module T = FStar.Tactics.V2
open FStar.List.Tot
open Pulse.Syntax
open Pulse.Reflection.Util
open Pulse.Elaborate.Pure
open Pulse.Typing
open Pulse.Typing.Combinators
open Pulse.Elaborate
open ... | false | false | Pulse.Soundness.VPropEquiv.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val vprop_equiv_unit_soundness (#g:stt_env) (#v0 #v1:term)
(d0:tot_typing g v0 tm_vprop)
(eq:vprop_equiv g v0 v1)
: GTot (RT.tot_typing (elab_env g) (`())
(stt_vprop_equiv (elab_term v0) (elab_term v1))) | [] | Pulse.Soundness.VPropEquiv.vprop_equiv_unit_soundness | {
"file_name": "lib/steel/pulse/Pulse.Soundness.VPropEquiv.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | d0: Pulse.Typing.tot_typing g v0 Pulse.Syntax.Base.tm_vprop -> eq: Pulse.Typing.vprop_equiv g v0 v1
-> Prims.GTot
(FStar.Reflection.Typing.tot_typing (Pulse.Typing.elab_env g)
(`())
(Pulse.Reflection.Util.stt_vprop_equiv (Pulse.Elaborate.Pure.elab_term v0)
(Pulse.Elaborate.Pure.elab_te... | {
"end_col": 43,
"end_line": 253,
"start_col": 3,
"start_line": 250
} |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Pulse.Checker.VPropEquiv",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Soundness.Common",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Elaborate",
"short_module": null
},
{
"abbrev": false... | false | let vprop_equiv_sym_type =
let var0 = 0 in
let v0 = mk_name var0 in
let var1 = 1 in
let v1 = mk_name var1 in
let v_typ = elab_term tm_vprop in
mk_arrow
(v_typ, R.Q_Implicit)
(RT.close_term
(mk_arrow
(v_typ, R.Q_Implicit)
(RT.close_term
(mk_arrow
(stt_v... | let vprop_equiv_sym_type = | false | null | false | let var0 = 0 in
let v0 = mk_name var0 in
let var1 = 1 in
let v1 = mk_name var1 in
let v_typ = elab_term tm_vprop in
mk_arrow (v_typ, R.Q_Implicit)
(RT.close_term (mk_arrow (v_typ, R.Q_Implicit)
(RT.close_term (mk_arrow (stt_vprop_equiv v0 v1, R.Q_Explicit) (stt_vprop_equiv v0 v1))
var1))
... | {
"checked_file": "Pulse.Soundness.VPropEquiv.fst.checked",
"dependencies": [
"Pulse.Typing.Combinators.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Soundness.Common.fst.checked",
"Pulse.Reflection.Util.fst.checked",
"Pulse.Elaborate.Pure.fst.checked",
"P... | [
"total"
] | [
"Pulse.Reflection.Util.mk_arrow",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Reflection.Types.term",
"FStar.Reflection.V2.Data.aqualv",
"FStar.Reflection.V2.Data.Q_Implicit",
"FStar.Reflection.Typing.close_term",
"Pulse.Reflection.Util.stt_vprop_equiv",
"FStar.Reflection.V2.Data.Q_Explicit",
"Pulse.... | [] | module Pulse.Soundness.VPropEquiv
module RT = FStar.Reflection.Typing
module R = FStar.Reflection.V2
module L = FStar.List.Tot
module T = FStar.Tactics.V2
open FStar.List.Tot
open Pulse.Syntax
open Pulse.Reflection.Util
open Pulse.Elaborate.Pure
open Pulse.Typing
open Pulse.Typing.Combinators
open Pulse.Elaborate
open ... | false | true | Pulse.Soundness.VPropEquiv.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val vprop_equiv_sym_type : FStar.Reflection.Types.term | [] | Pulse.Soundness.VPropEquiv.vprop_equiv_sym_type | {
"file_name": "lib/steel/pulse/Pulse.Soundness.VPropEquiv.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | FStar.Reflection.Types.term | {
"end_col": 13,
"end_line": 46,
"start_col": 26,
"start_line": 31
} | |
Prims.Tot | val vprop_equiv_ext_type:R.term | [
{
"abbrev": false,
"full_module": "Pulse.Checker.VPropEquiv",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Soundness.Common",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Elaborate",
"short_module": null
},
{
"abbrev": false... | false | let vprop_equiv_ext_type : R.term =
let open R in
let v_typ = pack_ln (Tv_FVar (pack_fv vprop_lid)) in
let mk_bv index = pack_ln (Tv_BVar (pack_bv {
ppname = RT.pp_name_default;
index = index;
sort = Sealed.seal tun;
})) in
mk_arrow
(vprop_tm, Q_Explicit)
(
mk_arrow
(vprop_tm... | val vprop_equiv_ext_type:R.term
let vprop_equiv_ext_type:R.term = | false | null | false | let open R in
let v_typ = pack_ln (Tv_FVar (pack_fv vprop_lid)) in
let mk_bv index =
pack_ln (Tv_BVar
(pack_bv ({ ppname = RT.pp_name_default; index = index; sort = Sealed.seal tun })))
in
mk_arrow (vprop_tm, Q_Explicit)
(mk_arrow (vprop_tm, Q_Explicit)
(mk_arrow (vprop_eq_tm (mk_bv 1) (mk_bv 0), Q_Expl... | {
"checked_file": "Pulse.Soundness.VPropEquiv.fst.checked",
"dependencies": [
"Pulse.Typing.Combinators.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Soundness.Common.fst.checked",
"Pulse.Reflection.Util.fst.checked",
"Pulse.Elaborate.Pure.fst.checked",
"P... | [
"total"
] | [
"Pulse.Reflection.Util.mk_arrow",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Reflection.Types.term",
"FStar.Reflection.V2.Data.aqualv",
"Pulse.Soundness.VPropEquiv.vprop_tm",
"FStar.Reflection.V2.Data.Q_Explicit",
"Pulse.Reflection.Util.vprop_eq_tm",
"Pulse.Reflection.Util.stt_vprop_equiv",
"Prims.n... | [] | module Pulse.Soundness.VPropEquiv
module RT = FStar.Reflection.Typing
module R = FStar.Reflection.V2
module L = FStar.List.Tot
module T = FStar.Tactics.V2
open FStar.List.Tot
open Pulse.Syntax
open Pulse.Reflection.Util
open Pulse.Elaborate.Pure
open Pulse.Typing
open Pulse.Typing.Combinators
open Pulse.Elaborate
open ... | false | true | Pulse.Soundness.VPropEquiv.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val vprop_equiv_ext_type:R.term | [] | Pulse.Soundness.VPropEquiv.vprop_equiv_ext_type | {
"file_name": "lib/steel/pulse/Pulse.Soundness.VPropEquiv.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | FStar.Reflection.Types.term | {
"end_col": 5,
"end_line": 131,
"start_col": 15,
"start_line": 111
} |
Prims.GTot | val inst_vprop_equiv_ext
(#g #v0 #v1: _)
(d0: RT.tot_typing g v0 vprop_tm)
(d1: RT.tot_typing g v1 vprop_tm)
(token: T.equiv_token g v0 v1)
: GTot (pf: R.term & RT.tot_typing g pf (stt_vprop_equiv v0 v1)) | [
{
"abbrev": false,
"full_module": "Pulse.Checker.VPropEquiv",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Soundness.Common",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Elaborate",
"short_module": null
},
{
"abbrev": false... | false | let inst_vprop_equiv_ext #g #v0 #v1
(d0:RT.tot_typing g v0 vprop_tm)
(d1:RT.tot_typing g v1 vprop_tm)
(token:T.equiv_token g v0 v1)
: GTot (pf:R.term &
RT.tot_typing g pf (stt_vprop_equiv v0 v1)) =
let (| pf, typing |)
: (pf:R.term &
RT.tot_typing g pf (stt_vprop_equiv v0 v0)) =
inst... | val inst_vprop_equiv_ext
(#g #v0 #v1: _)
(d0: RT.tot_typing g v0 vprop_tm)
(d1: RT.tot_typing g v1 vprop_tm)
(token: T.equiv_token g v0 v1)
: GTot (pf: R.term & RT.tot_typing g pf (stt_vprop_equiv v0 v1))
let inst_vprop_equiv_ext
#g
#v0
#v1
(d0: RT.tot_typing g v0 vpr... | false | null | false | let (| pf , typing |):(pf: R.term & RT.tot_typing g pf (stt_vprop_equiv v0 v0)) =
inst_vprop_equiv_refl d0
in
let d_st_equiv:RT.equiv g (stt_vprop_equiv v0 v0) (stt_vprop_equiv v0 v1) =
inst_vprop_equiv_ext_aux token
in
let sub_typing:RT.sub_typing g (stt_vprop_equiv v0 v0) (stt_vprop_equiv v0 v1) =
RT.Rel_equiv ... | {
"checked_file": "Pulse.Soundness.VPropEquiv.fst.checked",
"dependencies": [
"Pulse.Typing.Combinators.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Soundness.Common.fst.checked",
"Pulse.Reflection.Util.fst.checked",
"Pulse.Elaborate.Pure.fst.checked",
"P... | [
"sometrivial"
] | [
"FStar.Reflection.Types.env",
"FStar.Reflection.Types.term",
"FStar.Reflection.Typing.tot_typing",
"Pulse.Soundness.VPropEquiv.vprop_tm",
"FStar.Tactics.Types.equiv_token",
"Pulse.Reflection.Util.stt_vprop_equiv",
"Prims.Mkdtuple2",
"FStar.Reflection.Typing.T_Sub",
"FStar.Pervasives.Native.Mktuple2"... | [] | module Pulse.Soundness.VPropEquiv
module RT = FStar.Reflection.Typing
module R = FStar.Reflection.V2
module L = FStar.List.Tot
module T = FStar.Tactics.V2
open FStar.List.Tot
open Pulse.Syntax
open Pulse.Reflection.Util
open Pulse.Elaborate.Pure
open Pulse.Typing
open Pulse.Typing.Combinators
open Pulse.Elaborate
open ... | false | false | Pulse.Soundness.VPropEquiv.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val inst_vprop_equiv_ext
(#g #v0 #v1: _)
(d0: RT.tot_typing g v0 vprop_tm)
(d1: RT.tot_typing g v1 vprop_tm)
(token: T.equiv_token g v0 v1)
: GTot (pf: R.term & RT.tot_typing g pf (stt_vprop_equiv v0 v1)) | [] | Pulse.Soundness.VPropEquiv.inst_vprop_equiv_ext | {
"file_name": "lib/steel/pulse/Pulse.Soundness.VPropEquiv.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} |
d0: FStar.Reflection.Typing.tot_typing g v0 Pulse.Soundness.VPropEquiv.vprop_tm ->
d1: FStar.Reflection.Typing.tot_typing g v1 Pulse.Soundness.VPropEquiv.vprop_tm ->
token: FStar.Tactics.Types.equiv_token g v0 v1
-> Prims.GTot
(Prims.dtuple2 FStar.Reflection.Types.term
(fun pf ->
... | {
"end_col": 21,
"end_line": 169,
"start_col": 55,
"start_line": 149
} |
Prims.GTot | val inst_vprop_equiv_ext_aux (#g #v0 #v1: _) (token: T.equiv_token g v0 v1)
: GTot (RT.equiv g (stt_vprop_equiv v0 v0) (stt_vprop_equiv v0 v1)) | [
{
"abbrev": false,
"full_module": "Pulse.Checker.VPropEquiv",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Soundness.Common",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Elaborate",
"short_module": null
},
{
"abbrev": false... | false | let inst_vprop_equiv_ext_aux #g #v0 #v1
(token:T.equiv_token g v0 v1)
: GTot (RT.equiv g (stt_vprop_equiv v0 v0) (stt_vprop_equiv v0 v1)) =
let ctxt = RT.Ctxt_app_arg
(R.pack_ln (R.Tv_App stt_vprop_equiv_tm (v0, R.Q_Explicit)))
R.Q_Explicit
RT.Ctxt_hole in
RT.Rel_ctxt _ _ _ ctxt (RT.Rel_eq_token _... | val inst_vprop_equiv_ext_aux (#g #v0 #v1: _) (token: T.equiv_token g v0 v1)
: GTot (RT.equiv g (stt_vprop_equiv v0 v0) (stt_vprop_equiv v0 v1))
let inst_vprop_equiv_ext_aux #g #v0 #v1 (token: T.equiv_token g v0 v1)
: GTot (RT.equiv g (stt_vprop_equiv v0 v0) (stt_vprop_equiv v0 v1)) = | false | null | false | let ctxt =
RT.Ctxt_app_arg (R.pack_ln (R.Tv_App stt_vprop_equiv_tm (v0, R.Q_Explicit)))
R.Q_Explicit
RT.Ctxt_hole
in
RT.Rel_ctxt _ _ _ ctxt (RT.Rel_eq_token _ _ _ (Squash.return_squash token)) | {
"checked_file": "Pulse.Soundness.VPropEquiv.fst.checked",
"dependencies": [
"Pulse.Typing.Combinators.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Soundness.Common.fst.checked",
"Pulse.Reflection.Util.fst.checked",
"Pulse.Elaborate.Pure.fst.checked",
"P... | [
"sometrivial"
] | [
"FStar.Reflection.Types.env",
"FStar.Reflection.Types.typ",
"FStar.Tactics.Types.equiv_token",
"FStar.Reflection.Typing.Rel_ctxt",
"FStar.Reflection.Typing.Rel_eq_token",
"FStar.Squash.return_squash",
"FStar.Reflection.Typing.term_ctxt",
"FStar.Reflection.Typing.Ctxt_app_arg",
"FStar.Reflection.V2.B... | [] | module Pulse.Soundness.VPropEquiv
module RT = FStar.Reflection.Typing
module R = FStar.Reflection.V2
module L = FStar.List.Tot
module T = FStar.Tactics.V2
open FStar.List.Tot
open Pulse.Syntax
open Pulse.Reflection.Util
open Pulse.Elaborate.Pure
open Pulse.Typing
open Pulse.Typing.Combinators
open Pulse.Elaborate
open ... | false | false | Pulse.Soundness.VPropEquiv.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val inst_vprop_equiv_ext_aux (#g #v0 #v1: _) (token: T.equiv_token g v0 v1)
: GTot (RT.equiv g (stt_vprop_equiv v0 v0) (stt_vprop_equiv v0 v1)) | [] | Pulse.Soundness.VPropEquiv.inst_vprop_equiv_ext_aux | {
"file_name": "lib/steel/pulse/Pulse.Soundness.VPropEquiv.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | token: FStar.Tactics.Types.equiv_token g v0 v1
-> Prims.GTot
(FStar.Reflection.Typing.equiv g
(Pulse.Reflection.Util.stt_vprop_equiv v0 v0)
(Pulse.Reflection.Util.stt_vprop_equiv v0 v1)) | {
"end_col": 77,
"end_line": 142,
"start_col": 71,
"start_line": 135
} |
Prims.GTot | val vprop_equiv_soundness
(#g: stt_env)
(#v0 #v1: term)
(d: tot_typing g v0 tm_vprop)
(eq: vprop_equiv g v0 v1)
: GTot
(pf: R.term & RT.tot_typing (elab_env g) pf (stt_vprop_equiv (elab_term v0) (elab_term v1)))
(decreases eq) | [
{
"abbrev": false,
"full_module": "Pulse.Checker.VPropEquiv",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Soundness.Common",
"short_module": null
},
{
"abbrev": false,
"full_module": "Pulse.Elaborate",
"short_module": null
},
{
"abbrev": false... | false | let rec vprop_equiv_soundness (#g:stt_env) (#v0 #v1:term)
(d:tot_typing g v0 tm_vprop)
(eq:vprop_equiv g v0 v1)
: GTot (pf:R.term &
RT.tot_typing (elab_env g)
pf
(stt_vprop_equiv (elab_term v0) (elab... | val vprop_equiv_soundness
(#g: stt_env)
(#v0 #v1: term)
(d: tot_typing g v0 tm_vprop)
(eq: vprop_equiv g v0 v1)
: GTot
(pf: R.term & RT.tot_typing (elab_env g) pf (stt_vprop_equiv (elab_term v0) (elab_term v1)))
(decreases eq)
let rec vprop_equiv_soundness
(#g: stt_env)
... | false | null | false | match eq with
| VE_Refl _ _ ->
let d = tot_typing_soundness d in
inst_vprop_equiv_refl d
| VE_Sym g _v1 _v0 eq' ->
let fwd, _ = vprop_equiv_typing eq in
let d' = fwd d in
let (| pf , dd |) = vprop_equiv_soundness d' eq' in
inst_vprop_equiv_sym (tot_typing_soundness d') (tot_typing_soundness d) dd
| VE_Trans... | {
"checked_file": "Pulse.Soundness.VPropEquiv.fst.checked",
"dependencies": [
"Pulse.Typing.Combinators.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Soundness.Common.fst.checked",
"Pulse.Reflection.Util.fst.checked",
"Pulse.Elaborate.Pure.fst.checked",
"P... | [
"sometrivial",
""
] | [
"Pulse.Soundness.Common.stt_env",
"Pulse.Syntax.Base.term",
"Pulse.Typing.tot_typing",
"Pulse.Syntax.Base.tm_vprop",
"Pulse.Typing.vprop_equiv",
"Pulse.Typing.Env.env",
"Pulse.Soundness.VPropEquiv.inst_vprop_equiv_refl",
"Pulse.Typing.elab_env",
"Pulse.Elaborate.Pure.elab_term",
"FStar.Reflection.... | [] | module Pulse.Soundness.VPropEquiv
module RT = FStar.Reflection.Typing
module R = FStar.Reflection.V2
module L = FStar.List.Tot
module T = FStar.Tactics.V2
open FStar.List.Tot
open Pulse.Syntax
open Pulse.Reflection.Util
open Pulse.Elaborate.Pure
open Pulse.Typing
open Pulse.Typing.Combinators
open Pulse.Elaborate
open ... | false | false | Pulse.Soundness.VPropEquiv.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val vprop_equiv_soundness
(#g: stt_env)
(#v0 #v1: term)
(d: tot_typing g v0 tm_vprop)
(eq: vprop_equiv g v0 v1)
: GTot
(pf: R.term & RT.tot_typing (elab_env g) pf (stt_vprop_equiv (elab_term v0) (elab_term v1)))
(decreases eq) | [
"recursion"
] | Pulse.Soundness.VPropEquiv.vprop_equiv_soundness | {
"file_name": "lib/steel/pulse/Pulse.Soundness.VPropEquiv.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | d: Pulse.Typing.tot_typing g v0 Pulse.Syntax.Base.tm_vprop -> eq: Pulse.Typing.vprop_equiv g v0 v1
-> Prims.GTot
(Prims.dtuple2 FStar.Reflection.Types.term
(fun pf ->
FStar.Reflection.Typing.tot_typing (Pulse.Typing.elab_env g)
pf
(Pulse.Reflection.Util.stt_vprop_eq... | {
"end_col": 32,
"end_line": 237,
"start_col": 4,
"start_line": 180
} |
Prims.Tot | val mk_nat_mont_ll_comm_monoid (pbits rLen n: pos) (mu: nat{M.mont_pre pbits rLen n mu})
: LE.comm_monoid (nat_mod n) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | false | let mk_nat_mont_ll_comm_monoid (pbits:pos) (rLen:pos)
(n:pos) (mu:nat{M.mont_pre pbits rLen n mu}) : LE.comm_monoid (nat_mod n) = {
LE.one = mont_one_ll pbits rLen n mu;
LE.mul = mont_mul_ll pbits rLen n mu;
LE.lemma_one = lemma_mont_one_ll pbits rLen n mu;
LE.lemma_mul_assoc = lemma_mont_mul_ll_assoc pbits r... | val mk_nat_mont_ll_comm_monoid (pbits rLen n: pos) (mu: nat{M.mont_pre pbits rLen n mu})
: LE.comm_monoid (nat_mod n)
let mk_nat_mont_ll_comm_monoid (pbits rLen n: pos) (mu: nat{M.mont_pre pbits rLen n mu})
: LE.comm_monoid (nat_mod n) = | false | null | false | {
LE.one = mont_one_ll pbits rLen n mu;
LE.mul = mont_mul_ll pbits rLen n mu;
LE.lemma_one = lemma_mont_one_ll pbits rLen n mu;
LE.lemma_mul_assoc = lemma_mont_mul_ll_assoc pbits rLen n mu;
LE.lemma_mul_comm = lemma_mont_mul_ll_comm pbits rLen n mu
} | {
"checked_file": "Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery... | [
"total"
] | [
"Prims.pos",
"Prims.nat",
"Hacl.Spec.Montgomery.Lemmas.mont_pre",
"Lib.Exponentiation.Definition.Mkcomm_monoid",
"Lib.NatMod.nat_mod",
"Hacl.Spec.Exponentiation.Lemmas.mont_one_ll",
"Hacl.Spec.Exponentiation.Lemmas.mont_mul_ll",
"Hacl.Spec.Exponentiation.Lemmas.lemma_mont_one_ll",
"Hacl.Spec.Exponen... | [] | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | false | false | Hacl.Spec.Exponentiation.Lemmas.fst | {
"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... | null | val mk_nat_mont_ll_comm_monoid (pbits rLen n: pos) (mu: nat{M.mont_pre pbits rLen n mu})
: LE.comm_monoid (nat_mod n) | [] | Hacl.Spec.Exponentiation.Lemmas.mk_nat_mont_ll_comm_monoid | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
pbits: Prims.pos ->
rLen: Prims.pos ->
n: Prims.pos ->
mu: Prims.nat{Hacl.Spec.Montgomery.Lemmas.mont_pre pbits rLen n mu}
-> Lib.Exponentiation.Definition.comm_monoid (Lib.NatMod.nat_mod n) | {
"end_col": 61,
"end_line": 209,
"start_col": 2,
"start_line": 205
} |
Prims.Tot | val mont_one: n:pos -> r:pos -> nat_mod n | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | false | let mont_one n r = 1 * r % n | val mont_one: n:pos -> r:pos -> nat_mod n
let mont_one n r = | false | null | false | 1 * r % n | {
"checked_file": "Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery... | [
"total"
] | [
"Prims.pos",
"Prims.op_Modulus",
"FStar.Mul.op_Star",
"Lib.NatMod.nat_mod"
] | [] | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | false | false | Hacl.Spec.Exponentiation.Lemmas.fst | {
"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... | null | val mont_one: n:pos -> r:pos -> nat_mod n | [] | Hacl.Spec.Exponentiation.Lemmas.mont_one | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | n: Prims.pos -> r: Prims.pos -> Lib.NatMod.nat_mod n | {
"end_col": 28,
"end_line": 20,
"start_col": 19,
"start_line": 20
} |
Prims.Tot | val mont_mul_ll: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu}
-> a:nat_mod n -> b:nat_mod n -> nat_mod n | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | false | let mont_mul_ll pbits rLen n mu a b =
M.mont_mul_lemma pbits rLen n mu a b;
M.mont_mul pbits rLen n mu a b | val mont_mul_ll: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu}
-> a:nat_mod n -> b:nat_mod n -> nat_mod n
let mont_mul_ll pbits rLen n mu a b = | false | null | false | M.mont_mul_lemma pbits rLen n mu a b;
M.mont_mul pbits rLen n mu a b | {
"checked_file": "Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery... | [
"total"
] | [
"Prims.pos",
"Prims.nat",
"Hacl.Spec.Montgomery.Lemmas.mont_pre",
"Lib.NatMod.nat_mod",
"Hacl.Spec.Montgomery.Lemmas.mont_mul",
"Prims.unit",
"Hacl.Spec.Montgomery.Lemmas.mont_mul_lemma"
] | [] | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | false | false | Hacl.Spec.Exponentiation.Lemmas.fst | {
"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... | null | val mont_mul_ll: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu}
-> a:nat_mod n -> b:nat_mod n -> nat_mod n | [] | Hacl.Spec.Exponentiation.Lemmas.mont_mul_ll | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
pbits: Prims.pos ->
rLen: Prims.pos ->
n: Prims.pos ->
mu: Prims.nat{Hacl.Spec.Montgomery.Lemmas.mont_pre pbits rLen n mu} ->
a: Lib.NatMod.nat_mod n ->
b: Lib.NatMod.nat_mod n
-> Lib.NatMod.nat_mod n | {
"end_col": 32,
"end_line": 155,
"start_col": 2,
"start_line": 154
} |
Prims.Tot | val mont_mul: n:pos -> d:int -> a:nat_mod n -> b:nat_mod n -> nat_mod n | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | false | let mont_mul n d a b = a * b * d % n | val mont_mul: n:pos -> d:int -> a:nat_mod n -> b:nat_mod n -> nat_mod n
let mont_mul n d a b = | false | null | false | (a * b) * d % n | {
"checked_file": "Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery... | [
"total"
] | [
"Prims.pos",
"Prims.int",
"Lib.NatMod.nat_mod",
"Prims.op_Modulus",
"FStar.Mul.op_Star"
] | [] | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | false | false | Hacl.Spec.Exponentiation.Lemmas.fst | {
"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... | null | val mont_mul: n:pos -> d:int -> a:nat_mod n -> b:nat_mod n -> nat_mod n | [] | Hacl.Spec.Exponentiation.Lemmas.mont_mul | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | n: Prims.pos -> d: Prims.int -> a: Lib.NatMod.nat_mod n -> b: Lib.NatMod.nat_mod n
-> Lib.NatMod.nat_mod n | {
"end_col": 36,
"end_line": 23,
"start_col": 23,
"start_line": 23
} |
FStar.Pervasives.Lemma | val lemma_mont_mul_ll_assoc: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu}
-> a:nat_mod n -> b:nat_mod n -> c:nat_mod n ->
Lemma (mont_mul_ll pbits rLen n mu (mont_mul_ll pbits rLen n mu a b) c ==
mont_mul_ll pbits rLen n mu a (mont_mul_ll pbits rLen n mu b c)) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | false | let lemma_mont_mul_ll_assoc pbits rLen n mu a b c =
let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
M.mont_mul_lemma pbits rLen n mu a b;
M.mont_mul_lemma pbits rLen n mu (mont_mul_ll pbits rLen n mu a b) c;
M.mont_mul_lemma pbits rLen n mu ... | val lemma_mont_mul_ll_assoc: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu}
-> a:nat_mod n -> b:nat_mod n -> c:nat_mod n ->
Lemma (mont_mul_ll pbits rLen n mu (mont_mul_ll pbits rLen n mu a b) c ==
mont_mul_ll pbits rLen n mu a (mont_mul_ll pbits rLen n mu b c))
let lemma_mont_mul_ll_assoc... | false | null | true | let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
M.mont_mul_lemma pbits rLen n mu a b;
M.mont_mul_lemma pbits rLen n mu (mont_mul_ll pbits rLen n mu a b) c;
M.mont_mul_lemma pbits rLen n mu b c;
M.mont_mul_lemma pbits rLen n mu a (mont_mul_ll pbits rLen n... | {
"checked_file": "Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery... | [
"lemma"
] | [
"Prims.pos",
"Prims.nat",
"Hacl.Spec.Montgomery.Lemmas.mont_pre",
"Lib.NatMod.nat_mod",
"Prims.int",
"Hacl.Spec.Exponentiation.Lemmas.lemma_mont_mul_assoc",
"Prims.unit",
"Hacl.Spec.Montgomery.Lemmas.mont_mul_lemma",
"Hacl.Spec.Exponentiation.Lemmas.mont_mul_ll",
"Hacl.Spec.Montgomery.Lemmas.mont_... | [] | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | false | false | Hacl.Spec.Exponentiation.Lemmas.fst | {
"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... | null | val lemma_mont_mul_ll_assoc: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu}
-> a:nat_mod n -> b:nat_mod n -> c:nat_mod n ->
Lemma (mont_mul_ll pbits rLen n mu (mont_mul_ll pbits rLen n mu a b) c ==
mont_mul_ll pbits rLen n mu a (mont_mul_ll pbits rLen n mu b c)) | [] | Hacl.Spec.Exponentiation.Lemmas.lemma_mont_mul_ll_assoc | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
pbits: Prims.pos ->
rLen: Prims.pos ->
n: Prims.pos ->
mu: Prims.nat{Hacl.Spec.Montgomery.Lemmas.mont_pre pbits rLen n mu} ->
a: Lib.NatMod.nat_mod n ->
b: Lib.NatMod.nat_mod n ->
c: Lib.NatMod.nat_mod n
-> FStar.Pervasives.Lemma
(ensures
Hacl.Spec.Exponentiation.Lemmas.mont_mul... | {
"end_col": 32,
"end_line": 186,
"start_col": 51,
"start_line": 177
} |
Prims.Tot | val mont_one_ll: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu} -> nat_mod n | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | false | let mont_one_ll pbits rLen n mu =
M.mont_one_lemma pbits rLen n mu;
M.mont_one pbits rLen n mu | val mont_one_ll: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu} -> nat_mod n
let mont_one_ll pbits rLen n mu = | false | null | false | M.mont_one_lemma pbits rLen n mu;
M.mont_one pbits rLen n mu | {
"checked_file": "Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery... | [
"total"
] | [
"Prims.pos",
"Prims.nat",
"Hacl.Spec.Montgomery.Lemmas.mont_pre",
"Hacl.Spec.Montgomery.Lemmas.mont_one",
"Prims.unit",
"Hacl.Spec.Montgomery.Lemmas.mont_one_lemma",
"Lib.NatMod.nat_mod"
] | [] | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | false | false | Hacl.Spec.Exponentiation.Lemmas.fst | {
"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... | null | val mont_one_ll: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu} -> nat_mod n | [] | Hacl.Spec.Exponentiation.Lemmas.mont_one_ll | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
pbits: Prims.pos ->
rLen: Prims.pos ->
n: Prims.pos ->
mu: Prims.nat{Hacl.Spec.Montgomery.Lemmas.mont_pre pbits rLen n mu}
-> Lib.NatMod.nat_mod n | {
"end_col": 28,
"end_line": 149,
"start_col": 2,
"start_line": 148
} |
FStar.Pervasives.Lemma | val lemma_mont_one_ll: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu} -> a:nat_mod n ->
Lemma (mont_mul_ll pbits rLen n mu a (mont_one_ll pbits rLen n mu) == a) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | false | let lemma_mont_one_ll pbits rLen n mu a =
let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
let mont_one = mont_one_ll pbits rLen n mu in
M.mont_one_lemma pbits rLen n mu;
assert (mont_one == 1 * r % n);
M.mont_mul_lemma pbits rLen n mu a mo... | val lemma_mont_one_ll: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu} -> a:nat_mod n ->
Lemma (mont_mul_ll pbits rLen n mu a (mont_one_ll pbits rLen n mu) == a)
let lemma_mont_one_ll pbits rLen n mu a = | false | null | true | let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
let mont_one = mont_one_ll pbits rLen n mu in
M.mont_one_lemma pbits rLen n mu;
assert (mont_one == 1 * r % n);
M.mont_mul_lemma pbits rLen n mu a mont_one;
lemma_mont_one n r d a | {
"checked_file": "Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery... | [
"lemma"
] | [
"Prims.pos",
"Prims.nat",
"Hacl.Spec.Montgomery.Lemmas.mont_pre",
"Lib.NatMod.nat_mod",
"Prims.int",
"Hacl.Spec.Exponentiation.Lemmas.lemma_mont_one",
"Prims.unit",
"Hacl.Spec.Montgomery.Lemmas.mont_mul_lemma",
"Prims._assert",
"Prims.eq2",
"Prims.op_Modulus",
"FStar.Mul.op_Star",
"Hacl.Spec... | [] | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | false | false | Hacl.Spec.Exponentiation.Lemmas.fst | {
"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... | null | val lemma_mont_one_ll: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu} -> a:nat_mod n ->
Lemma (mont_mul_ll pbits rLen n mu a (mont_one_ll pbits rLen n mu) == a) | [] | Hacl.Spec.Exponentiation.Lemmas.lemma_mont_one_ll | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
pbits: Prims.pos ->
rLen: Prims.pos ->
n: Prims.pos ->
mu: Prims.nat{Hacl.Spec.Montgomery.Lemmas.mont_pre pbits rLen n mu} ->
a: Lib.NatMod.nat_mod n
-> FStar.Pervasives.Lemma
(ensures
Hacl.Spec.Exponentiation.Lemmas.mont_mul_ll pbits
rLen
n
mu
a
... | {
"end_col": 24,
"end_line": 169,
"start_col": 41,
"start_line": 160
} |
Prims.Tot | val mod_exp_mont_ll: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu}
-> a:nat_mod n -> b:nat -> nat_mod n | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | false | let mod_exp_mont_ll pbits rLen n mu a b =
let aM = M.to_mont pbits rLen n mu a in
M.to_mont_lemma pbits rLen n mu a;
let accM = LE.pow (mk_nat_mont_ll_comm_monoid pbits rLen n mu) aM b in
let acc = M.from_mont pbits rLen n mu accM in
M.from_mont_lemma pbits rLen n mu accM;
acc | val mod_exp_mont_ll: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu}
-> a:nat_mod n -> b:nat -> nat_mod n
let mod_exp_mont_ll pbits rLen n mu a b = | false | null | false | let aM = M.to_mont pbits rLen n mu a in
M.to_mont_lemma pbits rLen n mu a;
let accM = LE.pow (mk_nat_mont_ll_comm_monoid pbits rLen n mu) aM b in
let acc = M.from_mont pbits rLen n mu accM in
M.from_mont_lemma pbits rLen n mu accM;
acc | {
"checked_file": "Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery... | [
"total"
] | [
"Prims.pos",
"Prims.nat",
"Hacl.Spec.Montgomery.Lemmas.mont_pre",
"Lib.NatMod.nat_mod",
"Prims.unit",
"Hacl.Spec.Montgomery.Lemmas.from_mont_lemma",
"Hacl.Spec.Montgomery.Lemmas.from_mont",
"Lib.Exponentiation.Definition.pow",
"Hacl.Spec.Exponentiation.Lemmas.mk_nat_mont_ll_comm_monoid",
"Hacl.Spe... | [] | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | false | false | Hacl.Spec.Exponentiation.Lemmas.fst | {
"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... | null | val mod_exp_mont_ll: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu}
-> a:nat_mod n -> b:nat -> nat_mod n | [] | Hacl.Spec.Exponentiation.Lemmas.mod_exp_mont_ll | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
pbits: Prims.pos ->
rLen: Prims.pos ->
n: Prims.pos ->
mu: Prims.nat{Hacl.Spec.Montgomery.Lemmas.mont_pre pbits rLen n mu} ->
a: Lib.NatMod.nat_mod n ->
b: Prims.nat
-> Lib.NatMod.nat_mod n | {
"end_col": 5,
"end_line": 256,
"start_col": 41,
"start_line": 250
} |
FStar.Pervasives.Lemma | val lemma_mont_mul_ll_comm: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu}
-> a:nat_mod n -> b:nat_mod n ->
Lemma (mont_mul_ll pbits rLen n mu a b == mont_mul_ll pbits rLen n mu b a) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | false | let lemma_mont_mul_ll_comm pbits rLen n mu a b =
let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
M.mont_mul_lemma pbits rLen n mu a b;
M.mont_mul_lemma pbits rLen n mu b a;
lemma_mont_mul_comm n d a b | val lemma_mont_mul_ll_comm: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu}
-> a:nat_mod n -> b:nat_mod n ->
Lemma (mont_mul_ll pbits rLen n mu a b == mont_mul_ll pbits rLen n mu b a)
let lemma_mont_mul_ll_comm pbits rLen n mu a b = | false | null | true | let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
M.mont_mul_lemma pbits rLen n mu a b;
M.mont_mul_lemma pbits rLen n mu b a;
lemma_mont_mul_comm n d a b | {
"checked_file": "Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery... | [
"lemma"
] | [
"Prims.pos",
"Prims.nat",
"Hacl.Spec.Montgomery.Lemmas.mont_pre",
"Lib.NatMod.nat_mod",
"Prims.int",
"Hacl.Spec.Exponentiation.Lemmas.lemma_mont_mul_comm",
"Prims.unit",
"Hacl.Spec.Montgomery.Lemmas.mont_mul_lemma",
"Hacl.Spec.Montgomery.Lemmas.mont_preconditions_d",
"FStar.Pervasives.Native.tuple... | [] | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | false | false | Hacl.Spec.Exponentiation.Lemmas.fst | {
"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... | null | val lemma_mont_mul_ll_comm: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu}
-> a:nat_mod n -> b:nat_mod n ->
Lemma (mont_mul_ll pbits rLen n mu a b == mont_mul_ll pbits rLen n mu b a) | [] | Hacl.Spec.Exponentiation.Lemmas.lemma_mont_mul_ll_comm | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
pbits: Prims.pos ->
rLen: Prims.pos ->
n: Prims.pos ->
mu: Prims.nat{Hacl.Spec.Montgomery.Lemmas.mont_pre pbits rLen n mu} ->
a: Lib.NatMod.nat_mod n ->
b: Lib.NatMod.nat_mod n
-> FStar.Pervasives.Lemma
(ensures
Hacl.Spec.Exponentiation.Lemmas.mont_mul_ll pbits rLen n mu a b ==
... | {
"end_col": 29,
"end_line": 200,
"start_col": 48,
"start_line": 193
} |
Prims.Tot | val mk_nat_mont_comm_monoid (n: pos) (r: nat) (d: int{r * d % n = 1}) : LE.comm_monoid (nat_mod n) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | false | let mk_nat_mont_comm_monoid (n:pos) (r:nat) (d:int{r * d % n = 1}) : LE.comm_monoid (nat_mod n) = {
LE.one = mont_one n r;
LE.mul = mont_mul n d;
LE.lemma_one = lemma_mont_one n r d;
LE.lemma_mul_assoc = lemma_mont_mul_assoc n d;
LE.lemma_mul_comm = lemma_mont_mul_comm n d;
} | val mk_nat_mont_comm_monoid (n: pos) (r: nat) (d: int{r * d % n = 1}) : LE.comm_monoid (nat_mod n)
let mk_nat_mont_comm_monoid (n: pos) (r: nat) (d: int{r * d % n = 1}) : LE.comm_monoid (nat_mod n) = | false | null | false | {
LE.one = mont_one n r;
LE.mul = mont_mul n d;
LE.lemma_one = lemma_mont_one n r d;
LE.lemma_mul_assoc = lemma_mont_mul_assoc n d;
LE.lemma_mul_comm = lemma_mont_mul_comm n d
} | {
"checked_file": "Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery... | [
"total"
] | [
"Prims.pos",
"Prims.nat",
"Prims.int",
"Prims.b2t",
"Prims.op_Equality",
"Prims.op_Modulus",
"FStar.Mul.op_Star",
"Lib.Exponentiation.Definition.Mkcomm_monoid",
"Lib.NatMod.nat_mod",
"Hacl.Spec.Exponentiation.Lemmas.mont_one",
"Hacl.Spec.Exponentiation.Lemmas.mont_mul",
"Hacl.Spec.Exponentiati... | [] | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | false | false | Hacl.Spec.Exponentiation.Lemmas.fst | {
"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... | null | val mk_nat_mont_comm_monoid (n: pos) (r: nat) (d: int{r * d % n = 1}) : LE.comm_monoid (nat_mod n) | [] | Hacl.Spec.Exponentiation.Lemmas.mk_nat_mont_comm_monoid | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | n: Prims.pos -> r: Prims.nat -> d: Prims.int{r * d % n = 1}
-> Lib.Exponentiation.Definition.comm_monoid (Lib.NatMod.nat_mod n) | {
"end_col": 46,
"end_line": 71,
"start_col": 2,
"start_line": 67
} |
Prims.Tot | val mod_exp_mont: n:pos -> r:pos -> d:int{r * d % n == 1} -> a:nat_mod n -> b:nat -> nat_mod n | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | false | let mod_exp_mont n r d a b =
let aM = a * r % n in
let accM = LE.pow (mk_nat_mont_comm_monoid n r d) aM b in
let acc = accM * d % n in
acc | val mod_exp_mont: n:pos -> r:pos -> d:int{r * d % n == 1} -> a:nat_mod n -> b:nat -> nat_mod n
let mod_exp_mont n r d a b = | false | null | false | let aM = a * r % n in
let accM = LE.pow (mk_nat_mont_comm_monoid n r d) aM b in
let acc = accM * d % n in
acc | {
"checked_file": "Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery... | [
"total"
] | [
"Prims.pos",
"Prims.int",
"Prims.eq2",
"Prims.op_Modulus",
"FStar.Mul.op_Star",
"Lib.NatMod.nat_mod",
"Prims.nat",
"Lib.Exponentiation.Definition.pow",
"Hacl.Spec.Exponentiation.Lemmas.mk_nat_mont_comm_monoid"
] | [] | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | false | false | Hacl.Spec.Exponentiation.Lemmas.fst | {
"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... | null | val mod_exp_mont: n:pos -> r:pos -> d:int{r * d % n == 1} -> a:nat_mod n -> b:nat -> nat_mod n | [] | Hacl.Spec.Exponentiation.Lemmas.mod_exp_mont | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
n: Prims.pos ->
r: Prims.pos ->
d: Prims.int{r * d % n == 1} ->
a: Lib.NatMod.nat_mod n ->
b: Prims.nat
-> Lib.NatMod.nat_mod n | {
"end_col": 5,
"end_line": 115,
"start_col": 28,
"start_line": 111
} |
FStar.Pervasives.Lemma | val mod_exp_mont_ll_lemma: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu}
-> a:nat_mod n -> b:nat ->
Lemma (mod_exp_mont_ll pbits rLen n mu a b == pow_mod #n a b) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | false | let mod_exp_mont_ll_lemma pbits rLen n mu a b =
let k = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
let aM = M.to_mont pbits rLen n mu a in
M.to_mont_lemma pbits rLen n mu a;
let accM = LE.pow k aM b in
assert (accM == LE.pow k aM b /\ accM < n);
Math.Lemmas.small_mod accM n;
mod_exp_mont_ll_mod_lemma ... | val mod_exp_mont_ll_lemma: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu}
-> a:nat_mod n -> b:nat ->
Lemma (mod_exp_mont_ll pbits rLen n mu a b == pow_mod #n a b)
let mod_exp_mont_ll_lemma pbits rLen n mu a b = | false | null | true | let k = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
let aM = M.to_mont pbits rLen n mu a in
M.to_mont_lemma pbits rLen n mu a;
let accM = LE.pow k aM b in
assert (accM == LE.pow k aM b /\ accM < n);
Math.Lemmas.small_mod accM n;
mod_exp_mont_ll_mod_lemma pbits rLen n mu a b accM | {
"checked_file": "Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery... | [
"lemma"
] | [
"Prims.pos",
"Prims.nat",
"Hacl.Spec.Montgomery.Lemmas.mont_pre",
"Lib.NatMod.nat_mod",
"Hacl.Spec.Exponentiation.Lemmas.mod_exp_mont_ll_mod_lemma",
"Prims.unit",
"FStar.Math.Lemmas.small_mod",
"Prims._assert",
"Prims.l_and",
"Prims.eq2",
"Lib.Exponentiation.Definition.pow",
"Prims.b2t",
"Pr... | [] | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | false | false | Hacl.Spec.Exponentiation.Lemmas.fst | {
"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... | null | val mod_exp_mont_ll_lemma: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu}
-> a:nat_mod n -> b:nat ->
Lemma (mod_exp_mont_ll pbits rLen n mu a b == pow_mod #n a b) | [] | Hacl.Spec.Exponentiation.Lemmas.mod_exp_mont_ll_lemma | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
pbits: Prims.pos ->
rLen: Prims.pos ->
n: Prims.pos ->
mu: Prims.nat{Hacl.Spec.Montgomery.Lemmas.mont_pre pbits rLen n mu} ->
a: Lib.NatMod.nat_mod n ->
b: Prims.nat
-> FStar.Pervasives.Lemma
(ensures
Hacl.Spec.Exponentiation.Lemmas.mod_exp_mont_ll pbits rLen n mu a b == Lib.NatMod.... | {
"end_col": 52,
"end_line": 303,
"start_col": 47,
"start_line": 295
} |
FStar.Pervasives.Lemma | val mod_exp_mont_ll_mod_lemma: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu}
-> a:nat_mod n -> b:nat -> accM:nat -> Lemma
(requires (let r = pow2 (pbits * rLen) in
let k = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
accM < r /\ accM % n == LE.pow k (a * r % n) b))
(ensures
(le... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | false | let mod_exp_mont_ll_mod_lemma pbits rLen n mu a b accM =
let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
let k1 = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
let k2 = mk_nat_mont_comm_monoid n r d in
let aM = M.to_mont pbits rLen n mu a i... | val mod_exp_mont_ll_mod_lemma: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu}
-> a:nat_mod n -> b:nat -> accM:nat -> Lemma
(requires (let r = pow2 (pbits * rLen) in
let k = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
accM < r /\ accM % n == LE.pow k (a * r % n) b))
(ensures
(le... | false | null | true | let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
let k1 = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
let k2 = mk_nat_mont_comm_monoid n r d in
let aM = M.to_mont pbits rLen n mu a in
M.to_mont_lemma pbits rLen n mu a;
assert (aM == a * r % n);
pow_nat_... | {
"checked_file": "Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery... | [
"lemma"
] | [
"Prims.pos",
"Prims.nat",
"Hacl.Spec.Montgomery.Lemmas.mont_pre",
"Lib.NatMod.nat_mod",
"Prims.int",
"Hacl.Spec.Exponentiation.Lemmas.mod_exp_mont_lemma",
"Prims.unit",
"FStar.Math.Lemmas.lemma_mod_mul_distr_l",
"Prims._assert",
"Prims.eq2",
"Prims.op_Modulus",
"FStar.Mul.op_Star",
"Hacl.Spe... | [] | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | false | false | Hacl.Spec.Exponentiation.Lemmas.fst | {
"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... | null | val mod_exp_mont_ll_mod_lemma: pbits:pos -> rLen:pos -> n:pos -> mu:nat{M.mont_pre pbits rLen n mu}
-> a:nat_mod n -> b:nat -> accM:nat -> Lemma
(requires (let r = pow2 (pbits * rLen) in
let k = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
accM < r /\ accM % n == LE.pow k (a * r % n) b))
(ensures
(le... | [] | Hacl.Spec.Exponentiation.Lemmas.mod_exp_mont_ll_mod_lemma | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
pbits: Prims.pos ->
rLen: Prims.pos ->
n: Prims.pos ->
mu: Prims.nat{Hacl.Spec.Montgomery.Lemmas.mont_pre pbits rLen n mu} ->
a: Lib.NatMod.nat_mod n ->
b: Prims.nat ->
accM: Prims.nat
-> FStar.Pervasives.Lemma
(requires
(let r = Prims.pow2 (pbits * rLen) in
let k ... | {
"end_col": 30,
"end_line": 288,
"start_col": 56,
"start_line": 269
} |
FStar.Pervasives.Lemma | val lemma_mont_mul_assoc: n:pos -> d:int -> a:nat_mod n -> b:nat_mod n -> c:nat_mod n ->
Lemma (mont_mul n d (mont_mul n d a b) c == mont_mul n d a (mont_mul n d b c)) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | false | let lemma_mont_mul_assoc n d a b c =
calc (==) {
mont_mul n d (mont_mul n d a b) c;
(==) { }
(a * b * d % n) * c * d % n;
(==) { Math.Lemmas.paren_mul_right (a * b * d % n) c d }
(a * b * d % n) * (c * d) % n;
(==) { M.lemma_mod_mul_distr3 1 (a * b * d) (c * d) n }
a * b * d * (c * d) % n;... | val lemma_mont_mul_assoc: n:pos -> d:int -> a:nat_mod n -> b:nat_mod n -> c:nat_mod n ->
Lemma (mont_mul n d (mont_mul n d a b) c == mont_mul n d a (mont_mul n d b c))
let lemma_mont_mul_assoc n d a b c = | false | null | true | calc ( == ) {
mont_mul n d (mont_mul n d a b) c;
( == ) { () }
(((a * b) * d % n) * c) * d % n;
( == ) { Math.Lemmas.paren_mul_right ((a * b) * d % n) c d }
((a * b) * d % n) * (c * d) % n;
( == ) { M.lemma_mod_mul_distr3 1 ((a * b) * d) (c * d) n }
((a * b) * d) * (c * d) % n;
( == ) { Math.Lemmas.pare... | {
"checked_file": "Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery... | [
"lemma"
] | [
"Prims.pos",
"Prims.int",
"Lib.NatMod.nat_mod",
"FStar.Calc.calc_finish",
"Prims.eq2",
"Hacl.Spec.Exponentiation.Lemmas.mont_mul",
"Prims.Cons",
"FStar.Preorder.relation",
"Prims.Nil",
"Prims.unit",
"FStar.Calc.calc_step",
"Prims.op_Modulus",
"FStar.Mul.op_Star",
"FStar.Calc.calc_init",
... | [] | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | false | false | Hacl.Spec.Exponentiation.Lemmas.fst | {
"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... | null | val lemma_mont_mul_assoc: n:pos -> d:int -> a:nat_mod n -> b:nat_mod n -> c:nat_mod n ->
Lemma (mont_mul n d (mont_mul n d a b) c == mont_mul n d a (mont_mul n d b c)) | [] | Hacl.Spec.Exponentiation.Lemmas.lemma_mont_mul_assoc | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
n: Prims.pos ->
d: Prims.int ->
a: Lib.NatMod.nat_mod n ->
b: Lib.NatMod.nat_mod n ->
c: Lib.NatMod.nat_mod n
-> FStar.Pervasives.Lemma
(ensures
Hacl.Spec.Exponentiation.Lemmas.mont_mul n
d
(Hacl.Spec.Exponentiation.Lemmas.mont_mul n d a b)
c ==
Hacl.Spec.E... | {
"end_col": 5,
"end_line": 59,
"start_col": 2,
"start_line": 43
} |
FStar.Pervasives.Lemma | val pow_nat_mont_ll_mod_base:
pbits:pos -> rLen:pos
-> n:pos -> mu:nat
-> a:nat_mod n -> b:nat -> Lemma
(requires
M.mont_pre pbits rLen n mu)
(ensures
(let k = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
LE.pow k a b == LE.pow k (a % n) b)) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | false | let pow_nat_mont_ll_mod_base pbits rLen n mu a b =
let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
let k1 = mk_nat_mont_comm_monoid n r d in
let k2 = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
calc (==) {
LE.pow k2 a b;
(==) { po... | val pow_nat_mont_ll_mod_base:
pbits:pos -> rLen:pos
-> n:pos -> mu:nat
-> a:nat_mod n -> b:nat -> Lemma
(requires
M.mont_pre pbits rLen n mu)
(ensures
(let k = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
LE.pow k a b == LE.pow k (a % n) b))
let pow_nat_mont_ll_mod_base pbits rLen n mu a b = | false | null | true | let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
let k1 = mk_nat_mont_comm_monoid n r d in
let k2 = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
calc ( == ) {
LE.pow k2 a b;
( == ) { pow_nat_mont_ll_is_pow_nat_mont pbits rLen n mu a b }
LE.pow k1 a... | {
"checked_file": "Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery... | [
"lemma"
] | [
"Prims.pos",
"Prims.nat",
"Lib.NatMod.nat_mod",
"Prims.int",
"FStar.Calc.calc_finish",
"Prims.eq2",
"Lib.Exponentiation.Definition.pow",
"Prims.op_Modulus",
"Prims.Cons",
"FStar.Preorder.relation",
"Prims.Nil",
"Prims.unit",
"FStar.Calc.calc_step",
"FStar.Mul.op_Star",
"Lib.NatMod.pow",
... | [] | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | false | false | Hacl.Spec.Exponentiation.Lemmas.fst | {
"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... | null | val pow_nat_mont_ll_mod_base:
pbits:pos -> rLen:pos
-> n:pos -> mu:nat
-> a:nat_mod n -> b:nat -> Lemma
(requires
M.mont_pre pbits rLen n mu)
(ensures
(let k = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
LE.pow k a b == LE.pow k (a % n) b)) | [] | Hacl.Spec.Exponentiation.Lemmas.pow_nat_mont_ll_mod_base | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
pbits: Prims.pos ->
rLen: Prims.pos ->
n: Prims.pos ->
mu: Prims.nat ->
a: Lib.NatMod.nat_mod n ->
b: Prims.nat
-> FStar.Pervasives.Lemma (requires Hacl.Spec.Montgomery.Lemmas.mont_pre pbits rLen n mu)
(ensures
(let k = Hacl.Spec.Exponentiation.Lemmas.mk_nat_mont_ll_comm_monoid ... | {
"end_col": 5,
"end_line": 377,
"start_col": 50,
"start_line": 357
} |
FStar.Pervasives.Lemma | val lemma_mont_one: n:pos -> r:pos -> d:int{r * d % n = 1} -> a:nat_mod n ->
Lemma (mont_mul n d a (mont_one n r) == a) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | false | let lemma_mont_one n r d a =
calc (==) {
a * (1 * r % n) * d % n;
(==) { M.lemma_mod_mul_distr3 a r d n }
a * r * d % n;
(==) { Math.Lemmas.paren_mul_right a r d; Math.Lemmas.lemma_mod_mul_distr_r a (r * d) n }
a * (r * d % n) % n;
(==) { assert (r * d % n = 1) }
a % n;
(==) { Math.Lem... | val lemma_mont_one: n:pos -> r:pos -> d:int{r * d % n = 1} -> a:nat_mod n ->
Lemma (mont_mul n d a (mont_one n r) == a)
let lemma_mont_one n r d a = | false | null | true | calc ( == ) {
(a * (1 * r % n)) * d % n;
( == ) { M.lemma_mod_mul_distr3 a r d n }
(a * r) * d % n;
( == ) { (Math.Lemmas.paren_mul_right a r d;
Math.Lemmas.lemma_mod_mul_distr_r a (r * d) n) }
a * (r * d % n) % n;
( == ) { assert (r * d % n = 1) }
a % n;
( == ) { Math.Lemmas.small_mod a n }
a;
} | {
"checked_file": "Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery... | [
"lemma"
] | [
"Prims.pos",
"Prims.int",
"Prims.b2t",
"Prims.op_Equality",
"Prims.op_Modulus",
"FStar.Mul.op_Star",
"Lib.NatMod.nat_mod",
"FStar.Calc.calc_finish",
"Prims.eq2",
"Prims.Cons",
"FStar.Preorder.relation",
"Prims.Nil",
"Prims.unit",
"FStar.Calc.calc_step",
"FStar.Calc.calc_init",
"FStar.C... | [] | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | false | false | Hacl.Spec.Exponentiation.Lemmas.fst | {
"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... | null | val lemma_mont_one: n:pos -> r:pos -> d:int{r * d % n = 1} -> a:nat_mod n ->
Lemma (mont_mul n d a (mont_one n r) == a) | [] | Hacl.Spec.Exponentiation.Lemmas.lemma_mont_one | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | n: Prims.pos -> r: Prims.pos -> d: Prims.int{r * d % n = 1} -> a: Lib.NatMod.nat_mod n
-> FStar.Pervasives.Lemma
(ensures
Hacl.Spec.Exponentiation.Lemmas.mont_mul n d a (Hacl.Spec.Exponentiation.Lemmas.mont_one n r) ==
a) | {
"end_col": 5,
"end_line": 38,
"start_col": 2,
"start_line": 28
} |
FStar.Pervasives.Lemma | val from_mont_exp_lemma: pbits:pos -> rLen:pos -> n:pos -> mu:nat -> aM:nat -> b:nat -> Lemma
(requires
M.mont_pre pbits rLen n mu /\ aM < n)
(ensures
(let k = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
let cM = LE.pow k aM b in
let c = M.from_mont pbits rLen n mu cM in
let a = M.from_mont pbi... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | false | let from_mont_exp_lemma pbits rLen n mu aM b =
let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
let k1 = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
let k2 = mk_nat_mont_comm_monoid n r d in
let cM = LE.pow k1 aM b in
let c = M.from_mont... | val from_mont_exp_lemma: pbits:pos -> rLen:pos -> n:pos -> mu:nat -> aM:nat -> b:nat -> Lemma
(requires
M.mont_pre pbits rLen n mu /\ aM < n)
(ensures
(let k = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
let cM = LE.pow k aM b in
let c = M.from_mont pbits rLen n mu cM in
let a = M.from_mont pbi... | false | null | true | let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
let k1 = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
let k2 = mk_nat_mont_comm_monoid n r d in
let cM = LE.pow k1 aM b in
let c = M.from_mont pbits rLen n mu cM in
let a = M.from_mont pbits rLen n mu aM i... | {
"checked_file": "Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery... | [
"lemma"
] | [
"Prims.pos",
"Prims.nat",
"Prims.int",
"Prims._assert",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.eq2",
"Lib.NatMod.pow_mod",
"Prims.unit",
"FStar.Calc.calc_finish",
"Prims.op_Modulus",
"FStar.Mul.op_Star",
"Prims.Cons",
"FStar.Preorder.relation",
"Prims.Nil",
"FStar.Ca... | [] | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | false | false | Hacl.Spec.Exponentiation.Lemmas.fst | {
"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... | null | val from_mont_exp_lemma: pbits:pos -> rLen:pos -> n:pos -> mu:nat -> aM:nat -> b:nat -> Lemma
(requires
M.mont_pre pbits rLen n mu /\ aM < n)
(ensures
(let k = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
let cM = LE.pow k aM b in
let c = M.from_mont pbits rLen n mu cM in
let a = M.from_mont pbi... | [] | Hacl.Spec.Exponentiation.Lemmas.from_mont_exp_lemma | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
pbits: Prims.pos ->
rLen: Prims.pos ->
n: Prims.pos ->
mu: Prims.nat ->
aM: Prims.nat ->
b: Prims.nat
-> FStar.Pervasives.Lemma
(requires Hacl.Spec.Montgomery.Lemmas.mont_pre pbits rLen n mu /\ aM < n)
(ensures
(let k = Hacl.Spec.Exponentiation.Lemmas.mk_nat_mont_ll_comm_m... | {
"end_col": 39,
"end_line": 344,
"start_col": 46,
"start_line": 316
} |
FStar.Pervasives.Lemma | val pow_nat_mont_ll_is_pow_nat_mont:
pbits:pos -> rLen:pos
-> n:pos -> mu:nat
-> a:nat_mod n -> b:nat -> Lemma
(requires M.mont_pre pbits rLen n mu)
(ensures
(let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
LE.pow (mk_nat_mont... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | false | let rec pow_nat_mont_ll_is_pow_nat_mont pbits rLen n mu a b =
let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
let k0 = mk_nat_mont_comm_monoid n r d in
let k1 = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
if b = 0 then begin
LE.lemma_... | val pow_nat_mont_ll_is_pow_nat_mont:
pbits:pos -> rLen:pos
-> n:pos -> mu:nat
-> a:nat_mod n -> b:nat -> Lemma
(requires M.mont_pre pbits rLen n mu)
(ensures
(let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
LE.pow (mk_nat_mont... | false | null | true | let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
let k0 = mk_nat_mont_comm_monoid n r d in
let k1 = mk_nat_mont_ll_comm_monoid pbits rLen n mu in
if b = 0
then
(LE.lemma_pow0 k0 a;
LE.lemma_pow0 k1 a;
M.to_mont_lemma pbits rLen n mu 1)
else
(L... | {
"checked_file": "Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery... | [
"lemma"
] | [
"Prims.pos",
"Prims.nat",
"Lib.NatMod.nat_mod",
"Prims.int",
"Prims.op_Equality",
"Hacl.Spec.Montgomery.Lemmas.to_mont_lemma",
"Prims.unit",
"Lib.Exponentiation.Definition.lemma_pow0",
"Prims.bool",
"Hacl.Spec.Exponentiation.Lemmas.pow_nat_mont_ll_is_pow_nat_mont",
"Prims.op_Subtraction",
"Hac... | [] | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | false | false | Hacl.Spec.Exponentiation.Lemmas.fst | {
"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... | null | val pow_nat_mont_ll_is_pow_nat_mont:
pbits:pos -> rLen:pos
-> n:pos -> mu:nat
-> a:nat_mod n -> b:nat -> Lemma
(requires M.mont_pre pbits rLen n mu)
(ensures
(let r = pow2 (pbits * rLen) in
let d, _ = M.eea_pow2_odd (pbits * rLen) n in
M.mont_preconditions_d pbits rLen n;
LE.pow (mk_nat_mont... | [
"recursion"
] | Hacl.Spec.Exponentiation.Lemmas.pow_nat_mont_ll_is_pow_nat_mont | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
pbits: Prims.pos ->
rLen: Prims.pos ->
n: Prims.pos ->
mu: Prims.nat ->
a: Lib.NatMod.nat_mod n ->
b: Prims.nat
-> FStar.Pervasives.Lemma (requires Hacl.Spec.Montgomery.Lemmas.mont_pre pbits rLen n mu)
(ensures
(let r = Prims.pow2 (pbits * rLen) in
let _ = Hacl.Spec.Mo... | {
"end_col": 10,
"end_line": 244,
"start_col": 61,
"start_line": 226
} |
FStar.Pervasives.Lemma | val mod_exp_mont_lemma: n:pos -> r:pos -> d:int{r * d % n == 1} -> a:nat_mod n -> b:nat ->
Lemma (mod_exp_mont n r d a b == pow_mod #n a b) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | false | let mod_exp_mont_lemma n r d a b =
let k = mk_nat_mont_comm_monoid n r d in
let aM = a * r % n in
//let accM = LE.pow k aM b in
//let acc = accM * d % n in
calc (==) { // acc
LE.pow k aM b * d % n;
(==) { pow_nat_mont_is_pow n r d aM b }
(pow (aM * d % n) b * r % n) * d % n;
(==) { M.lemma_mo... | val mod_exp_mont_lemma: n:pos -> r:pos -> d:int{r * d % n == 1} -> a:nat_mod n -> b:nat ->
Lemma (mod_exp_mont n r d a b == pow_mod #n a b)
let mod_exp_mont_lemma n r d a b = | false | null | true | let k = mk_nat_mont_comm_monoid n r d in
let aM = a * r % n in
calc ( == ) {
LE.pow k aM b * d % n;
( == ) { pow_nat_mont_is_pow n r d aM b }
(pow (aM * d % n) b * r % n) * d % n;
( == ) { M.lemma_mont_id n r d (pow (aM * d % n) b) }
pow (aM * d % n) b % n;
( == ) { () }
pow ((a * r % n) * d % n) b % n;
... | {
"checked_file": "Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery... | [
"lemma"
] | [
"Prims.pos",
"Prims.int",
"Prims.eq2",
"Prims.op_Modulus",
"FStar.Mul.op_Star",
"Lib.NatMod.nat_mod",
"Prims.nat",
"Lib.NatMod.lemma_pow_mod",
"Prims.unit",
"Prims._assert",
"Hacl.Spec.Exponentiation.Lemmas.mod_exp_mont",
"Lib.NatMod.pow",
"FStar.Calc.calc_finish",
"Lib.Exponentiation.Defi... | [] | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | false | false | Hacl.Spec.Exponentiation.Lemmas.fst | {
"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... | null | val mod_exp_mont_lemma: n:pos -> r:pos -> d:int{r * d % n == 1} -> a:nat_mod n -> b:nat ->
Lemma (mod_exp_mont n r d a b == pow_mod #n a b) | [] | Hacl.Spec.Exponentiation.Lemmas.mod_exp_mont_lemma | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
n: Prims.pos ->
r: Prims.pos ->
d: Prims.int{r * d % n == 1} ->
a: Lib.NatMod.nat_mod n ->
b: Prims.nat
-> FStar.Pervasives.Lemma
(ensures Hacl.Spec.Exponentiation.Lemmas.mod_exp_mont n r d a b == Lib.NatMod.pow_mod a b) | {
"end_col": 22,
"end_line": 141,
"start_col": 34,
"start_line": 121
} |
FStar.Pervasives.Lemma | val pow_nat_mont_is_pow: n:pos -> r:nat -> d:int{r * d % n = 1} -> aM:nat_mod n -> b:nat ->
Lemma (pow (aM * d % n) b * r % n == LE.pow (mk_nat_mont_comm_monoid n r d) aM b) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.AlmostMontgomery.Lemmas",
"short_module": "AM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.Montgomery.Lemmas",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Exponentiation",
"short_module": "SE"
},
{
"... | false | let rec pow_nat_mont_is_pow n r d aM b =
let k = mk_nat_mont_comm_monoid n r d in
if b = 0 then begin
calc (==) {
pow (aM * d % n) b * r % n;
(==) { lemma_pow0 (aM * d % n) }
1 * r % n;
(==) { LE.lemma_pow0 k aM }
LE.pow k aM b;
}; () end
else begin
calc (==) {
po... | val pow_nat_mont_is_pow: n:pos -> r:nat -> d:int{r * d % n = 1} -> aM:nat_mod n -> b:nat ->
Lemma (pow (aM * d % n) b * r % n == LE.pow (mk_nat_mont_comm_monoid n r d) aM b)
let rec pow_nat_mont_is_pow n r d aM b = | false | null | true | let k = mk_nat_mont_comm_monoid n r d in
if b = 0
then
(calc ( == ) {
pow (aM * d % n) b * r % n;
( == ) { lemma_pow0 (aM * d % n) }
1 * r % n;
( == ) { LE.lemma_pow0 k aM }
LE.pow k aM b;
};
())
else
(calc ( == ) {
pow (aM * d % n) b * r % n;
( == ) { lemma_pow_unf... | {
"checked_file": "Hacl.Spec.Exponentiation.Lemmas.fst.checked",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NatMod.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Hacl.Spec.Montgomery... | [
"lemma"
] | [
"Prims.pos",
"Prims.nat",
"Prims.int",
"Prims.b2t",
"Prims.op_Equality",
"Prims.op_Modulus",
"FStar.Mul.op_Star",
"Lib.NatMod.nat_mod",
"Prims.unit",
"FStar.Calc.calc_finish",
"Prims.eq2",
"Lib.NatMod.pow",
"Lib.Exponentiation.Definition.pow",
"Prims.Cons",
"FStar.Preorder.relation",
"... | [] | module Hacl.Spec.Exponentiation.Lemmas
open FStar.Mul
open Lib.NatMod
open Lib.Sequence
module Loops = Lib.LoopCombinators
module LSeq = Lib.Sequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module M = Hacl.Spec.Montgomery.Lemmas
module AM = Hacl.Spec.AlmostMontgomery.Lemmas
#reset-options "-... | false | false | Hacl.Spec.Exponentiation.Lemmas.fst | {
"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... | null | val pow_nat_mont_is_pow: n:pos -> r:nat -> d:int{r * d % n = 1} -> aM:nat_mod n -> b:nat ->
Lemma (pow (aM * d % n) b * r % n == LE.pow (mk_nat_mont_comm_monoid n r d) aM b) | [
"recursion"
] | Hacl.Spec.Exponentiation.Lemmas.pow_nat_mont_is_pow | {
"file_name": "code/bignum/Hacl.Spec.Exponentiation.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
n: Prims.pos ->
r: Prims.nat ->
d: Prims.int{r * d % n = 1} ->
aM: Lib.NatMod.nat_mod n ->
b: Prims.nat
-> FStar.Pervasives.Lemma
(ensures
Lib.NatMod.pow (aM * d % n) b * r % n ==
Lib.Exponentiation.Definition.pow (Hacl.Spec.Exponentiation.Lemmas.mk_nat_mont_comm_monoid n
... | {
"end_col": 15,
"end_line": 107,
"start_col": 40,
"start_line": 78
} |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Hacl.Hash.Definitions",
"short_module": "HD"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"full_module": "Lib.IntVector.Transpose",
"short_module": "VecTranspose"
},
{
"abbrev": t... | false | let update_nblocks_vec_t (a:sha2_alg) (m:m_spec{is_supported a m}) =
upd:update_vec_t a m -> update_nblocks_vec_t' a m | let update_nblocks_vec_t (a: sha2_alg) (m: m_spec{is_supported a m}) = | false | null | false | upd: update_vec_t a m -> update_nblocks_vec_t' a m | {
"checked_file": "Hacl.Impl.SHA2.Generic.fst.checked",
"dependencies": [
"Spec.SHA2.Constants.fst.checked",
"Spec.Hash.Definitions.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.NTuple.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.LoopCombinators.fsti.checked"... | [
"total"
] | [
"Spec.Hash.Definitions.sha2_alg",
"Hacl.Spec.SHA2.Vec.m_spec",
"Hacl.Spec.SHA2.Vec.is_supported",
"Hacl.Impl.SHA2.Generic.update_vec_t",
"Hacl.Impl.SHA2.Generic.update_nblocks_vec_t'"
] | [] | module Hacl.Impl.SHA2.Generic
open FStar.Mul
open FStar.HyperStack
open FStar.HyperStack.All
open Lib.IntTypes
open Lib.NTuple
open Lib.Buffer
open Lib.IntVector
open Lib.MultiBuffer
open Spec.Hash.Definitions
//open Hacl.Hash.Definitions
open Hacl.Spec.SHA2.Vec
open Hacl.Impl.SHA2.Core
module ST = FStar.HyperStack... | false | false | Hacl.Impl.SHA2.Generic.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val update_nblocks_vec_t : a: Spec.Hash.Definitions.sha2_alg ->
m: Hacl.Spec.SHA2.Vec.m_spec{Hacl.Spec.SHA2.Vec.is_supported a m}
-> Type0 | [] | Hacl.Impl.SHA2.Generic.update_nblocks_vec_t | {
"file_name": "code/sha2-mb/Hacl.Impl.SHA2.Generic.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Hash.Definitions.sha2_alg ->
m: Hacl.Spec.SHA2.Vec.m_spec{Hacl.Spec.SHA2.Vec.is_supported a m}
-> Type0 | {
"end_col": 53,
"end_line": 315,
"start_col": 4,
"start_line": 315
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.