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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Prims.Tot | val bn_field_sub: #t:limb_t -> km:BM.mont t -> bn_field_sub_st t km.BM.bn.BN.len | [
{
"abbrev": true,
"full_module": "Hacl.Bignum.ModInv",
"short_module": "BI"
},
{
"abbrev": true,
"full_module": "Hacl.Bignum.Montgomery",
"short_module": "BM"
},
{
"abbrev": true,
"full_module": "Hacl.Bignum",
"short_module": "BN"
},
{
"abbrev": true,
"full_mo... | false | let bn_field_sub #t km k aM bM cM =
let open LowStar.BufferOps in
let k1 = !*k in
let h0 = ST.get () in
km.BM.bn.BN.sub_mod_n k1.n aM bM cM;
let h1 = ST.get () in
assert (as_seq h1 cM == S.bn_field_sub (as_pctx h0 k) (as_seq h0 aM) (as_seq h0 bM)) | val bn_field_sub: #t:limb_t -> km:BM.mont t -> bn_field_sub_st t km.BM.bn.BN.len
let bn_field_sub #t km k aM bM cM = | false | null | false | let open LowStar.BufferOps in
let k1 = !*k in
let h0 = ST.get () in
km.BM.bn.BN.sub_mod_n k1.n aM bM cM;
let h1 = ST.get () in
assert (as_seq h1 cM == S.bn_field_sub (as_pctx h0 k) (as_seq h0 aM) (as_seq h0 bM)) | {
"checked_file": "Hacl.Bignum.MontArithmetic.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.Bignum.MontArithmetic.fst.checked",
"Hacl.Spec.Bignum.MontA... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"Hacl.Bignum.Montgomery.mont",
"Hacl.Bignum.MontArithmetic.pbn_mont_ctx",
"Hacl.Bignum.Definitions.lbignum",
"Hacl.Bignum.__proj__Mkbn__item__len",
"Hacl.Bignum.Montgomery.__proj__Mkmont__item__bn",
"Prims._assert",
"Prims.eq2",
"Lib.Sequence.seq",
"Hacl.Bignum.De... | [] | module Hacl.Bignum.MontArithmetic
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
module B = LowStar.Buffer
module HS = FStar.HyperStack
module ST = FStar.HyperStack.ST
module S = Hacl.Spec.Bignum.MontArithmetic
module BD = Hacl.Spec.Bign... | false | false | Hacl.Bignum.MontArithmetic.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 bn_field_sub: #t:limb_t -> km:BM.mont t -> bn_field_sub_st t km.BM.bn.BN.len | [] | Hacl.Bignum.MontArithmetic.bn_field_sub | {
"file_name": "code/bignum/Hacl.Bignum.MontArithmetic.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | km: Hacl.Bignum.Montgomery.mont t
-> Hacl.Bignum.MontArithmetic.bn_field_sub_st t (Mkbn?.len (Mkmont?.bn km)) | {
"end_col": 86,
"end_line": 112,
"start_col": 2,
"start_line": 107
} |
Prims.Tot | val bn_field_add: #t:limb_t -> km:BM.mont t -> bn_field_add_st t km.BM.bn.BN.len | [
{
"abbrev": true,
"full_module": "Hacl.Bignum.ModInv",
"short_module": "BI"
},
{
"abbrev": true,
"full_module": "Hacl.Bignum.Montgomery",
"short_module": "BM"
},
{
"abbrev": true,
"full_module": "Hacl.Bignum",
"short_module": "BN"
},
{
"abbrev": true,
"full_mo... | false | let bn_field_add #t km k aM bM cM =
let open LowStar.BufferOps in
let k1 = !*k in
let h0 = ST.get () in
km.BM.bn.BN.add_mod_n k1.n aM bM cM;
let h1 = ST.get () in
assert (as_seq h1 cM == S.bn_field_add (as_pctx h0 k) (as_seq h0 aM) (as_seq h0 bM)) | val bn_field_add: #t:limb_t -> km:BM.mont t -> bn_field_add_st t km.BM.bn.BN.len
let bn_field_add #t km k aM bM cM = | false | null | false | let open LowStar.BufferOps in
let k1 = !*k in
let h0 = ST.get () in
km.BM.bn.BN.add_mod_n k1.n aM bM cM;
let h1 = ST.get () in
assert (as_seq h1 cM == S.bn_field_add (as_pctx h0 k) (as_seq h0 aM) (as_seq h0 bM)) | {
"checked_file": "Hacl.Bignum.MontArithmetic.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.Bignum.MontArithmetic.fst.checked",
"Hacl.Spec.Bignum.MontA... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"Hacl.Bignum.Montgomery.mont",
"Hacl.Bignum.MontArithmetic.pbn_mont_ctx",
"Hacl.Bignum.Definitions.lbignum",
"Hacl.Bignum.__proj__Mkbn__item__len",
"Hacl.Bignum.Montgomery.__proj__Mkmont__item__bn",
"Prims._assert",
"Prims.eq2",
"Lib.Sequence.seq",
"Hacl.Bignum.De... | [] | module Hacl.Bignum.MontArithmetic
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
module B = LowStar.Buffer
module HS = FStar.HyperStack
module ST = FStar.HyperStack.ST
module S = Hacl.Spec.Bignum.MontArithmetic
module BD = Hacl.Spec.Bign... | false | false | Hacl.Bignum.MontArithmetic.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 bn_field_add: #t:limb_t -> km:BM.mont t -> bn_field_add_st t km.BM.bn.BN.len | [] | Hacl.Bignum.MontArithmetic.bn_field_add | {
"file_name": "code/bignum/Hacl.Bignum.MontArithmetic.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | km: Hacl.Bignum.Montgomery.mont t
-> Hacl.Bignum.MontArithmetic.bn_field_add_st t (Mkbn?.len (Mkmont?.bn km)) | {
"end_col": 86,
"end_line": 103,
"start_col": 2,
"start_line": 98
} |
Prims.Tot | val bn_field_mul: #t:limb_t -> km:BM.mont t -> bn_field_mul_st t km.BM.bn.BN.len | [
{
"abbrev": true,
"full_module": "Hacl.Bignum.ModInv",
"short_module": "BI"
},
{
"abbrev": true,
"full_module": "Hacl.Bignum.Montgomery",
"short_module": "BM"
},
{
"abbrev": true,
"full_module": "Hacl.Bignum",
"short_module": "BN"
},
{
"abbrev": true,
"full_mo... | false | let bn_field_mul #t km k aM bM cM =
let open LowStar.BufferOps in
let k1 = !*k in
let h0 = ST.get () in
km.BM.mul k1.n k1.mu aM bM cM;
let h1 = ST.get () in
assert (as_seq h1 cM == S.bn_field_mul (as_pctx h0 k) (as_seq h0 aM) (as_seq h0 bM)) | val bn_field_mul: #t:limb_t -> km:BM.mont t -> bn_field_mul_st t km.BM.bn.BN.len
let bn_field_mul #t km k aM bM cM = | false | null | false | let open LowStar.BufferOps in
let k1 = !*k in
let h0 = ST.get () in
km.BM.mul k1.n k1.mu aM bM cM;
let h1 = ST.get () in
assert (as_seq h1 cM == S.bn_field_mul (as_pctx h0 k) (as_seq h0 aM) (as_seq h0 bM)) | {
"checked_file": "Hacl.Bignum.MontArithmetic.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.Bignum.MontArithmetic.fst.checked",
"Hacl.Spec.Bignum.MontA... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"Hacl.Bignum.Montgomery.mont",
"Hacl.Bignum.MontArithmetic.pbn_mont_ctx",
"Hacl.Bignum.Definitions.lbignum",
"Hacl.Bignum.__proj__Mkbn__item__len",
"Hacl.Bignum.Montgomery.__proj__Mkmont__item__bn",
"Prims._assert",
"Prims.eq2",
"Lib.Sequence.seq",
"Hacl.Bignum.De... | [] | module Hacl.Bignum.MontArithmetic
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
module B = LowStar.Buffer
module HS = FStar.HyperStack
module ST = FStar.HyperStack.ST
module S = Hacl.Spec.Bignum.MontArithmetic
module BD = Hacl.Spec.Bign... | false | false | Hacl.Bignum.MontArithmetic.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 bn_field_mul: #t:limb_t -> km:BM.mont t -> bn_field_mul_st t km.BM.bn.BN.len | [] | Hacl.Bignum.MontArithmetic.bn_field_mul | {
"file_name": "code/bignum/Hacl.Bignum.MontArithmetic.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | km: Hacl.Bignum.Montgomery.mont t
-> Hacl.Bignum.MontArithmetic.bn_field_mul_st t (Mkbn?.len (Mkmont?.bn km)) | {
"end_col": 86,
"end_line": 121,
"start_col": 2,
"start_line": 116
} |
Prims.Tot | val bn_field_init:
#t:limb_t
-> len:BN.meta_len t
-> precomp_r2:BM.bn_precomp_r2_mod_n_st t len ->
bn_field_init_st t len | [
{
"abbrev": true,
"full_module": "Hacl.Bignum.ModInv",
"short_module": "BI"
},
{
"abbrev": true,
"full_module": "Hacl.Bignum.Montgomery",
"short_module": "BM"
},
{
"abbrev": true,
"full_module": "Hacl.Bignum",
"short_module": "BN"
},
{
"abbrev": true,
"full_mo... | false | let bn_field_init #t len precomp_r2 r n =
let h0 = ST.get () in
let r2 : buffer (limb t) = B.mmalloc r (uint #t #SEC 0) len in
let n1 : buffer (limb t) = B.mmalloc r (uint #t #SEC 0) len in
let h1 = ST.get () in
B.(modifies_only_not_unused_in loc_none h0 h1);
assert (B.length r2 == FStar.UInt32.v len);
as... | val bn_field_init:
#t:limb_t
-> len:BN.meta_len t
-> precomp_r2:BM.bn_precomp_r2_mod_n_st t len ->
bn_field_init_st t len
let bn_field_init #t len precomp_r2 r n = | false | null | false | let h0 = ST.get () in
let r2:buffer (limb t) = B.mmalloc r (uint #t #SEC 0) len in
let n1:buffer (limb t) = B.mmalloc r (uint #t #SEC 0) len in
let h1 = ST.get () in
(let open B in modifies_only_not_unused_in loc_none h0 h1);
assert (B.length r2 == FStar.UInt32.v len);
assert (B.length n1 == FStar.UInt32.v len);
let r2... | {
"checked_file": "Hacl.Bignum.MontArithmetic.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.Bignum.MontArithmetic.fst.checked",
"Hacl.Spec.Bignum.MontA... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"Hacl.Bignum.meta_len",
"Hacl.Bignum.Montgomery.bn_precomp_r2_mod_n_st",
"FStar.Monotonic.HyperHeap.rid",
"Hacl.Bignum.Definitions.lbignum",
"LowStar.Buffer.malloc",
"Hacl.Bignum.MontArithmetic.bn_mont_ctx",
"FStar.UInt32.__uint_to_t",
"LowStar.Monotonic.Buffer.mbuf... | [] | module Hacl.Bignum.MontArithmetic
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
module B = LowStar.Buffer
module HS = FStar.HyperStack
module ST = FStar.HyperStack.ST
module S = Hacl.Spec.Bignum.MontArithmetic
module BD = Hacl.Spec.Bign... | false | false | Hacl.Bignum.MontArithmetic.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 bn_field_init:
#t:limb_t
-> len:BN.meta_len t
-> precomp_r2:BM.bn_precomp_r2_mod_n_st t len ->
bn_field_init_st t len | [] | Hacl.Bignum.MontArithmetic.bn_field_init | {
"file_name": "code/bignum/Hacl.Bignum.MontArithmetic.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | len: Hacl.Bignum.meta_len t -> precomp_r2: Hacl.Bignum.Montgomery.bn_precomp_r2_mod_n_st t len
-> Hacl.Bignum.MontArithmetic.bn_field_init_st t len | {
"end_col": 20,
"end_line": 65,
"start_col": 41,
"start_line": 44
} |
Prims.Tot | val bn_field_inv:
#t:limb_t
-> len:Ghost.erased _
-> bn_field_exp_vartime:bn_field_exp_vartime_st t len ->
bn_field_inv_st t len | [
{
"abbrev": true,
"full_module": "Hacl.Bignum.ModInv",
"short_module": "BI"
},
{
"abbrev": true,
"full_module": "Hacl.Bignum.Montgomery",
"short_module": "BM"
},
{
"abbrev": true,
"full_module": "Hacl.Bignum",
"short_module": "BN"
},
{
"abbrev": true,
"full_mo... | false | let bn_field_inv #t len bn_field_exp_vartime k aM aInvM =
let open LowStar.BufferOps in
let k1 = !*k in
let len = k1.len in
push_frame ();
let n2 = create len (uint #t #SEC 0) in
BI.bn_mod_inv_prime_n2 len k1.n n2;
bn_field_exp_vartime k aM (k1.len *! size (bits t)) n2 aInvM;
pop_frame () | val bn_field_inv:
#t:limb_t
-> len:Ghost.erased _
-> bn_field_exp_vartime:bn_field_exp_vartime_st t len ->
bn_field_inv_st t len
let bn_field_inv #t len bn_field_exp_vartime k aM aInvM = | false | null | false | let open LowStar.BufferOps in
let k1 = !*k in
let len = k1.len in
push_frame ();
let n2 = create len (uint #t #SEC 0) in
BI.bn_mod_inv_prime_n2 len k1.n n2;
bn_field_exp_vartime k aM (k1.len *! size (bits t)) n2 aInvM;
pop_frame () | {
"checked_file": "Hacl.Bignum.MontArithmetic.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.Bignum.MontArithmetic.fst.checked",
"Hacl.Spec.Bignum.MontA... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"FStar.Ghost.erased",
"Hacl.Bignum.meta_len",
"Hacl.Bignum.MontArithmetic.bn_field_exp_vartime_st",
"FStar.Ghost.reveal",
"Hacl.Bignum.MontArithmetic.pbn_mont_ctx",
"Hacl.Bignum.Definitions.lbignum",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Lib.IntTypes.op_... | [] | module Hacl.Bignum.MontArithmetic
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
module B = LowStar.Buffer
module HS = FStar.HyperStack
module ST = FStar.HyperStack.ST
module S = Hacl.Spec.Bignum.MontArithmetic
module BD = Hacl.Spec.Bign... | false | false | Hacl.Bignum.MontArithmetic.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 bn_field_inv:
#t:limb_t
-> len:Ghost.erased _
-> bn_field_exp_vartime:bn_field_exp_vartime_st t len ->
bn_field_inv_st t len | [] | Hacl.Bignum.MontArithmetic.bn_field_inv | {
"file_name": "code/bignum/Hacl.Bignum.MontArithmetic.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
len: FStar.Ghost.erased (Hacl.Bignum.meta_len t) ->
bn_field_exp_vartime:
Hacl.Bignum.MontArithmetic.bn_field_exp_vartime_st t (FStar.Ghost.reveal len)
-> Hacl.Bignum.MontArithmetic.bn_field_inv_st t (FStar.Ghost.reveal len) | {
"end_col": 14,
"end_line": 180,
"start_col": 2,
"start_line": 173
} |
Prims.Tot | val bn_field_exp_consttime: #t:limb_t -> km:BM.mont t -> bn_field_exp_consttime_st t km.BM.bn.BN.len | [
{
"abbrev": true,
"full_module": "Hacl.Bignum.ModInv",
"short_module": "BI"
},
{
"abbrev": true,
"full_module": "Hacl.Bignum.Montgomery",
"short_module": "BM"
},
{
"abbrev": true,
"full_module": "Hacl.Bignum",
"short_module": "BN"
},
{
"abbrev": true,
"full_mo... | false | let bn_field_exp_consttime #t km k aM bBits b resM =
let open LowStar.BufferOps in
let k1 = !*k in
push_frame ();
let aMc = create k1.len (uint #t #SEC 0) in
copy aMc aM;
ME.bn_exp_mont_consttime #t km k1.n k1.mu k1.r2 aMc bBits b resM;
let h0 = ST.get () in
assert (bn_v h0 aM < bn_v_n h0 k);
BD.bn_ev... | val bn_field_exp_consttime: #t:limb_t -> km:BM.mont t -> bn_field_exp_consttime_st t km.BM.bn.BN.len
let bn_field_exp_consttime #t km k aM bBits b resM = | false | null | false | let open LowStar.BufferOps in
let k1 = !*k in
push_frame ();
let aMc = create k1.len (uint #t #SEC 0) in
copy aMc aM;
ME.bn_exp_mont_consttime #t km k1.n k1.mu k1.r2 aMc bBits b resM;
let h0 = ST.get () in
assert (bn_v h0 aM < bn_v_n h0 k);
BD.bn_eval_inj (v k1.len)
(S.bn_field_exp_consttime (as_pctx h0 k) (as_seq h0... | {
"checked_file": "Hacl.Bignum.MontArithmetic.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.Bignum.MontArithmetic.fst.checked",
"Hacl.Spec.Bignum.MontA... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"Hacl.Bignum.Montgomery.mont",
"Hacl.Bignum.MontArithmetic.pbn_mont_ctx",
"Hacl.Bignum.Definitions.lbignum",
"Hacl.Bignum.__proj__Mkbn__item__len",
"Hacl.Bignum.Montgomery.__proj__Mkmont__item__bn",
"Lib.IntTypes.size_t",
"Hacl.Bignum.Definitions.blocks0",
"Lib.IntT... | [] | module Hacl.Bignum.MontArithmetic
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
module B = LowStar.Buffer
module HS = FStar.HyperStack
module ST = FStar.HyperStack.ST
module S = Hacl.Spec.Bignum.MontArithmetic
module BD = Hacl.Spec.Bign... | false | false | Hacl.Bignum.MontArithmetic.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 bn_field_exp_consttime: #t:limb_t -> km:BM.mont t -> bn_field_exp_consttime_st t km.BM.bn.BN.len | [] | Hacl.Bignum.MontArithmetic.bn_field_exp_consttime | {
"file_name": "code/bignum/Hacl.Bignum.MontArithmetic.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | km: Hacl.Bignum.Montgomery.mont t
-> Hacl.Bignum.MontArithmetic.bn_field_exp_consttime_st t (Mkbn?.len (Mkmont?.bn km)) | {
"end_col": 14,
"end_line": 154,
"start_col": 2,
"start_line": 143
} |
Prims.Tot | val bn_field_exp_vartime: #t:limb_t -> km:BM.mont t -> bn_field_exp_vartime_st t km.BM.bn.BN.len | [
{
"abbrev": true,
"full_module": "Hacl.Bignum.ModInv",
"short_module": "BI"
},
{
"abbrev": true,
"full_module": "Hacl.Bignum.Montgomery",
"short_module": "BM"
},
{
"abbrev": true,
"full_module": "Hacl.Bignum",
"short_module": "BN"
},
{
"abbrev": true,
"full_mo... | false | let bn_field_exp_vartime #t km k aM bBits b resM =
let open LowStar.BufferOps in
let k1 = !*k in
push_frame ();
let aMc = create k1.len (uint #t #SEC 0) in
copy aMc aM;
ME.bn_exp_mont_vartime #t km k1.n k1.mu k1.r2 aMc bBits b resM;
let h0 = ST.get () in
assert (bn_v h0 aM < bn_v_n h0 k);
BD.bn_eval_i... | val bn_field_exp_vartime: #t:limb_t -> km:BM.mont t -> bn_field_exp_vartime_st t km.BM.bn.BN.len
let bn_field_exp_vartime #t km k aM bBits b resM = | false | null | false | let open LowStar.BufferOps in
let k1 = !*k in
push_frame ();
let aMc = create k1.len (uint #t #SEC 0) in
copy aMc aM;
ME.bn_exp_mont_vartime #t km k1.n k1.mu k1.r2 aMc bBits b resM;
let h0 = ST.get () in
assert (bn_v h0 aM < bn_v_n h0 k);
BD.bn_eval_inj (v k1.len)
(S.bn_field_exp_vartime (as_pctx h0 k) (as_seq h0 aM)... | {
"checked_file": "Hacl.Bignum.MontArithmetic.fst.checked",
"dependencies": [
"prims.fst.checked",
"LowStar.BufferOps.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.Bignum.MontArithmetic.fst.checked",
"Hacl.Spec.Bignum.MontA... | [
"total"
] | [
"Hacl.Bignum.Definitions.limb_t",
"Hacl.Bignum.Montgomery.mont",
"Hacl.Bignum.MontArithmetic.pbn_mont_ctx",
"Hacl.Bignum.Definitions.lbignum",
"Hacl.Bignum.__proj__Mkbn__item__len",
"Hacl.Bignum.Montgomery.__proj__Mkmont__item__bn",
"Lib.IntTypes.size_t",
"Hacl.Bignum.Definitions.blocks0",
"Lib.IntT... | [] | module Hacl.Bignum.MontArithmetic
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum.Definitions
module B = LowStar.Buffer
module HS = FStar.HyperStack
module ST = FStar.HyperStack.ST
module S = Hacl.Spec.Bignum.MontArithmetic
module BD = Hacl.Spec.Bign... | false | false | Hacl.Bignum.MontArithmetic.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 bn_field_exp_vartime: #t:limb_t -> km:BM.mont t -> bn_field_exp_vartime_st t km.BM.bn.BN.len | [] | Hacl.Bignum.MontArithmetic.bn_field_exp_vartime | {
"file_name": "code/bignum/Hacl.Bignum.MontArithmetic.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | km: Hacl.Bignum.Montgomery.mont t
-> Hacl.Bignum.MontArithmetic.bn_field_exp_vartime_st t (Mkbn?.len (Mkmont?.bn km)) | {
"end_col": 14,
"end_line": 169,
"start_col": 2,
"start_line": 158
} |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "FStar.Witnessed",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Witnessed",
"short_module": null
},
{
"abbrev": false,
"full_module"... | false | let s_predicate (state:Type u#a) = state -> Type0 | let s_predicate (state: Type u#a) = | false | null | false | state -> Type0 | {
"checked_file": "FStar.Witnessed.Core.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Witnessed.Core.fsti"
} | [
"total"
] | [] | [] | module FStar.Witnessed.Core
module P = FStar.Preorder | false | true | FStar.Witnessed.Core.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": 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 s_predicate : state: Type -> Type | [] | FStar.Witnessed.Core.s_predicate | {
"file_name": "ulib/experimental/FStar.Witnessed.Core.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | state: Type -> Type | {
"end_col": 49,
"end_line": 4,
"start_col": 35,
"start_line": 4
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "FStar.Preorder",
"short_module": "P"
},
{
"abbrev": false,
"full_module": "FStar.Witnessed",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Witnessed",
"short_module": null
},
{
"abbrev": false,
"full_module"... | false | let stable (state:Type u#a)
(rel:P.preorder state)
(p:s_predicate state) =
forall s0 s1. (p s0 /\ rel s0 s1) ==> p s1 | let stable (state: Type u#a) (rel: P.preorder state) (p: s_predicate state) = | false | null | false | forall s0 s1. (p s0 /\ rel s0 s1) ==> p s1 | {
"checked_file": "FStar.Witnessed.Core.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Preorder.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Witnessed.Core.fsti"
} | [
"total"
] | [
"FStar.Preorder.preorder",
"FStar.Witnessed.Core.s_predicate",
"Prims.l_Forall",
"Prims.l_imp",
"Prims.l_and",
"Prims.logical"
] | [] | module FStar.Witnessed.Core
module P = FStar.Preorder
let s_predicate (state:Type u#a) = state -> Type0
let stable (state:Type u#a)
(rel:P.preorder state) | false | false | FStar.Witnessed.Core.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": 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 stable : state: Type -> rel: FStar.Preorder.preorder state -> p: FStar.Witnessed.Core.s_predicate state
-> Prims.logical | [] | FStar.Witnessed.Core.stable | {
"file_name": "ulib/experimental/FStar.Witnessed.Core.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | state: Type -> rel: FStar.Preorder.preorder state -> p: FStar.Witnessed.Core.s_predicate state
-> Prims.logical | {
"end_col": 44,
"end_line": 9,
"start_col": 2,
"start_line": 9
} | |
FStar.Pervasives.Lemma | val lemma_spec_update_224_256 (b st: _)
: Lemma (ensures Hacl.Spec.SHA2.update SHA2_256 b st == Hacl.Spec.SHA2.update SHA2_224 b st) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.SHA2.Vec",
"short_module": "SpecVec"
},
{
"abbrev": false,
"full_module": "Hacl.Spec.SHA2.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Agile.Hash",
"short_module": null
},
{
"abbrev": false,
... | false | let lemma_spec_update_224_256 b st: Lemma (ensures
Hacl.Spec.SHA2.update SHA2_256 b st ==
Hacl.Spec.SHA2.update SHA2_224 b st)
=
calc (==) {
Hacl.Spec.SHA2.update SHA2_256 b st;
(==) { Hacl.Spec.SHA2.EquivScalar.update_lemma SHA2_256 b st }
Spec.Agile.Hash.update SHA2_256 st b;
(==) { Spec.SHA2.Lemmas... | val lemma_spec_update_224_256 (b st: _)
: Lemma (ensures Hacl.Spec.SHA2.update SHA2_256 b st == Hacl.Spec.SHA2.update SHA2_224 b st)
let lemma_spec_update_224_256 b st
: Lemma (ensures Hacl.Spec.SHA2.update SHA2_256 b st == Hacl.Spec.SHA2.update SHA2_224 b st) = | false | null | true | calc ( == ) {
Hacl.Spec.SHA2.update SHA2_256 b st;
( == ) { Hacl.Spec.SHA2.EquivScalar.update_lemma SHA2_256 b st }
Spec.Agile.Hash.update SHA2_256 st b;
( == ) { Spec.SHA2.Lemmas.update_224_256 st b }
Spec.Agile.Hash.update SHA2_224 st b;
( == ) { Hacl.Spec.SHA2.EquivScalar.update_lemma SHA2_224 b st }
H... | {
"checked_file": "Hacl.SHA2.Scalar32.Lemmas.fst.checked",
"dependencies": [
"Spec.SHA2.Lemmas.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.IntVector.fsti.checked",... | [
"lemma"
] | [
"Lib.Sequence.seq",
"Lib.IntTypes.uint8",
"Prims.l_and",
"Prims.eq2",
"Prims.nat",
"FStar.Seq.Base.length",
"Spec.Hash.Definitions.block_length",
"Spec.Hash.Definitions.SHA2_256",
"Spec.Hash.Definitions.SHA2_224",
"Spec.Hash.Definitions.word",
"Spec.Hash.Definitions.state_word_length",
"FStar.... | [] | module Hacl.SHA2.Scalar32.Lemmas
open Lib.IntTypes
open Spec.Agile.Hash
open Hacl.Spec.SHA2.Vec
module SpecVec = Hacl.Spec.SHA2.Vec
#push-options "--fuel 0 --ifuel 0 --z3rlimit 50"
let state_spec_v_extensionality (a : hash_alg { is_sha2 a })
(acc1: Hacl.Spec.SHA2.Vec.(state_spec a M32))
(acc2: Hacl.Spec.SHA2.Vec... | false | false | Hacl.SHA2.Scalar32.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_spec_update_224_256 (b st: _)
: Lemma (ensures Hacl.Spec.SHA2.update SHA2_256 b st == Hacl.Spec.SHA2.update SHA2_224 b st) | [] | Hacl.SHA2.Scalar32.Lemmas.lemma_spec_update_224_256 | {
"file_name": "code/sha2-mb/Hacl.SHA2.Scalar32.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
b:
s:
Lib.Sequence.seq Lib.IntTypes.uint8
{ FStar.Seq.Base.length s ==
Spec.Hash.Definitions.block_length Spec.Hash.Definitions.SHA2_256 /\
FStar.Seq.Base.length s ==
Spec.Hash.Definitions.block_length Spec.Hash.Definitions.SHA2_224 } ->
st:
s:
Lib.... | {
"end_col": 3,
"end_line": 48,
"start_col": 2,
"start_line": 40
} |
FStar.Pervasives.Lemma | val lemma_spec_update_384_512 (b st: _)
: Lemma (ensures Hacl.Spec.SHA2.update SHA2_512 b st == Hacl.Spec.SHA2.update SHA2_384 b st) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.SHA2.Vec",
"short_module": "SpecVec"
},
{
"abbrev": false,
"full_module": "Hacl.Spec.SHA2.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Agile.Hash",
"short_module": null
},
{
"abbrev": false,
... | false | let lemma_spec_update_384_512 b st: Lemma (ensures
Hacl.Spec.SHA2.update SHA2_512 b st ==
Hacl.Spec.SHA2.update SHA2_384 b st)
=
calc (==) {
Hacl.Spec.SHA2.update SHA2_512 b st;
(==) { Hacl.Spec.SHA2.EquivScalar.update_lemma SHA2_512 b st }
Spec.Agile.Hash.update SHA2_512 st b;
(==) { Spec.SHA2.Lemmas... | val lemma_spec_update_384_512 (b st: _)
: Lemma (ensures Hacl.Spec.SHA2.update SHA2_512 b st == Hacl.Spec.SHA2.update SHA2_384 b st)
let lemma_spec_update_384_512 b st
: Lemma (ensures Hacl.Spec.SHA2.update SHA2_512 b st == Hacl.Spec.SHA2.update SHA2_384 b st) = | false | null | true | calc ( == ) {
Hacl.Spec.SHA2.update SHA2_512 b st;
( == ) { Hacl.Spec.SHA2.EquivScalar.update_lemma SHA2_512 b st }
Spec.Agile.Hash.update SHA2_512 st b;
( == ) { Spec.SHA2.Lemmas.update_384_512 st b }
Spec.Agile.Hash.update SHA2_384 st b;
( == ) { Hacl.Spec.SHA2.EquivScalar.update_lemma SHA2_384 b st }
H... | {
"checked_file": "Hacl.SHA2.Scalar32.Lemmas.fst.checked",
"dependencies": [
"Spec.SHA2.Lemmas.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.IntVector.fsti.checked",... | [
"lemma"
] | [
"Lib.Sequence.seq",
"Lib.IntTypes.uint8",
"Prims.l_and",
"Prims.eq2",
"Prims.nat",
"FStar.Seq.Base.length",
"Spec.Hash.Definitions.block_length",
"Spec.Hash.Definitions.SHA2_512",
"Spec.Hash.Definitions.SHA2_384",
"Spec.Hash.Definitions.word",
"Spec.Hash.Definitions.state_word_length",
"FStar.... | [] | module Hacl.SHA2.Scalar32.Lemmas
open Lib.IntTypes
open Spec.Agile.Hash
open Hacl.Spec.SHA2.Vec
module SpecVec = Hacl.Spec.SHA2.Vec
#push-options "--fuel 0 --ifuel 0 --z3rlimit 50"
let state_spec_v_extensionality (a : hash_alg { is_sha2 a })
(acc1: Hacl.Spec.SHA2.Vec.(state_spec a M32))
(acc2: Hacl.Spec.SHA2.Vec... | false | false | Hacl.SHA2.Scalar32.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_spec_update_384_512 (b st: _)
: Lemma (ensures Hacl.Spec.SHA2.update SHA2_512 b st == Hacl.Spec.SHA2.update SHA2_384 b st) | [] | Hacl.SHA2.Scalar32.Lemmas.lemma_spec_update_384_512 | {
"file_name": "code/sha2-mb/Hacl.SHA2.Scalar32.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
b:
s:
Lib.Sequence.seq Lib.IntTypes.uint8
{ FStar.Seq.Base.length s ==
Spec.Hash.Definitions.block_length Spec.Hash.Definitions.SHA2_512 /\
FStar.Seq.Base.length s ==
Spec.Hash.Definitions.block_length Spec.Hash.Definitions.SHA2_384 } ->
st:
s:
Lib.... | {
"end_col": 3,
"end_line": 158,
"start_col": 2,
"start_line": 150
} |
FStar.Pervasives.Lemma | val lemma_spec_update_vec_384_512 (b0 st0: _)
: Lemma (ensures SpecVec.update #SHA2_384 #M32 b0 st0 == SpecVec.update #SHA2_512 #M32 b0 st0) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.SHA2.Vec",
"short_module": "SpecVec"
},
{
"abbrev": false,
"full_module": "Hacl.Spec.SHA2.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Agile.Hash",
"short_module": null
},
{
"abbrev": false,
... | false | let lemma_spec_update_vec_384_512 b0 st0 : Lemma (ensures
SpecVec.update #SHA2_384 #M32 b0 st0 ==
SpecVec.update #SHA2_512 #M32 b0 st0)
=
let open Lib.Sequence in
let open Lib.MultiBuffer in
let st1 = SpecVec.update #SHA2_512 #M32 b0 st0 in
let st0_m32 = (state_spec_v st0).[0] <: words_state SHA2_512 in
... | val lemma_spec_update_vec_384_512 (b0 st0: _)
: Lemma (ensures SpecVec.update #SHA2_384 #M32 b0 st0 == SpecVec.update #SHA2_512 #M32 b0 st0)
let lemma_spec_update_vec_384_512 b0 st0
: Lemma (ensures SpecVec.update #SHA2_384 #M32 b0 st0 == SpecVec.update #SHA2_512 #M32 b0 st0) = | false | null | true | let open Lib.Sequence in
let open Lib.MultiBuffer in
let st1 = SpecVec.update #SHA2_512 #M32 b0 st0 in
let st0_m32 = (state_spec_v st0).[ 0 ] <: words_state SHA2_512 in
let st1_m32 = (state_spec_v st1).[ 0 ] <: words_state SHA2_512 in
calc ( == ) {
st1_m32;
( == ) { () }
(state_spec_v (SpecVec.update #SHA2_512 b0... | {
"checked_file": "Hacl.SHA2.Scalar32.Lemmas.fst.checked",
"dependencies": [
"Spec.SHA2.Lemmas.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.IntVector.fsti.checked",... | [
"lemma"
] | [
"Hacl.Spec.SHA2.Vec.multiblock_spec",
"Spec.Hash.Definitions.SHA2_384",
"Hacl.Spec.SHA2.Vec.M32",
"Lib.Sequence.seq",
"Hacl.Spec.SHA2.Vec.element_t",
"Spec.Hash.Definitions.SHA2_512",
"Prims.l_and",
"Prims.eq2",
"Prims.nat",
"FStar.Seq.Base.length",
"Hacl.SHA2.Scalar32.Lemmas.state_spec_v_extens... | [] | module Hacl.SHA2.Scalar32.Lemmas
open Lib.IntTypes
open Spec.Agile.Hash
open Hacl.Spec.SHA2.Vec
module SpecVec = Hacl.Spec.SHA2.Vec
#push-options "--fuel 0 --ifuel 0 --z3rlimit 50"
let state_spec_v_extensionality (a : hash_alg { is_sha2 a })
(acc1: Hacl.Spec.SHA2.Vec.(state_spec a M32))
(acc2: Hacl.Spec.SHA2.Vec... | false | false | Hacl.SHA2.Scalar32.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_spec_update_vec_384_512 (b0 st0: _)
: Lemma (ensures SpecVec.update #SHA2_384 #M32 b0 st0 == SpecVec.update #SHA2_512 #M32 b0 st0) | [] | Hacl.SHA2.Scalar32.Lemmas.lemma_spec_update_vec_384_512 | {
"file_name": "code/sha2-mb/Hacl.SHA2.Scalar32.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
b0: Hacl.Spec.SHA2.Vec.multiblock_spec Spec.Hash.Definitions.SHA2_384 Hacl.Spec.SHA2.Vec.M32 ->
st0:
s:
Lib.Sequence.seq (Hacl.Spec.SHA2.Vec.element_t Spec.Hash.Definitions.SHA2_512
Hacl.Spec.SHA2.Vec.M32) {FStar.Seq.Base.length s == 8 /\ FStar.Seq.Base.length s == 8}
-> FStar.Pervasi... | {
"end_col": 44,
"end_line": 182,
"start_col": 2,
"start_line": 164
} |
FStar.Pervasives.Lemma | val lemma_spec_update_vec_224_256 (b0 st0: _)
: Lemma (ensures SpecVec.update #SHA2_224 #M32 b0 st0 == SpecVec.update #SHA2_256 #M32 b0 st0) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.SHA2.Vec",
"short_module": "SpecVec"
},
{
"abbrev": false,
"full_module": "Hacl.Spec.SHA2.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Agile.Hash",
"short_module": null
},
{
"abbrev": false,
... | false | let lemma_spec_update_vec_224_256 b0 st0 : Lemma (ensures
SpecVec.update #SHA2_224 #M32 b0 st0 ==
SpecVec.update #SHA2_256 #M32 b0 st0)
=
let open Lib.Sequence in
let open Lib.MultiBuffer in
let st1 = SpecVec.update #SHA2_256 #M32 b0 st0 in
let st0_m32 = (state_spec_v st0).[0] <: words_state SHA2_256 in
... | val lemma_spec_update_vec_224_256 (b0 st0: _)
: Lemma (ensures SpecVec.update #SHA2_224 #M32 b0 st0 == SpecVec.update #SHA2_256 #M32 b0 st0)
let lemma_spec_update_vec_224_256 b0 st0
: Lemma (ensures SpecVec.update #SHA2_224 #M32 b0 st0 == SpecVec.update #SHA2_256 #M32 b0 st0) = | false | null | true | let open Lib.Sequence in
let open Lib.MultiBuffer in
let st1 = SpecVec.update #SHA2_256 #M32 b0 st0 in
let st0_m32 = (state_spec_v st0).[ 0 ] <: words_state SHA2_256 in
let st1_m32 = (state_spec_v st1).[ 0 ] <: words_state SHA2_256 in
calc ( == ) {
st1_m32;
( == ) { () }
(state_spec_v (SpecVec.update #SHA2_256 b0... | {
"checked_file": "Hacl.SHA2.Scalar32.Lemmas.fst.checked",
"dependencies": [
"Spec.SHA2.Lemmas.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.IntVector.fsti.checked",... | [
"lemma"
] | [
"Hacl.Spec.SHA2.Vec.multiblock_spec",
"Spec.Hash.Definitions.SHA2_224",
"Hacl.Spec.SHA2.Vec.M32",
"Lib.Sequence.seq",
"Hacl.Spec.SHA2.Vec.element_t",
"Spec.Hash.Definitions.SHA2_256",
"Prims.l_and",
"Prims.eq2",
"Prims.nat",
"FStar.Seq.Base.length",
"Hacl.SHA2.Scalar32.Lemmas.state_spec_v_extens... | [] | module Hacl.SHA2.Scalar32.Lemmas
open Lib.IntTypes
open Spec.Agile.Hash
open Hacl.Spec.SHA2.Vec
module SpecVec = Hacl.Spec.SHA2.Vec
#push-options "--fuel 0 --ifuel 0 --z3rlimit 50"
let state_spec_v_extensionality (a : hash_alg { is_sha2 a })
(acc1: Hacl.Spec.SHA2.Vec.(state_spec a M32))
(acc2: Hacl.Spec.SHA2.Vec... | false | false | Hacl.SHA2.Scalar32.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_spec_update_vec_224_256 (b0 st0: _)
: Lemma (ensures SpecVec.update #SHA2_224 #M32 b0 st0 == SpecVec.update #SHA2_256 #M32 b0 st0) | [] | Hacl.SHA2.Scalar32.Lemmas.lemma_spec_update_vec_224_256 | {
"file_name": "code/sha2-mb/Hacl.SHA2.Scalar32.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
b0: Hacl.Spec.SHA2.Vec.multiblock_spec Spec.Hash.Definitions.SHA2_224 Hacl.Spec.SHA2.Vec.M32 ->
st0:
s:
Lib.Sequence.seq (Hacl.Spec.SHA2.Vec.element_t Spec.Hash.Definitions.SHA2_256
Hacl.Spec.SHA2.Vec.M32) {FStar.Seq.Base.length s == 8 /\ FStar.Seq.Base.length s == 8}
-> FStar.Pervasi... | {
"end_col": 44,
"end_line": 72,
"start_col": 2,
"start_line": 54
} |
FStar.Pervasives.Lemma | val state_spec_v_extensionality
(a: hash_alg{is_sha2 a})
(acc1 acc2: Hacl.Spec.SHA2.Vec.(state_spec a M32))
: Lemma
(requires
(let open Hacl.Spec.SHA2.Vec in
Lib.Sequence.index (state_spec_v acc1) 0 == Lib.Sequence.index (state_spec_v acc2) 0))
(ensures acc1 == acc2) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.SHA2.Vec",
"short_module": "SpecVec"
},
{
"abbrev": false,
"full_module": "Hacl.Spec.SHA2.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Agile.Hash",
"short_module": null
},
{
"abbrev": false,
... | false | let state_spec_v_extensionality (a : hash_alg { is_sha2 a })
(acc1: Hacl.Spec.SHA2.Vec.(state_spec a M32))
(acc2: Hacl.Spec.SHA2.Vec.(state_spec a M32)) :
Lemma
(requires (let open Hacl.Spec.SHA2.Vec in
Lib.Sequence.index (state_spec_v acc1) 0 ==
Lib.Sequence.index (state_spec_v acc2) 0))
(ensures a... | val state_spec_v_extensionality
(a: hash_alg{is_sha2 a})
(acc1 acc2: Hacl.Spec.SHA2.Vec.(state_spec a M32))
: Lemma
(requires
(let open Hacl.Spec.SHA2.Vec in
Lib.Sequence.index (state_spec_v acc1) 0 == Lib.Sequence.index (state_spec_v acc2) 0))
(ensures acc1 == acc2)
let st... | false | null | true | let open Lib.Sequence in
let open Lib.IntVector in
let open Hacl.Spec.SHA2.Vec in
allow_inversion hash_alg;
let acc1_s = (state_spec_v acc1).[ 0 ] <: lseq (word a) 8 in
let acc2_s = (state_spec_v acc2).[ 0 ] <: lseq (word a) 8 in
let aux (i: nat{i < 8}) : Lemma (acc1.[ i ] == acc2.[ i ]) =
assert (index (vec_v acc1.[... | {
"checked_file": "Hacl.SHA2.Scalar32.Lemmas.fst.checked",
"dependencies": [
"Spec.SHA2.Lemmas.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.IntVector.fsti.checked",... | [
"lemma"
] | [
"Spec.Hash.Definitions.hash_alg",
"Prims.b2t",
"Spec.Hash.Definitions.is_sha2",
"Hacl.Spec.SHA2.Vec.state_spec",
"Hacl.Spec.SHA2.Vec.M32",
"Lib.Sequence.eq_intro",
"Hacl.Spec.SHA2.Vec.element_t",
"Prims.unit",
"FStar.Classical.forall_intro",
"Prims.nat",
"Prims.op_LessThan",
"Prims.eq2",
"Pr... | [] | module Hacl.SHA2.Scalar32.Lemmas
open Lib.IntTypes
open Spec.Agile.Hash
open Hacl.Spec.SHA2.Vec
module SpecVec = Hacl.Spec.SHA2.Vec
#push-options "--fuel 0 --ifuel 0 --z3rlimit 50"
let state_spec_v_extensionality (a : hash_alg { is_sha2 a })
(acc1: Hacl.Spec.SHA2.Vec.(state_spec a M32))
(acc2: Hacl.Spec.SHA2.Vec... | false | false | Hacl.SHA2.Scalar32.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 state_spec_v_extensionality
(a: hash_alg{is_sha2 a})
(acc1 acc2: Hacl.Spec.SHA2.Vec.(state_spec a M32))
: Lemma
(requires
(let open Hacl.Spec.SHA2.Vec in
Lib.Sequence.index (state_spec_v acc1) 0 == Lib.Sequence.index (state_spec_v acc2) 0))
(ensures acc1 == acc2) | [] | Hacl.SHA2.Scalar32.Lemmas.state_spec_v_extensionality | {
"file_name": "code/sha2-mb/Hacl.SHA2.Scalar32.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Hash.Definitions.hash_alg{Spec.Hash.Definitions.is_sha2 a} ->
acc1: Hacl.Spec.SHA2.Vec.state_spec a Hacl.Spec.SHA2.Vec.M32 ->
acc2: Hacl.Spec.SHA2.Vec.state_spec a Hacl.Spec.SHA2.Vec.M32
-> FStar.Pervasives.Lemma
(requires
Lib.Sequence.index (Hacl.Spec.SHA2.Vec.state_spec_v acc1) 0 ... | {
"end_col": 20,
"end_line": 34,
"start_col": 2,
"start_line": 19
} |
FStar.Pervasives.Lemma | val lemma_spec_update_nblocks_vec_384_512 (len: size_t) (b0 st0: _)
: Lemma
(ensures
(Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_512 len;
SpecVec.update_nblocks #SHA2_384 #M32 (v len) b0 st0 ==
SpecVec.update_nblocks #SHA2_512 #M32 (v len) b0 st0)) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.SHA2.Vec",
"short_module": "SpecVec"
},
{
"abbrev": false,
"full_module": "Hacl.Spec.SHA2.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Agile.Hash",
"short_module": null
},
{
"abbrev": false,
... | false | let lemma_spec_update_nblocks_vec_384_512 (len:size_t) b0 st0 : Lemma (ensures (
Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_512 len;
SpecVec.update_nblocks #SHA2_384 #M32 (v len) b0 st0 ==
SpecVec.update_nblocks #SHA2_512 #M32 (v len) b0 st0))
= let open Lib.IntTypes in
let open Lib.Sequence in... | val lemma_spec_update_nblocks_vec_384_512 (len: size_t) (b0 st0: _)
: Lemma
(ensures
(Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_512 len;
SpecVec.update_nblocks #SHA2_384 #M32 (v len) b0 st0 ==
SpecVec.update_nblocks #SHA2_512 #M32 (v len) b0 st0))
let lemma_spec_update_nblock... | false | null | true | let open Lib.IntTypes in
let open Lib.Sequence in
let open Lib.MultiBuffer in
Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_512 len;
let st1 = SpecVec.update_nblocks #SHA2_512 #M32 (v len) b0 st0 in
let st0_m32 = (state_spec_v st0).[ 0 ] <: words_state SHA2_512 in
let b0_m32' =
Seq.slice b0.(| 0 |) 0 (Seq.l... | {
"checked_file": "Hacl.SHA2.Scalar32.Lemmas.fst.checked",
"dependencies": [
"Spec.SHA2.Lemmas.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.IntVector.fsti.checked",... | [
"lemma"
] | [
"Lib.IntTypes.size_t",
"Hacl.Spec.SHA2.Vec.multiseq",
"Hacl.Spec.SHA2.Vec.lanes",
"Spec.Hash.Definitions.SHA2_384",
"Hacl.Spec.SHA2.Vec.M32",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Lib.Sequence.seq",
"Hacl.Spec.SHA2.Vec.element_t",
"Spec.Hash.Definitions.SHA2_512",
"Prims.l... | [] | module Hacl.SHA2.Scalar32.Lemmas
open Lib.IntTypes
open Spec.Agile.Hash
open Hacl.Spec.SHA2.Vec
module SpecVec = Hacl.Spec.SHA2.Vec
#push-options "--fuel 0 --ifuel 0 --z3rlimit 50"
let state_spec_v_extensionality (a : hash_alg { is_sha2 a })
(acc1: Hacl.Spec.SHA2.Vec.(state_spec a M32))
(acc2: Hacl.Spec.SHA2.Vec... | false | false | Hacl.SHA2.Scalar32.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_spec_update_nblocks_vec_384_512 (len: size_t) (b0 st0: _)
: Lemma
(ensures
(Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_512 len;
SpecVec.update_nblocks #SHA2_384 #M32 (v len) b0 st0 ==
SpecVec.update_nblocks #SHA2_512 #M32 (v len) b0 st0)) | [] | Hacl.SHA2.Scalar32.Lemmas.lemma_spec_update_nblocks_vec_384_512 | {
"file_name": "code/sha2-mb/Hacl.SHA2.Scalar32.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
len: Lib.IntTypes.size_t ->
b0:
Hacl.Spec.SHA2.Vec.multiseq (Hacl.Spec.SHA2.Vec.lanes Spec.Hash.Definitions.SHA2_384
Hacl.Spec.SHA2.Vec.M32)
(Lib.IntTypes.v len) ->
st0:
s:
Lib.Sequence.seq (Hacl.Spec.SHA2.Vec.element_t Spec.Hash.Definitions.SHA2_512
Hacl.S... | {
"end_col": 60,
"end_line": 221,
"start_col": 4,
"start_line": 188
} |
FStar.Pervasives.Lemma | val lemma_spec_update_last_vec_384_512
(totlen: _)
(len: size_t{v len <= block_length SHA2_512})
(b0 st0: _)
: Lemma
(ensures
(Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_512 len;
SpecVec.update_last #SHA2_384 #M32 totlen (v len) b0 st0 ==
SpecVec.update_last ... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.SHA2.Vec",
"short_module": "SpecVec"
},
{
"abbrev": false,
"full_module": "Hacl.Spec.SHA2.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Agile.Hash",
"short_module": null
},
{
"abbrev": false,
... | false | let lemma_spec_update_last_vec_384_512 totlen (len:size_t{v len <= block_length SHA2_512}) b0 st0 : Lemma (ensures (
Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_512 len;
SpecVec.update_last #SHA2_384 #M32 totlen (v len) b0 st0 ==
SpecVec.update_last #SHA2_512 #M32 totlen (v len) b0 st0))
= let open ... | val lemma_spec_update_last_vec_384_512
(totlen: _)
(len: size_t{v len <= block_length SHA2_512})
(b0 st0: _)
: Lemma
(ensures
(Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_512 len;
SpecVec.update_last #SHA2_384 #M32 totlen (v len) b0 st0 ==
SpecVec.update_last ... | false | null | true | let open Lib.Sequence in
let open Lib.MultiBuffer in
let st1 = SpecVec.update_last #SHA2_512 #M32 totlen (v len) b0 st0 in
let st0_m32 = (state_spec_v st0).[ 0 ] <: words_state SHA2_512 in
let st1_m32 = (state_spec_v st1).[ 0 ] <: words_state SHA2_512 in
Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_512 len;
... | {
"checked_file": "Hacl.SHA2.Scalar32.Lemmas.fst.checked",
"dependencies": [
"Spec.SHA2.Lemmas.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.IntVector.fsti.checked",... | [
"lemma"
] | [
"Spec.Hash.Definitions.len_t",
"Spec.Hash.Definitions.SHA2_384",
"Lib.IntTypes.size_t",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Spec.Hash.Definitions.block_length",
"Spec.Hash.Definitions.SHA2_512",
"Hacl.Spec.SHA2.Vec.multiseq",
"Hac... | [] | module Hacl.SHA2.Scalar32.Lemmas
open Lib.IntTypes
open Spec.Agile.Hash
open Hacl.Spec.SHA2.Vec
module SpecVec = Hacl.Spec.SHA2.Vec
#push-options "--fuel 0 --ifuel 0 --z3rlimit 50"
let state_spec_v_extensionality (a : hash_alg { is_sha2 a })
(acc1: Hacl.Spec.SHA2.Vec.(state_spec a M32))
(acc2: Hacl.Spec.SHA2.Vec... | false | false | Hacl.SHA2.Scalar32.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_spec_update_last_vec_384_512
(totlen: _)
(len: size_t{v len <= block_length SHA2_512})
(b0 st0: _)
: Lemma
(ensures
(Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_512 len;
SpecVec.update_last #SHA2_384 #M32 totlen (v len) b0 st0 ==
SpecVec.update_last ... | [] | Hacl.SHA2.Scalar32.Lemmas.lemma_spec_update_last_vec_384_512 | {
"file_name": "code/sha2-mb/Hacl.SHA2.Scalar32.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
totlen: Spec.Hash.Definitions.len_t Spec.Hash.Definitions.SHA2_384 ->
len:
Lib.IntTypes.size_t
{Lib.IntTypes.v len <= Spec.Hash.Definitions.block_length Spec.Hash.Definitions.SHA2_512} ->
b0:
Hacl.Spec.SHA2.Vec.multiseq (Hacl.Spec.SHA2.Vec.lanes Spec.Hash.Definitions.SHA2_384
... | {
"end_col": 64,
"end_line": 253,
"start_col": 4,
"start_line": 227
} |
FStar.Pervasives.Lemma | val lemma_spec_update_nblocks_vec_224_256 (len: size_t) (b0 st0: _)
: Lemma
(ensures
(Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_256 len;
SpecVec.update_nblocks #SHA2_224 #M32 (v len) b0 st0 ==
SpecVec.update_nblocks #SHA2_256 #M32 (v len) b0 st0)) | [
{
"abbrev": true,
"full_module": "Hacl.Spec.SHA2.Vec",
"short_module": "SpecVec"
},
{
"abbrev": false,
"full_module": "Hacl.Spec.SHA2.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Agile.Hash",
"short_module": null
},
{
"abbrev": false,
... | false | let lemma_spec_update_nblocks_vec_224_256 (len:size_t) b0 st0 : Lemma (ensures (
Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_256 len;
SpecVec.update_nblocks #SHA2_224 #M32 (v len) b0 st0 ==
SpecVec.update_nblocks #SHA2_256 #M32 (v len) b0 st0))
= let open Lib.IntTypes in
let open Lib.Sequence in... | val lemma_spec_update_nblocks_vec_224_256 (len: size_t) (b0 st0: _)
: Lemma
(ensures
(Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_256 len;
SpecVec.update_nblocks #SHA2_224 #M32 (v len) b0 st0 ==
SpecVec.update_nblocks #SHA2_256 #M32 (v len) b0 st0))
let lemma_spec_update_nblock... | false | null | true | let open Lib.IntTypes in
let open Lib.Sequence in
let open Lib.MultiBuffer in
Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_256 len;
let st1 = SpecVec.update_nblocks #SHA2_256 #M32 (v len) b0 st0 in
let st0_m32 = (state_spec_v st0).[ 0 ] <: words_state SHA2_256 in
let b0_m32' =
Seq.slice b0.(| 0 |) 0 (Seq.l... | {
"checked_file": "Hacl.SHA2.Scalar32.Lemmas.fst.checked",
"dependencies": [
"Spec.SHA2.Lemmas.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.IntVector.fsti.checked",... | [
"lemma"
] | [
"Lib.IntTypes.size_t",
"Hacl.Spec.SHA2.Vec.multiseq",
"Hacl.Spec.SHA2.Vec.lanes",
"Spec.Hash.Definitions.SHA2_224",
"Hacl.Spec.SHA2.Vec.M32",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Lib.Sequence.seq",
"Hacl.Spec.SHA2.Vec.element_t",
"Spec.Hash.Definitions.SHA2_256",
"Prims.l... | [] | module Hacl.SHA2.Scalar32.Lemmas
open Lib.IntTypes
open Spec.Agile.Hash
open Hacl.Spec.SHA2.Vec
module SpecVec = Hacl.Spec.SHA2.Vec
#push-options "--fuel 0 --ifuel 0 --z3rlimit 50"
let state_spec_v_extensionality (a : hash_alg { is_sha2 a })
(acc1: Hacl.Spec.SHA2.Vec.(state_spec a M32))
(acc2: Hacl.Spec.SHA2.Vec... | false | false | Hacl.SHA2.Scalar32.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_spec_update_nblocks_vec_224_256 (len: size_t) (b0 st0: _)
: Lemma
(ensures
(Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_256 len;
SpecVec.update_nblocks #SHA2_224 #M32 (v len) b0 st0 ==
SpecVec.update_nblocks #SHA2_256 #M32 (v len) b0 st0)) | [] | Hacl.SHA2.Scalar32.Lemmas.lemma_spec_update_nblocks_vec_224_256 | {
"file_name": "code/sha2-mb/Hacl.SHA2.Scalar32.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
len: Lib.IntTypes.size_t ->
b0:
Hacl.Spec.SHA2.Vec.multiseq (Hacl.Spec.SHA2.Vec.lanes Spec.Hash.Definitions.SHA2_224
Hacl.Spec.SHA2.Vec.M32)
(Lib.IntTypes.v len) ->
st0:
s:
Lib.Sequence.seq (Hacl.Spec.SHA2.Vec.element_t Spec.Hash.Definitions.SHA2_256
Hacl.S... | {
"end_col": 60,
"end_line": 111,
"start_col": 4,
"start_line": 78
} |
FStar.Pervasives.Lemma | val lemma_spec_update_last_vec_224_256
(totlen: _)
(len: size_t{v len <= block_length SHA2_256})
(b0 st0: _)
: Lemma
(ensures
(Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_256 len;
SpecVec.update_last #SHA2_224 #M32 totlen (v len) b0 st0 ==
SpecVec.update_last ... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.SHA2.Vec",
"short_module": "SpecVec"
},
{
"abbrev": false,
"full_module": "Hacl.Spec.SHA2.Vec",
"short_module": null
},
{
"abbrev": false,
"full_module": "Spec.Agile.Hash",
"short_module": null
},
{
"abbrev": false,
... | false | let lemma_spec_update_last_vec_224_256 totlen (len:size_t{v len <= block_length SHA2_256}) b0 st0 : Lemma (ensures (
Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_256 len;
SpecVec.update_last #SHA2_224 #M32 totlen (v len) b0 st0 ==
SpecVec.update_last #SHA2_256 #M32 totlen (v len) b0 st0))
= let open ... | val lemma_spec_update_last_vec_224_256
(totlen: _)
(len: size_t{v len <= block_length SHA2_256})
(b0 st0: _)
: Lemma
(ensures
(Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_256 len;
SpecVec.update_last #SHA2_224 #M32 totlen (v len) b0 st0 ==
SpecVec.update_last ... | false | null | true | let open Lib.Sequence in
let open Lib.MultiBuffer in
let st1 = SpecVec.update_last #SHA2_256 #M32 totlen (v len) b0 st0 in
let st0_m32 = (state_spec_v st0).[ 0 ] <: words_state SHA2_256 in
let st1_m32 = (state_spec_v st1).[ 0 ] <: words_state SHA2_256 in
Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_256 len;
... | {
"checked_file": "Hacl.SHA2.Scalar32.Lemmas.fst.checked",
"dependencies": [
"Spec.SHA2.Lemmas.fsti.checked",
"Spec.Agile.Hash.fsti.checked",
"prims.fst.checked",
"Lib.Sequence.Lemmas.fsti.checked",
"Lib.Sequence.fsti.checked",
"Lib.MultiBuffer.fst.checked",
"Lib.IntVector.fsti.checked",... | [
"lemma"
] | [
"Spec.Hash.Definitions.len_t",
"Spec.Hash.Definitions.SHA2_224",
"Lib.IntTypes.size_t",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Lib.IntTypes.v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Spec.Hash.Definitions.block_length",
"Spec.Hash.Definitions.SHA2_256",
"Hacl.Spec.SHA2.Vec.multiseq",
"Hac... | [] | module Hacl.SHA2.Scalar32.Lemmas
open Lib.IntTypes
open Spec.Agile.Hash
open Hacl.Spec.SHA2.Vec
module SpecVec = Hacl.Spec.SHA2.Vec
#push-options "--fuel 0 --ifuel 0 --z3rlimit 50"
let state_spec_v_extensionality (a : hash_alg { is_sha2 a })
(acc1: Hacl.Spec.SHA2.Vec.(state_spec a M32))
(acc2: Hacl.Spec.SHA2.Vec... | false | false | Hacl.SHA2.Scalar32.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_spec_update_last_vec_224_256
(totlen: _)
(len: size_t{v len <= block_length SHA2_256})
(b0 st0: _)
: Lemma
(ensures
(Hacl.Impl.SHA2.Core.lemma_len_lt_max_a_fits_size_t SHA2_256 len;
SpecVec.update_last #SHA2_224 #M32 totlen (v len) b0 st0 ==
SpecVec.update_last ... | [] | Hacl.SHA2.Scalar32.Lemmas.lemma_spec_update_last_vec_224_256 | {
"file_name": "code/sha2-mb/Hacl.SHA2.Scalar32.Lemmas.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
totlen: Spec.Hash.Definitions.len_t Spec.Hash.Definitions.SHA2_224 ->
len:
Lib.IntTypes.size_t
{Lib.IntTypes.v len <= Spec.Hash.Definitions.block_length Spec.Hash.Definitions.SHA2_256} ->
b0:
Hacl.Spec.SHA2.Vec.multiseq (Hacl.Spec.SHA2.Vec.lanes Spec.Hash.Definitions.SHA2_224
... | {
"end_col": 64,
"end_line": 143,
"start_col": 4,
"start_line": 117
} |
Prims.Tot | val frodo_unpack_state:
#n1:size_nat
-> #n2:size_nat{n1 * n2 <= max_size_t /\ (n1 * n2) % 8 = 0}
-> i:size_nat{i <= (n1 * n2) / 8}
-> Type0 | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "Spec.Matrix",
"short_module": null
},
{
"abbrev": false,
"full_modul... | false | let frodo_unpack_state #n1 #n2 i = lseq uint16 (8 * i) | val frodo_unpack_state:
#n1:size_nat
-> #n2:size_nat{n1 * n2 <= max_size_t /\ (n1 * n2) % 8 = 0}
-> i:size_nat{i <= (n1 * n2) / 8}
-> Type0
let frodo_unpack_state #n1 #n2 i = | false | null | false | lseq uint16 (8 * i) | {
"checked_file": "Spec.Frodo.Pack.fst.checked",
"dependencies": [
"Spec.Matrix.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives... | [
"total"
] | [
"Lib.IntTypes.size_nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Mul.op_Star",
"Lib.IntTypes.max_size_t",
"Prims.op_Equality",
"Prims.int",
"Prims.op_Modulus",
"Prims.op_Division",
"Lib.Sequence.lseq",
"Lib.IntTypes.uint16"
] | [] | module Spec.Frodo.Pack
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Matrix
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
#reset-options "--z3rlimit 100 --max_fuel 0 --max_ifuel 0 --using_facts_from '* -FStar +FStar.Pervasives +FStar.UInt -Spec +Spec.Frodo +Spec.F... | false | false | Spec.Frodo.Pack.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 frodo_unpack_state:
#n1:size_nat
-> #n2:size_nat{n1 * n2 <= max_size_t /\ (n1 * n2) % 8 = 0}
-> i:size_nat{i <= (n1 * n2) / 8}
-> Type0 | [] | Spec.Frodo.Pack.frodo_unpack_state | {
"file_name": "specs/frodo/Spec.Frodo.Pack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | i: Lib.IntTypes.size_nat{i <= n1 * n2 / 8} -> Type0 | {
"end_col": 54,
"end_line": 102,
"start_col": 35,
"start_line": 102
} |
Prims.Tot | val frodo_pack_state:
#n1:size_nat
-> #n2:size_nat{n1 * n2 <= max_size_t /\ (n1 * n2) % 8 = 0}
-> d:size_nat{d * ((n1 * n2) / 8) <= max_size_t /\ d <= 16}
-> i:size_nat{i <= (n1 * n2) / 8}
-> Type0 | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "Spec.Matrix",
"short_module": null
},
{
"abbrev": false,
"full_modul... | false | let frodo_pack_state #n1 #n2 d i = lseq uint8 (d * i) | val frodo_pack_state:
#n1:size_nat
-> #n2:size_nat{n1 * n2 <= max_size_t /\ (n1 * n2) % 8 = 0}
-> d:size_nat{d * ((n1 * n2) / 8) <= max_size_t /\ d <= 16}
-> i:size_nat{i <= (n1 * n2) / 8}
-> Type0
let frodo_pack_state #n1 #n2 d i = | false | null | false | lseq uint8 (d * i) | {
"checked_file": "Spec.Frodo.Pack.fst.checked",
"dependencies": [
"Spec.Matrix.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives... | [
"total"
] | [
"Lib.IntTypes.size_nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Mul.op_Star",
"Lib.IntTypes.max_size_t",
"Prims.op_Equality",
"Prims.int",
"Prims.op_Modulus",
"Prims.op_Division",
"Lib.Sequence.lseq",
"Lib.IntTypes.uint8"
] | [] | module Spec.Frodo.Pack
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Matrix
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
#reset-options "--z3rlimit 100 --max_fuel 0 --max_ifuel 0 --using_facts_from '* -FStar +FStar.Pervasives +FStar.UInt -Spec +Spec.Frodo +Spec.F... | false | false | Spec.Frodo.Pack.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 frodo_pack_state:
#n1:size_nat
-> #n2:size_nat{n1 * n2 <= max_size_t /\ (n1 * n2) % 8 = 0}
-> d:size_nat{d * ((n1 * n2) / 8) <= max_size_t /\ d <= 16}
-> i:size_nat{i <= (n1 * n2) / 8}
-> Type0 | [] | Spec.Frodo.Pack.frodo_pack_state | {
"file_name": "specs/frodo/Spec.Frodo.Pack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
d: Lib.IntTypes.size_nat{d * (n1 * n2 / 8) <= Lib.IntTypes.max_size_t /\ d <= 16} ->
i: Lib.IntTypes.size_nat{i <= n1 * n2 / 8}
-> Type0 | {
"end_col": 53,
"end_line": 50,
"start_col": 35,
"start_line": 50
} |
Prims.Tot | val frodo_pack:
#n1:size_nat
-> #n2:size_nat{n1 * n2 <= max_size_t /\ (n1 * n2) % 8 = 0}
-> d:size_nat{d * ((n1 * n2) / 8) <= max_size_t /\ d <= 16}
-> a:matrix n1 n2
-> lbytes (d * ((n1 * n2) / 8)) | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "Spec.Matrix",
"short_module": null
},
{
"abbrev": false,
"full_modul... | false | let frodo_pack #n1 #n2 d a =
Loops.repeat_gen ((n1 * n2) / 8)
(frodo_pack_state #n1 #n2 d)
(frodo_pack_inner #n1 #n2 d a)
(Seq.create 0 (u8 0)) | val frodo_pack:
#n1:size_nat
-> #n2:size_nat{n1 * n2 <= max_size_t /\ (n1 * n2) % 8 = 0}
-> d:size_nat{d * ((n1 * n2) / 8) <= max_size_t /\ d <= 16}
-> a:matrix n1 n2
-> lbytes (d * ((n1 * n2) / 8))
let frodo_pack #n1 #n2 d a = | false | null | false | Loops.repeat_gen ((n1 * n2) / 8)
(frodo_pack_state #n1 #n2 d)
(frodo_pack_inner #n1 #n2 d a)
(Seq.create 0 (u8 0)) | {
"checked_file": "Spec.Frodo.Pack.fst.checked",
"dependencies": [
"Spec.Matrix.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives... | [
"total"
] | [
"Lib.IntTypes.size_nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Mul.op_Star",
"Lib.IntTypes.max_size_t",
"Prims.op_Equality",
"Prims.int",
"Prims.op_Modulus",
"Prims.op_Division",
"Spec.Matrix.matrix",
"Lib.LoopCombinators.repeat_gen",
"Spec.Frodo.Pack.frodo_pack_stat... | [] | module Spec.Frodo.Pack
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Matrix
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
#reset-options "--z3rlimit 100 --max_fuel 0 --max_ifuel 0 --using_facts_from '* -FStar +FStar.Pervasives +FStar.UInt -Spec +Spec.Frodo +Spec.F... | false | false | Spec.Frodo.Pack.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 frodo_pack:
#n1:size_nat
-> #n2:size_nat{n1 * n2 <= max_size_t /\ (n1 * n2) % 8 = 0}
-> d:size_nat{d * ((n1 * n2) / 8) <= max_size_t /\ d <= 16}
-> a:matrix n1 n2
-> lbytes (d * ((n1 * n2) / 8)) | [] | Spec.Frodo.Pack.frodo_pack | {
"file_name": "specs/frodo/Spec.Frodo.Pack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
d: Lib.IntTypes.size_nat{d * (n1 * n2 / 8) <= Lib.IntTypes.max_size_t /\ d <= 16} ->
a: Spec.Matrix.matrix n1 n2
-> Lib.ByteSequence.lbytes (d * (n1 * n2 / 8)) | {
"end_col": 25,
"end_line": 73,
"start_col": 2,
"start_line": 70
} |
Prims.Tot | val frodo_unpack:
#n1:size_nat
-> #n2:size_nat{n1 * n2 <= max_size_t /\ (n1 * n2) % 8 = 0}
-> d:size_nat{d * ((n1 * n2) / 8) <= max_size_t /\ d <= 16}
-> lbytes (d * ((n1 * n2) / 8))
-> matrix n1 n2 | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "Spec.Matrix",
"short_module": null
},
{
"abbrev": false,
"full_modul... | false | let frodo_unpack #n1 #n2 d b =
Loops.repeat_gen ((n1 * n2) / 8)
(frodo_unpack_state #n1 #n2)
(frodo_unpack_inner #n1 #n2 d b)
FStar.Seq.empty | val frodo_unpack:
#n1:size_nat
-> #n2:size_nat{n1 * n2 <= max_size_t /\ (n1 * n2) % 8 = 0}
-> d:size_nat{d * ((n1 * n2) / 8) <= max_size_t /\ d <= 16}
-> lbytes (d * ((n1 * n2) / 8))
-> matrix n1 n2
let frodo_unpack #n1 #n2 d b = | false | null | false | Loops.repeat_gen ((n1 * n2) / 8)
(frodo_unpack_state #n1 #n2)
(frodo_unpack_inner #n1 #n2 d b)
FStar.Seq.empty | {
"checked_file": "Spec.Frodo.Pack.fst.checked",
"dependencies": [
"Spec.Matrix.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives... | [
"total"
] | [
"Lib.IntTypes.size_nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Mul.op_Star",
"Lib.IntTypes.max_size_t",
"Prims.op_Equality",
"Prims.int",
"Prims.op_Modulus",
"Prims.op_Division",
"Lib.ByteSequence.lbytes",
"Lib.LoopCombinators.repeat_gen",
"Spec.Frodo.Pack.frodo_unpa... | [] | module Spec.Frodo.Pack
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Matrix
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
#reset-options "--z3rlimit 100 --max_fuel 0 --max_ifuel 0 --using_facts_from '* -FStar +FStar.Pervasives +FStar.UInt -Spec +Spec.Frodo +Spec.F... | false | false | Spec.Frodo.Pack.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 frodo_unpack:
#n1:size_nat
-> #n2:size_nat{n1 * n2 <= max_size_t /\ (n1 * n2) % 8 = 0}
-> d:size_nat{d * ((n1 * n2) / 8) <= max_size_t /\ d <= 16}
-> lbytes (d * ((n1 * n2) / 8))
-> matrix n1 n2 | [] | Spec.Frodo.Pack.frodo_unpack | {
"file_name": "specs/frodo/Spec.Frodo.Pack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
d: Lib.IntTypes.size_nat{d * (n1 * n2 / 8) <= Lib.IntTypes.max_size_t /\ d <= 16} ->
b: Lib.ByteSequence.lbytes (d * (n1 * n2 / 8))
-> Spec.Matrix.matrix n1 n2 | {
"end_col": 19,
"end_line": 125,
"start_col": 2,
"start_line": 122
} |
Prims.Tot | val frodo_pack8:
d:size_nat{d <= 16}
-> a:lseq uint16 8
-> lbytes d | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "Spec.Matrix",
"short_module": null
},
{
"abbrev": false,
"full_modul... | false | let frodo_pack8 d a =
let maskd = to_u16 (u32 1 <<. size d) -. u16 1 in
let a0 = Seq.index a 0 &. maskd in
let a1 = Seq.index a 1 &. maskd in
let a2 = Seq.index a 2 &. maskd in
let a3 = Seq.index a 3 &. maskd in
let a4 = Seq.index a 4 &. maskd in
let a5 = Seq.index a 5 &. maskd in
let a6 = Seq.index a 6... | val frodo_pack8:
d:size_nat{d <= 16}
-> a:lseq uint16 8
-> lbytes d
let frodo_pack8 d a = | false | null | false | let maskd = to_u16 (u32 1 <<. size d) -. u16 1 in
let a0 = Seq.index a 0 &. maskd in
let a1 = Seq.index a 1 &. maskd in
let a2 = Seq.index a 2 &. maskd in
let a3 = Seq.index a 3 &. maskd in
let a4 = Seq.index a 4 &. maskd in
let a5 = Seq.index a 5 &. maskd in
let a6 = Seq.index a 6 &. maskd in
let a7 = Seq.index a 7 &.... | {
"checked_file": "Spec.Frodo.Pack.fst.checked",
"dependencies": [
"Spec.Matrix.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives... | [
"total"
] | [
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Lib.Sequence.lseq",
"Lib.IntTypes.uint16",
"Lib.Sequence.sub",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Lib.IntTypes.numbytes",
"Lib.IntTypes.U128",
"Prims.op_Subtraction",
"Lib.IntTypes.int_t",
"Lib.B... | [] | module Spec.Frodo.Pack
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Matrix
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
#reset-options "--z3rlimit 100 --max_fuel 0 --max_ifuel 0 --using_facts_from '* -FStar +FStar.Pervasives +FStar.UInt -Spec +Spec.Frodo +Spec.F... | false | false | Spec.Frodo.Pack.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 frodo_pack8:
d:size_nat{d <= 16}
-> a:lseq uint16 8
-> lbytes d | [] | Spec.Frodo.Pack.frodo_pack8 | {
"file_name": "specs/frodo/Spec.Frodo.Pack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | d: Lib.IntTypes.size_nat{d <= 16} -> a: Lib.Sequence.lseq Lib.IntTypes.uint16 8
-> Lib.ByteSequence.lbytes d | {
"end_col": 24,
"end_line": 42,
"start_col": 21,
"start_line": 21
} |
Prims.Tot | val frodo_pack_inner:
#n1:size_nat
-> #n2:size_nat{n1 * n2 <= max_size_t /\ (n1 * n2) % 8 = 0}
-> d:size_nat{d * ((n1 * n2) / 8) <= max_size_t /\ d <= 16}
-> a:matrix n1 n2
-> i:size_nat{i < (n1 * n2) / 8}
-> frodo_pack_state #n1 #n2 d i
-> frodo_pack_state #n1 #n2 d (i + 1) | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "Spec.Matrix",
"short_module": null
},
{
"abbrev": false,
"full_modul... | false | let frodo_pack_inner #n1 #n2 d a i s =
s @| frodo_pack8 d (Seq.sub a (8 * i) 8) | val frodo_pack_inner:
#n1:size_nat
-> #n2:size_nat{n1 * n2 <= max_size_t /\ (n1 * n2) % 8 = 0}
-> d:size_nat{d * ((n1 * n2) / 8) <= max_size_t /\ d <= 16}
-> a:matrix n1 n2
-> i:size_nat{i < (n1 * n2) / 8}
-> frodo_pack_state #n1 #n2 d i
-> frodo_pack_state #n1 #n2 d (i + 1)
let frodo_pack_inner #n1 #n2... | false | null | false | s @| frodo_pack8 d (Seq.sub a (8 * i) 8) | {
"checked_file": "Spec.Frodo.Pack.fst.checked",
"dependencies": [
"Spec.Matrix.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives... | [
"total"
] | [
"Lib.IntTypes.size_nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Mul.op_Star",
"Lib.IntTypes.max_size_t",
"Prims.op_Equality",
"Prims.int",
"Prims.op_Modulus",
"Prims.op_Division",
"Spec.Matrix.matrix",
"Prims.op_LessThan",
"Spec.Frodo.Pack.frodo_pack_state",
"Lib.Se... | [] | module Spec.Frodo.Pack
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Matrix
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
#reset-options "--z3rlimit 100 --max_fuel 0 --max_ifuel 0 --using_facts_from '* -FStar +FStar.Pervasives +FStar.UInt -Spec +Spec.Frodo +Spec.F... | false | false | Spec.Frodo.Pack.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 frodo_pack_inner:
#n1:size_nat
-> #n2:size_nat{n1 * n2 <= max_size_t /\ (n1 * n2) % 8 = 0}
-> d:size_nat{d * ((n1 * n2) / 8) <= max_size_t /\ d <= 16}
-> a:matrix n1 n2
-> i:size_nat{i < (n1 * n2) / 8}
-> frodo_pack_state #n1 #n2 d i
-> frodo_pack_state #n1 #n2 d (i + 1) | [] | Spec.Frodo.Pack.frodo_pack_inner | {
"file_name": "specs/frodo/Spec.Frodo.Pack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
d: Lib.IntTypes.size_nat{d * (n1 * n2 / 8) <= Lib.IntTypes.max_size_t /\ d <= 16} ->
a: Spec.Matrix.matrix n1 n2 ->
i: Lib.IntTypes.size_nat{i < n1 * n2 / 8} ->
s: Spec.Frodo.Pack.frodo_pack_state d i
-> Spec.Frodo.Pack.frodo_pack_state d (i + 1) | {
"end_col": 42,
"end_line": 61,
"start_col": 2,
"start_line": 61
} |
Prims.Tot | val frodo_unpack_inner:
#n1:size_nat
-> #n2:size_nat{n1 * n2 <= max_size_t /\ (n1 * n2) % 8 = 0}
-> d:size_nat{d * ((n1 * n2) / 8) <= max_size_t /\ d <= 16}
-> b:lbytes (d * ((n1 * n2) / 8))
-> i:size_nat{i < (n1 * n2) / 8}
-> frodo_unpack_state #n1 #n2 i
-> frodo_unpack_state #n1 #n2 (i + 1) | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "Spec.Matrix",
"short_module": null
},
{
"abbrev": false,
"full_modul... | false | let frodo_unpack_inner #n1 #n2 d b i s =
s @| frodo_unpack8 d (Seq.sub b (d * i) d) | val frodo_unpack_inner:
#n1:size_nat
-> #n2:size_nat{n1 * n2 <= max_size_t /\ (n1 * n2) % 8 = 0}
-> d:size_nat{d * ((n1 * n2) / 8) <= max_size_t /\ d <= 16}
-> b:lbytes (d * ((n1 * n2) / 8))
-> i:size_nat{i < (n1 * n2) / 8}
-> frodo_unpack_state #n1 #n2 i
-> frodo_unpack_state #n1 #n2 (i + 1)
let frodo_... | false | null | false | s @| frodo_unpack8 d (Seq.sub b (d * i) d) | {
"checked_file": "Spec.Frodo.Pack.fst.checked",
"dependencies": [
"Spec.Matrix.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives... | [
"total"
] | [
"Lib.IntTypes.size_nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Mul.op_Star",
"Lib.IntTypes.max_size_t",
"Prims.op_Equality",
"Prims.int",
"Prims.op_Modulus",
"Prims.op_Division",
"Lib.ByteSequence.lbytes",
"Prims.op_LessThan",
"Spec.Frodo.Pack.frodo_unpack_state",
... | [] | module Spec.Frodo.Pack
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Matrix
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
#reset-options "--z3rlimit 100 --max_fuel 0 --max_ifuel 0 --using_facts_from '* -FStar +FStar.Pervasives +FStar.UInt -Spec +Spec.Frodo +Spec.F... | false | false | Spec.Frodo.Pack.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 frodo_unpack_inner:
#n1:size_nat
-> #n2:size_nat{n1 * n2 <= max_size_t /\ (n1 * n2) % 8 = 0}
-> d:size_nat{d * ((n1 * n2) / 8) <= max_size_t /\ d <= 16}
-> b:lbytes (d * ((n1 * n2) / 8))
-> i:size_nat{i < (n1 * n2) / 8}
-> frodo_unpack_state #n1 #n2 i
-> frodo_unpack_state #n1 #n2 (i + 1) | [] | Spec.Frodo.Pack.frodo_unpack_inner | {
"file_name": "specs/frodo/Spec.Frodo.Pack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
d: Lib.IntTypes.size_nat{d * (n1 * n2 / 8) <= Lib.IntTypes.max_size_t /\ d <= 16} ->
b: Lib.ByteSequence.lbytes (d * (n1 * n2 / 8)) ->
i: Lib.IntTypes.size_nat{i < n1 * n2 / 8} ->
s: Spec.Frodo.Pack.frodo_unpack_state i
-> Spec.Frodo.Pack.frodo_unpack_state (i + 1) | {
"end_col": 44,
"end_line": 113,
"start_col": 2,
"start_line": 113
} |
Prims.Tot | val frodo_unpack8:
d:size_nat{d <= 16}
-> b:lbytes d
-> lseq uint16 8 | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "Spec.Matrix",
"short_module": null
},
{
"abbrev": false,
"full_modul... | false | let frodo_unpack8 d b =
let maskd = to_u16 (u32 1 <<. size d) -. u16 1 in
let v16 = Seq.create 16 (u8 0) in
let src = update_sub v16 (16 - d) d b in
let templong: uint_t U128 SEC = uint_from_bytes_be src in
let res = Seq.create 8 (u16 0) in
let res = res.[0] <- to_u16 (templong >>. size (7 * d)) &. maskd in... | val frodo_unpack8:
d:size_nat{d <= 16}
-> b:lbytes d
-> lseq uint16 8
let frodo_unpack8 d b = | false | null | false | let maskd = to_u16 (u32 1 <<. size d) -. u16 1 in
let v16 = Seq.create 16 (u8 0) in
let src = update_sub v16 (16 - d) d b in
let templong:uint_t U128 SEC = uint_from_bytes_be src in
let res = Seq.create 8 (u16 0) in
let res = res.[ 0 ] <- to_u16 (templong >>. size (7 * d)) &. maskd in
let res = res.[ 1 ] <- to_u16 (tem... | {
"checked_file": "Spec.Frodo.Pack.fst.checked",
"dependencies": [
"Spec.Matrix.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives... | [
"total"
] | [
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Lib.ByteSequence.lbytes",
"Lib.Sequence.lseq",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U16",
"Lib.IntTypes.SEC",
"Prims.l_and",
"Prims.eq2",
"FStar.Seq.Base.seq",
"Lib.Sequence.to_seq",
"FStar.Seq.Base.upd",
"Lib.IntTypes.logan... | [] | module Spec.Frodo.Pack
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.Matrix
module Seq = Lib.Sequence
module Loops = Lib.LoopCombinators
#reset-options "--z3rlimit 100 --max_fuel 0 --max_ifuel 0 --using_facts_from '* -FStar +FStar.Pervasives +FStar.UInt -Spec +Spec.Frodo +Spec.F... | false | false | Spec.Frodo.Pack.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 frodo_unpack8:
d:size_nat{d <= 16}
-> b:lbytes d
-> lseq uint16 8 | [] | Spec.Frodo.Pack.frodo_unpack8 | {
"file_name": "specs/frodo/Spec.Frodo.Pack.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | d: Lib.IntTypes.size_nat{d <= 16} -> b: Lib.ByteSequence.lbytes d
-> Lib.Sequence.lseq Lib.IntTypes.uint16 8 | {
"end_col": 5,
"end_line": 95,
"start_col": 23,
"start_line": 81
} |
Prims.Tot | val rounds:shuffle | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let rounds : shuffle =
repeat 10 double_round | val rounds:shuffle
let rounds:shuffle = | false | null | false | repeat 10 double_round | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [
"Lib.LoopCombinators.repeat",
"Spec.Chacha20.state",
"Spec.Chacha20.double_round"
] | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12
(* TODO: Remove, left here to avoid breaking implementation *)
let key... | false | true | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 rounds:shuffle | [] | Spec.Chacha20.rounds | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Spec.Chacha20.shuffle | {
"end_col": 24,
"end_line": 66,
"start_col": 2,
"start_line": 66
} |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let c2 = 0x79622d32ul | let c2 = | false | null | false | 0x79622d32ul | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [
"FStar.UInt32.__uint_to_t"
] | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12
(* TODO: Remove, left here to avoid breaking implementation *)
let key... | false | true | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 c2 : FStar.UInt32.t | [] | Spec.Chacha20.c2 | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | FStar.UInt32.t | {
"end_col": 21,
"end_line": 105,
"start_col": 9,
"start_line": 105
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let c1 = 0x3320646eul | let c1 = | false | null | false | 0x3320646eul | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [
"FStar.UInt32.__uint_to_t"
] | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12
(* TODO: Remove, left here to avoid breaking implementation *)
let key... | false | true | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 c1 : FStar.UInt32.t | [] | Spec.Chacha20.c1 | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | FStar.UInt32.t | {
"end_col": 21,
"end_line": 103,
"start_col": 9,
"start_line": 103
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let size_nonce = 12 | let size_nonce = | false | null | false | 12 | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [] | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32 | false | true | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 size_nonce : Prims.int | [] | Spec.Chacha20.size_nonce | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Prims.int | {
"end_col": 19,
"end_line": 16,
"start_col": 17,
"start_line": 16
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let c0 = 0x61707865ul | let c0 = | false | null | false | 0x61707865ul | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [
"FStar.UInt32.__uint_to_t"
] | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12
(* TODO: Remove, left here to avoid breaking implementation *)
let key... | false | true | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 c0 : FStar.UInt32.t | [] | Spec.Chacha20.c0 | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | FStar.UInt32.t | {
"end_col": 21,
"end_line": 101,
"start_col": 9,
"start_line": 101
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let keylen = 32 | let keylen = | false | null | false | 32 | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [] | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12 | false | true | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 keylen : Prims.int | [] | Spec.Chacha20.keylen | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Prims.int | {
"end_col": 15,
"end_line": 19,
"start_col": 13,
"start_line": 19
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let noncelen = 12 | let noncelen = | false | null | false | 12 | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [] | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12
(* TODO: Remove, left here to avoid breaking implementation *)
let key... | false | true | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 noncelen : Prims.int | [] | Spec.Chacha20.noncelen | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Prims.int | {
"end_col": 17,
"end_line": 21,
"start_col": 15,
"start_line": 21
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let blocklen = 64 | let blocklen = | false | null | false | 64 | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [] | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12
(* TODO: Remove, left here to avoid breaking implementation *) | false | true | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 blocklen : Prims.int | [] | Spec.Chacha20.blocklen | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Prims.int | {
"end_col": 17,
"end_line": 20,
"start_col": 15,
"start_line": 20
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let op_At f g = fun x -> g (f x) | let op_At f g = | false | null | false | fun x -> g (f x) | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [] | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12
(* TODO: Remove, left here to avoid breaking implementation *)
let key... | false | false | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 op_At : f: (_: _ -> _) -> g: (_: _ -> _) -> x: _ -> _ | [] | Spec.Chacha20.op_At | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | f: (_: _ -> _) -> g: (_: _ -> _) -> x: _ -> _ | {
"end_col": 32,
"end_line": 35,
"start_col": 16,
"start_line": 35
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let size_key = 32 | let size_key = | false | null | false | 32 | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [] | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types | false | true | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 size_key : Prims.int | [] | Spec.Chacha20.size_key | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Prims.int | {
"end_col": 17,
"end_line": 14,
"start_col": 15,
"start_line": 14
} | |
Prims.Tot | val chacha20_core (ctr: counter) (s0: state) : Tot state | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let chacha20_core (ctr:counter) (s0:state) : Tot state =
let k = chacha20_add_counter s0 ctr in
let k = rounds k in
let k = sum_state k s0 in
chacha20_add_counter k ctr | val chacha20_core (ctr: counter) (s0: state) : Tot state
let chacha20_core (ctr: counter) (s0: state) : Tot state = | false | null | false | let k = chacha20_add_counter s0 ctr in
let k = rounds k in
let k = sum_state k s0 in
chacha20_add_counter k ctr | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [
"Spec.Chacha20.counter",
"Spec.Chacha20.state",
"Spec.Chacha20.chacha20_add_counter",
"Spec.Chacha20.sum_state",
"Spec.Chacha20.rounds"
] | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12
(* TODO: Remove, left here to avoid breaking implementation *)
let key... | false | true | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 chacha20_core (ctr: counter) (s0: state) : Tot state | [] | Spec.Chacha20.chacha20_core | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | ctr: Spec.Chacha20.counter -> s0: Spec.Chacha20.state -> Spec.Chacha20.state | {
"end_col": 29,
"end_line": 98,
"start_col": 57,
"start_line": 94
} |
Prims.Tot | val chacha20_encrypt_block (st0: state) (incr: counter) (b: block) : Tot block | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let chacha20_encrypt_block (st0:state) (incr:counter) (b:block) : Tot block =
let k = chacha20_core incr st0 in
xor_block k b | val chacha20_encrypt_block (st0: state) (incr: counter) (b: block) : Tot block
let chacha20_encrypt_block (st0: state) (incr: counter) (b: block) : Tot block = | false | null | false | let k = chacha20_core incr st0 in
xor_block k b | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [
"Spec.Chacha20.state",
"Spec.Chacha20.counter",
"Spec.Chacha20.block",
"Spec.Chacha20.xor_block",
"Spec.Chacha20.chacha20_core"
] | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12
(* TODO: Remove, left here to avoid breaking implementation *)
let key... | false | true | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 chacha20_encrypt_block (st0: state) (incr: counter) (b: block) : Tot block | [] | Spec.Chacha20.chacha20_encrypt_block | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | st0: Spec.Chacha20.state -> incr: Spec.Chacha20.counter -> b: Spec.Chacha20.block
-> Spec.Chacha20.block | {
"end_col": 15,
"end_line": 143,
"start_col": 77,
"start_line": 141
} |
Prims.Tot | val double_round:shuffle | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let double_round : shuffle =
column_round @ diagonal_round | val double_round:shuffle
let double_round:shuffle = | false | null | false | column_round @ diagonal_round | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [
"Spec.Chacha20.op_At",
"Spec.Chacha20.state",
"Spec.Chacha20.column_round",
"Spec.Chacha20.diagonal_round"
] | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12
(* TODO: Remove, left here to avoid breaking implementation *)
let key... | false | true | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 double_round:shuffle | [] | Spec.Chacha20.double_round | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Spec.Chacha20.shuffle | {
"end_col": 31,
"end_line": 63,
"start_col": 2,
"start_line": 63
} |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let size_block = 64 | let size_block = | false | null | false | 64 | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [] | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types | false | true | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 size_block : Prims.int | [] | Spec.Chacha20.size_block | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Prims.int | {
"end_col": 19,
"end_line": 15,
"start_col": 17,
"start_line": 15
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let c3 = 0x6b206574ul | let c3 = | false | null | false | 0x6b206574ul | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [
"FStar.UInt32.__uint_to_t"
] | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12
(* TODO: Remove, left here to avoid breaking implementation *)
let key... | false | true | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 c3 : FStar.UInt32.t | [] | Spec.Chacha20.c3 | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | FStar.UInt32.t | {
"end_col": 21,
"end_line": 107,
"start_col": 9,
"start_line": 107
} | |
Prims.Tot | val chacha20_init (k: key) (n: nonce) (ctr0: counter) : Tot state | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let chacha20_init (k:key) (n:nonce) (ctr0:counter) : Tot state =
let st = create 16 (u32 0) in
let st = setup k n ctr0 st in
st | val chacha20_init (k: key) (n: nonce) (ctr0: counter) : Tot state
let chacha20_init (k: key) (n: nonce) (ctr0: counter) : Tot state = | false | null | false | let st = create 16 (u32 0) in
let st = setup k n ctr0 st in
st | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [
"Spec.Chacha20.key",
"Spec.Chacha20.nonce",
"Spec.Chacha20.counter",
"Spec.Chacha20.state",
"Spec.Chacha20.setup",
"Lib.Sequence.lseq",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"Prims.l_and",
"Prims.eq2",
"FStar.Seq.Base.seq",
"Lib.Sequence.to_seq",
"FStar.Seq.Base.cre... | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12
(* TODO: Remove, left here to avoid breaking implementation *)
let key... | false | true | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 chacha20_init (k: key) (n: nonce) (ctr0: counter) : Tot state | [] | Spec.Chacha20.chacha20_init | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | k: Spec.Chacha20.key -> n: Spec.Chacha20.nonce -> ctr0: Spec.Chacha20.counter -> Spec.Chacha20.state | {
"end_col": 4,
"end_line": 125,
"start_col": 64,
"start_line": 122
} |
Prims.Tot | val column_round:shuffle | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let column_round : shuffle =
quarter_round 0 4 8 12 @
quarter_round 1 5 9 13 @
quarter_round 2 6 10 14 @
quarter_round 3 7 11 15 | val column_round:shuffle
let column_round:shuffle = | false | null | false | quarter_round 0 4 8 12 @ quarter_round 1 5 9 13 @ quarter_round 2 6 10 14 @ quarter_round 3 7 11 15 | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [
"Spec.Chacha20.op_At",
"Spec.Chacha20.state",
"Spec.Chacha20.quarter_round"
] | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12
(* TODO: Remove, left here to avoid breaking implementation *)
let key... | false | true | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 column_round:shuffle | [] | Spec.Chacha20.column_round | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Spec.Chacha20.shuffle | {
"end_col": 25,
"end_line": 54,
"start_col": 2,
"start_line": 51
} |
Prims.Tot | val sum_state (s0 s1: state) : Tot state | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let sum_state (s0:state) (s1:state) : Tot state =
map2 (+.) s0 s1 | val sum_state (s0 s1: state) : Tot state
let sum_state (s0 s1: state) : Tot state = | false | null | false | map2 ( +. ) s0 s1 | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [
"Spec.Chacha20.state",
"Lib.Sequence.map2",
"Lib.IntTypes.uint32",
"Lib.IntTypes.op_Plus_Dot",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC"
] | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12
(* TODO: Remove, left here to avoid breaking implementation *)
let key... | false | true | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 sum_state (s0 s1: state) : Tot state | [] | Spec.Chacha20.sum_state | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | s0: Spec.Chacha20.state -> s1: Spec.Chacha20.state -> Spec.Chacha20.state | {
"end_col": 17,
"end_line": 69,
"start_col": 2,
"start_line": 69
} |
Prims.Tot | val diagonal_round:shuffle | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let diagonal_round : shuffle =
quarter_round 0 5 10 15 @
quarter_round 1 6 11 12 @
quarter_round 2 7 8 13 @
quarter_round 3 4 9 14 | val diagonal_round:shuffle
let diagonal_round:shuffle = | false | null | false | quarter_round 0 5 10 15 @ quarter_round 1 6 11 12 @ quarter_round 2 7 8 13 @ quarter_round 3 4 9 14 | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [
"Spec.Chacha20.op_At",
"Spec.Chacha20.state",
"Spec.Chacha20.quarter_round"
] | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12
(* TODO: Remove, left here to avoid breaking implementation *)
let key... | false | true | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 diagonal_round:shuffle | [] | Spec.Chacha20.diagonal_round | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Spec.Chacha20.shuffle | {
"end_col": 25,
"end_line": 60,
"start_col": 2,
"start_line": 57
} |
Prims.Tot | val chacha20_add_counter (s0: state) (ctr: counter) : Tot state | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let chacha20_add_counter (s0:state) (ctr:counter) : Tot state =
s0.[12] <- s0.[12] +. u32 ctr | val chacha20_add_counter (s0: state) (ctr: counter) : Tot state
let chacha20_add_counter (s0: state) (ctr: counter) : Tot state = | false | null | false | s0.[ 12 ] <- s0.[ 12 ] +. u32 ctr | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [
"Spec.Chacha20.state",
"Spec.Chacha20.counter",
"Lib.Sequence.op_String_Assignment",
"Lib.IntTypes.uint32",
"Lib.IntTypes.op_Plus_Dot",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"Lib.Sequence.op_String_Access",
"Lib.IntTypes.u32"
] | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12
(* TODO: Remove, left here to avoid breaking implementation *)
let key... | false | true | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 chacha20_add_counter (s0: state) (ctr: counter) : Tot state | [] | Spec.Chacha20.chacha20_add_counter | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | s0: Spec.Chacha20.state -> ctr: Spec.Chacha20.counter -> Spec.Chacha20.state | {
"end_col": 31,
"end_line": 72,
"start_col": 2,
"start_line": 72
} |
Prims.Tot | val chacha20_key_block (st: state) : Tot block | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let chacha20_key_block (st:state) : Tot block =
let st = chacha20_core 0 st in
uints_to_bytes_le st | val chacha20_key_block (st: state) : Tot block
let chacha20_key_block (st: state) : Tot block = | false | null | false | let st = chacha20_core 0 st in
uints_to_bytes_le st | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [
"Spec.Chacha20.state",
"Lib.ByteSequence.uints_to_bytes_le",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"Spec.Chacha20.chacha20_core",
"Spec.Chacha20.block"
] | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12
(* TODO: Remove, left here to avoid breaking implementation *)
let key... | false | true | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 chacha20_key_block (st: state) : Tot block | [] | Spec.Chacha20.chacha20_key_block | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | st: Spec.Chacha20.state -> Spec.Chacha20.block | {
"end_col": 22,
"end_line": 134,
"start_col": 47,
"start_line": 132
} |
Prims.Tot | val xor_block (k: state) (b: block) : block | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let xor_block (k:state) (b:block) : block =
let ib = uints_from_bytes_le b in
let ob = map2 (^.) ib k in
uints_to_bytes_le ob | val xor_block (k: state) (b: block) : block
let xor_block (k: state) (b: block) : block = | false | null | false | let ib = uints_from_bytes_le b in
let ob = map2 ( ^. ) ib k in
uints_to_bytes_le ob | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [
"Spec.Chacha20.state",
"Spec.Chacha20.block",
"Lib.ByteSequence.uints_to_bytes_le",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"Lib.Sequence.lseq",
"Lib.IntTypes.int_t",
"Prims.l_Forall",
"Prims.nat",
"Prims.l_imp",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.eq2",
"Lib.Sequence.index",
"Lib.I... | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12
(* TODO: Remove, left here to avoid breaking implementation *)
let key... | false | true | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 xor_block (k: state) (b: block) : block | [] | Spec.Chacha20.xor_block | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | k: Spec.Chacha20.state -> b: Spec.Chacha20.block -> Spec.Chacha20.block | {
"end_col": 22,
"end_line": 139,
"start_col": 44,
"start_line": 136
} |
Prims.Tot | val chacha20_encrypt_bytes:
k: key
-> n: nonce
-> c: counter
-> msg: bytes{length msg / size_block <= max_size_t}
-> cipher: bytes{length cipher == length msg} | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let chacha20_encrypt_bytes key nonce ctr0 msg =
let st0 = chacha20_init key nonce ctr0 in
chacha20_update st0 msg | val chacha20_encrypt_bytes:
k: key
-> n: nonce
-> c: counter
-> msg: bytes{length msg / size_block <= max_size_t}
-> cipher: bytes{length cipher == length msg}
let chacha20_encrypt_bytes key nonce ctr0 msg = | false | null | false | let st0 = chacha20_init key nonce ctr0 in
chacha20_update st0 msg | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [
"Spec.Chacha20.key",
"Spec.Chacha20.nonce",
"Spec.Chacha20.counter",
"Lib.ByteSequence.bytes",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Division",
"Lib.Sequence.length",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Spec.Chacha20.size_block",
"Lib.IntTypes.max_size... | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12
(* TODO: Remove, left here to avoid breaking implementation *)
let key... | false | false | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 chacha20_encrypt_bytes:
k: key
-> n: nonce
-> c: counter
-> msg: bytes{length msg / size_block <= max_size_t}
-> cipher: bytes{length cipher == length msg} | [] | Spec.Chacha20.chacha20_encrypt_bytes | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
k: Spec.Chacha20.key ->
n: Spec.Chacha20.nonce ->
c: Spec.Chacha20.counter ->
msg:
Lib.ByteSequence.bytes
{Lib.Sequence.length msg / Spec.Chacha20.size_block <= Lib.IntTypes.max_size_t}
-> cipher: Lib.ByteSequence.bytes{Lib.Sequence.length cipher == Lib.Sequence.length msg} | {
"end_col": 25,
"end_line": 179,
"start_col": 47,
"start_line": 177
} |
Prims.Tot | val chacha20_decrypt_bytes:
k: key
-> n: nonce
-> c: counter
-> cipher: bytes{length cipher / size_block <= max_size_t}
-> msg: bytes{length cipher == length msg} | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let chacha20_decrypt_bytes key nonce ctr0 cipher =
let st0 = chacha20_init key nonce ctr0 in
chacha20_update st0 cipher | val chacha20_decrypt_bytes:
k: key
-> n: nonce
-> c: counter
-> cipher: bytes{length cipher / size_block <= max_size_t}
-> msg: bytes{length cipher == length msg}
let chacha20_decrypt_bytes key nonce ctr0 cipher = | false | null | false | let st0 = chacha20_init key nonce ctr0 in
chacha20_update st0 cipher | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [
"Spec.Chacha20.key",
"Spec.Chacha20.nonce",
"Spec.Chacha20.counter",
"Lib.ByteSequence.bytes",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Division",
"Lib.Sequence.length",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Spec.Chacha20.size_block",
"Lib.IntTypes.max_size... | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12
(* TODO: Remove, left here to avoid breaking implementation *)
let key... | false | false | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 chacha20_decrypt_bytes:
k: key
-> n: nonce
-> c: counter
-> cipher: bytes{length cipher / size_block <= max_size_t}
-> msg: bytes{length cipher == length msg} | [] | Spec.Chacha20.chacha20_decrypt_bytes | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
k: Spec.Chacha20.key ->
n: Spec.Chacha20.nonce ->
c: Spec.Chacha20.counter ->
cipher:
Lib.ByteSequence.bytes
{Lib.Sequence.length cipher / Spec.Chacha20.size_block <= Lib.IntTypes.max_size_t}
-> msg: Lib.ByteSequence.bytes{Lib.Sequence.length cipher == Lib.Sequence.length msg} | {
"end_col": 28,
"end_line": 191,
"start_col": 50,
"start_line": 189
} |
Prims.Tot | val chacha20_encrypt_last
(st0: state)
(incr: counter)
(len: size_nat{len < size_block})
(b: lbytes len)
: Tot (lbytes len) | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let chacha20_encrypt_last
(st0: state)
(incr: counter)
(len: size_nat{len < size_block})
(b: lbytes len) :
Tot (lbytes len) =
let plain = create size_block (u8 0) in
let plain = update_sub plain 0 len b in
let cipher = chacha20_encrypt_block st0 incr plain in
sub cipher 0 (length b) | val chacha20_encrypt_last
(st0: state)
(incr: counter)
(len: size_nat{len < size_block})
(b: lbytes len)
: Tot (lbytes len)
let chacha20_encrypt_last
(st0: state)
(incr: counter)
(len: size_nat{len < size_block})
(b: lbytes len)
: Tot (lbytes len) = | false | null | false | let plain = create size_block (u8 0) in
let plain = update_sub plain 0 len b in
let cipher = chacha20_encrypt_block st0 incr plain in
sub cipher 0 (length b) | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [
"Spec.Chacha20.state",
"Spec.Chacha20.counter",
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThan",
"Spec.Chacha20.size_block",
"Lib.ByteSequence.lbytes",
"Lib.Sequence.sub",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Lib.Sequence.length",
"Spec.Chacha20.block",
... | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12
(* TODO: Remove, left here to avoid breaking implementation *)
let key... | false | false | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 chacha20_encrypt_last
(st0: state)
(incr: counter)
(len: size_nat{len < size_block})
(b: lbytes len)
: Tot (lbytes len) | [] | Spec.Chacha20.chacha20_encrypt_last | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
st0: Spec.Chacha20.state ->
incr: Spec.Chacha20.counter ->
len: Lib.IntTypes.size_nat{len < Spec.Chacha20.size_block} ->
b: Lib.ByteSequence.lbytes len
-> Lib.ByteSequence.lbytes len | {
"end_col": 25,
"end_line": 155,
"start_col": 20,
"start_line": 150
} |
Prims.Tot | val chacha20_constants:lseq size_t 4 | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let chacha20_constants : lseq size_t 4 =
[@ inline_let]
let l = [c0;c1;c2;c3] in
assert_norm(List.Tot.length l == 4);
createL l | val chacha20_constants:lseq size_t 4
let chacha20_constants:lseq size_t 4 = | false | null | false | [@@ inline_let ]let l = [c0; c1; c2; c3] in
assert_norm (List.Tot.length l == 4);
createL l | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [
"Lib.Sequence.createL",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"Prims.Cons",
"Spec.Chacha20.c0",
"Spec.Chacha20.c1",
"Spec.Chacha20.c2",
"Spec.Chacha... | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12
(* TODO: Remove, left here to avoid breaking implementation *)
let key... | false | false | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 chacha20_constants:lseq size_t 4 | [] | Spec.Chacha20.chacha20_constants | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB) 4 | {
"end_col": 11,
"end_line": 113,
"start_col": 2,
"start_line": 110
} |
Prims.Tot | val chacha20_update:
ctx: state
-> msg: bytes{length msg / size_block <= max_size_t}
-> cipher: bytes{length cipher == length msg} | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let chacha20_update ctx msg =
let cipher = msg in
map_blocks size_block cipher
(chacha20_encrypt_block ctx)
(chacha20_encrypt_last ctx) | val chacha20_update:
ctx: state
-> msg: bytes{length msg / size_block <= max_size_t}
-> cipher: bytes{length cipher == length msg}
let chacha20_update ctx msg = | false | null | false | let cipher = msg in
map_blocks size_block cipher (chacha20_encrypt_block ctx) (chacha20_encrypt_last ctx) | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [
"Spec.Chacha20.state",
"Lib.ByteSequence.bytes",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Division",
"Lib.Sequence.length",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Spec.Chacha20.size_block",
"Lib.IntTypes.max_size_t",
"Lib.Sequence.map_blocks",
"Spec.Chacha20... | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12
(* TODO: Remove, left here to avoid breaking implementation *)
let key... | false | false | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 chacha20_update:
ctx: state
-> msg: bytes{length msg / size_block <= max_size_t}
-> cipher: bytes{length cipher == length msg} | [] | Spec.Chacha20.chacha20_update | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
ctx: Spec.Chacha20.state ->
msg:
Lib.ByteSequence.bytes
{Lib.Sequence.length msg / Spec.Chacha20.size_block <= Lib.IntTypes.max_size_t}
-> cipher: Lib.ByteSequence.bytes{Lib.Sequence.length cipher == Lib.Sequence.length msg} | {
"end_col": 31,
"end_line": 167,
"start_col": 29,
"start_line": 163
} |
Prims.Tot | val chacha20_key_block0 (k: key) (n: nonce) : Tot block | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let chacha20_key_block0 (k:key) (n:nonce) : Tot block =
let st = chacha20_init k n 0 in
let st = chacha20_core 0 st in
uints_to_bytes_le st | val chacha20_key_block0 (k: key) (n: nonce) : Tot block
let chacha20_key_block0 (k: key) (n: nonce) : Tot block = | false | null | false | let st = chacha20_init k n 0 in
let st = chacha20_core 0 st in
uints_to_bytes_le st | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [
"Spec.Chacha20.key",
"Spec.Chacha20.nonce",
"Lib.ByteSequence.uints_to_bytes_le",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"Spec.Chacha20.state",
"Spec.Chacha20.chacha20_core",
"Spec.Chacha20.chacha20_init",
"Spec.Chacha20.block"
] | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12
(* TODO: Remove, left here to avoid breaking implementation *)
let key... | false | true | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 chacha20_key_block0 (k: key) (n: nonce) : Tot block | [] | Spec.Chacha20.chacha20_key_block0 | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | k: Spec.Chacha20.key -> n: Spec.Chacha20.nonce -> Spec.Chacha20.block | {
"end_col": 22,
"end_line": 130,
"start_col": 55,
"start_line": 127
} |
Prims.Tot | val line (a b d: idx) (s: rotval U32) (m: state) : Tot state | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let line (a:idx) (b:idx) (d:idx) (s:rotval U32) (m:state) : Tot state =
let m = m.[a] <- (m.[a] +. m.[b]) in
let m = m.[d] <- ((m.[d] ^. m.[a]) <<<. s) in m | val line (a b d: idx) (s: rotval U32) (m: state) : Tot state
let line (a b d: idx) (s: rotval U32) (m: state) : Tot state = | false | null | false | let m = m.[ a ] <- (m.[ a ] +. m.[ b ]) in
let m = m.[ d ] <- ((m.[ d ] ^. m.[ a ]) <<<. s) in
m | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [
"Spec.Chacha20.idx",
"Lib.IntTypes.rotval",
"Lib.IntTypes.U32",
"Spec.Chacha20.state",
"Lib.Sequence.lseq",
"Lib.IntTypes.int_t",
"Lib.IntTypes.SEC",
"Prims.l_and",
"Prims.eq2",
"FStar.Seq.Base.seq",
"Lib.Sequence.to_seq",
"FStar.Seq.Base.upd",
"Lib.IntTypes.rotate_left",
"Lib.IntTypes.log... | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12
(* TODO: Remove, left here to avoid breaking implementation *)
let key... | false | true | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 line (a b d: idx) (s: rotval U32) (m: state) : Tot state | [] | Spec.Chacha20.line | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
a: Spec.Chacha20.idx ->
b: Spec.Chacha20.idx ->
d: Spec.Chacha20.idx ->
s: Lib.IntTypes.rotval Lib.IntTypes.U32 ->
m: Spec.Chacha20.state
-> Spec.Chacha20.state | {
"end_col": 49,
"end_line": 42,
"start_col": 71,
"start_line": 40
} |
Prims.Tot | val setup (k: key) (n: nonce) (ctr0: counter) (st: state) : Tot state | [
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_mo... | false | let setup (k:key) (n:nonce) (ctr0:counter) (st:state) : Tot state =
let st = update_sub st 0 4 (map secret chacha20_constants) in
let st = update_sub st 4 8 (uints_from_bytes_le #U32 #SEC #8 k) in
let st = st.[12] <- u32 ctr0 in
let st = update_sub st 13 3 (uints_from_bytes_le #U32 #SEC #3 n) in
st | val setup (k: key) (n: nonce) (ctr0: counter) (st: state) : Tot state
let setup (k: key) (n: nonce) (ctr0: counter) (st: state) : Tot state = | false | null | false | let st = update_sub st 0 4 (map secret chacha20_constants) in
let st = update_sub st 4 8 (uints_from_bytes_le #U32 #SEC #8 k) in
let st = st.[ 12 ] <- u32 ctr0 in
let st = update_sub st 13 3 (uints_from_bytes_le #U32 #SEC #3 n) in
st | {
"checked_file": "Spec.Chacha20.fst.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mu... | [
"total"
] | [
"Spec.Chacha20.key",
"Spec.Chacha20.nonce",
"Spec.Chacha20.counter",
"Spec.Chacha20.state",
"Lib.Sequence.lseq",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U32",
"Lib.IntTypes.SEC",
"Prims.l_and",
"Prims.eq2",
"Lib.Sequence.sub",
"Lib.ByteSequence.uints_from_bytes_le",
"Prims.l_Forall",
"Prims.na... | [] | module Spec.Chacha20
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Lib.LoopCombinators
#set-options "--max_fuel 0 --z3rlimit 100"
/// Constants and Types
let size_key = 32
let size_block = 64
let size_nonce = 12
(* TODO: Remove, left here to avoid breaking implementation *)
let key... | false | true | Spec.Chacha20.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": 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 setup (k: key) (n: nonce) (ctr0: counter) (st: state) : Tot state | [] | Spec.Chacha20.setup | {
"file_name": "specs/Spec.Chacha20.fst",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
k: Spec.Chacha20.key ->
n: Spec.Chacha20.nonce ->
ctr0: Spec.Chacha20.counter ->
st: Spec.Chacha20.state
-> Spec.Chacha20.state | {
"end_col": 4,
"end_line": 120,
"start_col": 67,
"start_line": 115
} |
Prims.Tot | val get_last_s (#a: Type) (#len: nat) (blocksize: size_pos) (inp: seq a {length inp == len})
: lseq a (len % blocksize) | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let get_last_s
(#a:Type)
(#len:nat)
(blocksize:size_pos)
(inp:seq a{length inp == len}) :
lseq a (len % blocksize)
=
let rem = len % blocksize in
let b: lseq a rem = Seq.slice inp (len - rem) len in
b | val get_last_s (#a: Type) (#len: nat) (blocksize: size_pos) (inp: seq a {length inp == len})
: lseq a (len % blocksize)
let get_last_s (#a: Type) (#len: nat) (blocksize: size_pos) (inp: seq a {length inp == len})
: lseq a (len % blocksize) = | false | null | false | let rem = len % blocksize in
let b:lseq a rem = Seq.slice inp (len - rem) len in
b | {
"checked_file": "Lib.Sequence.Lemmas.fsti.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Le... | [
"total"
] | [
"Prims.nat",
"Lib.IntTypes.size_pos",
"Lib.Sequence.seq",
"Prims.eq2",
"Lib.Sequence.length",
"Lib.Sequence.lseq",
"FStar.Seq.Base.slice",
"Prims.op_Subtraction",
"Prims.int",
"Prims.op_Modulus"
] | [] | module Lib.Sequence.Lemmas
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module Loops = Lib.LoopCombinators
#set-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0 \
--using_facts_from '-* +Prims +FStar.Math.Lemmas +FStar.Seq +Lib.IntTypes +Lib.Sequence +Lib.Sequence.Lemmas'"
let get_block_s
(#a:Type)
(#... | false | false | Lib.Sequence.Lemmas.fsti | {
"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 get_last_s (#a: Type) (#len: nat) (blocksize: size_pos) (inp: seq a {length inp == len})
: lseq a (len % blocksize) | [] | Lib.Sequence.Lemmas.get_last_s | {
"file_name": "lib/Lib.Sequence.Lemmas.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | blocksize: Lib.IntTypes.size_pos -> inp: Lib.Sequence.seq a {Lib.Sequence.length inp == len}
-> Lib.Sequence.lseq a (len % blocksize) | {
"end_col": 3,
"end_line": 36,
"start_col": 1,
"start_line": 33
} |
Prims.Tot | val repeat_gen_blocks_map_l
(#a: Type0)
(blocksize: size_pos)
(hi: nat)
(l: (i: nat{i <= hi} -> rem: nat{rem < blocksize} -> lseq a rem -> lseq a rem))
(i: nat{i <= hi})
(rem: nat{rem < blocksize})
(block_l: lseq a rem)
(acc: map_blocks_a a blocksize hi i)
: seq a | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let repeat_gen_blocks_map_l
(#a:Type0)
(blocksize:size_pos)
(hi:nat)
(l:(i:nat{i <= hi} -> rem:nat{rem < blocksize} -> lseq a rem -> lseq a rem))
(i:nat{i <= hi})
(rem:nat{rem < blocksize})
(block_l:lseq a rem)
(acc:map_blocks_a a blocksize hi i) : seq a
=
if rem > 0 then Seq.append acc (l i rem blo... | val repeat_gen_blocks_map_l
(#a: Type0)
(blocksize: size_pos)
(hi: nat)
(l: (i: nat{i <= hi} -> rem: nat{rem < blocksize} -> lseq a rem -> lseq a rem))
(i: nat{i <= hi})
(rem: nat{rem < blocksize})
(block_l: lseq a rem)
(acc: map_blocks_a a blocksize hi i)
: seq a
let... | false | null | false | if rem > 0 then Seq.append acc (l i rem block_l) else acc | {
"checked_file": "Lib.Sequence.Lemmas.fsti.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Le... | [
"total"
] | [
"Lib.IntTypes.size_pos",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_LessThan",
"Lib.Sequence.lseq",
"Lib.Sequence.map_blocks_a",
"Prims.op_GreaterThan",
"FStar.Seq.Base.append",
"Prims.bool",
"Lib.Sequence.seq"
] | [] | module Lib.Sequence.Lemmas
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module Loops = Lib.LoopCombinators
#set-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0 \
--using_facts_from '-* +Prims +FStar.Math.Lemmas +FStar.Seq +Lib.IntTypes +Lib.Sequence +Lib.Sequence.Lemmas'"
let get_block_s
(#a:Type)
(#... | false | false | Lib.Sequence.Lemmas.fsti | {
"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 repeat_gen_blocks_map_l
(#a: Type0)
(blocksize: size_pos)
(hi: nat)
(l: (i: nat{i <= hi} -> rem: nat{rem < blocksize} -> lseq a rem -> lseq a rem))
(i: nat{i <= hi})
(rem: nat{rem < blocksize})
(block_l: lseq a rem)
(acc: map_blocks_a a blocksize hi i)
: seq a | [] | Lib.Sequence.Lemmas.repeat_gen_blocks_map_l | {
"file_name": "lib/Lib.Sequence.Lemmas.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
blocksize: Lib.IntTypes.size_pos ->
hi: Prims.nat ->
l:
(i: Prims.nat{i <= hi} -> rem: Prims.nat{rem < blocksize} -> _: Lib.Sequence.lseq a rem
-> Lib.Sequence.lseq a rem) ->
i: Prims.nat{i <= hi} ->
rem: Prims.nat{rem < blocksize} ->
block_l: Lib.Sequence.lseq a rem ->
acc:... | {
"end_col": 60,
"end_line": 523,
"start_col": 3,
"start_line": 523
} |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let f_shift (#a:Type0) (blocksize:size_pos) (mi:nat) (hi:nat) (n:nat{mi + n <= hi})
(f:(i:nat{i < hi} -> lseq a blocksize -> lseq a blocksize)) (i:nat{i < n}) = f (mi + i) | let f_shift
(#a: Type0)
(blocksize: size_pos)
(mi hi: nat)
(n: nat{mi + n <= hi})
(f: (i: nat{i < hi} -> lseq a blocksize -> lseq a blocksize))
(i: nat{i < n})
= | false | null | false | f (mi + i) | {
"checked_file": "Lib.Sequence.Lemmas.fsti.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Le... | [
"total"
] | [
"Lib.IntTypes.size_pos",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"Prims.op_LessThan",
"Lib.Sequence.lseq"
] | [] | module Lib.Sequence.Lemmas
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module Loops = Lib.LoopCombinators
#set-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0 \
--using_facts_from '-* +Prims +FStar.Math.Lemmas +FStar.Seq +Lib.IntTypes +Lib.Sequence +Lib.Sequence.Lemmas'"
let get_block_s
(#a:Type)
(#... | false | false | Lib.Sequence.Lemmas.fsti | {
"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 f_shift : blocksize: Lib.IntTypes.size_pos ->
mi: Prims.nat ->
hi: Prims.nat ->
n: Prims.nat{mi + n <= hi} ->
f: (i: Prims.nat{i < hi} -> _: Lib.Sequence.lseq a blocksize -> Lib.Sequence.lseq a blocksize) ->
i: Prims.nat{i < n} ->
_: Lib.Sequence.lseq a blocksize
-> Lib.Sequence.lseq a blo... | [] | Lib.Sequence.Lemmas.f_shift | {
"file_name": "lib/Lib.Sequence.Lemmas.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
blocksize: Lib.IntTypes.size_pos ->
mi: Prims.nat ->
hi: Prims.nat ->
n: Prims.nat{mi + n <= hi} ->
f: (i: Prims.nat{i < hi} -> _: Lib.Sequence.lseq a blocksize -> Lib.Sequence.lseq a blocksize) ->
i: Prims.nat{i < n} ->
_: Lib.Sequence.lseq a blocksize
-> Lib.Sequence.lseq a blocksize | {
"end_col": 89,
"end_line": 609,
"start_col": 79,
"start_line": 609
} | |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let l_shift (#a:Type0) (blocksize:size_pos) (mi:nat) (hi:nat) (n:nat{mi + n <= hi})
(l:(i:nat{i <= hi} -> rem:nat{rem < blocksize} -> lseq a rem -> lseq a rem)) (i:nat{i <= n}) = l (mi + i) | let l_shift
(#a: Type0)
(blocksize: size_pos)
(mi hi: nat)
(n: nat{mi + n <= hi})
(l: (i: nat{i <= hi} -> rem: nat{rem < blocksize} -> lseq a rem -> lseq a rem))
(i: nat{i <= n})
= | false | null | false | l (mi + i) | {
"checked_file": "Lib.Sequence.Lemmas.fsti.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Le... | [
"total"
] | [
"Lib.IntTypes.size_pos",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"Prims.op_LessThan",
"Lib.Sequence.lseq"
] | [] | module Lib.Sequence.Lemmas
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module Loops = Lib.LoopCombinators
#set-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0 \
--using_facts_from '-* +Prims +FStar.Math.Lemmas +FStar.Seq +Lib.IntTypes +Lib.Sequence +Lib.Sequence.Lemmas'"
let get_block_s
(#a:Type)
(#... | false | false | Lib.Sequence.Lemmas.fsti | {
"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 l_shift : blocksize: Lib.IntTypes.size_pos ->
mi: Prims.nat ->
hi: Prims.nat ->
n: Prims.nat{mi + n <= hi} ->
l:
(i: Prims.nat{i <= hi} -> rem: Prims.nat{rem < blocksize} -> _: Lib.Sequence.lseq a rem
-> Lib.Sequence.lseq a rem) ->
i: Prims.nat{i <= n} ->
rem: Prims.nat{rem <... | [] | Lib.Sequence.Lemmas.l_shift | {
"file_name": "lib/Lib.Sequence.Lemmas.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
blocksize: Lib.IntTypes.size_pos ->
mi: Prims.nat ->
hi: Prims.nat ->
n: Prims.nat{mi + n <= hi} ->
l:
(i: Prims.nat{i <= hi} -> rem: Prims.nat{rem < blocksize} -> _: Lib.Sequence.lseq a rem
-> Lib.Sequence.lseq a rem) ->
i: Prims.nat{i <= n} ->
rem: Prims.nat{rem < blocksiz... | {
"end_col": 107,
"end_line": 613,
"start_col": 97,
"start_line": 613
} | |
Prims.Tot | val get_block_s
(#a: Type)
(#len: nat)
(blocksize: size_pos)
(inp: seq a {length inp == len})
(i: nat{i < (len / blocksize) * blocksize})
: lseq a blocksize | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let get_block_s
(#a:Type)
(#len:nat)
(blocksize:size_pos)
(inp:seq a{length inp == len})
(i:nat{i < len / blocksize * blocksize}) :
lseq a blocksize
=
div_mul_lt blocksize i (len / blocksize);
let j = i / blocksize in
let b: lseq a blocksize = Seq.slice inp (j * blocksize) ((j + 1) * blocksize) in
b | val get_block_s
(#a: Type)
(#len: nat)
(blocksize: size_pos)
(inp: seq a {length inp == len})
(i: nat{i < (len / blocksize) * blocksize})
: lseq a blocksize
let get_block_s
(#a: Type)
(#len: nat)
(blocksize: size_pos)
(inp: seq a {length inp == len})
(i: n... | false | null | false | div_mul_lt blocksize i (len / blocksize);
let j = i / blocksize in
let b:lseq a blocksize = Seq.slice inp (j * blocksize) ((j + 1) * blocksize) in
b | {
"checked_file": "Lib.Sequence.Lemmas.fsti.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Le... | [
"total"
] | [
"Prims.nat",
"Lib.IntTypes.size_pos",
"Lib.Sequence.seq",
"Prims.eq2",
"Lib.Sequence.length",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Mul.op_Star",
"Prims.op_Division",
"Lib.Sequence.lseq",
"FStar.Seq.Base.slice",
"Prims.op_Addition",
"Prims.int",
"Prims.unit",
"Lib.Sequence.div_mul_lt"... | [] | module Lib.Sequence.Lemmas
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module Loops = Lib.LoopCombinators
#set-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0 \
--using_facts_from '-* +Prims +FStar.Math.Lemmas +FStar.Seq +Lib.IntTypes +Lib.Sequence +Lib.Sequence.Lemmas'"
let get_block_s
(#a:Type)
(#... | false | false | Lib.Sequence.Lemmas.fsti | {
"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 get_block_s
(#a: Type)
(#len: nat)
(blocksize: size_pos)
(inp: seq a {length inp == len})
(i: nat{i < (len / blocksize) * blocksize})
: lseq a blocksize | [] | Lib.Sequence.Lemmas.get_block_s | {
"file_name": "lib/Lib.Sequence.Lemmas.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
blocksize: Lib.IntTypes.size_pos ->
inp: Lib.Sequence.seq a {Lib.Sequence.length inp == len} ->
i: Prims.nat{i < (len / blocksize) * blocksize}
-> Lib.Sequence.lseq a blocksize | {
"end_col": 3,
"end_line": 24,
"start_col": 2,
"start_line": 21
} |
Prims.Tot | val repeat_gen_blocks_map_f
(#a: Type0)
(blocksize: size_pos)
(hi: nat)
(f: (i: nat{i < hi} -> lseq a blocksize -> lseq a blocksize))
(i: nat{i < hi})
(block: lseq a blocksize)
(acc: map_blocks_a a blocksize hi i)
: map_blocks_a a blocksize hi (i + 1) | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let repeat_gen_blocks_map_f
(#a:Type0)
(blocksize:size_pos)
(hi:nat)
(f:(i:nat{i < hi} -> lseq a blocksize -> lseq a blocksize))
(i:nat{i < hi})
(block:lseq a blocksize)
(acc:map_blocks_a a blocksize hi i) : map_blocks_a a blocksize hi (i + 1)
=
Seq.append acc (f i block) | val repeat_gen_blocks_map_f
(#a: Type0)
(blocksize: size_pos)
(hi: nat)
(f: (i: nat{i < hi} -> lseq a blocksize -> lseq a blocksize))
(i: nat{i < hi})
(block: lseq a blocksize)
(acc: map_blocks_a a blocksize hi i)
: map_blocks_a a blocksize hi (i + 1)
let repeat_gen_blocks_... | false | null | false | Seq.append acc (f i block) | {
"checked_file": "Lib.Sequence.Lemmas.fsti.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Le... | [
"total"
] | [
"Lib.IntTypes.size_pos",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.Sequence.lseq",
"Lib.Sequence.map_blocks_a",
"FStar.Seq.Base.append",
"Prims.op_Addition"
] | [] | module Lib.Sequence.Lemmas
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module Loops = Lib.LoopCombinators
#set-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0 \
--using_facts_from '-* +Prims +FStar.Math.Lemmas +FStar.Seq +Lib.IntTypes +Lib.Sequence +Lib.Sequence.Lemmas'"
let get_block_s
(#a:Type)
(#... | false | false | Lib.Sequence.Lemmas.fsti | {
"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 repeat_gen_blocks_map_f
(#a: Type0)
(blocksize: size_pos)
(hi: nat)
(f: (i: nat{i < hi} -> lseq a blocksize -> lseq a blocksize))
(i: nat{i < hi})
(block: lseq a blocksize)
(acc: map_blocks_a a blocksize hi i)
: map_blocks_a a blocksize hi (i + 1) | [] | Lib.Sequence.Lemmas.repeat_gen_blocks_map_f | {
"file_name": "lib/Lib.Sequence.Lemmas.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
blocksize: Lib.IntTypes.size_pos ->
hi: Prims.nat ->
f: (i: Prims.nat{i < hi} -> _: Lib.Sequence.lseq a blocksize -> Lib.Sequence.lseq a blocksize) ->
i: Prims.nat{i < hi} ->
block: Lib.Sequence.lseq a blocksize ->
acc: Lib.Sequence.map_blocks_a a blocksize hi i
-> Lib.Sequence.map_blocks_a a... | {
"end_col": 29,
"end_line": 510,
"start_col": 3,
"start_line": 510
} |
Prims.Tot | val repeat_gen_blocks_f
(#inp_t: Type0)
(blocksize: size_pos)
(mi hi: nat)
(n: nat{mi + n <= hi})
(inp: seq inp_t {length inp == n * blocksize})
(a: (i: nat{i <= hi} -> Type))
(f: (i: nat{i < hi} -> lseq inp_t blocksize -> a i -> a (i + 1)))
(i: nat{mi <= i /\ i < mi + n}... | [
{
"abbrev": true,
"full_module": "Lib.LoopCombinators",
"short_module": "Loops"
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let repeat_gen_blocks_f
(#inp_t:Type0)
(blocksize:size_pos)
(mi:nat)
(hi:nat)
(n:nat{mi + n <= hi})
(inp:seq inp_t{length inp == n * blocksize})
(a:(i:nat{i <= hi} -> Type))
(f:(i:nat{i < hi} -> lseq inp_t blocksize -> a i -> a (i + 1)))
(i:nat{mi <= i /\ i < mi + n})
(acc:a i) : a (i + 1)
=
let i... | val repeat_gen_blocks_f
(#inp_t: Type0)
(blocksize: size_pos)
(mi hi: nat)
(n: nat{mi + n <= hi})
(inp: seq inp_t {length inp == n * blocksize})
(a: (i: nat{i <= hi} -> Type))
(f: (i: nat{i < hi} -> lseq inp_t blocksize -> a i -> a (i + 1)))
(i: nat{mi <= i /\ i < mi + n}... | false | null | false | let i_b = i - mi in
Math.Lemmas.lemma_mult_le_right blocksize (i_b + 1) n;
let block = Seq.slice inp (i_b * blocksize) (i_b * blocksize + blocksize) in
f i block acc | {
"checked_file": "Lib.Sequence.Lemmas.fsti.checked",
"dependencies": [
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Math.Le... | [
"total"
] | [
"Lib.IntTypes.size_pos",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"Lib.Sequence.seq",
"Prims.eq2",
"Prims.int",
"Lib.Sequence.length",
"FStar.Mul.op_Star",
"Prims.op_LessThan",
"Lib.Sequence.lseq",
"Prims.l_and",
"FStar.Seq.Base.seq",
"FStar.Seq.Base.sli... | [] | module Lib.Sequence.Lemmas
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
module Loops = Lib.LoopCombinators
#set-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0 \
--using_facts_from '-* +Prims +FStar.Math.Lemmas +FStar.Seq +Lib.IntTypes +Lib.Sequence +Lib.Sequence.Lemmas'"
let get_block_s
(#a:Type)
(#... | false | false | Lib.Sequence.Lemmas.fsti | {
"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 repeat_gen_blocks_f
(#inp_t: Type0)
(blocksize: size_pos)
(mi hi: nat)
(n: nat{mi + n <= hi})
(inp: seq inp_t {length inp == n * blocksize})
(a: (i: nat{i <= hi} -> Type))
(f: (i: nat{i < hi} -> lseq inp_t blocksize -> a i -> a (i + 1)))
(i: nat{mi <= i /\ i < mi + n}... | [] | Lib.Sequence.Lemmas.repeat_gen_blocks_f | {
"file_name": "lib/Lib.Sequence.Lemmas.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
blocksize: Lib.IntTypes.size_pos ->
mi: Prims.nat ->
hi: Prims.nat ->
n: Prims.nat{mi + n <= hi} ->
inp: Lib.Sequence.seq inp_t {Lib.Sequence.length inp == n * blocksize} ->
a: (i: Prims.nat{i <= hi} -> Type) ->
f: (i: Prims.nat{i < hi} -> _: Lib.Sequence.lseq inp_t blocksize -> _: a i -> a... | {
"end_col": 15,
"end_line": 133,
"start_col": 1,
"start_line": 129
} |
Steel.ST.Effect.ST | val alloc (#a:Type)
(#pcm:pcm a)
(x:a)
: ST (ref a pcm)
emp
(fun r -> pts_to r x)
(requires pcm.refine x)
(ensures fun _ -> True) | [
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Steel.ST.Coercions",
"short_module": "C"
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let alloc x = C.coerce_steel (fun _ -> P.alloc x) | val alloc (#a:Type)
(#pcm:pcm a)
(x:a)
: ST (ref a pcm)
emp
(fun r -> pts_to r x)
(requires pcm.refine x)
(ensures fun _ -> True)
let alloc x = | true | null | false | C.coerce_steel (fun _ -> P.alloc x) | {
"checked_file": "Steel.ST.PCMReference.fst.checked",
"dependencies": [
"Steel.ST.Coercions.fsti.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Effect.Atomic.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST.PCMRef... | [] | [
"FStar.PCM.pcm",
"Steel.ST.Coercions.coerce_steel",
"Steel.Memory.ref",
"Steel.Effect.Common.emp",
"Steel.Effect.Common.VUnit",
"Steel.Effect.Common.to_vprop'",
"Steel.Memory.pts_to",
"Steel.Effect.Common.vprop",
"FStar.PCM.__proj__Mkpcm__item__refine",
"Prims.l_True",
"Prims.unit",
"Steel.PCM... | [] | module Steel.ST.PCMReference
module C = Steel.ST.Coercions
module P = Steel.PCMReference
let read r v0 = C.coerce_steel (fun _ -> P.read r v0)
let write r v0 v1 = C.coerce_steel (fun _ -> P.write r v0 v1) | false | false | Steel.ST.PCMReference.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 alloc (#a:Type)
(#pcm:pcm a)
(x:a)
: ST (ref a pcm)
emp
(fun r -> pts_to r x)
(requires pcm.refine x)
(ensures fun _ -> True) | [] | Steel.ST.PCMReference.alloc | {
"file_name": "lib/steel/Steel.ST.PCMReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | x: a -> Steel.ST.Effect.ST (Steel.Memory.ref a pcm) | {
"end_col": 49,
"end_line": 10,
"start_col": 14,
"start_line": 10
} |
Steel.ST.Effect.ST | val write (#a:Type)
(#pcm:pcm a)
(r:ref a pcm)
(v0:erased a)
(v1:a)
: ST unit
(pts_to r v0)
(fun _ -> pts_to r v1)
(requires frame_preserving pcm v0 v1 /\ pcm.refine v1)
(ensures fun _ -> True) | [
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Steel.ST.Coercions",
"short_module": "C"
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let write r v0 v1 = C.coerce_steel (fun _ -> P.write r v0 v1) | val write (#a:Type)
(#pcm:pcm a)
(r:ref a pcm)
(v0:erased a)
(v1:a)
: ST unit
(pts_to r v0)
(fun _ -> pts_to r v1)
(requires frame_preserving pcm v0 v1 /\ pcm.refine v1)
(ensures fun _ -> True)
let write r v0 v1 = | true | null | false | C.coerce_steel (fun _ -> P.write r v0 v1) | {
"checked_file": "Steel.ST.PCMReference.fst.checked",
"dependencies": [
"Steel.ST.Coercions.fsti.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Effect.Atomic.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST.PCMRef... | [] | [
"FStar.PCM.pcm",
"Steel.Memory.ref",
"FStar.Ghost.erased",
"Steel.ST.Coercions.coerce_steel",
"Prims.unit",
"Steel.Effect.Common.VUnit",
"Steel.Effect.Common.to_vprop'",
"Steel.Memory.pts_to",
"FStar.Ghost.reveal",
"Steel.Effect.Common.vprop",
"Prims.l_and",
"FStar.PCM.frame_preserving",
"FS... | [] | module Steel.ST.PCMReference
module C = Steel.ST.Coercions
module P = Steel.PCMReference
let read r v0 = C.coerce_steel (fun _ -> P.read r v0) | false | false | Steel.ST.PCMReference.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 write (#a:Type)
(#pcm:pcm a)
(r:ref a pcm)
(v0:erased a)
(v1:a)
: ST unit
(pts_to r v0)
(fun _ -> pts_to r v1)
(requires frame_preserving pcm v0 v1 /\ pcm.refine v1)
(ensures fun _ -> True) | [] | Steel.ST.PCMReference.write | {
"file_name": "lib/steel/Steel.ST.PCMReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | r: Steel.Memory.ref a pcm -> v0: FStar.Ghost.erased a -> v1: a -> Steel.ST.Effect.ST Prims.unit | {
"end_col": 61,
"end_line": 8,
"start_col": 20,
"start_line": 8
} |
Steel.ST.Effect.Atomic.STAtomic | val atomic_write (#opened:_) (#a:Type) (#pcm:pcm a)
(r:ref a pcm)
(v0:erased a)
(v1:a)
: STAtomic unit opened
(pts_to r v0)
(fun _ -> pts_to r v1)
(requires frame_preserving pcm v0 v1 /\ pcm.refine v1)
(ensures fun _ -> True) | [
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Steel.ST.Coercions",
"short_module": "C"
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let atomic_write r v0 v1 = C.coerce_atomic (fun _ -> P.atomic_write r v0 v1) | val atomic_write (#opened:_) (#a:Type) (#pcm:pcm a)
(r:ref a pcm)
(v0:erased a)
(v1:a)
: STAtomic unit opened
(pts_to r v0)
(fun _ -> pts_to r v1)
(requires frame_preserving pcm v0 v1 /\ pcm.refine v1)
(ensures fun _ -> True)
let atomic_write r v0 v1 = | true | null | false | C.coerce_atomic (fun _ -> P.atomic_write r v0 v1) | {
"checked_file": "Steel.ST.PCMReference.fst.checked",
"dependencies": [
"Steel.ST.Coercions.fsti.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Effect.Atomic.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST.PCMRef... | [] | [
"Steel.Memory.inames",
"FStar.PCM.pcm",
"Steel.Memory.ref",
"FStar.Ghost.erased",
"Steel.ST.Coercions.coerce_atomic",
"Prims.unit",
"Steel.Effect.Common.Observable",
"Steel.Effect.Common.VUnit",
"Steel.Effect.Common.to_vprop'",
"Steel.Memory.pts_to",
"FStar.Ghost.reveal",
"Steel.Effect.Common.... | [] | module Steel.ST.PCMReference
module C = Steel.ST.Coercions
module P = Steel.PCMReference
let read r v0 = C.coerce_steel (fun _ -> P.read r v0)
let write r v0 v1 = C.coerce_steel (fun _ -> P.write r v0 v1)
let alloc x = C.coerce_steel (fun _ -> P.alloc x)
let free r x = C.coerce_steel (fun _ -> P.free r x)
let spl... | false | false | Steel.ST.PCMReference.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 atomic_write (#opened:_) (#a:Type) (#pcm:pcm a)
(r:ref a pcm)
(v0:erased a)
(v1:a)
: STAtomic unit opened
(pts_to r v0)
(fun _ -> pts_to r v1)
(requires frame_preserving pcm v0 v1 /\ pcm.refine v1)
(ensures fun _ -> True) | [] | Steel.ST.PCMReference.atomic_write | {
"file_name": "lib/steel/Steel.ST.PCMReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | r: Steel.Memory.ref a pcm -> v0: FStar.Ghost.erased a -> v1: a
-> Steel.ST.Effect.Atomic.STAtomic Prims.unit | {
"end_col": 76,
"end_line": 38,
"start_col": 27,
"start_line": 38
} |
Steel.ST.Effect.STT | val upd_gen (#a:Type) (#p:pcm a) (r:ref a p) (x y:erased a)
(f:frame_preserving_upd p x y)
: STT unit
(pts_to r x)
(fun _ -> pts_to r y) | [
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Steel.ST.Coercions",
"short_module": "C"
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let upd_gen r x y f = C.coerce_steel (fun _ -> P.upd_gen r x y f) | val upd_gen (#a:Type) (#p:pcm a) (r:ref a p) (x y:erased a)
(f:frame_preserving_upd p x y)
: STT unit
(pts_to r x)
(fun _ -> pts_to r y)
let upd_gen r x y f = | true | null | false | C.coerce_steel (fun _ -> P.upd_gen r x y f) | {
"checked_file": "Steel.ST.PCMReference.fst.checked",
"dependencies": [
"Steel.ST.Coercions.fsti.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Effect.Atomic.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST.PCMRef... | [] | [
"FStar.PCM.pcm",
"Steel.Memory.ref",
"FStar.Ghost.erased",
"FStar.PCM.frame_preserving_upd",
"FStar.Ghost.reveal",
"Steel.ST.Coercions.coerce_steel",
"Prims.unit",
"Steel.Effect.Common.VUnit",
"Steel.Effect.Common.to_vprop'",
"Steel.Memory.pts_to",
"Steel.Effect.Common.vprop",
"Prims.l_True",
... | [] | module Steel.ST.PCMReference
module C = Steel.ST.Coercions
module P = Steel.PCMReference
let read r v0 = C.coerce_steel (fun _ -> P.read r v0)
let write r v0 v1 = C.coerce_steel (fun _ -> P.write r v0 v1)
let alloc x = C.coerce_steel (fun _ -> P.alloc x)
let free r x = C.coerce_steel (fun _ -> P.free r x)
let spl... | false | false | Steel.ST.PCMReference.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 upd_gen (#a:Type) (#p:pcm a) (r:ref a p) (x y:erased a)
(f:frame_preserving_upd p x y)
: STT unit
(pts_to r x)
(fun _ -> pts_to r y) | [] | Steel.ST.PCMReference.upd_gen | {
"file_name": "lib/steel/Steel.ST.PCMReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} |
r: Steel.Memory.ref a p ->
x: FStar.Ghost.erased a ->
y: FStar.Ghost.erased a ->
f: FStar.PCM.frame_preserving_upd p (FStar.Ghost.reveal x) (FStar.Ghost.reveal y)
-> Steel.ST.Effect.STT Prims.unit | {
"end_col": 65,
"end_line": 34,
"start_col": 22,
"start_line": 34
} |
Steel.ST.Effect.Atomic.STAtomic | val atomic_read (#opened:_) (#a:Type) (#pcm:pcm a)
(r:ref a pcm)
(v0:erased a)
: STAtomic a opened
(pts_to r v0)
(fun _ -> pts_to r v0)
(requires True)
(ensures fun v -> compatible pcm v0 v /\ True) | [
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Steel.ST.Coercions",
"short_module": "C"
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let atomic_read r v0 = C.coerce_atomic (fun _ -> P.atomic_read r v0) | val atomic_read (#opened:_) (#a:Type) (#pcm:pcm a)
(r:ref a pcm)
(v0:erased a)
: STAtomic a opened
(pts_to r v0)
(fun _ -> pts_to r v0)
(requires True)
(ensures fun v -> compatible pcm v0 v /\ True)
let atomic_read r v0 = | true | null | false | C.coerce_atomic (fun _ -> P.atomic_read r v0) | {
"checked_file": "Steel.ST.PCMReference.fst.checked",
"dependencies": [
"Steel.ST.Coercions.fsti.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Effect.Atomic.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST.PCMRef... | [] | [
"Steel.Memory.inames",
"FStar.PCM.pcm",
"Steel.Memory.ref",
"FStar.Ghost.erased",
"Steel.ST.Coercions.coerce_atomic",
"Steel.Effect.Common.Observable",
"Steel.Effect.Common.VUnit",
"Steel.Effect.Common.to_vprop'",
"Steel.Memory.pts_to",
"FStar.Ghost.reveal",
"Steel.Effect.Common.vprop",
"Prims... | [] | module Steel.ST.PCMReference
module C = Steel.ST.Coercions
module P = Steel.PCMReference
let read r v0 = C.coerce_steel (fun _ -> P.read r v0)
let write r v0 v1 = C.coerce_steel (fun _ -> P.write r v0 v1)
let alloc x = C.coerce_steel (fun _ -> P.alloc x)
let free r x = C.coerce_steel (fun _ -> P.free r x)
let spl... | false | false | Steel.ST.PCMReference.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 atomic_read (#opened:_) (#a:Type) (#pcm:pcm a)
(r:ref a pcm)
(v0:erased a)
: STAtomic a opened
(pts_to r v0)
(fun _ -> pts_to r v0)
(requires True)
(ensures fun v -> compatible pcm v0 v /\ True) | [] | Steel.ST.PCMReference.atomic_read | {
"file_name": "lib/steel/Steel.ST.PCMReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | r: Steel.Memory.ref a pcm -> v0: FStar.Ghost.erased a -> Steel.ST.Effect.Atomic.STAtomic a | {
"end_col": 68,
"end_line": 36,
"start_col": 23,
"start_line": 36
} |
Steel.ST.Effect.ST | val free (#a:Type)
(#p:pcm a)
(r:ref a p)
(x:erased a)
: ST unit (pts_to r x) (fun _ -> pts_to r p.p.one)
(requires exclusive p x /\ p.refine p.p.one)
(ensures fun _ -> True) | [
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Steel.ST.Coercions",
"short_module": "C"
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let free r x = C.coerce_steel (fun _ -> P.free r x) | val free (#a:Type)
(#p:pcm a)
(r:ref a p)
(x:erased a)
: ST unit (pts_to r x) (fun _ -> pts_to r p.p.one)
(requires exclusive p x /\ p.refine p.p.one)
(ensures fun _ -> True)
let free r x = | true | null | false | C.coerce_steel (fun _ -> P.free r x) | {
"checked_file": "Steel.ST.PCMReference.fst.checked",
"dependencies": [
"Steel.ST.Coercions.fsti.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Effect.Atomic.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST.PCMRef... | [] | [
"FStar.PCM.pcm",
"Steel.Memory.ref",
"FStar.Ghost.erased",
"Steel.ST.Coercions.coerce_steel",
"Prims.unit",
"Steel.Effect.Common.VUnit",
"Steel.Effect.Common.to_vprop'",
"Steel.Memory.pts_to",
"FStar.Ghost.reveal",
"FStar.PCM.__proj__Mkpcm'__item__one",
"FStar.PCM.__proj__Mkpcm__item__p",
"Ste... | [] | module Steel.ST.PCMReference
module C = Steel.ST.Coercions
module P = Steel.PCMReference
let read r v0 = C.coerce_steel (fun _ -> P.read r v0)
let write r v0 v1 = C.coerce_steel (fun _ -> P.write r v0 v1)
let alloc x = C.coerce_steel (fun _ -> P.alloc x) | false | false | Steel.ST.PCMReference.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 free (#a:Type)
(#p:pcm a)
(r:ref a p)
(x:erased a)
: ST unit (pts_to r x) (fun _ -> pts_to r p.p.one)
(requires exclusive p x /\ p.refine p.p.one)
(ensures fun _ -> True) | [] | Steel.ST.PCMReference.free | {
"file_name": "lib/steel/Steel.ST.PCMReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | r: Steel.Memory.ref a p -> x: FStar.Ghost.erased a -> Steel.ST.Effect.ST Prims.unit | {
"end_col": 51,
"end_line": 12,
"start_col": 15,
"start_line": 12
} |
Steel.ST.Effect.ST | val read (#a:Type)
(#pcm:pcm a)
(r:ref a pcm)
(v0:erased a)
: ST a
(pts_to r v0)
(fun _ -> pts_to r v0)
(requires True)
(ensures fun v -> compatible pcm v0 v /\ True) | [
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Steel.ST.Coercions",
"short_module": "C"
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let read r v0 = C.coerce_steel (fun _ -> P.read r v0) | val read (#a:Type)
(#pcm:pcm a)
(r:ref a pcm)
(v0:erased a)
: ST a
(pts_to r v0)
(fun _ -> pts_to r v0)
(requires True)
(ensures fun v -> compatible pcm v0 v /\ True)
let read r v0 = | true | null | false | C.coerce_steel (fun _ -> P.read r v0) | {
"checked_file": "Steel.ST.PCMReference.fst.checked",
"dependencies": [
"Steel.ST.Coercions.fsti.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Effect.Atomic.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST.PCMRef... | [] | [
"FStar.PCM.pcm",
"Steel.Memory.ref",
"FStar.Ghost.erased",
"Steel.ST.Coercions.coerce_steel",
"Steel.Effect.Common.VUnit",
"Steel.Effect.Common.to_vprop'",
"Steel.Memory.pts_to",
"FStar.Ghost.reveal",
"Steel.Effect.Common.vprop",
"Prims.l_True",
"Prims.l_and",
"FStar.PCM.compatible",
"Prims.... | [] | module Steel.ST.PCMReference
module C = Steel.ST.Coercions
module P = Steel.PCMReference | false | false | Steel.ST.PCMReference.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 read (#a:Type)
(#pcm:pcm a)
(r:ref a pcm)
(v0:erased a)
: ST a
(pts_to r v0)
(fun _ -> pts_to r v0)
(requires True)
(ensures fun v -> compatible pcm v0 v /\ True) | [] | Steel.ST.PCMReference.read | {
"file_name": "lib/steel/Steel.ST.PCMReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | r: Steel.Memory.ref a pcm -> v0: FStar.Ghost.erased a -> Steel.ST.Effect.ST a | {
"end_col": 53,
"end_line": 6,
"start_col": 16,
"start_line": 6
} |
Steel.ST.Effect.Atomic.STAtomicUT | val witness (#inames: _) (#a:Type) (#pcm:pcm a)
(r:ref a pcm)
(fact:stable_property pcm)
(v:erased a)
(_:fact_valid_compat fact v)
: STAtomicUT (witnessed r fact) inames (pts_to r v)
(fun _ -> pts_to r v) | [
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Steel.ST.Coercions",
"short_module": "C"
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let witness r fact v vc = C.coerce_atomic (witness' r fact v vc) | val witness (#inames: _) (#a:Type) (#pcm:pcm a)
(r:ref a pcm)
(fact:stable_property pcm)
(v:erased a)
(_:fact_valid_compat fact v)
: STAtomicUT (witnessed r fact) inames (pts_to r v)
(fun _ -> pts_to r v)
let witness r fact v vc = | true | null | false | C.coerce_atomic (witness' r fact v vc) | {
"checked_file": "Steel.ST.PCMReference.fst.checked",
"dependencies": [
"Steel.ST.Coercions.fsti.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Effect.Atomic.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST.PCMRef... | [] | [
"Steel.Memory.inames",
"FStar.PCM.pcm",
"Steel.Memory.ref",
"Steel.Memory.stable_property",
"FStar.Ghost.erased",
"Steel.ST.PCMReference.fact_valid_compat",
"Steel.ST.Coercions.coerce_atomic",
"Steel.Memory.witnessed",
"Steel.Effect.Common.Unobservable",
"Steel.ST.PCMReference.pts_to",
"FStar.Gh... | [] | module Steel.ST.PCMReference
module C = Steel.ST.Coercions
module P = Steel.PCMReference
let read r v0 = C.coerce_steel (fun _ -> P.read r v0)
let write r v0 v1 = C.coerce_steel (fun _ -> P.write r v0 v1)
let alloc x = C.coerce_steel (fun _ -> P.alloc x)
let free r x = C.coerce_steel (fun _ -> P.free r x)
let spl... | false | false | Steel.ST.PCMReference.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 witness (#inames: _) (#a:Type) (#pcm:pcm a)
(r:ref a pcm)
(fact:stable_property pcm)
(v:erased a)
(_:fact_valid_compat fact v)
: STAtomicUT (witnessed r fact) inames (pts_to r v)
(fun _ -> pts_to r v) | [] | Steel.ST.PCMReference.witness | {
"file_name": "lib/steel/Steel.ST.PCMReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} |
r: Steel.Memory.ref a pcm ->
fact: Steel.Memory.stable_property pcm ->
v: FStar.Ghost.erased a ->
vc: Steel.ST.PCMReference.fact_valid_compat fact v
-> Steel.ST.Effect.Atomic.STAtomicUT (Steel.Memory.witnessed r fact) | {
"end_col": 64,
"end_line": 28,
"start_col": 26,
"start_line": 28
} |
Steel.ST.Effect.Atomic.STAtomicU | val recall (#inames: _) (#a:Type u#1) (#pcm:pcm a)
(fact:property a)
(r:ref a pcm)
(v:erased a)
(w:witnessed r fact)
: STAtomicU (erased a) inames
(pts_to r v)
(fun v1 -> pts_to r v)
(requires True)
(ensures fun v1 -> fact v1 /\ compa... | [
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Steel.ST.Coercions",
"short_module": "C"
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let recall fact r v w = C.coerce_atomic (fun _ -> P.recall fact r v w) | val recall (#inames: _) (#a:Type u#1) (#pcm:pcm a)
(fact:property a)
(r:ref a pcm)
(v:erased a)
(w:witnessed r fact)
: STAtomicU (erased a) inames
(pts_to r v)
(fun v1 -> pts_to r v)
(requires True)
(ensures fun v1 -> fact v1 /\ compa... | true | null | false | C.coerce_atomic (fun _ -> P.recall fact r v w) | {
"checked_file": "Steel.ST.PCMReference.fst.checked",
"dependencies": [
"Steel.ST.Coercions.fsti.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Effect.Atomic.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST.PCMRef... | [] | [
"Steel.Memory.inames",
"FStar.PCM.pcm",
"Steel.Memory.property",
"Steel.Memory.ref",
"FStar.Ghost.erased",
"Steel.Memory.witnessed",
"Steel.ST.Coercions.coerce_atomic",
"Steel.Effect.Common.Unobservable",
"Steel.Effect.Common.VUnit",
"Steel.Effect.Common.to_vprop'",
"Steel.Memory.pts_to",
"FSt... | [] | module Steel.ST.PCMReference
module C = Steel.ST.Coercions
module P = Steel.PCMReference
let read r v0 = C.coerce_steel (fun _ -> P.read r v0)
let write r v0 v1 = C.coerce_steel (fun _ -> P.write r v0 v1)
let alloc x = C.coerce_steel (fun _ -> P.alloc x)
let free r x = C.coerce_steel (fun _ -> P.free r x)
let spl... | false | false | Steel.ST.PCMReference.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 recall (#inames: _) (#a:Type u#1) (#pcm:pcm a)
(fact:property a)
(r:ref a pcm)
(v:erased a)
(w:witnessed r fact)
: STAtomicU (erased a) inames
(pts_to r v)
(fun v1 -> pts_to r v)
(requires True)
(ensures fun v1 -> fact v1 /\ compa... | [] | Steel.ST.PCMReference.recall | {
"file_name": "lib/steel/Steel.ST.PCMReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} |
fact: Steel.Memory.property a ->
r: Steel.Memory.ref a pcm ->
v: FStar.Ghost.erased a ->
w: Steel.Memory.witnessed r fact
-> Steel.ST.Effect.Atomic.STAtomicU (FStar.Ghost.erased a) | {
"end_col": 70,
"end_line": 30,
"start_col": 24,
"start_line": 30
} |
Steel.ST.Effect.STT | val select_refine (#a:Type u#1) (#p:pcm a)
(r:ref a p)
(x:erased a)
(f:(v:a{compatible p x v}
-> GTot (y:a{compatible p y v /\
frame_compatible p x v y})))
: STT (v:a{compatible p x v /\ p.refine v})
... | [
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Steel.ST.Coercions",
"short_module": "C"
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let select_refine r x f = C.coerce_steel (fun _ -> P.select_refine r x f) | val select_refine (#a:Type u#1) (#p:pcm a)
(r:ref a p)
(x:erased a)
(f:(v:a{compatible p x v}
-> GTot (y:a{compatible p y v /\
frame_compatible p x v y})))
: STT (v:a{compatible p x v /\ p.refine v})
... | true | null | false | C.coerce_steel (fun _ -> P.select_refine r x f) | {
"checked_file": "Steel.ST.PCMReference.fst.checked",
"dependencies": [
"Steel.ST.Coercions.fsti.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Effect.Atomic.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST.PCMRef... | [] | [
"FStar.PCM.pcm",
"Steel.Memory.ref",
"FStar.Ghost.erased",
"FStar.PCM.compatible",
"FStar.Ghost.reveal",
"Prims.l_and",
"FStar.PCM.frame_compatible",
"Steel.ST.Coercions.coerce_steel",
"FStar.PCM.__proj__Mkpcm__item__refine",
"Steel.Effect.Common.VUnit",
"Steel.Effect.Common.to_vprop'",
"Steel... | [] | module Steel.ST.PCMReference
module C = Steel.ST.Coercions
module P = Steel.PCMReference
let read r v0 = C.coerce_steel (fun _ -> P.read r v0)
let write r v0 v1 = C.coerce_steel (fun _ -> P.write r v0 v1)
let alloc x = C.coerce_steel (fun _ -> P.alloc x)
let free r x = C.coerce_steel (fun _ -> P.free r x)
let spl... | false | false | Steel.ST.PCMReference.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 select_refine (#a:Type u#1) (#p:pcm a)
(r:ref a p)
(x:erased a)
(f:(v:a{compatible p x v}
-> GTot (y:a{compatible p y v /\
frame_compatible p x v y})))
: STT (v:a{compatible p x v /\ p.refine v})
... | [] | Steel.ST.PCMReference.select_refine | {
"file_name": "lib/steel/Steel.ST.PCMReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} |
r: Steel.Memory.ref a p ->
x: FStar.Ghost.erased a ->
f:
(v: a{FStar.PCM.compatible p (FStar.Ghost.reveal x) v}
-> Prims.GTot (y: a{FStar.PCM.compatible p y v /\ FStar.PCM.frame_compatible p x v y}))
-> Steel.ST.Effect.STT
(v: a{FStar.PCM.compatible p (FStar.Ghost.reveal x) v /\ Mkpcm... | {
"end_col": 73,
"end_line": 32,
"start_col": 26,
"start_line": 32
} |
Steel.ST.Effect.Ghost.STGhost | val split (#inames: _)
(#a:Type)
(#p:pcm a)
(r:ref a p)
(v:erased a)
(v0:erased a)
(v1:erased a)
: STGhost unit inames (pts_to r v)
(fun _ -> pts_to r v0 `star` pts_to r v1)
(requires
composable p v0 v1 /\
... | [
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Steel.ST.Coercions",
"short_module": "C"
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let split r v v0 v1 = C.coerce_ghost (fun _ -> P.split r v v0 v1) | val split (#inames: _)
(#a:Type)
(#p:pcm a)
(r:ref a p)
(v:erased a)
(v0:erased a)
(v1:erased a)
: STGhost unit inames (pts_to r v)
(fun _ -> pts_to r v0 `star` pts_to r v1)
(requires
composable p v0 v1 /\
... | true | null | false | C.coerce_ghost (fun _ -> P.split r v v0 v1) | {
"checked_file": "Steel.ST.PCMReference.fst.checked",
"dependencies": [
"Steel.ST.Coercions.fsti.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Effect.Atomic.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST.PCMRef... | [] | [
"Steel.Memory.inames",
"FStar.PCM.pcm",
"Steel.Memory.ref",
"FStar.Ghost.erased",
"Steel.ST.Coercions.coerce_ghost",
"Prims.unit",
"Steel.Effect.Common.VUnit",
"Steel.Effect.Common.to_vprop'",
"Steel.Memory.pts_to",
"FStar.Ghost.reveal",
"Steel.Effect.Common.star",
"Steel.Effect.Common.vprop",... | [] | module Steel.ST.PCMReference
module C = Steel.ST.Coercions
module P = Steel.PCMReference
let read r v0 = C.coerce_steel (fun _ -> P.read r v0)
let write r v0 v1 = C.coerce_steel (fun _ -> P.write r v0 v1)
let alloc x = C.coerce_steel (fun _ -> P.alloc x)
let free r x = C.coerce_steel (fun _ -> P.free r x) | false | false | Steel.ST.PCMReference.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 split (#inames: _)
(#a:Type)
(#p:pcm a)
(r:ref a p)
(v:erased a)
(v0:erased a)
(v1:erased a)
: STGhost unit inames (pts_to r v)
(fun _ -> pts_to r v0 `star` pts_to r v1)
(requires
composable p v0 v1 /\
... | [] | Steel.ST.PCMReference.split | {
"file_name": "lib/steel/Steel.ST.PCMReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} |
r: Steel.Memory.ref a p ->
v: FStar.Ghost.erased a ->
v0: FStar.Ghost.erased a ->
v1: FStar.Ghost.erased a
-> Steel.ST.Effect.Ghost.STGhost Prims.unit | {
"end_col": 65,
"end_line": 14,
"start_col": 22,
"start_line": 14
} |
Steel.Effect.Atomic.SteelAtomicUT | val witness':
#inames: _ ->
#a: Type ->
#pcm: pcm a ->
r: ref a pcm ->
fact: stable_property pcm ->
v: erased a ->
fact_valid_compat fact v ->
Prims.unit
-> Steel.Effect.Atomic.SteelAtomicUT (witnessed r fact) inames (pts_to r v) (fun _ -> pts_to r v) | [
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Steel.ST.Coercions",
"short_module": "C"
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let witness' (#inames: _) (#a:Type) (#pcm:pcm a)
(r:ref a pcm)
(fact:stable_property pcm)
(v:erased a)
(_:fact_valid_compat fact v)
()
: Steel.Effect.Atomic.SteelAtomicUT (witnessed r fact) inames (pts_to r v)
(fun _ -> pts_to r v)
= P.witness... | val witness':
#inames: _ ->
#a: Type ->
#pcm: pcm a ->
r: ref a pcm ->
fact: stable_property pcm ->
v: erased a ->
fact_valid_compat fact v ->
Prims.unit
-> Steel.Effect.Atomic.SteelAtomicUT (witnessed r fact) inames (pts_to r v) (fun _ -> pts_to r v)
let witness'
(#inames: _)
... | true | null | false | P.witness r fact v () | {
"checked_file": "Steel.ST.PCMReference.fst.checked",
"dependencies": [
"Steel.ST.Coercions.fsti.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Effect.Atomic.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST.PCMRef... | [] | [
"Steel.Memory.inames",
"FStar.PCM.pcm",
"Steel.Memory.ref",
"Steel.Memory.stable_property",
"FStar.Ghost.erased",
"Steel.ST.PCMReference.fact_valid_compat",
"Prims.unit",
"Steel.PCMReference.witness",
"FStar.Ghost.hide",
"Steel.Memory.witnessed",
"FStar.Ghost.reveal",
"Steel.ST.PCMReference.pt... | [] | module Steel.ST.PCMReference
module C = Steel.ST.Coercions
module P = Steel.PCMReference
let read r v0 = C.coerce_steel (fun _ -> P.read r v0)
let write r v0 v1 = C.coerce_steel (fun _ -> P.write r v0 v1)
let alloc x = C.coerce_steel (fun _ -> P.alloc x)
let free r x = C.coerce_steel (fun _ -> P.free r x)
let spl... | false | false | Steel.ST.PCMReference.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 witness':
#inames: _ ->
#a: Type ->
#pcm: pcm a ->
r: ref a pcm ->
fact: stable_property pcm ->
v: erased a ->
fact_valid_compat fact v ->
Prims.unit
-> Steel.Effect.Atomic.SteelAtomicUT (witnessed r fact) inames (pts_to r v) (fun _ -> pts_to r v) | [] | Steel.ST.PCMReference.witness' | {
"file_name": "lib/steel/Steel.ST.PCMReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} |
r: Steel.Memory.ref a pcm ->
fact: Steel.Memory.stable_property pcm ->
v: FStar.Ghost.erased a ->
_: Steel.ST.PCMReference.fact_valid_compat fact v ->
_: Prims.unit
-> Steel.Effect.Atomic.SteelAtomicUT (Steel.Memory.witnessed r fact) | {
"end_col": 23,
"end_line": 26,
"start_col": 2,
"start_line": 26
} |
Steel.ST.Effect.Ghost.STGhostT | val gather (#inames: _)
(#a:Type)
(#p:FStar.PCM.pcm a)
(r:ref a p)
(v0:erased a)
(v1:erased a)
: STGhostT (_:unit{composable p v0 v1}) inames
(pts_to r v0 `star` pts_to r v1)
(fun _ -> pts_to r (op p v0 v1)) | [
{
"abbrev": true,
"full_module": "Steel.PCMReference",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "Steel.ST.Coercions",
"short_module": "C"
},
{
"abbrev": false,
"full_module": "Steel.ST.Util",
"short_module": null
},
{
"abbrev": false,
"full_modu... | false | let gather r v0 v1 = C.coerce_ghost (fun _ -> P.gather r v0 v1) | val gather (#inames: _)
(#a:Type)
(#p:FStar.PCM.pcm a)
(r:ref a p)
(v0:erased a)
(v1:erased a)
: STGhostT (_:unit{composable p v0 v1}) inames
(pts_to r v0 `star` pts_to r v1)
(fun _ -> pts_to r (op p v0 v1))
let gather r v0 v1 = | true | null | false | C.coerce_ghost (fun _ -> P.gather r v0 v1) | {
"checked_file": "Steel.ST.PCMReference.fst.checked",
"dependencies": [
"Steel.ST.Coercions.fsti.checked",
"Steel.PCMReference.fsti.checked",
"Steel.Effect.Atomic.fsti.checked",
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.ST.PCMRef... | [] | [
"Steel.Memory.inames",
"FStar.PCM.pcm",
"Steel.Memory.ref",
"FStar.Ghost.erased",
"Steel.ST.Coercions.coerce_ghost",
"Prims.unit",
"FStar.PCM.composable",
"FStar.Ghost.reveal",
"Steel.Effect.Common.star",
"Steel.Effect.Common.VUnit",
"Steel.Effect.Common.to_vprop'",
"Steel.Memory.pts_to",
"F... | [] | module Steel.ST.PCMReference
module C = Steel.ST.Coercions
module P = Steel.PCMReference
let read r v0 = C.coerce_steel (fun _ -> P.read r v0)
let write r v0 v1 = C.coerce_steel (fun _ -> P.write r v0 v1)
let alloc x = C.coerce_steel (fun _ -> P.alloc x)
let free r x = C.coerce_steel (fun _ -> P.free r x)
let spl... | false | false | Steel.ST.PCMReference.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 gather (#inames: _)
(#a:Type)
(#p:FStar.PCM.pcm a)
(r:ref a p)
(v0:erased a)
(v1:erased a)
: STGhostT (_:unit{composable p v0 v1}) inames
(pts_to r v0 `star` pts_to r v1)
(fun _ -> pts_to r (op p v0 v1)) | [] | Steel.ST.PCMReference.gather | {
"file_name": "lib/steel/Steel.ST.PCMReference.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | r: Steel.Memory.ref a p -> v0: FStar.Ghost.erased a -> v1: FStar.Ghost.erased a
-> Steel.ST.Effect.Ghost.STGhostT
(_: Prims.unit{FStar.PCM.composable p (FStar.Ghost.reveal v0) (FStar.Ghost.reveal v1)}) | {
"end_col": 63,
"end_line": 16,
"start_col": 21,
"start_line": 16
} |
Prims.GTot | val length (#a:Type0) (x:t a) : GTot nat | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Ghost",
"short_module": "G"
},
{
"abbrev": false,
"full_module": "Steel"... | false | let length x = L.length x | val length (#a:Type0) (x:t a) : GTot nat
let length x = | false | null | false | L.length x | {
"checked_file": "Steel.TLArray.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.TLArray.fst"
} | [
"sometrivial"
] | [
"Steel.TLArray.t",
"FStar.List.Tot.Base.length",
"Prims.nat"
] | [] | module Steel.TLArray
let t a = list a | false | false | Steel.TLArray.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 length (#a:Type0) (x:t a) : GTot nat | [] | Steel.TLArray.length | {
"file_name": "lib/steel/Steel.TLArray.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | x: Steel.TLArray.t a -> Prims.GTot Prims.nat | {
"end_col": 25,
"end_line": 6,
"start_col": 15,
"start_line": 6
} |
Prims.Tot | val t (a:Type0) : Type0 | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Ghost",
"short_module": "G"
},
{
"abbrev": false,
"full_module": "Steel"... | false | let t a = list a | val t (a:Type0) : Type0
let t a = | false | null | false | list a | {
"checked_file": "Steel.TLArray.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.TLArray.fst"
} | [
"total"
] | [
"Prims.list"
] | [] | module Steel.TLArray | false | true | Steel.TLArray.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 t (a:Type0) : Type0 | [] | Steel.TLArray.t | {
"file_name": "lib/steel/Steel.TLArray.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | a: Type0 -> Type0 | {
"end_col": 16,
"end_line": 3,
"start_col": 10,
"start_line": 3
} |
Prims.Tot | val v (#a:Type0) (x : t a) : G.erased (list a) | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Ghost",
"short_module": "G"
},
{
"abbrev": false,
"full_module": "Steel"... | false | let v x = G.hide x | val v (#a:Type0) (x : t a) : G.erased (list a)
let v x = | false | null | false | G.hide x | {
"checked_file": "Steel.TLArray.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.TLArray.fst"
} | [
"total"
] | [
"Steel.TLArray.t",
"FStar.Ghost.hide",
"Prims.list",
"FStar.Ghost.erased"
] | [] | module Steel.TLArray
let t a = list a | false | false | Steel.TLArray.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 v (#a:Type0) (x : t a) : G.erased (list a) | [] | Steel.TLArray.v | {
"file_name": "lib/steel/Steel.TLArray.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | x: Steel.TLArray.t a -> FStar.Ghost.erased (Prims.list a) | {
"end_col": 18,
"end_line": 5,
"start_col": 10,
"start_line": 5
} |
Prims.Pure | val create (#a:Type0) (l: list a) :
Pure (t a)
(requires True)
(ensures fun x ->
Ghost.reveal (v x) == l /\
length x == normalize_term (List.Tot.length l)) | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Ghost",
"short_module": "G"
},
{
"abbrev": false,
"full_module": "Steel"... | false | let create l = l | val create (#a:Type0) (l: list a) :
Pure (t a)
(requires True)
(ensures fun x ->
Ghost.reveal (v x) == l /\
length x == normalize_term (List.Tot.length l))
let create l = | false | null | false | l | {
"checked_file": "Steel.TLArray.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.TLArray.fst"
} | [] | [
"Prims.list",
"Steel.TLArray.t"
] | [] | module Steel.TLArray
let t a = list a
let v x = G.hide x
let length x = L.length x | false | false | Steel.TLArray.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 create (#a:Type0) (l: list a) :
Pure (t a)
(requires True)
(ensures fun x ->
Ghost.reveal (v x) == l /\
length x == normalize_term (List.Tot.length l)) | [] | Steel.TLArray.create | {
"file_name": "lib/steel/Steel.TLArray.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | l: Prims.list a -> Prims.Pure (Steel.TLArray.t a) | {
"end_col": 16,
"end_line": 8,
"start_col": 15,
"start_line": 8
} |
Prims.Pure | val get (#a:Type0) (x: t a) (i:U32.t{U32.v i < length x}) :
Pure a
(requires True)
(ensures fun y ->
U32.v i < L.length (v x) /\
y == L.index (v x) (U32.v i)) | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.Ghost",
"short_module": "G"
},
{
"abbrev": false,
"full_module": "Steel"... | false | let get x i = L.index x (U32.v i) | val get (#a:Type0) (x: t a) (i:U32.t{U32.v i < length x}) :
Pure a
(requires True)
(ensures fun y ->
U32.v i < L.length (v x) /\
y == L.index (v x) (U32.v i))
let get x i = | false | null | false | L.index x (U32.v i) | {
"checked_file": "Steel.TLArray.fst.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Steel.TLArray.fst"
} | [] | [
"Steel.TLArray.t",
"FStar.UInt32.t",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.UInt32.v",
"Steel.TLArray.length",
"FStar.List.Tot.Base.index"
] | [] | module Steel.TLArray
let t a = list a
let v x = G.hide x
let length x = L.length x | false | false | Steel.TLArray.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 get (#a:Type0) (x: t a) (i:U32.t{U32.v i < length x}) :
Pure a
(requires True)
(ensures fun y ->
U32.v i < L.length (v x) /\
y == L.index (v x) (U32.v i)) | [] | Steel.TLArray.get | {
"file_name": "lib/steel/Steel.TLArray.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | x: Steel.TLArray.t a -> i: FStar.UInt32.t{FStar.UInt32.v i < Steel.TLArray.length x} -> Prims.Pure a | {
"end_col": 33,
"end_line": 9,
"start_col": 14,
"start_line": 9
} |
FStar.Tactics.Effect.Tac | val check
(g:env)
(pre:term)
(pre_typing: tot_typing g pre tm_vprop)
(post_hint:post_hint_for_env g)
(res_ppname:ppname)
(b:term)
(e1 e2:st_term)
(check:check_t)
: T.Tac (checker_result_t g pre (Some post_hint)) | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Syntax.Printer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.Tactics.V2",
"short_module": "T"
},
{
"abbrev": fals... | false | let check
(g:env)
(pre:term)
(pre_typing: tot_typing g pre tm_vprop)
(post_hint:post_hint_for_env g)
(res_ppname:ppname)
(b:term)
(e1 e2:st_term)
(check:check_t)
: T.Tac (checker_result_t g pre (Some post_hint)) =
let g = Pulse.Typing.Env.push_context g "check_if" e1.range in
let (| b, b_typin... | val check
(g:env)
(pre:term)
(pre_typing: tot_typing g pre tm_vprop)
(post_hint:post_hint_for_env g)
(res_ppname:ppname)
(b:term)
(e1 e2:st_term)
(check:check_t)
: T.Tac (checker_result_t g pre (Some post_hint))
let check
(g: env)
(pre: term)
(pre_typing: tot_typing g pre tm_vprop)
... | true | null | false | let g = Pulse.Typing.Env.push_context g "check_if" e1.range in
let (| b , b_typing |) = check_tot_term_with_expected_type g b tm_bool in
let post = post_hint.post in
let hyp = fresh g in
let g_with_eq (eq_v: term) =
push_binding g hyp (mk_ppname_no_range "_if_hyp") (mk_eq2 u0 tm_bool b eq_v)
in
let check_branch (eq_v... | {
"checked_file": "Pulse.Checker.If.fst.checked",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.Combinators.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checke... | [] | [
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.term",
"Pulse.Typing.tot_typing",
"Pulse.Syntax.Base.tm_vprop",
"Pulse.Typing.post_hint_for_env",
"Pulse.Syntax.Base.ppname",
"Pulse.Syntax.Base.st_term",
"Pulse.Checker.Base.check_t",
"Pulse.Typing.tm_bool",
"Prims.l_not",
"Prims.b2t",
"FStar.Set.mem... | [] | module Pulse.Checker.If
open Pulse.Syntax
open Pulse.Typing
open Pulse.Typing.Combinators
open Pulse.Checker.Pure
open Pulse.Checker.Base
open Pulse.Checker.Prover
module T = FStar.Tactics.V2
module P = Pulse.Syntax.Printer
module Metatheory = Pulse.Typing.Metatheory
#push-options "--z3rlimit_factor 16 --fuel 0 --if... | false | false | Pulse.Checker.If.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val check
(g:env)
(pre:term)
(pre_typing: tot_typing g pre tm_vprop)
(post_hint:post_hint_for_env g)
(res_ppname:ppname)
(b:term)
(e1 e2:st_term)
(check:check_t)
: T.Tac (checker_result_t g pre (Some post_hint)) | [] | Pulse.Checker.If.check | {
"file_name": "lib/steel/pulse/Pulse.Checker.If.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} |
g: Pulse.Typing.Env.env ->
pre: Pulse.Syntax.Base.term ->
pre_typing: Pulse.Typing.tot_typing g pre Pulse.Syntax.Base.tm_vprop ->
post_hint: Pulse.Typing.post_hint_for_env g ->
res_ppname: Pulse.Syntax.Base.ppname ->
b: Pulse.Syntax.Base.term ->
e1: Pulse.Syntax.Base.st_term ->
e2: Puls... | {
"end_col": 43,
"end_line": 160,
"start_col": 53,
"start_line": 96
} |
FStar.Tactics.Effect.TacH | val combine_if_branches
(g_then: env)
(e_then: st_term)
(c_then: comp_st)
(e_then_typing: st_typing g_then e_then c_then)
(g_else: env)
(e_else: st_term)
(c_else: comp_st)
(e_else_typing: st_typing g_else e_else c_else)
: T.TacH
(c: comp_st{st_comp_of_comp c == ... | [
{
"abbrev": true,
"full_module": "Pulse.Typing.Metatheory",
"short_module": "Metatheory"
},
{
"abbrev": true,
"full_module": "Pulse.Syntax.Printer",
"short_module": "P"
},
{
"abbrev": true,
"full_module": "FStar.Tactics.V2",
"short_module": "T"
},
{
"abbrev": fals... | false | let rec combine_if_branches
(g_then:env)
(e_then:st_term)
(c_then:comp_st)
(e_then_typing:st_typing g_then e_then c_then)
(g_else:env)
(e_else:st_term)
(c_else:comp_st)
(e_else_typing:st_typing g_else e_else c_else)
: T.TacH (c:comp_st{st_comp_of_comp c == st_comp_of_comp c_then} &
st_typi... | val combine_if_branches
(g_then: env)
(e_then: st_term)
(c_then: comp_st)
(e_then_typing: st_typing g_then e_then c_then)
(g_else: env)
(e_else: st_term)
(c_else: comp_st)
(e_else_typing: st_typing g_else e_else c_else)
: T.TacH
(c: comp_st{st_comp_of_comp c == ... | false | null | false | let g = g_then in
if eq_st_comp (st_comp_of_comp c_then) (st_comp_of_comp c_else)
then
match c_then, c_else with
| C_ST _, C_ST _ -> (| c_then, e_then_typing, e_else_typing |)
| C_STAtomic inames1 _, C_STAtomic inames2 _
| C_STGhost inames1 _, C_STGhost inames2 _ ->
if eq_tm inames1 inames2
then (| c_th... | {
"checked_file": "Pulse.Checker.If.fst.checked",
"dependencies": [
"Pulse.Typing.Metatheory.fsti.checked",
"Pulse.Typing.Env.fsti.checked",
"Pulse.Typing.Combinators.fsti.checked",
"Pulse.Typing.fst.checked",
"Pulse.Syntax.Printer.fsti.checked",
"Pulse.Syntax.fst.checked",
"Pulse.Checke... | [] | [
"Pulse.Typing.Env.env",
"Pulse.Syntax.Base.st_term",
"Pulse.Syntax.Base.comp_st",
"Pulse.Typing.st_typing",
"Pulse.Syntax.Base.eq_st_comp",
"Pulse.Syntax.Base.st_comp_of_comp",
"FStar.Pervasives.Native.Mktuple2",
"Pulse.Syntax.Base.comp",
"Pulse.Syntax.Base.st_comp",
"FStar.Pervasives.Mkdtuple3",
... | [] | module Pulse.Checker.If
open Pulse.Syntax
open Pulse.Typing
open Pulse.Typing.Combinators
open Pulse.Checker.Pure
open Pulse.Checker.Base
open Pulse.Checker.Prover
module T = FStar.Tactics.V2
module P = Pulse.Syntax.Printer
module Metatheory = Pulse.Typing.Metatheory
#push-options "--z3rlimit_factor 16 --fuel 0 --if... | false | false | Pulse.Checker.If.fst | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | null | val combine_if_branches
(g_then: env)
(e_then: st_term)
(c_then: comp_st)
(e_then_typing: st_typing g_then e_then c_then)
(g_else: env)
(e_else: st_term)
(c_else: comp_st)
(e_else_typing: st_typing g_else e_else c_else)
: T.TacH
(c: comp_st{st_comp_of_comp c == ... | [
"recursion"
] | Pulse.Checker.If.combine_if_branches | {
"file_name": "lib/steel/pulse/Pulse.Checker.If.fst",
"git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} |
g_then: Pulse.Typing.Env.env ->
e_then: Pulse.Syntax.Base.st_term ->
c_then: Pulse.Syntax.Base.comp_st ->
e_then_typing: Pulse.Typing.st_typing g_then e_then c_then ->
g_else: Pulse.Typing.Env.env ->
e_else: Pulse.Syntax.Base.st_term ->
c_else: Pulse.Syntax.Base.comp_st ->
e_else_typing... | {
"end_col": 78,
"end_line": 83,
"start_col": 38,
"start_line": 29
} |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Vale.Lib.Map16",
"short_module": "Map16"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
... | false | let is_full_read (#t:base_typ) (h1 h2:vale_heap) (b:buffer t) (i:int) =
buffer_addr b h1 == buffer_addr b h2 /\
buffer_read b i h1 == buffer_read b i h2 /\
valid_buffer_read h1 b i | let is_full_read (#t: base_typ) (h1 h2: vale_heap) (b: buffer t) (i: int) = | false | null | false | buffer_addr b h1 == buffer_addr b h2 /\ buffer_read b i h1 == buffer_read b i h2 /\
valid_buffer_read h1 b i | {
"checked_file": "Vale.X64.Memory_Sems.fsti.checked",
"dependencies": [
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Lib.Map16.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Pr... | [
"total"
] | [
"Vale.Arch.HeapTypes_s.base_typ",
"Vale.X64.Memory.vale_heap",
"Vale.X64.Memory.buffer",
"Prims.int",
"Prims.l_and",
"Prims.eq2",
"Vale.X64.Memory.buffer_addr",
"Vale.X64.Memory.base_typ_as_vale_type",
"Vale.X64.Memory.buffer_read",
"Vale.X64.Memory.valid_buffer_read",
"Prims.logical"
] | [] | module Vale.X64.Memory_Sems
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Arch.MachineHeap_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.Lib.Seqs
module S = Vale.X64.Machine_Semantics_s
module Map16 = Vale.Lib.Map16
val ... | false | false | Vale.X64.Memory_Sems.fsti | {
"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 is_full_read : h1: Vale.X64.Memory.vale_heap ->
h2: Vale.X64.Memory.vale_heap ->
b: Vale.X64.Memory.buffer t ->
i: Prims.int
-> Prims.logical | [] | Vale.X64.Memory_Sems.is_full_read | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
h1: Vale.X64.Memory.vale_heap ->
h2: Vale.X64.Memory.vale_heap ->
b: Vale.X64.Memory.buffer t ->
i: Prims.int
-> Prims.logical | {
"end_col": 26,
"end_line": 48,
"start_col": 2,
"start_line": 46
} | |
Prims.Tot | val coerce (#b #a: Type) (x: a{a == b}) : b | [
{
"abbrev": true,
"full_module": "Vale.Lib.Map16",
"short_module": "Map16"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
... | false | let coerce (#b #a:Type) (x:a{a == b}) : b = x | val coerce (#b #a: Type) (x: a{a == b}) : b
let coerce (#b #a: Type) (x: a{a == b}) : b = | false | null | false | x | {
"checked_file": "Vale.X64.Memory_Sems.fsti.checked",
"dependencies": [
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Lib.Map16.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Pr... | [
"total"
] | [
"Prims.eq2"
] | [] | module Vale.X64.Memory_Sems
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Arch.MachineHeap_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.Lib.Seqs
module S = Vale.X64.Machine_Semantics_s
module Map16 = Vale.Lib.Map16
val ... | false | false | Vale.X64.Memory_Sems.fsti | {
"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 coerce (#b #a: Type) (x: a{a == b}) : b | [] | Vale.X64.Memory_Sems.coerce | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} | x: a{a == b} -> b | {
"end_col": 52,
"end_line": 33,
"start_col": 51,
"start_line": 33
} |
Prims.Tot | [
{
"abbrev": true,
"full_module": "Vale.Lib.Map16",
"short_module": "Map16"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "S"
},
{
"abbrev": false,
"full_module": "Vale.Lib.Seqs",
"short_module": null
},
{
"abbrev": false,
... | false | let is_full_update (vfh:vale_full_heap) (h':vale_heap) (hid:heaplet_id) (mh':machine_heap) (mt':memtaint) =
is_machine_heap_update (heap_get (coerce vfh)) mh' /\ (
let vfh' = coerce (heap_upd (coerce vfh) mh' mt') in
mem_inv vfh' /\
vfh'.vf_layout == vfh.vf_layout /\
vfh'.vf_heaplets == Map16.upd vfh.... | let is_full_update
(vfh: vale_full_heap)
(h': vale_heap)
(hid: heaplet_id)
(mh': machine_heap)
(mt': memtaint)
= | false | null | false | is_machine_heap_update (heap_get (coerce vfh)) mh' /\
(let vfh' = coerce (heap_upd (coerce vfh) mh' mt') in
mem_inv vfh' /\ vfh'.vf_layout == vfh.vf_layout /\
vfh'.vf_heaplets == Map16.upd vfh.vf_heaplets hid h') | {
"checked_file": "Vale.X64.Memory_Sems.fsti.checked",
"dependencies": [
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.Lib.Seqs.fsti.checked",
"Vale.Lib.Map16.fsti.checked",
"Vale.Def.Types_s.fst.checked",
"Vale.Def.Pr... | [
"total"
] | [
"Vale.X64.Memory.vale_full_heap",
"Vale.X64.Memory.vale_heap",
"Vale.X64.Memory.heaplet_id",
"Vale.Arch.MachineHeap_s.machine_heap",
"Vale.X64.Memory.memtaint",
"Prims.l_and",
"Vale.Arch.MachineHeap_s.is_machine_heap_update",
"Vale.Arch.Heap.heap_get",
"Vale.X64.Memory_Sems.coerce",
"Vale.Arch.Hea... | [] | module Vale.X64.Memory_Sems
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Types_s
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Arch.MachineHeap_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.Lib.Seqs
module S = Vale.X64.Machine_Semantics_s
module Map16 = Vale.Lib.Map16
val ... | false | true | Vale.X64.Memory_Sems.fsti | {
"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 is_full_update : vfh: Vale.X64.Memory.vale_full_heap ->
h': Vale.X64.Memory.vale_heap ->
hid: Vale.X64.Memory.heaplet_id ->
mh': Vale.Arch.MachineHeap_s.machine_heap ->
mt': Vale.X64.Memory.memtaint
-> Prims.logical | [] | Vale.X64.Memory_Sems.is_full_update | {
"file_name": "vale/code/arch/x64/Vale.X64.Memory_Sems.fsti",
"git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e",
"git_url": "https://github.com/hacl-star/hacl-star.git",
"project_name": "hacl-star"
} |
vfh: Vale.X64.Memory.vale_full_heap ->
h': Vale.X64.Memory.vale_heap ->
hid: Vale.X64.Memory.heaplet_id ->
mh': Vale.Arch.MachineHeap_s.machine_heap ->
mt': Vale.X64.Memory.memtaint
-> Prims.logical | {
"end_col": 3,
"end_line": 56,
"start_col": 2,
"start_line": 51
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_modul... | false | let singleton_length_one_fact =
forall (ty: Type u#a) (v: ty).{:pattern length (singleton v)} length (singleton v) = 1 | let singleton_length_one_fact = | false | null | false | forall (ty: Type u#a) (v: ty). {:pattern length (singleton v)} length (singleton v) = 1 | {
"checked_file": "FStar.Sequence.Base.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Sequence.Base.fsti"
} | [
"total"
] | [
"Prims.l_Forall",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.Sequence.Base.length",
"FStar.Sequence.Base.singleton"
] | [] | (*
Copyright 2008-2021 Jay Lorch, Rustan Leino, Alex Summers, Dan
Rosen, Nikhil Swamy, Microsoft Research, and contributors to
the Dafny Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of th... | false | true | FStar.Sequence.Base.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": 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 singleton_length_one_fact : Prims.logical | [] | FStar.Sequence.Base.singleton_length_one_fact | {
"file_name": "ulib/experimental/FStar.Sequence.Base.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | Prims.logical | {
"end_col": 88,
"end_line": 172,
"start_col": 2,
"start_line": 172
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_modul... | false | let append_sums_lengths_fact =
forall (ty: Type u#a) (s0: seq ty) (s1: seq ty).{:pattern length (append s0 s1)}
length (append s0 s1) = length s0 + length s1 | let append_sums_lengths_fact = | false | null | false | forall (ty: Type u#a) (s0: seq ty) (s1: seq ty). {:pattern length (append s0 s1)}
length (append s0 s1) = length s0 + length s1 | {
"checked_file": "FStar.Sequence.Base.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Sequence.Base.fsti"
} | [
"total"
] | [
"Prims.l_Forall",
"FStar.Sequence.Base.seq",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.Sequence.Base.length",
"FStar.Sequence.Base.append",
"Prims.op_Addition"
] | [] | (*
Copyright 2008-2021 Jay Lorch, Rustan Leino, Alex Summers, Dan
Rosen, Nikhil Swamy, Microsoft Research, and contributors to
the Dafny Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of th... | false | true | FStar.Sequence.Base.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": 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 append_sums_lengths_fact : Prims.logical | [] | FStar.Sequence.Base.append_sums_lengths_fact | {
"file_name": "ulib/experimental/FStar.Sequence.Base.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | Prims.logical | {
"end_col": 49,
"end_line": 203,
"start_col": 2,
"start_line": 202
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_modul... | false | let length_of_empty_is_zero_fact =
forall (ty: Type u#a).{:pattern empty #ty} length (empty #ty) = 0 | let length_of_empty_is_zero_fact = | false | null | false | forall (ty: Type u#a). {:pattern empty #ty} length (empty #ty) = 0 | {
"checked_file": "FStar.Sequence.Base.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Sequence.Base.fsti"
} | [
"total"
] | [
"Prims.l_Forall",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.Sequence.Base.length",
"FStar.Sequence.Base.empty"
] | [] | (*
Copyright 2008-2021 Jay Lorch, Rustan Leino, Alex Summers, Dan
Rosen, Nikhil Swamy, Microsoft Research, and contributors to
the Dafny Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of th... | false | true | FStar.Sequence.Base.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": 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 length_of_empty_is_zero_fact : Prims.logical | [] | FStar.Sequence.Base.length_of_empty_is_zero_fact | {
"file_name": "ulib/experimental/FStar.Sequence.Base.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | Prims.logical | {
"end_col": 67,
"end_line": 157,
"start_col": 2,
"start_line": 157
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_modul... | false | let length_zero_implies_empty_fact =
forall (ty: Type u#a) (s: seq ty).{:pattern length s} length s = 0 ==> s == empty | let length_zero_implies_empty_fact = | false | null | false | forall (ty: Type u#a) (s: seq ty). {:pattern length s} length s = 0 ==> s == empty | {
"checked_file": "FStar.Sequence.Base.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Sequence.Base.fsti"
} | [
"total"
] | [
"Prims.l_Forall",
"FStar.Sequence.Base.seq",
"Prims.l_imp",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.Sequence.Base.length",
"Prims.eq2",
"FStar.Sequence.Base.empty"
] | [] | (*
Copyright 2008-2021 Jay Lorch, Rustan Leino, Alex Summers, Dan
Rosen, Nikhil Swamy, Microsoft Research, and contributors to
the Dafny Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of th... | false | true | FStar.Sequence.Base.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": 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 length_zero_implies_empty_fact : Prims.logical | [] | FStar.Sequence.Base.length_zero_implies_empty_fact | {
"file_name": "ulib/experimental/FStar.Sequence.Base.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | Prims.logical | {
"end_col": 83,
"end_line": 165,
"start_col": 2,
"start_line": 165
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_modul... | false | let build_increments_length_fact =
forall (ty: Type u#a) (s: seq ty) (v: ty).{:pattern build s v}
length (build s v) = 1 + length s | let build_increments_length_fact = | false | null | false | forall (ty: Type u#a) (s: seq ty) (v: ty). {:pattern build s v} length (build s v) = 1 + length s | {
"checked_file": "FStar.Sequence.Base.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Sequence.Base.fsti"
} | [
"total"
] | [
"Prims.l_Forall",
"FStar.Sequence.Base.seq",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"FStar.Sequence.Base.length",
"FStar.Sequence.Base.build",
"Prims.op_Addition"
] | [] | (*
Copyright 2008-2021 Jay Lorch, Rustan Leino, Alex Summers, Dan
Rosen, Nikhil Swamy, Microsoft Research, and contributors to
the Dafny Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of th... | false | true | FStar.Sequence.Base.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": 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 build_increments_length_fact : Prims.logical | [] | FStar.Sequence.Base.build_increments_length_fact | {
"file_name": "ulib/experimental/FStar.Sequence.Base.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | Prims.logical | {
"end_col": 37,
"end_line": 182,
"start_col": 2,
"start_line": 181
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_modul... | false | let empty_doesnt_contain_anything_fact =
forall (ty: Type u#a) (x: ty).{:pattern contains empty x} ~(contains empty x) | let empty_doesnt_contain_anything_fact = | false | null | false | forall (ty: Type u#a) (x: ty). {:pattern contains empty x} ~(contains empty x) | {
"checked_file": "FStar.Sequence.Base.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Sequence.Base.fsti"
} | [
"total"
] | [
"Prims.l_Forall",
"Prims.l_not",
"FStar.Sequence.Base.contains",
"FStar.Sequence.Base.empty"
] | [] | (*
Copyright 2008-2021 Jay Lorch, Rustan Leino, Alex Summers, Dan
Rosen, Nikhil Swamy, Microsoft Research, and contributors to
the Dafny Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of th... | false | true | FStar.Sequence.Base.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": 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 empty_doesnt_contain_anything_fact : Prims.logical | [] | FStar.Sequence.Base.empty_doesnt_contain_anything_fact | {
"file_name": "ulib/experimental/FStar.Sequence.Base.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | Prims.logical | {
"end_col": 79,
"end_line": 265,
"start_col": 2,
"start_line": 265
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_modul... | false | let contains_iff_exists_index_fact =
forall (ty: Type u#a) (s: seq ty) (x: ty).{:pattern contains s x}
contains s x <==> (exists (i: nat).{:pattern index s i} i < length s /\ index s i == x) | let contains_iff_exists_index_fact = | false | null | false | forall (ty: Type u#a) (s: seq ty) (x: ty). {:pattern contains s x}
contains s x <==> (exists (i: nat). {:pattern index s i} i < length s /\ index s i == x) | {
"checked_file": "FStar.Sequence.Base.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Sequence.Base.fsti"
} | [
"total"
] | [
"Prims.l_Forall",
"FStar.Sequence.Base.seq",
"Prims.l_iff",
"FStar.Sequence.Base.contains",
"Prims.l_Exists",
"Prims.nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Sequence.Base.length",
"Prims.eq2",
"FStar.Sequence.Base.index"
] | [] | (*
Copyright 2008-2021 Jay Lorch, Rustan Leino, Alex Summers, Dan
Rosen, Nikhil Swamy, Microsoft Research, and contributors to
the Dafny Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of th... | false | true | FStar.Sequence.Base.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": 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 contains_iff_exists_index_fact : Prims.logical | [] | FStar.Sequence.Base.contains_iff_exists_index_fact | {
"file_name": "ulib/experimental/FStar.Sequence.Base.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | Prims.logical | {
"end_col": 91,
"end_line": 256,
"start_col": 2,
"start_line": 255
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_modul... | false | let rank_def_fact =
forall (ty: Type u#a) (v: ty).{:pattern rank v} rank v == v | let rank_def_fact = | false | null | false | forall (ty: Type u#a) (v: ty). {:pattern rank v} rank v == v | {
"checked_file": "FStar.Sequence.Base.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Sequence.Base.fsti"
} | [
"total"
] | [
"Prims.l_Forall",
"Prims.eq2",
"FStar.Sequence.Base.rank"
] | [] | (*
Copyright 2008-2021 Jay Lorch, Rustan Leino, Alex Summers, Dan
Rosen, Nikhil Swamy, Microsoft Research, and contributors to
the Dafny Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of th... | false | true | FStar.Sequence.Base.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": 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 rank_def_fact : Prims.logical | [] | FStar.Sequence.Base.rank_def_fact | {
"file_name": "ulib/experimental/FStar.Sequence.Base.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | Prims.logical | {
"end_col": 61,
"end_line": 481,
"start_col": 2,
"start_line": 481
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_modul... | false | let drop_length_fact =
forall (ty: Type u#a) (s: seq ty) (n: nat).
{:pattern length (drop s n)}
n <= length s ==> length (drop s n) = length s - n | let drop_length_fact = | false | null | false | forall (ty: Type u#a) (s: seq ty) (n: nat). {:pattern length (drop s n)}
n <= length s ==> length (drop s n) = length s - n | {
"checked_file": "FStar.Sequence.Base.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Sequence.Base.fsti"
} | [
"total"
] | [
"Prims.l_Forall",
"FStar.Sequence.Base.seq",
"Prims.nat",
"Prims.l_imp",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Sequence.Base.length",
"Prims.op_Equality",
"Prims.int",
"FStar.Sequence.Base.drop",
"Prims.op_Subtraction"
] | [] | (*
Copyright 2008-2021 Jay Lorch, Rustan Leino, Alex Summers, Dan
Rosen, Nikhil Swamy, Microsoft Research, and contributors to
the Dafny Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of th... | false | true | FStar.Sequence.Base.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": 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 drop_length_fact : Prims.logical | [] | FStar.Sequence.Base.drop_length_fact | {
"file_name": "ulib/experimental/FStar.Sequence.Base.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | Prims.logical | {
"end_col": 54,
"end_line": 374,
"start_col": 2,
"start_line": 372
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_modul... | false | let extensionality_fact =
forall (ty: Type u#a) (a: seq ty) (b: seq ty).{:pattern equal a b}
equal a b ==> a == b | let extensionality_fact = | false | null | false | forall (ty: Type u#a) (a: seq ty) (b: seq ty). {:pattern equal a b} equal a b ==> a == b | {
"checked_file": "FStar.Sequence.Base.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Sequence.Base.fsti"
} | [
"total"
] | [
"Prims.l_Forall",
"FStar.Sequence.Base.seq",
"Prims.l_imp",
"FStar.Sequence.Base.equal",
"Prims.eq2"
] | [] | (*
Copyright 2008-2021 Jay Lorch, Rustan Leino, Alex Summers, Dan
Rosen, Nikhil Swamy, Microsoft Research, and contributors to
the Dafny Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of th... | false | true | FStar.Sequence.Base.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": 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 extensionality_fact : Prims.logical | [] | FStar.Sequence.Base.extensionality_fact | {
"file_name": "ulib/experimental/FStar.Sequence.Base.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | Prims.logical | {
"end_col": 24,
"end_line": 325,
"start_col": 2,
"start_line": 324
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_modul... | false | let element_ranks_less_fact =
forall (ty: Type u#a) (s: seq ty) (i: nat).{:pattern rank (index s i)}
i < length s ==> rank (index s i) << rank s | let element_ranks_less_fact = | false | null | false | forall (ty: Type u#a) (s: seq ty) (i: nat). {:pattern rank (index s i)}
i < length s ==> rank (index s i) << rank s | {
"checked_file": "FStar.Sequence.Base.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Sequence.Base.fsti"
} | [
"total"
] | [
"Prims.l_Forall",
"FStar.Sequence.Base.seq",
"Prims.nat",
"Prims.l_imp",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Sequence.Base.length",
"Prims.precedes",
"FStar.Sequence.Base.rank",
"FStar.Sequence.Base.index"
] | [] | (*
Copyright 2008-2021 Jay Lorch, Rustan Leino, Alex Summers, Dan
Rosen, Nikhil Swamy, Microsoft Research, and contributors to
the Dafny Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of th... | false | true | FStar.Sequence.Base.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": 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 element_ranks_less_fact : Prims.logical | [] | FStar.Sequence.Base.element_ranks_less_fact | {
"file_name": "ulib/experimental/FStar.Sequence.Base.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | Prims.logical | {
"end_col": 47,
"end_line": 491,
"start_col": 2,
"start_line": 490
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_modul... | false | let build_contains_equiv_fact =
forall (ty: Type u#a) (s: seq ty) (v: ty) (x: ty).{:pattern contains (build s v) x}
contains (build s v) x <==> (v == x \/ contains s x) | let build_contains_equiv_fact = | false | null | false | forall (ty: Type u#a) (s: seq ty) (v: ty) (x: ty). {:pattern contains (build s v) x}
contains (build s v) x <==> (v == x \/ contains s x) | {
"checked_file": "FStar.Sequence.Base.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Sequence.Base.fsti"
} | [
"total"
] | [
"Prims.l_Forall",
"FStar.Sequence.Base.seq",
"Prims.l_iff",
"FStar.Sequence.Base.contains",
"FStar.Sequence.Base.build",
"Prims.l_or",
"Prims.eq2"
] | [] | (*
Copyright 2008-2021 Jay Lorch, Rustan Leino, Alex Summers, Dan
Rosen, Nikhil Swamy, Microsoft Research, and contributors to
the Dafny Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of th... | false | true | FStar.Sequence.Base.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": 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 build_contains_equiv_fact : Prims.logical | [] | FStar.Sequence.Base.build_contains_equiv_fact | {
"file_name": "ulib/experimental/FStar.Sequence.Base.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | Prims.logical | {
"end_col": 56,
"end_line": 275,
"start_col": 2,
"start_line": 274
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_modul... | false | let update_maintains_length_fact =
forall (ty: Type u#a) (s: seq ty) (i: nat{i < length s}) (v: ty).{:pattern length (update s i v)}
length (update s i v) = length s | let update_maintains_length_fact = | false | null | false | forall (ty: Type u#a) (s: seq ty) (i: nat{i < length s}) (v: ty). {:pattern length (update s i v)}
length (update s i v) = length s | {
"checked_file": "FStar.Sequence.Base.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Sequence.Base.fsti"
} | [
"total"
] | [
"Prims.l_Forall",
"FStar.Sequence.Base.seq",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Sequence.Base.length",
"Prims.op_Equality",
"FStar.Sequence.Base.update"
] | [] | (*
Copyright 2008-2021 Jay Lorch, Rustan Leino, Alex Summers, Dan
Rosen, Nikhil Swamy, Microsoft Research, and contributors to
the Dafny Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of th... | false | true | FStar.Sequence.Base.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": 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_maintains_length_fact : Prims.logical | [] | FStar.Sequence.Base.update_maintains_length_fact | {
"file_name": "ulib/experimental/FStar.Sequence.Base.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | Prims.logical | {
"end_col": 36,
"end_line": 232,
"start_col": 2,
"start_line": 231
} | |
Prims.Tot | [
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_modul... | false | let take_contains_equiv_exists_fact =
forall (ty: Type u#a) (s: seq ty) (n: nat{n <= length s}) (x: ty).{:pattern contains (take s n) x}
contains (take s n) x <==>
(exists (i: nat).{:pattern index s i} i < n /\ i < length s /\ index s i == x) | let take_contains_equiv_exists_fact = | false | null | false | forall (ty: Type u#a) (s: seq ty) (n: nat{n <= length s}) (x: ty). {:pattern contains (take s n) x}
contains (take s n) x <==>
(exists (i: nat). {:pattern index s i} i < n /\ i < length s /\ index s i == x) | {
"checked_file": "FStar.Sequence.Base.fsti.checked",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Sequence.Base.fsti"
} | [
"total"
] | [
"Prims.l_Forall",
"FStar.Sequence.Base.seq",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Sequence.Base.length",
"Prims.l_iff",
"FStar.Sequence.Base.contains",
"FStar.Sequence.Base.take",
"Prims.l_Exists",
"Prims.l_and",
"Prims.op_LessThan",
"Prims.eq2",
"FStar.Sequence.Bas... | [] | (*
Copyright 2008-2021 Jay Lorch, Rustan Leino, Alex Summers, Dan
Rosen, Nikhil Swamy, Microsoft Research, and contributors to
the Dafny Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of th... | false | true | FStar.Sequence.Base.fsti | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": 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 take_contains_equiv_exists_fact : Prims.logical | [] | FStar.Sequence.Base.take_contains_equiv_exists_fact | {
"file_name": "ulib/experimental/FStar.Sequence.Base.fsti",
"git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | Prims.logical | {
"end_col": 82,
"end_line": 288,
"start_col": 2,
"start_line": 286
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.