file_name stringlengths 5 52 | name stringlengths 4 95 | original_source_type stringlengths 0 23k | source_type stringlengths 9 23k | source_definition stringlengths 9 57.9k | source dict | source_range dict | file_context stringlengths 0 721k | dependencies dict | opens_and_abbrevs listlengths 2 94 | vconfig dict | interleaved bool 1
class | verbose_type stringlengths 1 7.42k | effect stringclasses 118
values | effect_flags listlengths 0 2 | mutual_with listlengths 0 11 | ideal_premises listlengths 0 236 | proof_features listlengths 0 1 | is_simple_lemma bool 2
classes | is_div bool 2
classes | is_proof bool 2
classes | is_simply_typed bool 2
classes | is_type bool 2
classes | partial_definition stringlengths 5 3.99k | completed_definiton stringlengths 1 1.63M | isa_cross_project_example bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Hacl.Impl.Chacha20Poly1305.fst | Hacl.Impl.Chacha20Poly1305.aead_decrypt | val aead_decrypt: #w:field_spec -> aead_decrypt_st w | val aead_decrypt: #w:field_spec -> aead_decrypt_st w | let aead_decrypt #w output input input_len data data_len key nonce tag =
push_frame();
let h0 = ST.get() in
// Create a buffer to store the temporary mac
let computed_tag = create 16ul (u8 0) in
// Compute the expected mac using Poly1305
derive_key_poly1305_do #w key nonce data_len data input_len input comp... | {
"file_name": "code/chacha20poly1305/Hacl.Impl.Chacha20Poly1305.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 5,
"end_line": 222,
"start_col": 0,
"start_line": 205
} | module Hacl.Impl.Chacha20Poly1305
open FStar.HyperStack.All
open FStar.HyperStack
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Lib.ByteBuffer
open Hacl.Impl.Chacha20Poly1305.PolyCore
open Hacl.Impl.Poly1305.Fields
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module BSeq = Lib.ByteSequence
mo... | {
"checked_file": "/",
"dependencies": [
"Spec.Poly1305.fst.checked",
"Spec.Chacha20Poly1305.fst.checked",
"Spec.Chacha20.fst.checked",
"prims.fst.checked",
"Meta.Attribute.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"L... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.Poly1305",
"short_module": "Poly"
},
{
"abbrev": true,
"full_module": "Spec.Poly1305",
"short_module": "SpecPoly"
},
{
"abbrev": true,
"full_module": "Spec.Chacha20Poly1305",
"short_module": "Spec"
},
{
"abbrev": true,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Hacl.Impl.Chacha20Poly1305.aead_decrypt_st w | Prims.Tot | [
"total"
] | [] | [
"Hacl.Impl.Poly1305.Fields.field_spec",
"Lib.Buffer.buffer",
"Lib.IntTypes.uint8",
"Lib.IntTypes.size_t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_Equality",
"Prims.int",
"Prims.l_or",
"Prims.op_GreaterThanOrEqual",
"Lib.IntTypes.range",
"Lib.IntTypes.U32",
"Lib.Buffer.length",
"Lib.Buffer.MU... | [] | false | false | false | false | false | let aead_decrypt #w output input input_len data data_len key nonce tag =
| push_frame ();
let h0 = ST.get () in
let computed_tag = create 16ul (u8 0) in
derive_key_poly1305_do #w key nonce data_len data input_len input computed_tag;
let h1 = ST.get () in
let res =
if lbytes_eq computed_tag tag
then
(assert (BSeq.lbytes_eq (as_seq h1 computed_tag) (as_seq h1 tag));
chacha20_encry... | false |
Hacl.Curve25519_64.fst | Hacl.Curve25519_64.point_add_and_double | val point_add_and_double : Hacl.Meta.Curve25519.addanddouble_point_add_and_double_higher_t Hacl.Impl.Curve25519.Field64.Vale.p | let point_add_and_double =
addanddouble_point_add_and_double_higher #M64 C.p C.fmul C.fsqr2 C.fmul_scalar C.fmul2 C.fsub C.fadd | {
"file_name": "code/curve25519/Hacl.Curve25519_64.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 102,
"end_line": 14,
"start_col": 0,
"start_line": 13
} | module Hacl.Curve25519_64
friend Hacl.Meta.Curve25519
open Hacl.Meta.Curve25519
// The Vale core.
module C = Hacl.Impl.Curve25519.Field64.Vale
let g25519: g25519_t =
Lib.Buffer.createL_global Spec.Curve25519.basepoint_list | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Meta.Curve25519.fst.checked",
"Hacl.Impl.Curve25519.Field64.Vale.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Hacl.... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.Curve25519.Field64.Vale",
"short_module": "C"
},
{
"abbrev": false,
"full_module": "Hacl.Meta.Curve25519",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Curve25519.Fields",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Hacl.Meta.Curve25519.addanddouble_point_add_and_double_higher_t Hacl.Impl.Curve25519.Field64.Vale.p | Prims.Tot | [
"total"
] | [] | [
"Hacl.Meta.Curve25519.addanddouble_point_add_and_double_higher",
"Hacl.Impl.Curve25519.Fields.Core.M64",
"Hacl.Impl.Curve25519.Field64.Vale.p",
"Hacl.Impl.Curve25519.Field64.Vale.fmul",
"Hacl.Impl.Curve25519.Field64.Vale.fsqr2",
"Hacl.Impl.Curve25519.Field64.Vale.fmul_scalar",
"Hacl.Impl.Curve25519.Fiel... | [] | false | false | false | true | false | let point_add_and_double =
| addanddouble_point_add_and_double_higher #M64 C.p C.fmul C.fsqr2 C.fmul_scalar C.fmul2 C.fsub C.fadd | false | |
Hacl.Curve25519_64.fst | Hacl.Curve25519_64.finv | val finv : Hacl.Meta.Curve25519.finv_finv_higher_t Hacl.Impl.Curve25519.Field64.Vale.p | let finv = finv_finv_higher #M64 C.p C.fmul fsquare_times | {
"file_name": "code/curve25519/Hacl.Curve25519_64.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 57,
"end_line": 20,
"start_col": 0,
"start_line": 20
} | module Hacl.Curve25519_64
friend Hacl.Meta.Curve25519
open Hacl.Meta.Curve25519
// The Vale core.
module C = Hacl.Impl.Curve25519.Field64.Vale
let g25519: g25519_t =
Lib.Buffer.createL_global Spec.Curve25519.basepoint_list
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 100"
let point_add_and_double =
addan... | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Meta.Curve25519.fst.checked",
"Hacl.Impl.Curve25519.Field64.Vale.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Hacl.... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.Curve25519.Field64.Vale",
"short_module": "C"
},
{
"abbrev": false,
"full_module": "Hacl.Meta.Curve25519",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Curve25519.Fields",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Hacl.Meta.Curve25519.finv_finv_higher_t Hacl.Impl.Curve25519.Field64.Vale.p | Prims.Tot | [
"total"
] | [] | [
"Hacl.Meta.Curve25519.finv_finv_higher",
"Hacl.Impl.Curve25519.Fields.Core.M64",
"Hacl.Impl.Curve25519.Field64.Vale.p",
"Hacl.Impl.Curve25519.Field64.Vale.fmul",
"Hacl.Curve25519_64.fsquare_times"
] | [] | false | false | false | true | false | let finv =
| finv_finv_higher #M64 C.p C.fmul fsquare_times | false | |
Hacl.Impl.P256.Qinv.fst | Hacl.Impl.P256.Qinv.qinv_x210_x240 | val qinv_x210_x240 (x210 x_11 x_101 x_101111:felem) : Stack unit
(requires fun h ->
live h x210 /\ live h x_11 /\ live h x_101 /\ live h x_101111 /\
disjoint x210 x_11 /\ disjoint x210 x_101 /\ disjoint x210 x_101111 /\
as_nat h x210 < S.order /\ as_nat h x_11 < S.order /\
as_nat h x_101 < S.order /\ ... | val qinv_x210_x240 (x210 x_11 x_101 x_101111:felem) : Stack unit
(requires fun h ->
live h x210 /\ live h x_11 /\ live h x_101 /\ live h x_101111 /\
disjoint x210 x_11 /\ disjoint x210 x_101 /\ disjoint x210 x_101111 /\
as_nat h x210 < S.order /\ as_nat h x_11 < S.order /\
as_nat h x_101 < S.order /\ ... | let qinv_x210_x240 x210 x_11 x_101 x_101111 =
let h0 = ST.get () in
qsquare_times_in_place x210 5ul;
qmul x210 x210 x_101;
let h1 = ST.get () in
assert (qmont_as_nat h1 x210 == // x215
S.qmul (SI.qsquare_times (qmont_as_nat h0 x210) 5) (qmont_as_nat h0 x_101));
qsquare_times_in_place x210 3ul;
qmul x... | {
"file_name": "code/ecdsap256/Hacl.Impl.P256.Qinv.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 78,
"end_line": 346,
"start_col": 0,
"start_line": 310
} | module Hacl.Impl.P256.Qinv
open FStar.Mul
open FStar.HyperStack.All
open FStar.HyperStack
module ST = FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.P256.Bignum
open Hacl.Impl.P256.Scalar
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exponentiation
module BD = Hacl.Spec.Bignum.Definiti... | {
"checked_file": "/",
"dependencies": [
"Spec.P256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.P256.Qinv.fst.checked",
... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.P256.Montgomery",
"short_module": "SM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.P256.Qinv",
"short_module": "SI"
},
{
"abbrev": true,
"full_module": "Spec.P256",
"short_module": "S"
},
{
"abbrev": true,
"full_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
x210: Hacl.Impl.P256.Bignum.felem ->
x_11: Hacl.Impl.P256.Bignum.felem ->
x_101: Hacl.Impl.P256.Bignum.felem ->
x_101111: Hacl.Impl.P256.Bignum.felem
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Hacl.Impl.P256.Bignum.felem",
"Prims._assert",
"Prims.eq2",
"Spec.P256.PointOps.qelem",
"Hacl.Impl.P256.Scalar.qmont_as_nat",
"Spec.P256.PointOps.qmul",
"Hacl.Spec.P256.Qinv.qsquare_times",
"Prims.unit",
"FStar.Monotonic.HyperStack.mem",
"FStar.HyperStack.ST.get",
"Hacl.Impl.P256.Scalar.qmul",
... | [] | false | true | false | false | false | let qinv_x210_x240 x210 x_11 x_101 x_101111 =
| let h0 = ST.get () in
qsquare_times_in_place x210 5ul;
qmul x210 x210 x_101;
let h1 = ST.get () in
assert (qmont_as_nat h1 x210 ==
S.qmul (SI.qsquare_times (qmont_as_nat h0 x210) 5) (qmont_as_nat h0 x_101));
qsquare_times_in_place x210 3ul;
qmul x210 x210 x_11;
let h2 = ST.get () in
assert (qmont_as_nat h2 x210 ==
... | false |
Hacl.Curve25519_64.fst | Hacl.Curve25519_64.store_felem | val store_felem : Hacl.Meta.Curve25519.fields_store_felem_higher_t Hacl.Impl.Curve25519.Field64.Vale.p | let store_felem = fields_store_felem_higher #M64 C.p C.add_scalar | {
"file_name": "code/curve25519/Hacl.Curve25519_64.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 65,
"end_line": 24,
"start_col": 0,
"start_line": 24
} | module Hacl.Curve25519_64
friend Hacl.Meta.Curve25519
open Hacl.Meta.Curve25519
// The Vale core.
module C = Hacl.Impl.Curve25519.Field64.Vale
let g25519: g25519_t =
Lib.Buffer.createL_global Spec.Curve25519.basepoint_list
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 100"
let point_add_and_double =
addan... | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Meta.Curve25519.fst.checked",
"Hacl.Impl.Curve25519.Field64.Vale.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Hacl.... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.Curve25519.Field64.Vale",
"short_module": "C"
},
{
"abbrev": false,
"full_module": "Hacl.Meta.Curve25519",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Curve25519.Fields",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Hacl.Meta.Curve25519.fields_store_felem_higher_t Hacl.Impl.Curve25519.Field64.Vale.p | Prims.Tot | [
"total"
] | [] | [
"Hacl.Meta.Curve25519.fields_store_felem_higher",
"Hacl.Impl.Curve25519.Fields.Core.M64",
"Hacl.Impl.Curve25519.Field64.Vale.p",
"Hacl.Impl.Curve25519.Field64.Vale.add_scalar"
] | [] | false | false | false | true | false | let store_felem =
| fields_store_felem_higher #M64 C.p C.add_scalar | false | |
Hacl.Curve25519_64.fst | Hacl.Curve25519_64.point_double | val point_double : Hacl.Meta.Curve25519.addanddouble_point_double_higher_t Hacl.Impl.Curve25519.Field64.Vale.p | let point_double =
addanddouble_point_double_higher #M64 C.p C.fmul2 C.fmul_scalar C.fsqr2 C.fsub C.fadd | {
"file_name": "code/curve25519/Hacl.Curve25519_64.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 87,
"end_line": 16,
"start_col": 0,
"start_line": 15
} | module Hacl.Curve25519_64
friend Hacl.Meta.Curve25519
open Hacl.Meta.Curve25519
// The Vale core.
module C = Hacl.Impl.Curve25519.Field64.Vale
let g25519: g25519_t =
Lib.Buffer.createL_global Spec.Curve25519.basepoint_list
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 100"
let point_add_and_double = | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Meta.Curve25519.fst.checked",
"Hacl.Impl.Curve25519.Field64.Vale.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Hacl.... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.Curve25519.Field64.Vale",
"short_module": "C"
},
{
"abbrev": false,
"full_module": "Hacl.Meta.Curve25519",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Curve25519.Fields",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Hacl.Meta.Curve25519.addanddouble_point_double_higher_t Hacl.Impl.Curve25519.Field64.Vale.p | Prims.Tot | [
"total"
] | [] | [
"Hacl.Meta.Curve25519.addanddouble_point_double_higher",
"Hacl.Impl.Curve25519.Fields.Core.M64",
"Hacl.Impl.Curve25519.Field64.Vale.p",
"Hacl.Impl.Curve25519.Field64.Vale.fmul2",
"Hacl.Impl.Curve25519.Field64.Vale.fmul_scalar",
"Hacl.Impl.Curve25519.Field64.Vale.fsqr2",
"Hacl.Impl.Curve25519.Field64.Val... | [] | false | false | false | true | false | let point_double =
| addanddouble_point_double_higher #M64 C.p C.fmul2 C.fmul_scalar C.fsqr2 C.fsub C.fadd | false | |
Hacl.Curve25519_64.fst | Hacl.Curve25519_64.fsquare_times | val fsquare_times : Hacl.Meta.Curve25519.finv_fsquare_times_higher_t Hacl.Impl.Curve25519.Field64.Vale.p | let fsquare_times = finv_fsquare_times_higher #M64 C.p C.fsqr | {
"file_name": "code/curve25519/Hacl.Curve25519_64.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 61,
"end_line": 19,
"start_col": 0,
"start_line": 19
} | module Hacl.Curve25519_64
friend Hacl.Meta.Curve25519
open Hacl.Meta.Curve25519
// The Vale core.
module C = Hacl.Impl.Curve25519.Field64.Vale
let g25519: g25519_t =
Lib.Buffer.createL_global Spec.Curve25519.basepoint_list
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 100"
let point_add_and_double =
addan... | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Meta.Curve25519.fst.checked",
"Hacl.Impl.Curve25519.Field64.Vale.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Hacl.... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.Curve25519.Field64.Vale",
"short_module": "C"
},
{
"abbrev": false,
"full_module": "Hacl.Meta.Curve25519",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Curve25519.Fields",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Hacl.Meta.Curve25519.finv_fsquare_times_higher_t Hacl.Impl.Curve25519.Field64.Vale.p | Prims.Tot | [
"total"
] | [] | [
"Hacl.Meta.Curve25519.finv_fsquare_times_higher",
"Hacl.Impl.Curve25519.Fields.Core.M64",
"Hacl.Impl.Curve25519.Field64.Vale.p",
"Hacl.Impl.Curve25519.Field64.Vale.fsqr"
] | [] | false | false | false | true | false | let fsquare_times =
| finv_fsquare_times_higher #M64 C.p C.fsqr | false | |
Hacl.Curve25519_64.fst | Hacl.Curve25519_64.montgomery_ladder | val montgomery_ladder : Hacl.Meta.Curve25519.generic_montgomery_ladder_higher_t Hacl.Impl.Curve25519.Field64.Vale.p | let montgomery_ladder =
generic_montgomery_ladder_higher #M64 C.p point_double C.cswap2 point_add_and_double | {
"file_name": "code/curve25519/Hacl.Curve25519_64.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 86,
"end_line": 18,
"start_col": 0,
"start_line": 17
} | module Hacl.Curve25519_64
friend Hacl.Meta.Curve25519
open Hacl.Meta.Curve25519
// The Vale core.
module C = Hacl.Impl.Curve25519.Field64.Vale
let g25519: g25519_t =
Lib.Buffer.createL_global Spec.Curve25519.basepoint_list
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 100"
let point_add_and_double =
addan... | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Meta.Curve25519.fst.checked",
"Hacl.Impl.Curve25519.Field64.Vale.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Hacl.... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.Curve25519.Field64.Vale",
"short_module": "C"
},
{
"abbrev": false,
"full_module": "Hacl.Meta.Curve25519",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Curve25519.Fields",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Hacl.Meta.Curve25519.generic_montgomery_ladder_higher_t Hacl.Impl.Curve25519.Field64.Vale.p | Prims.Tot | [
"total"
] | [] | [
"Hacl.Meta.Curve25519.generic_montgomery_ladder_higher",
"Hacl.Impl.Curve25519.Fields.Core.M64",
"Hacl.Impl.Curve25519.Field64.Vale.p",
"Hacl.Curve25519_64.point_double",
"Hacl.Impl.Curve25519.Field64.Vale.cswap2",
"Hacl.Curve25519_64.point_add_and_double"
] | [] | false | false | false | true | false | let montgomery_ladder =
| generic_montgomery_ladder_higher #M64 C.p point_double C.cswap2 point_add_and_double | false | |
Hacl.Curve25519_64.fst | Hacl.Curve25519_64.scalarmult | val scalarmult: scalarmult_st M64 p | val scalarmult: scalarmult_st M64 p | let scalarmult = generic_scalarmult_higher #M64 C.p encode_point montgomery_ladder decode_point | {
"file_name": "code/curve25519/Hacl.Curve25519_64.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 95,
"end_line": 26,
"start_col": 0,
"start_line": 26
} | module Hacl.Curve25519_64
friend Hacl.Meta.Curve25519
open Hacl.Meta.Curve25519
// The Vale core.
module C = Hacl.Impl.Curve25519.Field64.Vale
let g25519: g25519_t =
Lib.Buffer.createL_global Spec.Curve25519.basepoint_list
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 100"
let point_add_and_double =
addan... | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Meta.Curve25519.fst.checked",
"Hacl.Impl.Curve25519.Field64.Vale.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Hacl.... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.Curve25519.Field64.Vale",
"short_module": "C"
},
{
"abbrev": false,
"full_module": "Hacl.Meta.Curve25519",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Curve25519.Fields",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Hacl.Impl.Curve25519.Generic.scalarmult_st Hacl.Impl.Curve25519.Fields.Core.M64 Hacl.Curve25519_64.p | Prims.Tot | [
"total"
] | [] | [
"Hacl.Meta.Curve25519.generic_scalarmult_higher",
"Hacl.Impl.Curve25519.Fields.Core.M64",
"Hacl.Impl.Curve25519.Field64.Vale.p",
"Hacl.Curve25519_64.encode_point",
"Hacl.Curve25519_64.montgomery_ladder",
"Hacl.Impl.Curve25519.Generic.decode_point"
] | [] | false | false | false | true | false | let scalarmult =
| generic_scalarmult_higher #M64 C.p encode_point montgomery_ladder decode_point | false |
Hacl.Curve25519_64.fst | Hacl.Curve25519_64.encode_point | val encode_point : Hacl.Meta.Curve25519.generic_encode_point_higher_t Hacl.Impl.Curve25519.Field64.Vale.p | let encode_point = generic_encode_point_higher #M64 C.p store_felem C.fmul finv | {
"file_name": "code/curve25519/Hacl.Curve25519_64.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 79,
"end_line": 25,
"start_col": 0,
"start_line": 25
} | module Hacl.Curve25519_64
friend Hacl.Meta.Curve25519
open Hacl.Meta.Curve25519
// The Vale core.
module C = Hacl.Impl.Curve25519.Field64.Vale
let g25519: g25519_t =
Lib.Buffer.createL_global Spec.Curve25519.basepoint_list
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 100"
let point_add_and_double =
addan... | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Meta.Curve25519.fst.checked",
"Hacl.Impl.Curve25519.Field64.Vale.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Hacl.... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.Curve25519.Field64.Vale",
"short_module": "C"
},
{
"abbrev": false,
"full_module": "Hacl.Meta.Curve25519",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Curve25519.Fields",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Hacl.Meta.Curve25519.generic_encode_point_higher_t Hacl.Impl.Curve25519.Field64.Vale.p | Prims.Tot | [
"total"
] | [] | [
"Hacl.Meta.Curve25519.generic_encode_point_higher",
"Hacl.Impl.Curve25519.Fields.Core.M64",
"Hacl.Impl.Curve25519.Field64.Vale.p",
"Hacl.Curve25519_64.store_felem",
"Hacl.Impl.Curve25519.Field64.Vale.fmul",
"Hacl.Curve25519_64.finv"
] | [] | false | false | false | true | false | let encode_point =
| generic_encode_point_higher #M64 C.p store_felem C.fmul finv | false | |
Hacl.Curve25519_64.fst | Hacl.Curve25519_64.ecdh | val ecdh: ecdh_st M64 p | val ecdh: ecdh_st M64 p | let ecdh = generic_ecdh_higher #M64 C.p scalarmult | {
"file_name": "code/curve25519/Hacl.Curve25519_64.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 50,
"end_line": 28,
"start_col": 0,
"start_line": 28
} | module Hacl.Curve25519_64
friend Hacl.Meta.Curve25519
open Hacl.Meta.Curve25519
// The Vale core.
module C = Hacl.Impl.Curve25519.Field64.Vale
let g25519: g25519_t =
Lib.Buffer.createL_global Spec.Curve25519.basepoint_list
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 100"
let point_add_and_double =
addan... | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Meta.Curve25519.fst.checked",
"Hacl.Impl.Curve25519.Field64.Vale.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Hacl.... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.Curve25519.Field64.Vale",
"short_module": "C"
},
{
"abbrev": false,
"full_module": "Hacl.Meta.Curve25519",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Curve25519.Fields",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Hacl.Impl.Curve25519.Generic.ecdh_st Hacl.Impl.Curve25519.Fields.Core.M64 Hacl.Curve25519_64.p | Prims.Tot | [
"total"
] | [] | [
"Hacl.Meta.Curve25519.generic_ecdh_higher",
"Hacl.Impl.Curve25519.Fields.Core.M64",
"Hacl.Impl.Curve25519.Field64.Vale.p",
"Hacl.Curve25519_64.scalarmult"
] | [] | false | false | false | true | false | let ecdh =
| generic_ecdh_higher #M64 C.p scalarmult | false |
Hacl.Curve25519_64.fst | Hacl.Curve25519_64.secret_to_public | val secret_to_public: secret_to_public_st M64 p | val secret_to_public: secret_to_public_st M64 p | let secret_to_public = generic_secret_to_public_higher #M64 C.p scalarmult g25519 | {
"file_name": "code/curve25519/Hacl.Curve25519_64.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 81,
"end_line": 27,
"start_col": 0,
"start_line": 27
} | module Hacl.Curve25519_64
friend Hacl.Meta.Curve25519
open Hacl.Meta.Curve25519
// The Vale core.
module C = Hacl.Impl.Curve25519.Field64.Vale
let g25519: g25519_t =
Lib.Buffer.createL_global Spec.Curve25519.basepoint_list
#set-options "--max_fuel 0 --max_ifuel 0 --z3rlimit 100"
let point_add_and_double =
addan... | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Meta.Curve25519.fst.checked",
"Hacl.Impl.Curve25519.Field64.Vale.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Hacl.... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.Curve25519.Field64.Vale",
"short_module": "C"
},
{
"abbrev": false,
"full_module": "Hacl.Meta.Curve25519",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Curve25519.Fields",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Hacl.Impl.Curve25519.Generic.secret_to_public_st Hacl.Impl.Curve25519.Fields.Core.M64
Hacl.Curve25519_64.p | Prims.Tot | [
"total"
] | [] | [
"Hacl.Meta.Curve25519.generic_secret_to_public_higher",
"Hacl.Impl.Curve25519.Fields.Core.M64",
"Hacl.Impl.Curve25519.Field64.Vale.p",
"Hacl.Curve25519_64.scalarmult",
"Hacl.Curve25519_64.g25519"
] | [] | false | false | false | true | false | let secret_to_public =
| generic_secret_to_public_higher #M64 C.p scalarmult g25519 | false |
Hacl.Impl.P256.Qinv.fst | Hacl.Impl.P256.Qinv.qinv_make_x | val qinv_make_x (x6 x_11 x_101 x_111 x_1111 x_10101 x_101111 a:felem) : Stack unit
(requires fun h ->
live h x6 /\ live h x_11 /\ live h x_101 /\ live h x_111 /\
live h x_1111 /\ live h x_10101 /\ live h x_101111 /\ live h a /\
LowStar.Monotonic.Buffer.all_disjoint
[ loc x6; loc x_11; loc x_101; loc... | val qinv_make_x (x6 x_11 x_101 x_111 x_1111 x_10101 x_101111 a:felem) : Stack unit
(requires fun h ->
live h x6 /\ live h x_11 /\ live h x_101 /\ live h x_111 /\
live h x_1111 /\ live h x_10101 /\ live h x_101111 /\ live h a /\
LowStar.Monotonic.Buffer.all_disjoint
[ loc x6; loc x_11; loc x_101; loc... | let qinv_make_x x6 x_11 x_101 x_111 x_1111 x_10101 x_101111 a =
qsquare_times x6 a 1ul; // x_10
qmul x_11 x6 a;
qmul x_101 x6 x_11;
qmul x_111 x6 x_101;
qsquare_times x6 x_101 1ul; // x_1010
qmul x_1111 x_101 x6;
qsquare_times_in_place x6 1ul;
qmul x_10101 x6 a;
qsquare_times x6 x_10101 1ul; // x_10... | {
"file_name": "code/ecdsap256/Hacl.Impl.P256.Qinv.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 20,
"end_line": 461,
"start_col": 0,
"start_line": 448
} | module Hacl.Impl.P256.Qinv
open FStar.Mul
open FStar.HyperStack.All
open FStar.HyperStack
module ST = FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.P256.Bignum
open Hacl.Impl.P256.Scalar
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exponentiation
module BD = Hacl.Spec.Bignum.Definiti... | {
"checked_file": "/",
"dependencies": [
"Spec.P256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.P256.Qinv.fst.checked",
... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.P256.Montgomery",
"short_module": "SM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.P256.Qinv",
"short_module": "SI"
},
{
"abbrev": true,
"full_module": "Spec.P256",
"short_module": "S"
},
{
"abbrev": true,
"full_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
x6: Hacl.Impl.P256.Bignum.felem ->
x_11: Hacl.Impl.P256.Bignum.felem ->
x_101: Hacl.Impl.P256.Bignum.felem ->
x_111: Hacl.Impl.P256.Bignum.felem ->
x_1111: Hacl.Impl.P256.Bignum.felem ->
x_10101: Hacl.Impl.P256.Bignum.felem ->
x_101111: Hacl.Impl.P256.Bignum.felem ->
a: Hacl.Impl.P256.B... | FStar.HyperStack.ST.Stack | [] | [] | [
"Hacl.Impl.P256.Bignum.felem",
"Hacl.Impl.P256.Scalar.qmul",
"Prims.unit",
"Hacl.Impl.P256.Qinv.qsquare_times",
"FStar.UInt32.__uint_to_t",
"Hacl.Impl.P256.Qinv.qsquare_times_in_place"
] | [] | false | true | false | false | false | let qinv_make_x x6 x_11 x_101 x_111 x_1111 x_10101 x_101111 a =
| qsquare_times x6 a 1ul;
qmul x_11 x6 a;
qmul x_101 x6 x_11;
qmul x_111 x6 x_101;
qsquare_times x6 x_101 1ul;
qmul x_1111 x_101 x6;
qsquare_times_in_place x6 1ul;
qmul x_10101 x6 a;
qsquare_times x6 x_10101 1ul;
qmul x_101111 x_101 x6;
qmul x6 x_10101 x6 | false |
Hacl.Impl.P256.Qinv.fst | Hacl.Impl.P256.Qinv.qinv | val qinv: res:felem -> a:felem -> Stack unit
(requires fun h ->
live h a /\ live h res /\ eq_or_disjoint a res /\
as_nat h a < S.order)
(ensures fun h0 _ h1 -> modifies (loc res) h0 h1 /\
as_nat h1 res < S.order /\
qmont_as_nat h1 res == S.qinv (qmont_as_nat h0 a)) | val qinv: res:felem -> a:felem -> Stack unit
(requires fun h ->
live h a /\ live h res /\ eq_or_disjoint a res /\
as_nat h a < S.order)
(ensures fun h0 _ h1 -> modifies (loc res) h0 h1 /\
as_nat h1 res < S.order /\
qmont_as_nat h1 res == S.qinv (qmont_as_nat h0 a)) | let qinv res r =
let h0 = ST.get () in
push_frame ();
let tmp = create 28ul (u64 0) in
let x6 = sub tmp 0ul 4ul in
let x_11 = sub tmp 4ul 4ul in
let x_101 = sub tmp 8ul 4ul in
let x_111 = sub tmp 12ul 4ul in
let x_1111 = sub tmp 16ul 4ul in
let x_10101 = sub tmp 20ul 4ul in
let x_... | {
"file_name": "code/ecdsap256/Hacl.Impl.P256.Qinv.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 482,
"start_col": 0,
"start_line": 465
} | module Hacl.Impl.P256.Qinv
open FStar.Mul
open FStar.HyperStack.All
open FStar.HyperStack
module ST = FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.P256.Bignum
open Hacl.Impl.P256.Scalar
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exponentiation
module BD = Hacl.Spec.Bignum.Definiti... | {
"checked_file": "/",
"dependencies": [
"Spec.P256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.P256.Qinv.fst.checked",
... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.P256.Montgomery",
"short_module": "SM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.P256.Qinv",
"short_module": "SI"
},
{
"abbrev": true,
"full_module": "Lib.Sequence",
"short_module": "LSeq"
},
{
"abbrev": true,
"... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | res: Hacl.Impl.P256.Bignum.felem -> a: Hacl.Impl.P256.Bignum.felem
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Hacl.Impl.P256.Bignum.felem",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Hacl.Spec.P256.Qinv.qinv_is_qinv_lemma",
"Hacl.Impl.P256.Scalar.qmont_as_nat",
"Prims._assert",
"Prims.eq2",
"Spec.P256.PointOps.qelem",
"Hacl.Spec.P256.Qinv.qinv",
"FStar.Monotonic.HyperStack.mem",
"FStar.HyperStack.... | [] | false | true | false | false | false | let qinv res r =
| let h0 = ST.get () in
push_frame ();
let tmp = create 28ul (u64 0) in
let x6 = sub tmp 0ul 4ul in
let x_11 = sub tmp 4ul 4ul in
let x_101 = sub tmp 8ul 4ul in
let x_111 = sub tmp 12ul 4ul in
let x_1111 = sub tmp 16ul 4ul in
let x_10101 = sub tmp 20ul 4ul in
let x_101111 = sub tmp 24ul 4ul in
qinv_make_x x6 x_11 x_101 x... | false |
Hacl.Curve25519_64.fst | Hacl.Curve25519_64.g25519 | val g25519:g25519_t | val g25519:g25519_t | let g25519: g25519_t =
Lib.Buffer.createL_global Spec.Curve25519.basepoint_list | {
"file_name": "code/curve25519/Hacl.Curve25519_64.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 58,
"end_line": 10,
"start_col": 0,
"start_line": 9
} | module Hacl.Curve25519_64
friend Hacl.Meta.Curve25519
open Hacl.Meta.Curve25519
// The Vale core.
module C = Hacl.Impl.Curve25519.Field64.Vale | {
"checked_file": "/",
"dependencies": [
"Spec.Curve25519.fst.checked",
"prims.fst.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Meta.Curve25519.fst.checked",
"Hacl.Impl.Curve25519.Field64.Vale.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "Hacl.... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.Curve25519.Field64.Vale",
"short_module": "C"
},
{
"abbrev": false,
"full_module": "Hacl.Meta.Curve25519",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Curve25519.Fields",
"short_module": null
},
{
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Hacl.Impl.Curve25519.Generic.g25519_t | Prims.Tot | [
"total"
] | [] | [
"Lib.Buffer.createL_global",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.PUB",
"Spec.Curve25519.basepoint_list",
"Lib.Buffer.glbuffer",
"Lib.IntTypes.size",
"FStar.Pervasives.normalize_term",
"Lib.IntTypes.size_nat",
"FStar.List.Tot.Base.length"
] | [] | false | false | false | true | false | let g25519:g25519_t =
| Lib.Buffer.createL_global Spec.Curve25519.basepoint_list | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test1_plaintext | val test1_plaintext:lbytes 0 | val test1_plaintext:lbytes 0 | let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length l == 0);
of_list l | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 17,
"start_col": 0,
"start_line": 14
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3 | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 0 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Nil"
... | [] | false | false | false | false | false | let test1_plaintext:lbytes 0 =
| let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length l == 0);
of_list l | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test2_plaintext | val test2_plaintext:lbytes 3 | val test2_plaintext:lbytes 3 | let test2_plaintext : lbytes 3 =
let l = List.Tot.map u8_from_UInt8 [ 0x61uy; 0x62uy; 0x63uy ] in
assert_norm (List.Tot.length l == 3);
of_list l | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 75,
"start_col": 0,
"start_line": 72
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 3 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test2_plaintext:lbytes 3 =
| let l = List.Tot.map u8_from_UInt8 [0x61uy; 0x62uy; 0x63uy] in
assert_norm (List.Tot.length l == 3);
of_list l | false |
Hacl.Impl.K256.Group.fst | Hacl.Impl.K256.Group.linv_ctx | val linv_ctx (a: LSeq.lseq uint64 0) : Type0 | val linv_ctx (a: LSeq.lseq uint64 0) : Type0 | let linv_ctx (a:LSeq.lseq uint64 0) : Type0 = True | {
"file_name": "code/k256/Hacl.Impl.K256.Group.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 50,
"end_line": 23,
"start_col": 0,
"start_line": 23
} | module Hacl.Impl.K256.Group
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module BE = Hacl.Impl.Exponentiation.Definitions
module S = Spec.K256
module SL = Spec.K256.Lemmas
open Hacl.Impl.K256.Point
#set-... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.Lemmas.fsti.checked",
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.K256.PointDouble.fst.checked",
"Hacl.Impl.K256.PointAdd.fst.checked"... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.K256.Point",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.K256.Lemmas",
"short_module": "SL"
},
{
"abbrev": true,
"full_module": "Spec.K256",
"short_module": "S"
},
{
"abbrev": true,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Lib.Sequence.lseq Lib.IntTypes.uint64 0 -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.lseq",
"Lib.IntTypes.uint64",
"Prims.l_True"
] | [] | false | false | false | false | true | let linv_ctx (a: LSeq.lseq uint64 0) : Type0 =
| True | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test1_expected_sha3_256 | val test1_expected_sha3_256:lbytes 32 | val test1_expected_sha3_256:lbytes 32 | let test1_expected_sha3_256 : lbytes 32 =
let l = List.Tot.map u8_from_UInt8 [
0xa7uy; 0xffuy; 0xc6uy; 0xf8uy; 0xbfuy; 0x1euy; 0xd7uy; 0x66uy;
0x51uy; 0xc1uy; 0x47uy; 0x56uy; 0xa0uy; 0x61uy; 0xd6uy; 0x62uy;
0xf5uy; 0x80uy; 0xffuy; 0x4duy; 0xe4uy; 0x3buy; 0x49uy; 0xfauy;
0x82uy; 0xd8uy; 0x0auy; 0x4buy;... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 39,
"start_col": 0,
"start_line": 31
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 32 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test1_expected_sha3_256:lbytes 32 =
| let l =
List.Tot.map u8_from_UInt8
[
0xa7uy; 0xffuy; 0xc6uy; 0xf8uy; 0xbfuy; 0x1euy; 0xd7uy; 0x66uy; 0x51uy; 0xc1uy; 0x47uy; 0x56uy;
0xa0uy; 0x61uy; 0xd6uy; 0x62uy; 0xf5uy; 0x80uy; 0xffuy; 0x4duy; 0xe4uy; 0x3buy; 0x49uy; 0xfauy;
0x82uy; 0xd8uy; 0x0auy; 0x4buy; 0x80uy; 0xf8uy; 0x43uy; 0x4auy
... | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test2_expected_sha3_224 | val test2_expected_sha3_224:lbytes 28 | val test2_expected_sha3_224:lbytes 28 | let test2_expected_sha3_224 : lbytes 28 =
let l = List.Tot.map u8_from_UInt8 [
0xe6uy; 0x42uy; 0x82uy; 0x4cuy; 0x3fuy; 0x8cuy; 0xf2uy; 0x4auy;
0xd0uy; 0x92uy; 0x34uy; 0xeeuy; 0x7duy; 0x3cuy; 0x76uy; 0x6fuy;
0xc9uy; 0xa3uy; 0xa5uy; 0x16uy; 0x8duy; 0x0cuy; 0x94uy; 0xaduy;
0x73uy; 0xb4uy; 0x6fuy; 0xdfuy
... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 86,
"start_col": 0,
"start_line": 78
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 28 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test2_expected_sha3_224:lbytes 28 =
| let l =
List.Tot.map u8_from_UInt8
[
0xe6uy; 0x42uy; 0x82uy; 0x4cuy; 0x3fuy; 0x8cuy; 0xf2uy; 0x4auy; 0xd0uy; 0x92uy; 0x34uy; 0xeeuy;
0x7duy; 0x3cuy; 0x76uy; 0x6fuy; 0xc9uy; 0xa3uy; 0xa5uy; 0x16uy; 0x8duy; 0x0cuy; 0x94uy; 0xaduy;
0x73uy; 0xb4uy; 0x6fuy; 0xdfuy
]
in
assert_norm (List.Tot.lengt... | false |
Hacl.Impl.K256.Group.fst | Hacl.Impl.K256.Group.refl | val refl (p: LSeq.lseq uint64 15 {point_inv_lseq p}) : GTot S.aff_point | val refl (p: LSeq.lseq uint64 15 {point_inv_lseq p}) : GTot S.aff_point | let refl (p:LSeq.lseq uint64 15{point_inv_lseq p}) : GTot S.aff_point =
S.to_aff_point (point_eval_lseq p) | {
"file_name": "code/k256/Hacl.Impl.K256.Group.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 36,
"end_line": 27,
"start_col": 0,
"start_line": 26
} | module Hacl.Impl.K256.Group
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module BE = Hacl.Impl.Exponentiation.Definitions
module S = Spec.K256
module SL = Spec.K256.Lemmas
open Hacl.Impl.K256.Point
#set-... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.Lemmas.fsti.checked",
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.K256.PointDouble.fst.checked",
"Hacl.Impl.K256.PointAdd.fst.checked"... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.K256.Point",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.K256.Lemmas",
"short_module": "SL"
},
{
"abbrev": true,
"full_module": "Spec.K256",
"short_module": "S"
},
{
"abbrev": true,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: Lib.Sequence.lseq Lib.IntTypes.uint64 15 {Hacl.Impl.K256.Point.point_inv_lseq p}
-> Prims.GTot Spec.K256.PointOps.aff_point | Prims.GTot | [
"sometrivial"
] | [] | [
"Lib.Sequence.lseq",
"Lib.IntTypes.uint64",
"Hacl.Impl.K256.Point.point_inv_lseq",
"Spec.K256.PointOps.to_aff_point",
"Hacl.Impl.K256.Point.point_eval_lseq",
"Spec.K256.PointOps.aff_point"
] | [] | false | false | false | false | false | let refl (p: LSeq.lseq uint64 15 {point_inv_lseq p}) : GTot S.aff_point =
| S.to_aff_point (point_eval_lseq p) | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test3_plaintext | val test3_plaintext:lbytes 56 | val test3_plaintext:lbytes 56 | let test3_plaintext : lbytes 56 =
let l = List.Tot.map u8_from_UInt8 [
0x61uy; 0x62uy; 0x63uy; 0x64uy; 0x62uy; 0x63uy; 0x64uy; 0x65uy;
0x63uy; 0x64uy; 0x65uy; 0x66uy; 0x64uy; 0x65uy; 0x66uy; 0x67uy;
0x65uy; 0x66uy; 0x67uy; 0x68uy; 0x66uy; 0x67uy; 0x68uy; 0x69uy;
0x67uy; 0x68uy; 0x69uy; 0x6auy; 0x68uy;... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 141,
"start_col": 0,
"start_line": 130
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 56 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test3_plaintext:lbytes 56 =
| let l =
List.Tot.map u8_from_UInt8
[
0x61uy; 0x62uy; 0x63uy; 0x64uy; 0x62uy; 0x63uy; 0x64uy; 0x65uy; 0x63uy; 0x64uy; 0x65uy; 0x66uy;
0x64uy; 0x65uy; 0x66uy; 0x67uy; 0x65uy; 0x66uy; 0x67uy; 0x68uy; 0x66uy; 0x67uy; 0x68uy; 0x69uy;
0x67uy; 0x68uy; 0x69uy; 0x6auy; 0x68uy; 0x69uy; 0x6auy; 0x6buy; 0x6... | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test2_expected_sha3_256 | val test2_expected_sha3_256:lbytes 32 | val test2_expected_sha3_256:lbytes 32 | let test2_expected_sha3_256 : lbytes 32 =
let l = List.Tot.map u8_from_UInt8 [
0x3auy; 0x98uy; 0x5duy; 0xa7uy; 0x4fuy; 0xe2uy; 0x25uy; 0xb2uy;
0x04uy; 0x5cuy; 0x17uy; 0x2duy; 0x6buy; 0xd3uy; 0x90uy; 0xbduy;
0x85uy; 0x5fuy; 0x08uy; 0x6euy; 0x3euy; 0x9duy; 0x52uy; 0x5buy;
0x46uy; 0xbfuy; 0xe2uy; 0x45uy;... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 97,
"start_col": 0,
"start_line": 89
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 32 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test2_expected_sha3_256:lbytes 32 =
| let l =
List.Tot.map u8_from_UInt8
[
0x3auy; 0x98uy; 0x5duy; 0xa7uy; 0x4fuy; 0xe2uy; 0x25uy; 0xb2uy; 0x04uy; 0x5cuy; 0x17uy; 0x2duy;
0x6buy; 0xd3uy; 0x90uy; 0xbduy; 0x85uy; 0x5fuy; 0x08uy; 0x6euy; 0x3euy; 0x9duy; 0x52uy; 0x5buy;
0x46uy; 0xbfuy; 0xe2uy; 0x45uy; 0x11uy; 0x43uy; 0x15uy; 0x32uy
... | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test1_expected_sha3_224 | val test1_expected_sha3_224:lbytes 28 | val test1_expected_sha3_224:lbytes 28 | let test1_expected_sha3_224 : lbytes 28 =
let l = List.Tot.map u8_from_UInt8 [
0x6buy; 0x4euy; 0x03uy; 0x42uy; 0x36uy; 0x67uy; 0xdbuy; 0xb7uy;
0x3buy; 0x6euy; 0x15uy; 0x45uy; 0x4fuy; 0x0euy; 0xb1uy; 0xabuy;
0xd4uy; 0x59uy; 0x7fuy; 0x9auy; 0x1buy; 0x07uy; 0x8euy; 0x3fuy;
0x5buy; 0x5auy; 0x6buy; 0xc7uy
... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 28,
"start_col": 0,
"start_line": 20
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 28 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test1_expected_sha3_224:lbytes 28 =
| let l =
List.Tot.map u8_from_UInt8
[
0x6buy; 0x4euy; 0x03uy; 0x42uy; 0x36uy; 0x67uy; 0xdbuy; 0xb7uy; 0x3buy; 0x6euy; 0x15uy; 0x45uy;
0x4fuy; 0x0euy; 0xb1uy; 0xabuy; 0xd4uy; 0x59uy; 0x7fuy; 0x9auy; 0x1buy; 0x07uy; 0x8euy; 0x3fuy;
0x5buy; 0x5auy; 0x6buy; 0xc7uy
]
in
assert_norm (List.Tot.lengt... | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test1_expected_sha3_384 | val test1_expected_sha3_384:lbytes 48 | val test1_expected_sha3_384:lbytes 48 | let test1_expected_sha3_384 : lbytes 48 =
let l = List.Tot.map u8_from_UInt8 [
0x0cuy; 0x63uy; 0xa7uy; 0x5buy; 0x84uy; 0x5euy; 0x4fuy; 0x7duy;
0x01uy; 0x10uy; 0x7duy; 0x85uy; 0x2euy; 0x4cuy; 0x24uy; 0x85uy;
0xc5uy; 0x1auy; 0x50uy; 0xaauy; 0xaauy; 0x94uy; 0xfcuy; 0x61uy;
0x99uy; 0x5euy; 0x71uy; 0xbbuy;... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 52,
"start_col": 0,
"start_line": 42
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 48 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test1_expected_sha3_384:lbytes 48 =
| let l =
List.Tot.map u8_from_UInt8
[
0x0cuy; 0x63uy; 0xa7uy; 0x5buy; 0x84uy; 0x5euy; 0x4fuy; 0x7duy; 0x01uy; 0x10uy; 0x7duy; 0x85uy;
0x2euy; 0x4cuy; 0x24uy; 0x85uy; 0xc5uy; 0x1auy; 0x50uy; 0xaauy; 0xaauy; 0x94uy; 0xfcuy; 0x61uy;
0x99uy; 0x5euy; 0x71uy; 0xbbuy; 0xeeuy; 0x98uy; 0x3auy; 0x2auy; 0xc... | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test3_expected_sha3_224 | val test3_expected_sha3_224:lbytes 28 | val test3_expected_sha3_224:lbytes 28 | let test3_expected_sha3_224 : lbytes 28 =
let l = List.Tot.map u8_from_UInt8 [
0x8auy; 0x24uy; 0x10uy; 0x8buy; 0x15uy; 0x4auy; 0xdauy; 0x21uy;
0xc9uy; 0xfduy; 0x55uy; 0x74uy; 0x49uy; 0x44uy; 0x79uy; 0xbauy;
0x5cuy; 0x7euy; 0x7auy; 0xb7uy; 0x6euy; 0xf2uy; 0x64uy; 0xeauy;
0xd0uy; 0xfcuy; 0xceuy; 0x33uy
... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 152,
"start_col": 0,
"start_line": 144
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 28 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test3_expected_sha3_224:lbytes 28 =
| let l =
List.Tot.map u8_from_UInt8
[
0x8auy; 0x24uy; 0x10uy; 0x8buy; 0x15uy; 0x4auy; 0xdauy; 0x21uy; 0xc9uy; 0xfduy; 0x55uy; 0x74uy;
0x49uy; 0x44uy; 0x79uy; 0xbauy; 0x5cuy; 0x7euy; 0x7auy; 0xb7uy; 0x6euy; 0xf2uy; 0x64uy; 0xeauy;
0xd0uy; 0xfcuy; 0xceuy; 0x33uy
]
in
assert_norm (List.Tot.lengt... | false |
Hacl.Impl.K256.Group.fst | Hacl.Impl.K256.Group.mk_to_k256_comm_monoid | val mk_to_k256_comm_monoid:BE.to_comm_monoid U64 15ul 0ul | val mk_to_k256_comm_monoid:BE.to_comm_monoid U64 15ul 0ul | let mk_to_k256_comm_monoid : BE.to_comm_monoid U64 15ul 0ul = {
BE.a_spec = S.aff_point;
BE.comm_monoid = S.mk_k256_comm_monoid;
BE.linv_ctx = linv_ctx;
BE.linv = point_inv_lseq;
BE.refl = refl;
} | {
"file_name": "code/k256/Hacl.Impl.K256.Group.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 1,
"end_line": 36,
"start_col": 0,
"start_line": 30
} | module Hacl.Impl.K256.Group
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module BE = Hacl.Impl.Exponentiation.Definitions
module S = Spec.K256
module SL = Spec.K256.Lemmas
open Hacl.Impl.K256.Point
#set-... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.Lemmas.fsti.checked",
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.K256.PointDouble.fst.checked",
"Hacl.Impl.K256.PointAdd.fst.checked"... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.K256.Point",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.K256.Lemmas",
"short_module": "SL"
},
{
"abbrev": true,
"full_module": "Spec.K256",
"short_module": "S"
},
{
"abbrev": true,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Hacl.Impl.Exponentiation.Definitions.to_comm_monoid Lib.IntTypes.U64
(15ul <: FStar.UInt32.t)
(0ul <: FStar.UInt32.t) | Prims.Tot | [
"total"
] | [] | [
"Hacl.Impl.Exponentiation.Definitions.Mkto_comm_monoid",
"Lib.IntTypes.U64",
"FStar.UInt32.uint_to_t",
"Spec.K256.PointOps.aff_point",
"Spec.K256.mk_k256_comm_monoid",
"Hacl.Impl.K256.Group.linv_ctx",
"Hacl.Impl.K256.Point.point_inv_lseq",
"Hacl.Impl.K256.Group.refl"
] | [] | false | false | false | false | false | let mk_to_k256_comm_monoid:BE.to_comm_monoid U64 15ul 0ul =
| {
BE.a_spec = S.aff_point;
BE.comm_monoid = S.mk_k256_comm_monoid;
BE.linv_ctx = linv_ctx;
BE.linv = point_inv_lseq;
BE.refl = refl
} | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test1_expected_sha3_512 | val test1_expected_sha3_512:lbytes 64 | val test1_expected_sha3_512:lbytes 64 | let test1_expected_sha3_512 : lbytes 64 =
let l = List.Tot.map u8_from_UInt8 [
0xa6uy; 0x9fuy; 0x73uy; 0xccuy; 0xa2uy; 0x3auy; 0x9auy; 0xc5uy;
0xc8uy; 0xb5uy; 0x67uy; 0xdcuy; 0x18uy; 0x5auy; 0x75uy; 0x6euy;
0x97uy; 0xc9uy; 0x82uy; 0x16uy; 0x4fuy; 0xe2uy; 0x58uy; 0x59uy;
0xe0uy; 0xd1uy; 0xdcuy; 0xc1uy;... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 67,
"start_col": 0,
"start_line": 55
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 64 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test1_expected_sha3_512:lbytes 64 =
| let l =
List.Tot.map u8_from_UInt8
[
0xa6uy; 0x9fuy; 0x73uy; 0xccuy; 0xa2uy; 0x3auy; 0x9auy; 0xc5uy; 0xc8uy; 0xb5uy; 0x67uy; 0xdcuy;
0x18uy; 0x5auy; 0x75uy; 0x6euy; 0x97uy; 0xc9uy; 0x82uy; 0x16uy; 0x4fuy; 0xe2uy; 0x58uy; 0x59uy;
0xe0uy; 0xd1uy; 0xdcuy; 0xc1uy; 0x47uy; 0x5cuy; 0x80uy; 0xa6uy; 0x1... | false |
Hacl.Impl.P256.Qinv.fst | Hacl.Impl.P256.Qinv.qinv_x8_x256 | val qinv_x8_x256 (x6 x_11 x_101 x_111 x_1111 x_10101 x_101111 a:felem) : Stack unit
(requires fun h ->
live h x6 /\ live h x_11 /\ live h x_101 /\ live h x_111 /\
live h x_1111 /\ live h x_10101 /\ live h x_101111 /\ live h a /\
disjoint x6 x_11 /\ disjoint x6 x_101 /\ disjoint x6 x_111 /\ disjoint x6 x_1... | val qinv_x8_x256 (x6 x_11 x_101 x_111 x_1111 x_10101 x_101111 a:felem) : Stack unit
(requires fun h ->
live h x6 /\ live h x_11 /\ live h x_101 /\ live h x_111 /\
live h x_1111 /\ live h x_10101 /\ live h x_101111 /\ live h a /\
disjoint x6 x_11 /\ disjoint x6 x_101 /\ disjoint x6 x_111 /\ disjoint x6 x_1... | let qinv_x8_x256 x6 x_11 x_101 x_111 x_1111 x_10101 x_101111 a =
push_frame ();
let tmp = create_felem () in
qinv_x8_x128 tmp x6 x_11;
qinv_x134_x153 tmp x_11 x_111 x_1111 x_10101 x_101111;
qinv_x153_x177 tmp x_101 x_111 x_101111;
qinv_x177_x210 tmp x_111 x_1111 a;
qinv_x210_x240 tmp x_11 x_101 x_101111;
... | {
"file_name": "code/ecdsap256/Hacl.Impl.P256.Qinv.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 411,
"start_col": 0,
"start_line": 401
} | module Hacl.Impl.P256.Qinv
open FStar.Mul
open FStar.HyperStack.All
open FStar.HyperStack
module ST = FStar.HyperStack.ST
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.P256.Bignum
open Hacl.Impl.P256.Scalar
module SE = Spec.Exponentiation
module BE = Hacl.Impl.Exponentiation
module BD = Hacl.Spec.Bignum.Definiti... | {
"checked_file": "/",
"dependencies": [
"Spec.P256.fst.checked",
"Spec.Exponentiation.fsti.checked",
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Spec.P256.Qinv.fst.checked",
... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.P256.Montgomery",
"short_module": "SM"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.P256.Qinv",
"short_module": "SI"
},
{
"abbrev": true,
"full_module": "Spec.P256",
"short_module": "S"
},
{
"abbrev": true,
"full_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
x6: Hacl.Impl.P256.Bignum.felem ->
x_11: Hacl.Impl.P256.Bignum.felem ->
x_101: Hacl.Impl.P256.Bignum.felem ->
x_111: Hacl.Impl.P256.Bignum.felem ->
x_1111: Hacl.Impl.P256.Bignum.felem ->
x_10101: Hacl.Impl.P256.Bignum.felem ->
x_101111: Hacl.Impl.P256.Bignum.felem ->
a: Hacl.Impl.P256.B... | FStar.HyperStack.ST.Stack | [] | [] | [
"Hacl.Impl.P256.Bignum.felem",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Lib.Buffer.copy",
"Lib.Buffer.MUT",
"Lib.IntTypes.uint64",
"Lib.IntTypes.size",
"Hacl.Impl.P256.Qinv.qinv_x240_x256",
"Hacl.Impl.P256.Qinv.qinv_x210_x240",
"Hacl.Impl.P256.Qinv.qinv_x177_x210",
"Hacl.Impl.P256.Qinv.qi... | [] | false | true | false | false | false | let qinv_x8_x256 x6 x_11 x_101 x_111 x_1111 x_10101 x_101111 a =
| push_frame ();
let tmp = create_felem () in
qinv_x8_x128 tmp x6 x_11;
qinv_x134_x153 tmp x_11 x_111 x_1111 x_10101 x_101111;
qinv_x153_x177 tmp x_101 x_111 x_101111;
qinv_x177_x210 tmp x_111 x_1111 a;
qinv_x210_x240 tmp x_11 x_101 x_101111;
qinv_x240_x256 tmp x_1111 x_10101 a;
copy x6 tmp;
pop_frame () | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test2_expected_sha3_512 | val test2_expected_sha3_512:lbytes 64 | val test2_expected_sha3_512:lbytes 64 | let test2_expected_sha3_512 : lbytes 64 =
let l = List.Tot.map u8_from_UInt8 [
0xb7uy; 0x51uy; 0x85uy; 0x0buy; 0x1auy; 0x57uy; 0x16uy; 0x8auy;
0x56uy; 0x93uy; 0xcduy; 0x92uy; 0x4buy; 0x6buy; 0x09uy; 0x6euy;
0x08uy; 0xf6uy; 0x21uy; 0x82uy; 0x74uy; 0x44uy; 0xf7uy; 0x0duy;
0x88uy; 0x4fuy; 0x5duy; 0x02uy;... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 125,
"start_col": 0,
"start_line": 113
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 64 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test2_expected_sha3_512:lbytes 64 =
| let l =
List.Tot.map u8_from_UInt8
[
0xb7uy; 0x51uy; 0x85uy; 0x0buy; 0x1auy; 0x57uy; 0x16uy; 0x8auy; 0x56uy; 0x93uy; 0xcduy; 0x92uy;
0x4buy; 0x6buy; 0x09uy; 0x6euy; 0x08uy; 0xf6uy; 0x21uy; 0x82uy; 0x74uy; 0x44uy; 0xf7uy; 0x0duy;
0x88uy; 0x4fuy; 0x5duy; 0x02uy; 0x40uy; 0xd2uy; 0x71uy; 0x2euy; 0x1... | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test2_expected_sha3_384 | val test2_expected_sha3_384:lbytes 48 | val test2_expected_sha3_384:lbytes 48 | let test2_expected_sha3_384 : lbytes 48 =
let l = List.Tot.map u8_from_UInt8 [
0xecuy; 0x01uy; 0x49uy; 0x82uy; 0x88uy; 0x51uy; 0x6fuy; 0xc9uy;
0x26uy; 0x45uy; 0x9fuy; 0x58uy; 0xe2uy; 0xc6uy; 0xaduy; 0x8duy;
0xf9uy; 0xb4uy; 0x73uy; 0xcbuy; 0x0fuy; 0xc0uy; 0x8cuy; 0x25uy;
0x96uy; 0xdauy; 0x7cuy; 0xf0uy;... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 110,
"start_col": 0,
"start_line": 100
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 48 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test2_expected_sha3_384:lbytes 48 =
| let l =
List.Tot.map u8_from_UInt8
[
0xecuy; 0x01uy; 0x49uy; 0x82uy; 0x88uy; 0x51uy; 0x6fuy; 0xc9uy; 0x26uy; 0x45uy; 0x9fuy; 0x58uy;
0xe2uy; 0xc6uy; 0xaduy; 0x8duy; 0xf9uy; 0xb4uy; 0x73uy; 0xcbuy; 0x0fuy; 0xc0uy; 0x8cuy; 0x25uy;
0x96uy; 0xdauy; 0x7cuy; 0xf0uy; 0xe4uy; 0x9buy; 0xe4uy; 0xb2uy; 0x9... | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test3_expected_sha3_256 | val test3_expected_sha3_256:lbytes 32 | val test3_expected_sha3_256:lbytes 32 | let test3_expected_sha3_256 : lbytes 32 =
let l = List.Tot.map u8_from_UInt8 [
0x41uy; 0xc0uy; 0xdbuy; 0xa2uy; 0xa9uy; 0xd6uy; 0x24uy; 0x08uy;
0x49uy; 0x10uy; 0x03uy; 0x76uy; 0xa8uy; 0x23uy; 0x5euy; 0x2cuy;
0x82uy; 0xe1uy; 0xb9uy; 0x99uy; 0x8auy; 0x99uy; 0x9euy; 0x21uy;
0xdbuy; 0x32uy; 0xdduy; 0x97uy;... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 163,
"start_col": 0,
"start_line": 155
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 32 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test3_expected_sha3_256:lbytes 32 =
| let l =
List.Tot.map u8_from_UInt8
[
0x41uy; 0xc0uy; 0xdbuy; 0xa2uy; 0xa9uy; 0xd6uy; 0x24uy; 0x08uy; 0x49uy; 0x10uy; 0x03uy; 0x76uy;
0xa8uy; 0x23uy; 0x5euy; 0x2cuy; 0x82uy; 0xe1uy; 0xb9uy; 0x99uy; 0x8auy; 0x99uy; 0x9euy; 0x21uy;
0xdbuy; 0x32uy; 0xdduy; 0x97uy; 0x49uy; 0x6duy; 0x33uy; 0x76uy
... | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test5_plaintext_shake128 | val test5_plaintext_shake128:lbytes 0 | val test5_plaintext_shake128:lbytes 0 | let test5_plaintext_shake128 : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length l == 0);
of_list l | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 271,
"start_col": 0,
"start_line": 268
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 0 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Nil"
... | [] | false | false | false | false | false | let test5_plaintext_shake128:lbytes 0 =
| let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length l == 0);
of_list l | false |
Hacl.Impl.K256.Group.fst | Hacl.Impl.K256.Group.mk_k256_concrete_ops | val mk_k256_concrete_ops:BE.concrete_ops U64 15ul 0ul | val mk_k256_concrete_ops:BE.concrete_ops U64 15ul 0ul | let mk_k256_concrete_ops : BE.concrete_ops U64 15ul 0ul = {
BE.to = mk_to_k256_comm_monoid;
BE.lone = point_zero;
BE.lmul = point_add;
BE.lsqr = point_double;
} | {
"file_name": "code/k256/Hacl.Impl.K256.Group.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 1,
"end_line": 66,
"start_col": 0,
"start_line": 61
} | module Hacl.Impl.K256.Group
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module BE = Hacl.Impl.Exponentiation.Definitions
module S = Spec.K256
module SL = Spec.K256.Lemmas
open Hacl.Impl.K256.Point
#set-... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.Lemmas.fsti.checked",
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.K256.PointDouble.fst.checked",
"Hacl.Impl.K256.PointAdd.fst.checked"... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.K256.Point",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.K256.Lemmas",
"short_module": "SL"
},
{
"abbrev": true,
"full_module": "Spec.K256",
"short_module": "S"
},
{
"abbrev": true,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Hacl.Impl.Exponentiation.Definitions.concrete_ops Lib.IntTypes.U64
(15ul <: FStar.UInt32.t)
(0ul <: FStar.UInt32.t) | Prims.Tot | [
"total"
] | [] | [
"Hacl.Impl.Exponentiation.Definitions.Mkconcrete_ops",
"Lib.IntTypes.U64",
"FStar.UInt32.uint_to_t",
"FStar.Ghost.hide",
"Hacl.Impl.Exponentiation.Definitions.to_comm_monoid",
"Hacl.Impl.K256.Group.mk_to_k256_comm_monoid",
"Hacl.Impl.K256.Group.point_zero",
"Hacl.Impl.K256.Group.point_add",
"Hacl.Im... | [] | false | false | false | false | false | let mk_k256_concrete_ops:BE.concrete_ops U64 15ul 0ul =
| {
BE.to = mk_to_k256_comm_monoid;
BE.lone = point_zero;
BE.lmul = point_add;
BE.lsqr = point_double
} | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test6_plaintext_shake128 | val test6_plaintext_shake128:lbytes 14 | val test6_plaintext_shake128:lbytes 14 | let test6_plaintext_shake128 : lbytes 14 =
let l = List.Tot.map u8_from_UInt8 [
0x52uy; 0x97uy; 0x7euy; 0x53uy; 0x2buy; 0xccuy; 0xdbuy; 0x89uy;
0xdfuy; 0xefuy; 0xf7uy; 0xe9uy; 0xe4uy; 0xaduy
] in
assert_norm (List.Tot.length l == 14);
of_list l | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 291,
"start_col": 0,
"start_line": 285
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 14 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test6_plaintext_shake128:lbytes 14 =
| let l =
List.Tot.map u8_from_UInt8
[
0x52uy; 0x97uy; 0x7euy; 0x53uy; 0x2buy; 0xccuy; 0xdbuy; 0x89uy; 0xdfuy; 0xefuy; 0xf7uy; 0xe9uy;
0xe4uy; 0xaduy
]
in
assert_norm (List.Tot.length l == 14);
of_list l | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test5_expected_shake128 | val test5_expected_shake128:lbytes 16 | val test5_expected_shake128:lbytes 16 | let test5_expected_shake128 : lbytes 16 =
let l = List.Tot.map u8_from_UInt8 [
0x7fuy; 0x9cuy; 0x2buy; 0xa4uy; 0xe8uy; 0x8fuy; 0x82uy; 0x7duy;
0x61uy; 0x60uy; 0x45uy; 0x50uy; 0x76uy; 0x05uy; 0x85uy; 0x3euy
] in
assert_norm (List.Tot.length l == 16);
of_list l | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 280,
"start_col": 0,
"start_line": 274
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 16 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test5_expected_shake128:lbytes 16 =
| let l =
List.Tot.map u8_from_UInt8
[
0x7fuy; 0x9cuy; 0x2buy; 0xa4uy; 0xe8uy; 0x8fuy; 0x82uy; 0x7duy; 0x61uy; 0x60uy; 0x45uy; 0x50uy;
0x76uy; 0x05uy; 0x85uy; 0x3euy
]
in
assert_norm (List.Tot.length l == 16);
of_list l | false |
Hacl.Impl.K256.Group.fst | Hacl.Impl.K256.Group.point_zero | val point_zero : BE.lone_st U64 15ul 0ul mk_to_k256_comm_monoid | val point_zero : BE.lone_st U64 15ul 0ul mk_to_k256_comm_monoid | let point_zero ctx one = make_point_at_inf one | {
"file_name": "code/k256/Hacl.Impl.K256.Group.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 46,
"end_line": 57,
"start_col": 0,
"start_line": 57
} | module Hacl.Impl.K256.Group
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module BE = Hacl.Impl.Exponentiation.Definitions
module S = Spec.K256
module SL = Spec.K256.Lemmas
open Hacl.Impl.K256.Point
#set-... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.Lemmas.fsti.checked",
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.K256.PointDouble.fst.checked",
"Hacl.Impl.K256.PointAdd.fst.checked"... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.K256.Point",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.K256.Lemmas",
"short_module": "SL"
},
{
"abbrev": true,
"full_module": "Spec.K256",
"short_module": "S"
},
{
"abbrev": true,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Hacl.Impl.Exponentiation.Definitions.lone_st Lib.IntTypes.U64
15ul
0ul
Hacl.Impl.K256.Group.mk_to_k256_comm_monoid | Prims.Tot | [
"total"
] | [] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"FStar.UInt32.__uint_to_t",
"Hacl.Impl.K256.Point.make_point_at_inf",
"Prims.unit"
] | [] | false | false | false | false | false | let point_zero ctx one =
| make_point_at_inf one | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test4_plaintext | val test4_plaintext:lbytes 112 | val test4_plaintext:lbytes 112 | let test4_plaintext : lbytes 112 =
let l = List.Tot.map u8_from_UInt8 [
0x61uy; 0x62uy; 0x63uy; 0x64uy; 0x65uy; 0x66uy; 0x67uy; 0x68uy;
0x62uy; 0x63uy; 0x64uy; 0x65uy; 0x66uy; 0x67uy; 0x68uy; 0x69uy;
0x63uy; 0x64uy; 0x65uy; 0x66uy; 0x67uy; 0x68uy; 0x69uy; 0x6auy;
0x64uy; 0x65uy; 0x66uy; 0x67uy; 0x68uy... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 213,
"start_col": 0,
"start_line": 195
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 112 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test4_plaintext:lbytes 112 =
| let l =
List.Tot.map u8_from_UInt8
[
0x61uy; 0x62uy; 0x63uy; 0x64uy; 0x65uy; 0x66uy; 0x67uy; 0x68uy; 0x62uy; 0x63uy; 0x64uy; 0x65uy;
0x66uy; 0x67uy; 0x68uy; 0x69uy; 0x63uy; 0x64uy; 0x65uy; 0x66uy; 0x67uy; 0x68uy; 0x69uy; 0x6auy;
0x64uy; 0x65uy; 0x66uy; 0x67uy; 0x68uy; 0x69uy; 0x6auy; 0x6buy; 0x6... | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test4_expected_sha3_256 | val test4_expected_sha3_256:lbytes 32 | val test4_expected_sha3_256:lbytes 32 | let test4_expected_sha3_256 : lbytes 32 =
let l = List.Tot.map u8_from_UInt8 [
0x91uy; 0x6fuy; 0x60uy; 0x61uy; 0xfeuy; 0x87uy; 0x97uy; 0x41uy;
0xcauy; 0x64uy; 0x69uy; 0xb4uy; 0x39uy; 0x71uy; 0xdfuy; 0xdbuy;
0x28uy; 0xb1uy; 0xa3uy; 0x2duy; 0xc3uy; 0x6cuy; 0xb3uy; 0x25uy;
0x4euy; 0x81uy; 0x2buy; 0xe2uy;... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 235,
"start_col": 0,
"start_line": 227
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 32 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test4_expected_sha3_256:lbytes 32 =
| let l =
List.Tot.map u8_from_UInt8
[
0x91uy; 0x6fuy; 0x60uy; 0x61uy; 0xfeuy; 0x87uy; 0x97uy; 0x41uy; 0xcauy; 0x64uy; 0x69uy; 0xb4uy;
0x39uy; 0x71uy; 0xdfuy; 0xdbuy; 0x28uy; 0xb1uy; 0xa3uy; 0x2duy; 0xc3uy; 0x6cuy; 0xb3uy; 0x25uy;
0x4euy; 0x81uy; 0x2buy; 0xe2uy; 0x7auy; 0xaduy; 0x1duy; 0x18uy
... | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test3_expected_sha3_512 | val test3_expected_sha3_512:lbytes 64 | val test3_expected_sha3_512:lbytes 64 | let test3_expected_sha3_512 : lbytes 64 =
let l = List.Tot.map u8_from_UInt8 [
0x04uy; 0xa3uy; 0x71uy; 0xe8uy; 0x4euy; 0xcfuy; 0xb5uy; 0xb8uy;
0xb7uy; 0x7cuy; 0xb4uy; 0x86uy; 0x10uy; 0xfcuy; 0xa8uy; 0x18uy;
0x2duy; 0xd4uy; 0x57uy; 0xceuy; 0x6fuy; 0x32uy; 0x6auy; 0x0fuy;
0xd3uy; 0xd7uy; 0xecuy; 0x2fuy;... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 191,
"start_col": 0,
"start_line": 179
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 64 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test3_expected_sha3_512:lbytes 64 =
| let l =
List.Tot.map u8_from_UInt8
[
0x04uy; 0xa3uy; 0x71uy; 0xe8uy; 0x4euy; 0xcfuy; 0xb5uy; 0xb8uy; 0xb7uy; 0x7cuy; 0xb4uy; 0x86uy;
0x10uy; 0xfcuy; 0xa8uy; 0x18uy; 0x2duy; 0xd4uy; 0x57uy; 0xceuy; 0x6fuy; 0x32uy; 0x6auy; 0x0fuy;
0xd3uy; 0xd7uy; 0xecuy; 0x2fuy; 0x1euy; 0x91uy; 0x63uy; 0x6duy; 0xe... | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test4_expected_sha3_224 | val test4_expected_sha3_224:lbytes 28 | val test4_expected_sha3_224:lbytes 28 | let test4_expected_sha3_224 : lbytes 28 =
let l = List.Tot.map u8_from_UInt8 [
0x54uy; 0x3euy; 0x68uy; 0x68uy; 0xe1uy; 0x66uy; 0x6cuy; 0x1auy;
0x64uy; 0x36uy; 0x30uy; 0xdfuy; 0x77uy; 0x36uy; 0x7auy; 0xe5uy;
0xa6uy; 0x2auy; 0x85uy; 0x07uy; 0x0auy; 0x51uy; 0xc1uy; 0x4cuy;
0xbfuy; 0x66uy; 0x5cuy; 0xbcuy
... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 224,
"start_col": 0,
"start_line": 216
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 28 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test4_expected_sha3_224:lbytes 28 =
| let l =
List.Tot.map u8_from_UInt8
[
0x54uy; 0x3euy; 0x68uy; 0x68uy; 0xe1uy; 0x66uy; 0x6cuy; 0x1auy; 0x64uy; 0x36uy; 0x30uy; 0xdfuy;
0x77uy; 0x36uy; 0x7auy; 0xe5uy; 0xa6uy; 0x2auy; 0x85uy; 0x07uy; 0x0auy; 0x51uy; 0xc1uy; 0x4cuy;
0xbfuy; 0x66uy; 0x5cuy; 0xbcuy
]
in
assert_norm (List.Tot.lengt... | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test3_expected_sha3_384 | val test3_expected_sha3_384:lbytes 48 | val test3_expected_sha3_384:lbytes 48 | let test3_expected_sha3_384 : lbytes 48 =
let l = List.Tot.map u8_from_UInt8 [
0x99uy; 0x1cuy; 0x66uy; 0x57uy; 0x55uy; 0xebuy; 0x3auy; 0x4buy;
0x6buy; 0xbduy; 0xfbuy; 0x75uy; 0xc7uy; 0x8auy; 0x49uy; 0x2euy;
0x8cuy; 0x56uy; 0xa2uy; 0x2cuy; 0x5cuy; 0x4duy; 0x7euy; 0x42uy;
0x9buy; 0xfduy; 0xbcuy; 0x32uy;... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 176,
"start_col": 0,
"start_line": 166
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 48 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test3_expected_sha3_384:lbytes 48 =
| let l =
List.Tot.map u8_from_UInt8
[
0x99uy; 0x1cuy; 0x66uy; 0x57uy; 0x55uy; 0xebuy; 0x3auy; 0x4buy; 0x6buy; 0xbduy; 0xfbuy; 0x75uy;
0xc7uy; 0x8auy; 0x49uy; 0x2euy; 0x8cuy; 0x56uy; 0xa2uy; 0x2cuy; 0x5cuy; 0x4duy; 0x7euy; 0x42uy;
0x9buy; 0xfduy; 0xbcuy; 0x32uy; 0xb9uy; 0xd4uy; 0xaduy; 0x5auy; 0xa... | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test7_expected_shake128 | val test7_expected_shake128:lbytes 16 | val test7_expected_shake128:lbytes 16 | let test7_expected_shake128 : lbytes 16 =
let l = List.Tot.map u8_from_UInt8 [
0x7buy; 0xb4uy; 0x33uy; 0x75uy; 0x2buy; 0x98uy; 0xf9uy; 0x15uy;
0xbeuy; 0x51uy; 0x82uy; 0xbcuy; 0x1fuy; 0x09uy; 0x66uy; 0x48uy
] in
assert_norm (List.Tot.length l == 16);
of_list l | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 323,
"start_col": 0,
"start_line": 317
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 16 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test7_expected_shake128:lbytes 16 =
| let l =
List.Tot.map u8_from_UInt8
[
0x7buy; 0xb4uy; 0x33uy; 0x75uy; 0x2buy; 0x98uy; 0xf9uy; 0x15uy; 0xbeuy; 0x51uy; 0x82uy; 0xbcuy;
0x1fuy; 0x09uy; 0x66uy; 0x48uy
]
in
assert_norm (List.Tot.length l == 16);
of_list l | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test4_expected_sha3_384 | val test4_expected_sha3_384:lbytes 48 | val test4_expected_sha3_384:lbytes 48 | let test4_expected_sha3_384 : lbytes 48 =
let l = List.Tot.map u8_from_UInt8 [
0x79uy; 0x40uy; 0x7duy; 0x3buy; 0x59uy; 0x16uy; 0xb5uy; 0x9cuy;
0x3euy; 0x30uy; 0xb0uy; 0x98uy; 0x22uy; 0x97uy; 0x47uy; 0x91uy;
0xc3uy; 0x13uy; 0xfbuy; 0x9euy; 0xccuy; 0x84uy; 0x9euy; 0x40uy;
0x6fuy; 0x23uy; 0x59uy; 0x2duy;... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 248,
"start_col": 0,
"start_line": 238
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 48 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test4_expected_sha3_384:lbytes 48 =
| let l =
List.Tot.map u8_from_UInt8
[
0x79uy; 0x40uy; 0x7duy; 0x3buy; 0x59uy; 0x16uy; 0xb5uy; 0x9cuy; 0x3euy; 0x30uy; 0xb0uy; 0x98uy;
0x22uy; 0x97uy; 0x47uy; 0x91uy; 0xc3uy; 0x13uy; 0xfbuy; 0x9euy; 0xccuy; 0x84uy; 0x9euy; 0x40uy;
0x6fuy; 0x23uy; 0x59uy; 0x2duy; 0x04uy; 0xf6uy; 0x25uy; 0xdcuy; 0x8... | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test6_expected_shake128 | val test6_expected_shake128:lbytes 16 | val test6_expected_shake128:lbytes 16 | let test6_expected_shake128 : lbytes 16 =
let l = List.Tot.map u8_from_UInt8 [
0xfbuy; 0xfbuy; 0xa5uy; 0xc1uy; 0xe1uy; 0x79uy; 0xdfuy; 0x14uy;
0x69uy; 0xfcuy; 0xc8uy; 0x58uy; 0x8auy; 0xe5uy; 0xd2uy; 0xccuy
] in
assert_norm (List.Tot.length l == 16);
of_list l | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 300,
"start_col": 0,
"start_line": 294
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 16 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test6_expected_shake128:lbytes 16 =
| let l =
List.Tot.map u8_from_UInt8
[
0xfbuy; 0xfbuy; 0xa5uy; 0xc1uy; 0xe1uy; 0x79uy; 0xdfuy; 0x14uy; 0x69uy; 0xfcuy; 0xc8uy; 0x58uy;
0x8auy; 0xe5uy; 0xd2uy; 0xccuy
]
in
assert_norm (List.Tot.length l == 16);
of_list l | false |
MerkleTree.New.High.Correct.Path.fst | MerkleTree.New.High.Correct.Path.mt_get_path_acc_inv_ok | val mt_get_path_acc_inv_ok:
#hsz:pos -> #f:MTS.hash_fun_t ->
j:nat ->
fhs:hashess #hsz {S.length fhs = log2c j} ->
rhs:hashes #hsz {S.length rhs = log2c j} ->
k:nat{k <= j} ->
acc:hash -> actd:bool ->
Lemma (requires (j > 0 /\
mt_hashes_lth_inv_log #hsz j fhs /\
mt_hash... | val mt_get_path_acc_inv_ok:
#hsz:pos -> #f:MTS.hash_fun_t ->
j:nat ->
fhs:hashess #hsz {S.length fhs = log2c j} ->
rhs:hashes #hsz {S.length rhs = log2c j} ->
k:nat{k <= j} ->
acc:hash -> actd:bool ->
Lemma (requires (j > 0 /\
mt_hashes_lth_inv_log #hsz j fhs /\
mt_hash... | let rec mt_get_path_acc_inv_ok #_ #f j fhs rhs k acc actd =
// Below dummy `let` is necessary to provide guidance to the SMT solver.
let _ = mt_get_path_step_acc j (S.head fhs) (S.head rhs) k actd in
let smt = hash_seq_spec_full #_ #f (S.head fhs) acc actd in
let nacc = (if j % 2 = 0 then acc
else ... | {
"file_name": "src/MerkleTree.New.High.Correct.Path.fst",
"git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6",
"git_url": "https://github.com/hacl-star/merkle-tree.git",
"project_name": "merkle-tree"
} | {
"end_col": 5,
"end_line": 237,
"start_col": 0,
"start_line": 211
} | module MerkleTree.New.High.Correct.Path
open EverCrypt
open EverCrypt.Helpers
open MerkleTree.New.High.Correct.Base
// Need to use some facts of `mt_get_root`
open MerkleTree.New.High.Correct.Rhs
open FStar.Classical
open FStar.Ghost
open FStar.Seq
module List = FStar.List.Tot
module S = FStar.Seq
module U32 = FSt... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"MerkleTree.Spec.fst.checked",
"MerkleTree.New.High.Correct.Rhs.fst.checked",
"MerkleTree.New.High.Correct.Base.fst.checked",
"MerkleTree.New.High.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt32.fsti.checked",
"FSt... | [
{
"abbrev": false,
"full_module": "MerkleTree.New.High",
"short_module": null
},
{
"abbrev": true,
"full_module": "MerkleTree.Spec",
"short_module": "MTS"
},
{
"abbrev": true,
"full_module": "EverCrypt.Hash",
"short_module": "EHS"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 1,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
j: Prims.nat ->
fhs:
MerkleTree.New.High.hashess
{FStar.Seq.Base.length fhs = MerkleTree.New.High.Correct.Base.log2c j} ->
rhs:
MerkleTree.New.High.hashes
{FStar.Seq.Base.length rhs = MerkleTree.New.High.Correct.Base.log2c j} ->
k: Prims.nat{k <= j} ->
acc: MerkleTree.Ne... | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"Prims.pos",
"MerkleTree.Spec.hash_fun_t",
"Prims.nat",
"MerkleTree.New.High.hashess",
"Prims.b2t",
"Prims.op_Equality",
"FStar.Seq.Base.length",
"MerkleTree.New.High.hashes",
"MerkleTree.New.High.Correct.Base.log2c",
"MerkleTree.New.High.hash",
"Prims.op_LessThanOrEqual",
"Prims.bool",
"Pri... | [
"recursion"
] | false | false | true | false | false | let rec mt_get_path_acc_inv_ok #_ #f j fhs rhs k acc actd =
| let _ = mt_get_path_step_acc j (S.head fhs) (S.head rhs) k actd in
let smt = hash_seq_spec_full #_ #f (S.head fhs) acc actd in
let nacc =
(if j % 2 = 0 then acc else if actd then f (S.last (S.head fhs)) acc else S.last (S.head fhs))
in
let nactd = actd || j % 2 = 1 in
if j = 1
then (if k = 0 then ())
else
(mt_hashe... | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test9_plaintext_shake256 | val test9_plaintext_shake256:lbytes 0 | val test9_plaintext_shake256:lbytes 0 | let test9_plaintext_shake256 : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length l == 0);
of_list l | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 360,
"start_col": 0,
"start_line": 357
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 0 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Nil"
... | [] | false | false | false | false | false | let test9_plaintext_shake256:lbytes 0 =
| let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length l == 0);
of_list l | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test8_expected_shake128 | val test8_expected_shake128:lbytes 16 | val test8_expected_shake128:lbytes 16 | let test8_expected_shake128 : lbytes 16 =
let l = List.Tot.map u8_from_UInt8 [
0x00uy; 0xffuy; 0x5euy; 0xf0uy; 0xcduy; 0x7fuy; 0x8fuy; 0x90uy;
0xaduy; 0x94uy; 0xb7uy; 0x97uy; 0xe9uy; 0xd4uy; 0xdduy; 0x30uy
] in
assert_norm (List.Tot.length l == 16);
of_list l | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 352,
"start_col": 0,
"start_line": 346
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 16 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test8_expected_shake128:lbytes 16 =
| let l =
List.Tot.map u8_from_UInt8
[
0x00uy; 0xffuy; 0x5euy; 0xf0uy; 0xcduy; 0x7fuy; 0x8fuy; 0x90uy; 0xaduy; 0x94uy; 0xb7uy; 0x97uy;
0xe9uy; 0xd4uy; 0xdduy; 0x30uy
]
in
assert_norm (List.Tot.length l == 16);
of_list l | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test4_expected_sha3_512 | val test4_expected_sha3_512:lbytes 64 | val test4_expected_sha3_512:lbytes 64 | let test4_expected_sha3_512 : lbytes 64 =
let l = List.Tot.map u8_from_UInt8 [
0xafuy; 0xebuy; 0xb2uy; 0xefuy; 0x54uy; 0x2euy; 0x65uy; 0x79uy;
0xc5uy; 0x0cuy; 0xaduy; 0x06uy; 0xd2uy; 0xe5uy; 0x78uy; 0xf9uy;
0xf8uy; 0xdduy; 0x68uy; 0x81uy; 0xd7uy; 0xdcuy; 0x82uy; 0x4duy;
0x26uy; 0x36uy; 0x0fuy; 0xeeuy;... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 263,
"start_col": 0,
"start_line": 251
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 64 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test4_expected_sha3_512:lbytes 64 =
| let l =
List.Tot.map u8_from_UInt8
[
0xafuy; 0xebuy; 0xb2uy; 0xefuy; 0x54uy; 0x2euy; 0x65uy; 0x79uy; 0xc5uy; 0x0cuy; 0xaduy; 0x06uy;
0xd2uy; 0xe5uy; 0x78uy; 0xf9uy; 0xf8uy; 0xdduy; 0x68uy; 0x81uy; 0xd7uy; 0xdcuy; 0x82uy; 0x4duy;
0x26uy; 0x36uy; 0x0fuy; 0xeeuy; 0xbfuy; 0x18uy; 0xa4uy; 0xfauy; 0x7... | false |
Hacl.Impl.K256.Group.fst | Hacl.Impl.K256.Group.point_double | val point_double : BE.lsqr_st U64 15ul 0ul mk_to_k256_comm_monoid | val point_double : BE.lsqr_st U64 15ul 0ul mk_to_k256_comm_monoid | let point_double ctx x xx =
let h0 = ST.get () in
SL.to_aff_point_double_lemma (point_eval h0 x);
Hacl.Impl.K256.PointDouble.point_double xx x | {
"file_name": "code/k256/Hacl.Impl.K256.Group.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 46,
"end_line": 52,
"start_col": 0,
"start_line": 49
} | module Hacl.Impl.K256.Group
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module BE = Hacl.Impl.Exponentiation.Definitions
module S = Spec.K256
module SL = Spec.K256.Lemmas
open Hacl.Impl.K256.Point
#set-... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.Lemmas.fsti.checked",
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.K256.PointDouble.fst.checked",
"Hacl.Impl.K256.PointAdd.fst.checked"... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.K256.Point",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.K256.Lemmas",
"short_module": "SL"
},
{
"abbrev": true,
"full_module": "Spec.K256",
"short_module": "S"
},
{
"abbrev": true,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Hacl.Impl.Exponentiation.Definitions.lsqr_st Lib.IntTypes.U64
15ul
0ul
Hacl.Impl.K256.Group.mk_to_k256_comm_monoid | Prims.Tot | [
"total"
] | [] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"FStar.UInt32.__uint_to_t",
"Hacl.Impl.K256.PointDouble.point_double",
"Prims.unit",
"Spec.K256.Lemmas.to_aff_point_double_lemma",
"Hacl.Impl.K256.Point.point_eval",
"FStar.Monotonic.HyperStack.mem",
"FStar.Hype... | [] | false | false | false | false | false | let point_double ctx x xx =
| let h0 = ST.get () in
SL.to_aff_point_double_lemma (point_eval h0 x);
Hacl.Impl.K256.PointDouble.point_double xx x | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test10_plaintext_shake256 | val test10_plaintext_shake256:lbytes 17 | val test10_plaintext_shake256:lbytes 17 | let test10_plaintext_shake256 : lbytes 17 =
let l = List.Tot.map u8_from_UInt8 [
0xf9uy; 0xdauy; 0x78uy; 0xc8uy; 0x90uy; 0x84uy; 0x70uy; 0x40uy;
0x45uy; 0x4buy; 0xa6uy; 0x42uy; 0x98uy; 0x82uy; 0xb0uy; 0x54uy;
0x09uy
] in
assert_norm (List.Tot.length l == 17);
of_list l | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 383,
"start_col": 0,
"start_line": 376
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 17 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test10_plaintext_shake256:lbytes 17 =
| let l =
List.Tot.map u8_from_UInt8
[
0xf9uy; 0xdauy; 0x78uy; 0xc8uy; 0x90uy; 0x84uy; 0x70uy; 0x40uy; 0x45uy; 0x4buy; 0xa6uy; 0x42uy;
0x98uy; 0x82uy; 0xb0uy; 0x54uy; 0x09uy
]
in
assert_norm (List.Tot.length l == 17);
of_list l | false |
MiniParse.Impl.Combinators.fst | MiniParse.Impl.Combinators.parse_ret_impl | val parse_ret_impl (#t: Type) (x: t) : Tot (parser_impl (parse_ret x)) | val parse_ret_impl (#t: Type) (x: t) : Tot (parser_impl (parse_ret x)) | let parse_ret_impl
(#t: Type)
(x: t)
: Tot (parser_impl (parse_ret x))
= fun _ _ -> let h = HST.get () in Some (x, 0ul) | {
"file_name": "examples/miniparse/MiniParse.Impl.Combinators.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 48,
"end_line": 30,
"start_col": 0,
"start_line": 26
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"MiniParse.Spec.Combinators.fst.checked",
"MiniParse.Impl.Base.fst.checked",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.ModifiesPat",
"short_module": "M"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: t -> MiniParse.Impl.Base.parser_impl (MiniParse.Spec.Combinators.parse_ret x) | Prims.Tot | [
"total"
] | [] | [
"MiniParse.Impl.Base.buffer8",
"FStar.UInt32.t",
"Prims.eq2",
"LowStar.Monotonic.Buffer.len",
"FStar.UInt8.t",
"LowStar.Buffer.trivial_preorder",
"FStar.Pervasives.Native.Some",
"FStar.Pervasives.Native.tuple2",
"FStar.Pervasives.Native.Mktuple2",
"FStar.UInt32.__uint_to_t",
"FStar.Pervasives.Na... | [] | false | false | false | false | false | let parse_ret_impl (#t: Type) (x: t) : Tot (parser_impl (parse_ret x)) =
| fun _ _ ->
let h = HST.get () in
Some (x, 0ul) | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test9_expected_shake256 | val test9_expected_shake256:lbytes 32 | val test9_expected_shake256:lbytes 32 | let test9_expected_shake256 : lbytes 32 =
let l = List.Tot.map u8_from_UInt8 [
0x46uy; 0xb9uy; 0xdduy; 0x2buy; 0x0buy; 0xa8uy; 0x8duy; 0x13uy;
0x23uy; 0x3buy; 0x3fuy; 0xebuy; 0x74uy; 0x3euy; 0xebuy; 0x24uy;
0x3fuy; 0xcduy; 0x52uy; 0xeauy; 0x62uy; 0xb8uy; 0x1buy; 0x82uy;
0xb5uy; 0x0cuy; 0x27uy; 0x64uy;... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 371,
"start_col": 0,
"start_line": 363
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 32 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test9_expected_shake256:lbytes 32 =
| let l =
List.Tot.map u8_from_UInt8
[
0x46uy; 0xb9uy; 0xdduy; 0x2buy; 0x0buy; 0xa8uy; 0x8duy; 0x13uy; 0x23uy; 0x3buy; 0x3fuy; 0xebuy;
0x74uy; 0x3euy; 0xebuy; 0x24uy; 0x3fuy; 0xcduy; 0x52uy; 0xeauy; 0x62uy; 0xb8uy; 0x1buy; 0x82uy;
0xb5uy; 0x0cuy; 0x27uy; 0x64uy; 0x6euy; 0xd5uy; 0x76uy; 0x2fuy
... | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test7_plaintext_shake128 | val test7_plaintext_shake128:lbytes 34 | val test7_plaintext_shake128:lbytes 34 | let test7_plaintext_shake128 : lbytes 34 =
let l = List.Tot.map u8_from_UInt8 [
0x4auy; 0x20uy; 0x6auy; 0x5buy; 0x8auy; 0xa3uy; 0x58uy; 0x6cuy;
0x06uy; 0x67uy; 0xa4uy; 0x00uy; 0x20uy; 0xd6uy; 0x5fuy; 0xf5uy;
0x11uy; 0xd5uy; 0x2buy; 0x73uy; 0x2euy; 0xf7uy; 0xa0uy; 0xc5uy;
0x69uy; 0xf1uy; 0xeeuy; 0x68uy... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 314,
"start_col": 0,
"start_line": 305
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 34 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test7_plaintext_shake128:lbytes 34 =
| let l =
List.Tot.map u8_from_UInt8
[
0x4auy; 0x20uy; 0x6auy; 0x5buy; 0x8auy; 0xa3uy; 0x58uy; 0x6cuy; 0x06uy; 0x67uy; 0xa4uy; 0x00uy;
0x20uy; 0xd6uy; 0x5fuy; 0xf5uy; 0x11uy; 0xd5uy; 0x2buy; 0x73uy; 0x2euy; 0xf7uy; 0xa0uy; 0xc5uy;
0x69uy; 0xf1uy; 0xeeuy; 0x68uy; 0x1auy; 0x4fuy; 0xc3uy; 0x62uy; 0x0... | false |
MiniParse.Impl.Combinators.fst | MiniParse.Impl.Combinators.serialize_empty_impl | val serialize_empty_impl:serializer_impl serialize_empty | val serialize_empty_impl:serializer_impl serialize_empty | let serialize_empty_impl
: serializer_impl serialize_empty
= fun _ _ _ -> let h = HST.get () in Some 0ul | {
"file_name": "examples/miniparse/MiniParse.Impl.Combinators.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 45,
"end_line": 35,
"start_col": 0,
"start_line": 33
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"MiniParse.Spec.Combinators.fst.checked",
"MiniParse.Impl.Base.fst.checked",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.ModifiesPat",
"short_module": "M"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | MiniParse.Impl.Base.serializer_impl MiniParse.Spec.Combinators.serialize_empty | Prims.Tot | [
"total"
] | [] | [
"MiniParse.Impl.Base.buffer8",
"FStar.UInt32.t",
"Prims.eq2",
"LowStar.Monotonic.Buffer.len",
"FStar.UInt8.t",
"LowStar.Buffer.trivial_preorder",
"Prims.unit",
"FStar.Pervasives.Native.Some",
"FStar.UInt32.__uint_to_t",
"FStar.Pervasives.Native.option",
"FStar.Monotonic.HyperStack.mem",
"FStar... | [] | false | false | false | true | false | let serialize_empty_impl:serializer_impl serialize_empty =
| fun _ _ _ ->
let h = HST.get () in
Some 0ul | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.sha3_length | val sha3_length : a: Spec.SHA3.Test.keccak_alg -> Prims.int | let sha3_length (a:keccak_alg) =
allow_inversion keccak_alg;
match a with
| SHA3_224 -> 28
| SHA3_256 -> 32
| SHA3_384 -> 48
| SHA3_512 -> 64 | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 18,
"end_line": 467,
"start_col": 0,
"start_line": 461
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Spec.SHA3.Test.keccak_alg -> Prims.int | Prims.Tot | [
"total"
] | [] | [
"Spec.SHA3.Test.keccak_alg",
"Prims.int",
"Prims.unit",
"FStar.Pervasives.allow_inversion"
] | [] | false | false | false | true | false | let sha3_length (a: keccak_alg) =
| allow_inversion keccak_alg;
match a with
| SHA3_224 -> 28
| SHA3_256 -> 32
| SHA3_384 -> 48
| SHA3_512 -> 64 | false | |
Hacl.Impl.K256.Group.fst | Hacl.Impl.K256.Group.point_add | val point_add : BE.lmul_st U64 15ul 0ul mk_to_k256_comm_monoid | val point_add : BE.lmul_st U64 15ul 0ul mk_to_k256_comm_monoid | let point_add ctx x y xy =
let h0 = ST.get () in
SL.to_aff_point_add_lemma (point_eval h0 x) (point_eval h0 y);
Hacl.Impl.K256.PointAdd.point_add xy x y | {
"file_name": "code/k256/Hacl.Impl.K256.Group.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 42,
"end_line": 44,
"start_col": 0,
"start_line": 41
} | module Hacl.Impl.K256.Group
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
module ST = FStar.HyperStack.ST
module LSeq = Lib.Sequence
module BE = Hacl.Impl.Exponentiation.Definitions
module S = Spec.K256
module SL = Spec.K256.Lemmas
open Hacl.Impl.K256.Point
#set-... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.Lemmas.fsti.checked",
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.Impl.K256.PointDouble.fst.checked",
"Hacl.Impl.K256.PointAdd.fst.checked"... | [
{
"abbrev": false,
"full_module": "Hacl.Impl.K256.Point",
"short_module": null
},
{
"abbrev": true,
"full_module": "Spec.K256.Lemmas",
"short_module": "SL"
},
{
"abbrev": true,
"full_module": "Spec.K256",
"short_module": "S"
},
{
"abbrev": true,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Hacl.Impl.Exponentiation.Definitions.lmul_st Lib.IntTypes.U64
15ul
0ul
Hacl.Impl.K256.Group.mk_to_k256_comm_monoid | Prims.Tot | [
"total"
] | [] | [
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"FStar.UInt32.__uint_to_t",
"Hacl.Impl.K256.PointAdd.point_add",
"Prims.unit",
"Spec.K256.Lemmas.to_aff_point_add_lemma",
"Hacl.Impl.K256.Point.point_eval",
"FStar.Monotonic.HyperStack.mem",
"FStar.HyperStack.ST... | [] | false | false | false | false | false | let point_add ctx x y xy =
| let h0 = ST.get () in
SL.to_aff_point_add_lemma (point_eval h0 x) (point_eval h0 y);
Hacl.Impl.K256.PointAdd.point_add xy x y | false |
MiniParse.Impl.Combinators.fst | MiniParse.Impl.Combinators.seq_append_slice | val seq_append_slice (#t: Type) (s: Seq.seq t) (i1 i2: nat)
: Lemma (requires (i1 + i2 <= Seq.length s))
(ensures (Seq.append (Seq.slice s 0 i1) (Seq.slice s i1 (i1 + i2)) == Seq.slice s 0 (i1 + i2))
) | val seq_append_slice (#t: Type) (s: Seq.seq t) (i1 i2: nat)
: Lemma (requires (i1 + i2 <= Seq.length s))
(ensures (Seq.append (Seq.slice s 0 i1) (Seq.slice s i1 (i1 + i2)) == Seq.slice s 0 (i1 + i2))
) | let seq_append_slice
(#t: Type)
(s: Seq.seq t)
(i1 i2: nat)
: Lemma
(requires (i1 + i2 <= Seq.length s))
(ensures (
Seq.append (Seq.slice s 0 i1) (Seq.slice s i1 (i1 + i2)) == Seq.slice s 0 (i1 + i2)
))
= assert (Seq.append (Seq.slice s 0 i1) (Seq.slice s i1 (i1 + i2)) `Seq.equal` Seq.slice s 0 (i1 + i2... | {
"file_name": "examples/miniparse/MiniParse.Impl.Combinators.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 103,
"end_line": 80,
"start_col": 0,
"start_line": 71
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"MiniParse.Spec.Combinators.fst.checked",
"MiniParse.Impl.Base.fst.checked",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.ModifiesPat",
"short_module": "M"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: FStar.Seq.Base.seq t -> i1: Prims.nat -> i2: Prims.nat
-> FStar.Pervasives.Lemma (requires i1 + i2 <= FStar.Seq.Base.length s)
(ensures
FStar.Seq.Base.append (FStar.Seq.Base.slice s 0 i1) (FStar.Seq.Base.slice s i1 (i1 + i2)) ==
FStar.Seq.Base.slice s 0 (i1 + i2)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Seq.Base.seq",
"Prims.nat",
"Prims._assert",
"FStar.Seq.Base.equal",
"FStar.Seq.Base.append",
"FStar.Seq.Base.slice",
"Prims.op_Addition",
"Prims.unit",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Seq.Base.length",
"Prims.squash",
"Prims.eq2",
"Prims.Nil",
"FStar.Pervasives.pa... | [] | true | false | true | false | false | let seq_append_slice (#t: Type) (s: Seq.seq t) (i1 i2: nat)
: Lemma (requires (i1 + i2 <= Seq.length s))
(ensures (Seq.append (Seq.slice s 0 i1) (Seq.slice s i1 (i1 + i2)) == Seq.slice s 0 (i1 + i2))
) =
| assert ((Seq.append (Seq.slice s 0 i1) (Seq.slice s i1 (i1 + i2)))
`Seq.equal`
(Seq.slice s 0 (i1 + i2))) | false |
MiniParse.Impl.Combinators.fst | MiniParse.Impl.Combinators.parse_nondep_then_impl | val parse_nondep_then_impl
(#t1: Type0)
(#p1: parser_spec t1)
(p1': parser_impl p1)
(#t2: Type0)
(#p2: parser_spec t2)
(p2': parser_impl p2)
: Tot (parser_impl (nondep_then p1 p2)) | val parse_nondep_then_impl
(#t1: Type0)
(#p1: parser_spec t1)
(p1': parser_impl p1)
(#t2: Type0)
(#p2: parser_spec t2)
(p2': parser_impl p2)
: Tot (parser_impl (nondep_then p1 p2)) | let parse_nondep_then_impl
(#t1: Type0)
(#p1: parser_spec t1)
(p1' : parser_impl p1)
(#t2: Type0)
(#p2: parser_spec t2)
(p2' : parser_impl p2)
: Tot (parser_impl (nondep_then p1 p2))
= parse_and_then_impl p1' _ () (fun x -> parse_and_then_impl p2' _ () (fun y -> parse_ret_impl (x, y))) | {
"file_name": "examples/miniparse/MiniParse.Impl.Combinators.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 103,
"end_line": 69,
"start_col": 0,
"start_line": 61
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"MiniParse.Spec.Combinators.fst.checked",
"MiniParse.Impl.Base.fst.checked",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.ModifiesPat",
"short_module": "M"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p1': MiniParse.Impl.Base.parser_impl p1 -> p2': MiniParse.Impl.Base.parser_impl p2
-> MiniParse.Impl.Base.parser_impl (MiniParse.Spec.Combinators.nondep_then p1 p2) | Prims.Tot | [
"total"
] | [] | [
"MiniParse.Spec.Base.parser_spec",
"MiniParse.Impl.Base.parser_impl",
"MiniParse.Impl.Combinators.parse_and_then_impl",
"FStar.Pervasives.Native.tuple2",
"MiniParse.Spec.Combinators.and_then",
"MiniParse.Spec.Combinators.parse_ret",
"FStar.Pervasives.Native.Mktuple2",
"MiniParse.Impl.Combinators.parse... | [] | false | false | false | false | false | let parse_nondep_then_impl
(#t1: Type0)
(#p1: parser_spec t1)
(p1': parser_impl p1)
(#t2: Type0)
(#p2: parser_spec t2)
(p2': parser_impl p2)
: Tot (parser_impl (nondep_then p1 p2)) =
| parse_and_then_impl p1'
_
()
(fun x -> parse_and_then_impl p2' _ () (fun y -> parse_ret_impl (x, y))) | false |
LowParse.Bytes.fst | LowParse.Bytes.bytes_equal_elim | val bytes_equal_elim (b1 b2: bytes) : Lemma
(requires (b1 `bytes_equal` b2))
(ensures (b1 == b2))
[SMTPat (b1 `bytes_equal` b2)] | val bytes_equal_elim (b1 b2: bytes) : Lemma
(requires (b1 `bytes_equal` b2))
(ensures (b1 == b2))
[SMTPat (b1 `bytes_equal` b2)] | let bytes_equal_elim (b1 b2: bytes) : Lemma
(requires (b1 `bytes_equal` b2))
(ensures (b1 == b2))
[SMTPat (b1 `bytes_equal` b2)]
= assert (b1 `Seq.equal` b2) | {
"file_name": "src/lowparse/LowParse.Bytes.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 28,
"end_line": 29,
"start_col": 0,
"start_line": 25
} | module LowParse.Bytes
module Seq = FStar.Seq
module U8 = FStar.UInt8
let bytes_equal (b1 b2: bytes) : GTot Type0 =
Seq.length b1 == Seq.length b2 /\
(forall (i: nat { i < Seq.length b1 } ) . {:pattern (Seq.index b1 i); (Seq.index b2 i) } U8.v (Seq.index b1 i) == U8.v (Seq.index b2 i))
let bytes_equal_intro (b1 b... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "LowParse.Bytes.fst"
} | [
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "LowParse",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse",
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b1: LowParse.Bytes.bytes -> b2: LowParse.Bytes.bytes
-> FStar.Pervasives.Lemma (requires LowParse.Bytes.bytes_equal b1 b2)
(ensures b1 == b2)
[SMTPat (LowParse.Bytes.bytes_equal b1 b2)] | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Bytes.bytes",
"Prims._assert",
"FStar.Seq.Base.equal",
"LowParse.Bytes.byte",
"Prims.unit",
"LowParse.Bytes.bytes_equal",
"Prims.squash",
"Prims.eq2",
"Prims.Cons",
"FStar.Pervasives.pattern",
"FStar.Pervasives.smt_pat",
"Prims.Nil"
] | [] | true | false | true | false | false | let bytes_equal_elim (b1 b2: bytes)
: Lemma (requires (b1 `bytes_equal` b2)) (ensures (b1 == b2)) [SMTPat (b1 `bytes_equal` b2)] =
| assert (b1 `Seq.equal` b2) | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test_one | val test_one : v: Spec.SHA3.Test.vec -> FStar.All.ALL Prims.bool | let test_one (v:vec) =
let computed, expected =
match v with
| Vec SHA3_224 plain tag -> Spec.SHA3.sha3_224 (length plain) plain, tag
| Vec SHA3_256 plain tag -> Spec.SHA3.sha3_256 (length plain) plain, tag
| Vec SHA3_384 plain tag -> Spec.SHA3.sha3_384 (length plain) plain, tag
| Vec SHA3_512 pla... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 59,
"end_line": 526,
"start_col": 0,
"start_line": 516
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"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... | false | v: Spec.SHA3.Test.vec -> FStar.All.ALL Prims.bool | FStar.All.ALL | [] | [] | [
"Spec.SHA3.Test.vec",
"Lib.Sequence.seq",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Lib.PrintSequence.print_compare",
"Lib.Sequence.length",
"Prims.bool",
"Prims.unit",
"Prims._assert",
"Prims.b2t",
"Prims.op_Equality",
"Prims.nat",
"FStar.Pervasives.Native.tuple2",
... | [] | false | true | false | false | false | let test_one (v: vec) =
| let computed, expected =
match v with
| Vec SHA3_224 plain tag -> Spec.SHA3.sha3_224 (length plain) plain, tag
| Vec SHA3_256 plain tag -> Spec.SHA3.sha3_256 (length plain) plain, tag
| Vec SHA3_384 plain tag -> Spec.SHA3.sha3_384 (length plain) plain, tag
| Vec SHA3_512 plain tag -> Spec.SHA3.sha3_512 (lengt... | false | |
MiniParse.Impl.Combinators.fst | MiniParse.Impl.Combinators.parse_synth_impl | val parse_synth_impl
(#t1 #t2: Type0)
(#p1: parser_spec t1)
(p1': parser_impl p1)
(f2: (t1 -> GTot t2))
(f2': (x: t1 -> Tot (y: t2{y == f2 x})))
(g1: (t2 -> GTot t1))
(u: squash (synth_inverse g1 f2))
: Tot (parser_impl (parse_synth p1 f2 g1)) | val parse_synth_impl
(#t1 #t2: Type0)
(#p1: parser_spec t1)
(p1': parser_impl p1)
(f2: (t1 -> GTot t2))
(f2': (x: t1 -> Tot (y: t2{y == f2 x})))
(g1: (t2 -> GTot t1))
(u: squash (synth_inverse g1 f2))
: Tot (parser_impl (parse_synth p1 f2 g1)) | let parse_synth_impl
(#t1: Type0)
(#t2: Type0)
(#p1: parser_spec t1)
(p1' : parser_impl p1)
(f2: t1 -> GTot t2)
(f2': (x: t1) -> Tot (y: t2 { y == f2 x } ))
(g1: t2 -> GTot t1)
(u: squash (
synth_inverse g1 f2
))
: Tot (parser_impl (parse_synth p1 f2 g1))
= fun (input: buffer8) (len: U32.t { len =... | {
"file_name": "examples/miniparse/MiniParse.Impl.Combinators.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 15,
"end_line": 128,
"start_col": 0,
"start_line": 113
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"MiniParse.Spec.Combinators.fst.checked",
"MiniParse.Impl.Base.fst.checked",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.ModifiesPat",
"short_module": "M"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p1': MiniParse.Impl.Base.parser_impl p1 ->
f2: (_: t1 -> Prims.GTot t2) ->
f2': (x: t1 -> y: t2{y == f2 x}) ->
g1: (_: t2 -> Prims.GTot t1) ->
u81: Prims.squash (MiniParse.Spec.Combinators.synth_inverse g1 f2)
-> MiniParse.Impl.Base.parser_impl (MiniParse.Spec.Combinators.parse_synth p1 f2 g1) | Prims.Tot | [
"total"
] | [] | [
"MiniParse.Spec.Base.parser_spec",
"MiniParse.Impl.Base.parser_impl",
"Prims.eq2",
"Prims.squash",
"MiniParse.Spec.Combinators.synth_inverse",
"MiniParse.Impl.Base.buffer8",
"FStar.UInt32.t",
"LowStar.Monotonic.Buffer.len",
"FStar.UInt8.t",
"LowStar.Buffer.trivial_preorder",
"FStar.Pervasives.Na... | [] | false | false | false | false | false | let parse_synth_impl
(#t1 #t2: Type0)
(#p1: parser_spec t1)
(p1': parser_impl p1)
(f2: (t1 -> GTot t2))
(f2': (x: t1 -> Tot (y: t2{y == f2 x})))
(g1: (t2 -> GTot t1))
(u: squash (synth_inverse g1 f2))
: Tot (parser_impl (parse_synth p1 f2 g1)) =
| fun (input: buffer8) (len: U32.t{len == B.len input}) ->
match p1' input len with
| Some (v1, consumed) -> Some ((f2' v1 <: t2), consumed)
| _ -> None | false |
LowParse.Bytes.fst | LowParse.Bytes.bytes_equal | val bytes_equal (b1 b2: bytes) : GTot Type0 | val bytes_equal (b1 b2: bytes) : GTot Type0 | let bytes_equal (b1 b2: bytes) : GTot Type0 =
Seq.length b1 == Seq.length b2 /\
(forall (i: nat { i < Seq.length b1 } ) . {:pattern (Seq.index b1 i); (Seq.index b2 i) } U8.v (Seq.index b1 i) == U8.v (Seq.index b2 i)) | {
"file_name": "src/lowparse/LowParse.Bytes.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 138,
"end_line": 8,
"start_col": 0,
"start_line": 6
} | module LowParse.Bytes
module Seq = FStar.Seq
module U8 = FStar.UInt8 | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": true,
"source_file": "LowParse.Bytes.fst"
} | [
{
"abbrev": true,
"full_module": "FStar.UInt8",
"short_module": "U8"
},
{
"abbrev": true,
"full_module": "FStar.Seq",
"short_module": "Seq"
},
{
"abbrev": false,
"full_module": "LowParse",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowParse",
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b1: LowParse.Bytes.bytes -> b2: LowParse.Bytes.bytes -> Prims.GTot Type0 | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Bytes.bytes",
"Prims.l_and",
"Prims.eq2",
"Prims.nat",
"FStar.Seq.Base.length",
"LowParse.Bytes.byte",
"Prims.l_Forall",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.UInt.uint_t",
"FStar.UInt8.n",
"FStar.UInt8.v",
"FStar.Seq.Base.index"
] | [] | false | false | false | false | true | let bytes_equal (b1 b2: bytes) : GTot Type0 =
| Seq.length b1 == Seq.length b2 /\
(forall (i: nat{i < Seq.length b1}). {:pattern (Seq.index b1 i); (Seq.index b2 i)}
U8.v (Seq.index b1 i) == U8.v (Seq.index b2 i)) | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test10_expected_shake256 | val test10_expected_shake256:lbytes 32 | val test10_expected_shake256:lbytes 32 | let test10_expected_shake256 : lbytes 32 =
let l = List.Tot.map u8_from_UInt8 [
0xa8uy; 0x49uy; 0x83uy; 0xc9uy; 0xfeuy; 0x75uy; 0xaduy; 0x0duy;
0xe1uy; 0x9euy; 0x2cuy; 0x84uy; 0x20uy; 0xa7uy; 0xeauy; 0x85uy;
0xb2uy; 0x51uy; 0x02uy; 0x19uy; 0x56uy; 0x14uy; 0xdfuy; 0xa5uy;
0x34uy; 0x7duy; 0xe6uy; 0x0auy... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 394,
"start_col": 0,
"start_line": 386
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 32 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test10_expected_shake256:lbytes 32 =
| let l =
List.Tot.map u8_from_UInt8
[
0xa8uy; 0x49uy; 0x83uy; 0xc9uy; 0xfeuy; 0x75uy; 0xaduy; 0x0duy; 0xe1uy; 0x9euy; 0x2cuy; 0x84uy;
0x20uy; 0xa7uy; 0xeauy; 0x85uy; 0xb2uy; 0x51uy; 0x02uy; 0x19uy; 0x56uy; 0x14uy; 0xdfuy; 0xa5uy;
0x34uy; 0x7duy; 0xe6uy; 0x0auy; 0x1cuy; 0xe1uy; 0x3buy; 0x60uy
... | false |
MiniParse.Impl.Combinators.fst | MiniParse.Impl.Combinators.serialize_synth_impl' | val serialize_synth_impl'
(#t1 #t2: Type0)
(g1': (x: t2 -> Tot t1))
(#p1: parser_spec t1)
(#s1: serializer_spec p1)
(s1': serializer_impl s1)
(f2: (t1 -> GTot t2))
(g1: (t2 -> GTot t1))
(u: squash (synth_inverse f2 g1 /\ synth_inverse g1 f2))
(v: squash ((forall (x:... | val serialize_synth_impl'
(#t1 #t2: Type0)
(g1': (x: t2 -> Tot t1))
(#p1: parser_spec t1)
(#s1: serializer_spec p1)
(s1': serializer_impl s1)
(f2: (t1 -> GTot t2))
(g1: (t2 -> GTot t1))
(u: squash (synth_inverse f2 g1 /\ synth_inverse g1 f2))
(v: squash ((forall (x:... | let serialize_synth_impl'
(#t1: Type0)
(#t2: Type0)
(g1': (x: t2) -> Tot t1)
(#p1: parser_spec t1)
(#s1: serializer_spec p1)
(s1' : serializer_impl s1)
(f2: t1 -> GTot t2)
(g1: t2 -> GTot t1)
(u: squash (
synth_inverse f2 g1 /\
synth_inverse g1 f2
))
(v: squash (
(forall (x: t2) . g1' ... | {
"file_name": "examples/miniparse/MiniParse.Impl.Combinators.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 52,
"end_line": 167,
"start_col": 0,
"start_line": 150
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"MiniParse.Spec.Combinators.fst.checked",
"MiniParse.Impl.Base.fst.checked",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.ModifiesPat",
"short_module": "M"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
g1': (x: t2 -> t1) ->
s1': MiniParse.Impl.Base.serializer_impl s1 ->
f2: (_: t1 -> Prims.GTot t2) ->
g1: (_: t2 -> Prims.GTot t1) ->
u121:
Prims.squash (MiniParse.Spec.Combinators.synth_inverse f2 g1 /\
MiniParse.Spec.Combinators.synth_inverse g1 f2) ->
v: Prims.squash (forall (... | Prims.Tot | [
"total"
] | [] | [
"MiniParse.Spec.Base.parser_spec",
"MiniParse.Spec.Base.serializer_spec",
"MiniParse.Impl.Base.serializer_impl",
"Prims.squash",
"Prims.l_and",
"MiniParse.Spec.Combinators.synth_inverse",
"Prims.l_Forall",
"Prims.eq2",
"MiniParse.Impl.Combinators.serialize_synth_impl",
"MiniParse.Spec.Combinators.... | [] | false | false | false | false | false | let serialize_synth_impl'
(#t1 #t2: Type0)
(g1': (x: t2 -> Tot t1))
(#p1: parser_spec t1)
(#s1: serializer_spec p1)
(s1': serializer_impl s1)
(f2: (t1 -> GTot t2))
(g1: (t2 -> GTot t1))
(u: squash (synth_inverse f2 g1 /\ synth_inverse g1 f2))
(v: squash ((forall (x:... | serialize_synth_impl s1' f2 g1 (fun x -> g1' x) () | false |
MiniParse.Impl.Combinators.fst | MiniParse.Impl.Combinators.serialize_synth_impl | val serialize_synth_impl
(#t1 #t2: Type0)
(#p1: parser_spec t1)
(#s1: serializer_spec p1)
(s1': serializer_impl s1)
(f2: (t1 -> GTot t2))
(g1: (t2 -> GTot t1))
(g1': (x: t2 -> Tot (y: t1{y == g1 x})))
(u: squash (synth_inverse f2 g1 /\ synth_inverse g1 f2))
: Tot (ser... | val serialize_synth_impl
(#t1 #t2: Type0)
(#p1: parser_spec t1)
(#s1: serializer_spec p1)
(s1': serializer_impl s1)
(f2: (t1 -> GTot t2))
(g1: (t2 -> GTot t1))
(g1': (x: t2 -> Tot (y: t1{y == g1 x})))
(u: squash (synth_inverse f2 g1 /\ synth_inverse g1 f2))
: Tot (ser... | let serialize_synth_impl
(#t1: Type0)
(#t2: Type0)
(#p1: parser_spec t1)
(#s1: serializer_spec p1)
(s1' : serializer_impl s1)
(f2: t1 -> GTot t2)
(g1: t2 -> GTot t1)
(g1': (x: t2) -> Tot (y: t1 { y == g1 x } ) )
(u: squash (
synth_inverse f2 g1 /\
synth_inverse g1 f2
))
: Tot (serializer_imp... | {
"file_name": "examples/miniparse/MiniParse.Impl.Combinators.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 20,
"end_line": 147,
"start_col": 0,
"start_line": 131
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"MiniParse.Spec.Combinators.fst.checked",
"MiniParse.Impl.Base.fst.checked",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.ModifiesPat",
"short_module": "M"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
s1': MiniParse.Impl.Base.serializer_impl s1 ->
f2: (_: t1 -> Prims.GTot t2) ->
g1: (_: t2 -> Prims.GTot t1) ->
g1': (x: t2 -> y: t1{y == g1 x}) ->
u100:
Prims.squash (MiniParse.Spec.Combinators.synth_inverse f2 g1 /\
MiniParse.Spec.Combinators.synth_inverse g1 f2)
-> MiniParse.Imp... | Prims.Tot | [
"total"
] | [] | [
"MiniParse.Spec.Base.parser_spec",
"MiniParse.Spec.Base.serializer_spec",
"MiniParse.Impl.Base.serializer_impl",
"Prims.eq2",
"Prims.squash",
"Prims.l_and",
"MiniParse.Spec.Combinators.synth_inverse",
"MiniParse.Impl.Base.buffer8",
"FStar.UInt32.t",
"LowStar.Monotonic.Buffer.len",
"FStar.UInt8.t... | [] | false | false | false | false | false | let serialize_synth_impl
(#t1 #t2: Type0)
(#p1: parser_spec t1)
(#s1: serializer_spec p1)
(s1': serializer_impl s1)
(f2: (t1 -> GTot t2))
(g1: (t2 -> GTot t1))
(g1': (x: t2 -> Tot (y: t1{y == g1 x})))
(u: squash (synth_inverse f2 g1 /\ synth_inverse g1 f2))
: Tot (ser... | fun (output: buffer8) (len: U32.t{len == B.len output}) (input: t2) ->
let x = g1' input in
s1' output len x | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test11_plaintext_shake256 | val test11_plaintext_shake256:lbytes 32 | val test11_plaintext_shake256:lbytes 32 | let test11_plaintext_shake256 : lbytes 32 =
let l = List.Tot.map u8_from_UInt8 [
0xefuy; 0x89uy; 0x6cuy; 0xdcuy; 0xb3uy; 0x63uy; 0xa6uy; 0x15uy;
0x91uy; 0x78uy; 0xa1uy; 0xbbuy; 0x1cuy; 0x99uy; 0x39uy; 0x46uy;
0xc5uy; 0x04uy; 0x02uy; 0x09uy; 0x5cuy; 0xdauy; 0xeauy; 0x4fuy;
0xd4uy; 0xd4uy; 0x19uy; 0xaau... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 407,
"start_col": 0,
"start_line": 399
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 32 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test11_plaintext_shake256:lbytes 32 =
| let l =
List.Tot.map u8_from_UInt8
[
0xefuy; 0x89uy; 0x6cuy; 0xdcuy; 0xb3uy; 0x63uy; 0xa6uy; 0x15uy; 0x91uy; 0x78uy; 0xa1uy; 0xbbuy;
0x1cuy; 0x99uy; 0x39uy; 0x46uy; 0xc5uy; 0x04uy; 0x02uy; 0x09uy; 0x5cuy; 0xdauy; 0xeauy; 0x4fuy;
0xd4uy; 0xd4uy; 0x19uy; 0xaauy; 0x47uy; 0x32uy; 0x1cuy; 0x88uy
... | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test | val test : _: Prims.unit -> FStar.All.ALL Prims.bool | let test () =
let res = List.for_all test_one test_vectors in
if res then begin IO.print_string "\n\nSHA3 : Success!\n"; true end
else begin IO.print_string "\n\nSHA3: Failure :(\n"; false end | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 64,
"end_line": 532,
"start_col": 0,
"start_line": 529
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"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... | false | _: Prims.unit -> FStar.All.ALL Prims.bool | FStar.All.ALL | [] | [] | [
"Prims.unit",
"Prims.bool",
"FStar.IO.print_string",
"FStar.List.for_all",
"Spec.SHA3.Test.vec",
"Spec.SHA3.Test.test_one",
"Spec.SHA3.Test.test_vectors"
] | [] | false | true | false | false | false | let test () =
| let res = List.for_all test_one test_vectors in
if res
then
(IO.print_string "\n\nSHA3 : Success!\n";
true)
else
(IO.print_string "\n\nSHA3: Failure :(\n";
false) | false | |
MiniParse.Impl.Combinators.fst | MiniParse.Impl.Combinators.parse_and_then_impl | val parse_and_then_impl
(#t: Type)
(#p: parser_spec t)
(p32: parser_impl p)
(#t': Type)
(p': (t -> Tot (parser_spec t')))
(u: squash (and_then_cases_injective p'))
(p32': (x: t -> Tot (parser_impl (p' x))))
: Tot (parser_impl (p `and_then` p')) | val parse_and_then_impl
(#t: Type)
(#p: parser_spec t)
(p32: parser_impl p)
(#t': Type)
(p': (t -> Tot (parser_spec t')))
(u: squash (and_then_cases_injective p'))
(p32': (x: t -> Tot (parser_impl (p' x))))
: Tot (parser_impl (p `and_then` p')) | let parse_and_then_impl
(#t:Type)
(#p:parser_spec t)
(p32: parser_impl p)
(#t':Type)
(p': (t -> Tot (parser_spec t')))
(u: squash (and_then_cases_injective p'))
(p32' : ((x: t) -> Tot (parser_impl (p' x))))
: Tot (parser_impl (p `and_then` p'))
= fun (input: buffer8) (len: U32.t { len == B.len input } ) -... | {
"file_name": "examples/miniparse/MiniParse.Impl.Combinators.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 13,
"end_line": 56,
"start_col": 0,
"start_line": 38
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"MiniParse.Spec.Combinators.fst.checked",
"MiniParse.Impl.Base.fst.checked",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.ModifiesPat",
"short_module": "M"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p32: MiniParse.Impl.Base.parser_impl p ->
p': (_: t -> MiniParse.Spec.Base.parser_spec t') ->
u23: Prims.squash (MiniParse.Spec.Combinators.and_then_cases_injective p') ->
p32': (x: t -> MiniParse.Impl.Base.parser_impl (p' x))
-> MiniParse.Impl.Base.parser_impl (MiniParse.Spec.Combinators.and_then p ... | Prims.Tot | [
"total"
] | [] | [
"MiniParse.Spec.Base.parser_spec",
"MiniParse.Impl.Base.parser_impl",
"Prims.squash",
"MiniParse.Spec.Combinators.and_then_cases_injective",
"MiniParse.Impl.Base.buffer8",
"FStar.UInt32.t",
"Prims.eq2",
"LowStar.Monotonic.Buffer.len",
"FStar.UInt8.t",
"LowStar.Buffer.trivial_preorder",
"FStar.Pe... | [] | false | false | false | false | false | let parse_and_then_impl
(#t: Type)
(#p: parser_spec t)
(p32: parser_impl p)
(#t': Type)
(p': (t -> Tot (parser_spec t')))
(u: squash (and_then_cases_injective p'))
(p32': (x: t -> Tot (parser_impl (p' x))))
: Tot (parser_impl (p `and_then` p')) =
| fun (input: buffer8) (len: U32.t{len == B.len input}) ->
match p32 input len with
| Some (v, l) ->
let input' = B.offset input l in
(match p32' v input' (len `U32.sub` l) with
| Some (v', l') -> Some (v', U32.add l l')
| _ -> None)
| _ -> None | false |
Hacl.Spec.K256.Field52.Lemmas4.fst | Hacl.Spec.K256.Field52.Lemmas4.lemma_fmul_ab | val lemma_fmul_ab (a0 a1 a2 a3 a4 b0 b1 b2 b3 b4:nat) :
Lemma
(let sum0 = a0 * b0 in
let sum1 = a0 * b1 + a1 * b0 in
let sum2 = a0 * b2 + a1 * b1 + a2 * b0 in
let sum3 = a0 * b3 + a1 * b2 + a2 * b1 + a3 * b0 in
let sum4 = a0 * b4 + a1 * b3 + a2 * b2 + a3 * b1 + a4 * b0 in
let sum5 = a1 * b4 + a... | val lemma_fmul_ab (a0 a1 a2 a3 a4 b0 b1 b2 b3 b4:nat) :
Lemma
(let sum0 = a0 * b0 in
let sum1 = a0 * b1 + a1 * b0 in
let sum2 = a0 * b2 + a1 * b1 + a2 * b0 in
let sum3 = a0 * b3 + a1 * b2 + a2 * b1 + a3 * b0 in
let sum4 = a0 * b4 + a1 * b3 + a2 * b2 + a3 * b1 + a4 * b0 in
let sum5 = a1 * b4 + a... | let lemma_fmul_ab a0 a1 a2 a3 a4 b0 b1 b2 b3 b4 =
let r = 0x1000003D10 in
let sum0 = a0 * b0 in
let sum1 = a0 * b1 + a1 * b0 in
let sum2 = a0 * b2 + a1 * b1 + a2 * b0 in
let sum3 = a0 * b3 + a1 * b2 + a2 * b1 + a3 * b0 in
let sum4 = a0 * b4 + a1 * b3 + a2 * b2 + a3 * b1 + a4 * b0 in
let sum5 = a1 * b4 + a... | {
"file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas4.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 5,
"end_line": 353,
"start_col": 0,
"start_line": 314
} | module Hacl.Spec.K256.Field52.Lemmas4
open FStar.Mul
open Lib.IntTypes
module S = Spec.K256
include Hacl.Spec.K256.Field52.Definitions
include Hacl.Spec.K256.Field52
module ML = Hacl.Spec.K256.MathLemmas
module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas
#set-options "--z3rlimit 100 --fuel 0 --ifuel 0"
val lem... | {
"checked_file": "/",
"dependencies": [
"Spec.K256.fst.checked",
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Hacl.Spec.K256.MathLemmas.fst.checked",
"Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked",
"Hacl.Spec.K256.Field52.Definitions.fst.checked",
"Hacl.Spec.K256.Field52.... | [
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas",
"short_module": "LD"
},
{
"abbrev": true,
"full_module": "Hacl.Spec.K256.MathLemmas",
"short_module": "ML"
},
{
"abbrev": false,
"full_module": "Hacl.Spec.K256.Field52",
"short_module": null
}... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a0: Prims.nat ->
a1: Prims.nat ->
a2: Prims.nat ->
a3: Prims.nat ->
a4: Prims.nat ->
b0: Prims.nat ->
b1: Prims.nat ->
b2: Prims.nat ->
b3: Prims.nat ->
b4: Prims.nat
-> FStar.Pervasives.Lemma
(ensures
(let sum0 = a0 * b0 in
let sum1 = a0 * b1 + a1 * b0 in
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.nat",
"FStar.Calc.calc_finish",
"Prims.int",
"Prims.eq2",
"Prims.op_Modulus",
"FStar.Mul.op_Star",
"Spec.K256.PointOps.prime",
"Prims.op_Addition",
"Prims.pow2",
"Prims.Cons",
"FStar.Preorder.relation",
"Prims.Nil",
"Prims.unit",
"FStar.Calc.calc_step",
"FStar.Calc.calc_init",
"... | [] | false | false | true | false | false | let lemma_fmul_ab a0 a1 a2 a3 a4 b0 b1 b2 b3 b4 =
| let r = 0x1000003D10 in
let sum0 = a0 * b0 in
let sum1 = a0 * b1 + a1 * b0 in
let sum2 = a0 * b2 + a1 * b1 + a2 * b0 in
let sum3 = a0 * b3 + a1 * b2 + a2 * b1 + a3 * b0 in
let sum4 = a0 * b4 + a1 * b3 + a2 * b2 + a3 * b1 + a4 * b0 in
let sum5 = a1 * b4 + a2 * b3 + a3 * b2 + a4 * b1 in
let sum6 = a2 * b4 + a3 * b3 + a4 ... | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test11_expected_shake256 | val test11_expected_shake256:lbytes 32 | val test11_expected_shake256:lbytes 32 | let test11_expected_shake256 : lbytes 32 =
let l = List.Tot.map u8_from_UInt8 [
0x7auy; 0xbbuy; 0xa4uy; 0xe8uy; 0xb8uy; 0xdduy; 0x76uy; 0x6buy;
0xbauy; 0xbeuy; 0x98uy; 0xf8uy; 0xf1uy; 0x69uy; 0xcbuy; 0x62uy;
0x08uy; 0x67uy; 0x4duy; 0xe1uy; 0x9auy; 0x51uy; 0xd7uy; 0x3cuy;
0x92uy; 0xb7uy; 0xdcuy; 0x04uy... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 418,
"start_col": 0,
"start_line": 410
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 32 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test11_expected_shake256:lbytes 32 =
| let l =
List.Tot.map u8_from_UInt8
[
0x7auy; 0xbbuy; 0xa4uy; 0xe8uy; 0xb8uy; 0xdduy; 0x76uy; 0x6buy; 0xbauy; 0xbeuy; 0x98uy; 0xf8uy;
0xf1uy; 0x69uy; 0xcbuy; 0x62uy; 0x08uy; 0x67uy; 0x4duy; 0xe1uy; 0x9auy; 0x51uy; 0xd7uy; 0x3cuy;
0x92uy; 0xb7uy; 0xdcuy; 0x04uy; 0xa4uy; 0xb5uy; 0xeeuy; 0x3duy
... | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test8_plaintext_shake128 | val test8_plaintext_shake128:lbytes 83 | val test8_plaintext_shake128:lbytes 83 | let test8_plaintext_shake128 : lbytes 83 =
let l = List.Tot.map u8_from_UInt8 [
0x24uy; 0x69uy; 0xf1uy; 0x01uy; 0xc9uy; 0xb4uy; 0x99uy; 0xa9uy;
0x30uy; 0xa9uy; 0x7euy; 0xf1uy; 0xb3uy; 0x46uy; 0x73uy; 0xecuy;
0x74uy; 0x39uy; 0x3fuy; 0xd9uy; 0xfauy; 0xf6uy; 0x58uy; 0xe3uy;
0x1fuy; 0x06uy; 0xeeuy; 0x0buy... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 343,
"start_col": 0,
"start_line": 328
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 83 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test8_plaintext_shake128:lbytes 83 =
| let l =
List.Tot.map u8_from_UInt8
[
0x24uy; 0x69uy; 0xf1uy; 0x01uy; 0xc9uy; 0xb4uy; 0x99uy; 0xa9uy; 0x30uy; 0xa9uy; 0x7euy; 0xf1uy;
0xb3uy; 0x46uy; 0x73uy; 0xecuy; 0x74uy; 0x39uy; 0x3fuy; 0xd9uy; 0xfauy; 0xf6uy; 0x58uy; 0xe3uy;
0x1fuy; 0x06uy; 0xeeuy; 0x0buy; 0x29uy; 0xa2uy; 0x2buy; 0x62uy; 0x3... | false |
MiniParse.Impl.Combinators.fst | MiniParse.Impl.Combinators.parse_filter_impl | val parse_filter_impl
(#t: Type0)
(#p: parser_spec t)
(p32: parser_impl p)
(f: (t -> GTot bool))
(g: (x: t -> Tot (b: bool{b == f x})))
: Tot (parser_impl (parse_filter p f)) | val parse_filter_impl
(#t: Type0)
(#p: parser_spec t)
(p32: parser_impl p)
(f: (t -> GTot bool))
(g: (x: t -> Tot (b: bool{b == f x})))
: Tot (parser_impl (parse_filter p f)) | let parse_filter_impl
(#t: Type0)
(#p: parser_spec t)
(p32: parser_impl p)
(f: (t -> GTot bool))
(g: ((x: t) -> Tot (b: bool { b == f x } )))
: Tot (parser_impl (parse_filter p f))
= fun (input: buffer8) (len: U32.t { len == B.len input } ) ->
match p32 input len with
| Some (v, consumed) ->
if ... | {
"file_name": "examples/miniparse/MiniParse.Impl.Combinators.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 15,
"end_line": 187,
"start_col": 0,
"start_line": 170
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"MiniParse.Spec.Combinators.fst.checked",
"MiniParse.Impl.Base.fst.checked",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.ModifiesPat",
"short_module": "M"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
p32: MiniParse.Impl.Base.parser_impl p ->
f: (_: t -> Prims.GTot Prims.bool) ->
g: (x: t -> b: Prims.bool{b == f x})
-> MiniParse.Impl.Base.parser_impl (MiniParse.Spec.Combinators.parse_filter p f) | Prims.Tot | [
"total"
] | [] | [
"MiniParse.Spec.Base.parser_spec",
"MiniParse.Impl.Base.parser_impl",
"Prims.bool",
"Prims.eq2",
"MiniParse.Impl.Base.buffer8",
"FStar.UInt32.t",
"LowStar.Monotonic.Buffer.len",
"FStar.UInt8.t",
"LowStar.Buffer.trivial_preorder",
"FStar.Pervasives.Native.Some",
"FStar.Pervasives.Native.tuple2",
... | [] | false | false | false | false | false | let parse_filter_impl
(#t: Type0)
(#p: parser_spec t)
(p32: parser_impl p)
(f: (t -> GTot bool))
(g: (x: t -> Tot (b: bool{b == f x})))
: Tot (parser_impl (parse_filter p f)) =
| fun (input: buffer8) (len: U32.t{len == B.len input}) ->
match p32 input len with
| Some (v, consumed) ->
if g v
then
[@@ inline_let ]let v':v': t{f v' == true} = v in
Some (v', consumed)
else None
| _ -> None | false |
MiniParse.Impl.Combinators.fst | MiniParse.Impl.Combinators.serialize_filter_impl | val serialize_filter_impl
(#t: Type0)
(#p: parser_spec t)
(#s: serializer_spec p)
(s32: serializer_impl s)
(f: (t -> GTot bool))
: Tot (serializer_impl (serialize_filter s f)) | val serialize_filter_impl
(#t: Type0)
(#p: parser_spec t)
(#s: serializer_spec p)
(s32: serializer_impl s)
(f: (t -> GTot bool))
: Tot (serializer_impl (serialize_filter s f)) | let serialize_filter_impl
(#t: Type0)
(#p: parser_spec t)
(#s: serializer_spec p)
(s32: serializer_impl s)
(f: (t -> GTot bool))
: Tot (serializer_impl (serialize_filter s f))
= fun (output: buffer8) (len: U32.t { len == B.len output } ) (input: t { f input == true } ) -> s32 output len input | {
"file_name": "examples/miniparse/MiniParse.Impl.Combinators.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 117,
"end_line": 197,
"start_col": 0,
"start_line": 190
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"MiniParse.Spec.Combinators.fst.checked",
"MiniParse.Impl.Base.fst.checked",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.ModifiesPat",
"short_module": "M"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s32: MiniParse.Impl.Base.serializer_impl s -> f: (_: t -> Prims.GTot Prims.bool)
-> MiniParse.Impl.Base.serializer_impl (MiniParse.Spec.Combinators.serialize_filter s f) | Prims.Tot | [
"total"
] | [] | [
"MiniParse.Spec.Base.parser_spec",
"MiniParse.Spec.Base.serializer_spec",
"MiniParse.Impl.Base.serializer_impl",
"Prims.bool",
"MiniParse.Impl.Base.buffer8",
"FStar.UInt32.t",
"Prims.eq2",
"LowStar.Monotonic.Buffer.len",
"FStar.UInt8.t",
"LowStar.Buffer.trivial_preorder",
"FStar.Pervasives.Nativ... | [] | false | false | false | false | false | let serialize_filter_impl
(#t: Type0)
(#p: parser_spec t)
(#s: serializer_spec p)
(s32: serializer_impl s)
(f: (t -> GTot bool))
: Tot (serializer_impl (serialize_filter s f)) =
| fun (output: buffer8) (len: U32.t{len == B.len output}) (input: t{f input == true}) ->
s32 output len input | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test12_plaintext_shake256 | val test12_plaintext_shake256:lbytes 78 | val test12_plaintext_shake256:lbytes 78 | let test12_plaintext_shake256 : lbytes 78 =
let l = List.Tot.map u8_from_UInt8 [
0xdeuy; 0x70uy; 0x1fuy; 0x10uy; 0xaduy; 0x39uy; 0x61uy; 0xb0uy;
0xdauy; 0xccuy; 0x96uy; 0x87uy; 0x3auy; 0x3cuy; 0xd5uy; 0x58uy;
0x55uy; 0x81uy; 0x88uy; 0xffuy; 0x69uy; 0x6duy; 0x85uy; 0x01uy;
0xb2uy; 0xe2uy; 0x7buy; 0x67u... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 437,
"start_col": 0,
"start_line": 423
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 78 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test12_plaintext_shake256:lbytes 78 =
| let l =
List.Tot.map u8_from_UInt8
[
0xdeuy; 0x70uy; 0x1fuy; 0x10uy; 0xaduy; 0x39uy; 0x61uy; 0xb0uy; 0xdauy; 0xccuy; 0x96uy; 0x87uy;
0x3auy; 0x3cuy; 0xd5uy; 0x58uy; 0x55uy; 0x81uy; 0x88uy; 0xffuy; 0x69uy; 0x6duy; 0x85uy; 0x01uy;
0xb2uy; 0xe2uy; 0x7buy; 0x67uy; 0xe9uy; 0x41uy; 0x90uy; 0xcduy; 0x0... | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test12_expected_shake256 | val test12_expected_shake256:lbytes 32 | val test12_expected_shake256:lbytes 32 | let test12_expected_shake256 : lbytes 32 =
let l = List.Tot.map u8_from_UInt8 [
0x64uy; 0x2fuy; 0x3fuy; 0x23uy; 0x5auy; 0xc7uy; 0xe3uy; 0xd4uy;
0x34uy; 0x06uy; 0x3buy; 0x5fuy; 0xc9uy; 0x21uy; 0x5fuy; 0xc3uy;
0xf0uy; 0xe5uy; 0x91uy; 0xe2uy; 0xe7uy; 0xfduy; 0x17uy; 0x66uy;
0x8duy; 0x1auy; 0x0cuy; 0x87uy... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 11,
"end_line": 448,
"start_col": 0,
"start_line": 440
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Lib.Sequence.lseq (Lib.IntTypes.int_t Lib.IntTypes.U8 Lib.IntTypes.SEC) 32 | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.of_list",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Prims.unit",
"FStar.Pervasives.assert_norm",
"Prims.eq2",
"Prims.int",
"FStar.List.Tot.Base.length",
"Prims.list",
"FStar.List.Tot.Base.map",
"FStar.UInt8.t",
"Lib.RawIntTypes.u8_from_UInt8",
"Prims.Cons"... | [] | false | false | false | false | false | let test12_expected_shake256:lbytes 32 =
| let l =
List.Tot.map u8_from_UInt8
[
0x64uy; 0x2fuy; 0x3fuy; 0x23uy; 0x5auy; 0xc7uy; 0xe3uy; 0xd4uy; 0x34uy; 0x06uy; 0x3buy; 0x5fuy;
0xc9uy; 0x21uy; 0x5fuy; 0xc3uy; 0xf0uy; 0xe5uy; 0x91uy; 0xe2uy; 0xe7uy; 0xfduy; 0x17uy; 0x66uy;
0x8duy; 0x1auy; 0x0cuy; 0x87uy; 0x46uy; 0x87uy; 0x35uy; 0xc2uy
... | false |
MiniParse.Impl.Combinators.fst | MiniParse.Impl.Combinators.serialize_nondep_then_impl | val serialize_nondep_then_impl
(#t1: Type0)
(#p1: parser_spec t1)
(#s1: serializer_spec p1)
(s1': serializer_impl s1)
(#t2: Type0)
(#p2: parser_spec t2)
(#s2: serializer_spec p2)
(s2': serializer_impl s2)
: Tot (serializer_impl (serialize_nondep_then s1 s2)) | val serialize_nondep_then_impl
(#t1: Type0)
(#p1: parser_spec t1)
(#s1: serializer_spec p1)
(s1': serializer_impl s1)
(#t2: Type0)
(#p2: parser_spec t2)
(#s2: serializer_spec p2)
(s2': serializer_impl s2)
: Tot (serializer_impl (serialize_nondep_then s1 s2)) | let serialize_nondep_then_impl
(#t1: Type0)
(#p1: parser_spec t1)
(#s1: serializer_spec p1)
(s1' : serializer_impl s1)
(#t2: Type0)
(#p2: parser_spec t2)
(#s2: serializer_spec p2)
(s2' : serializer_impl s2)
: Tot (serializer_impl (serialize_nondep_then s1 s2))
= fun (output: buffer8) (l: U32.t { l == B.... | {
"file_name": "examples/miniparse/MiniParse.Impl.Combinators.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 7,
"end_line": 110,
"start_col": 0,
"start_line": 83
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"MiniParse.Spec.Combinators.fst.checked",
"MiniParse.Impl.Base.fst.checked",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.ModifiesPat",
"short_module": "M"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s1': MiniParse.Impl.Base.serializer_impl s1 -> s2': MiniParse.Impl.Base.serializer_impl s2
-> MiniParse.Impl.Base.serializer_impl (MiniParse.Spec.Combinators.serialize_nondep_then s1 s2) | Prims.Tot | [
"total"
] | [] | [
"MiniParse.Spec.Base.parser_spec",
"MiniParse.Spec.Base.serializer_spec",
"MiniParse.Impl.Base.serializer_impl",
"MiniParse.Impl.Base.buffer8",
"FStar.UInt32.t",
"Prims.eq2",
"LowStar.Monotonic.Buffer.len",
"FStar.UInt8.t",
"LowStar.Buffer.trivial_preorder",
"FStar.Pervasives.Native.tuple2",
"FS... | [] | false | false | false | false | false | let serialize_nondep_then_impl
(#t1: Type0)
(#p1: parser_spec t1)
(#s1: serializer_spec p1)
(s1': serializer_impl s1)
(#t2: Type0)
(#p2: parser_spec t2)
(#s2: serializer_spec p2)
(s2': serializer_impl s2)
: Tot (serializer_impl (serialize_nondep_then s1 s2)) =
| fun (output: buffer8) (l: U32.t{l == B.len output}) (input: t1 * t2) ->
match input with
| fs, sn ->
match s1' output l fs with
| Some l1 ->
let h1 = HST.get () in
let output' = B.offset output l1 in
(match s2' output' (l `U32.sub` l1) sn with
| Some l2 ->
let h2 = HST.ge... | false |
MiniParse.Impl.Combinators.fst | MiniParse.Impl.Combinators.make_total_constant_size_parser_impl | val make_total_constant_size_parser_impl
(sz: nat)
(sz': U32.t{U32.v sz' == sz})
(#t: Type0)
(f: (s: bytes{Seq.length s == sz} -> GTot (t)))
(u: squash (make_total_constant_size_parser_precond sz t f))
(f':
(s: buffer8{B.length s == sz}
-> HST.Stack t
... | val make_total_constant_size_parser_impl
(sz: nat)
(sz': U32.t{U32.v sz' == sz})
(#t: Type0)
(f: (s: bytes{Seq.length s == sz} -> GTot (t)))
(u: squash (make_total_constant_size_parser_precond sz t f))
(f':
(s: buffer8{B.length s == sz}
-> HST.Stack t
... | let make_total_constant_size_parser_impl
(sz: nat)
(sz' : U32.t { U32.v sz' == sz } )
(#t: Type0)
(f: ((s: bytes {Seq.length s == sz}) -> GTot (t)))
(u: squash (
make_total_constant_size_parser_precond sz t f
))
(f' : (
(s: buffer8 { B.length s == sz } ) ->
HST.Stack t
(requires (fun h -> ... | {
"file_name": "examples/miniparse/MiniParse.Impl.Combinators.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 34,
"end_line": 250,
"start_col": 0,
"start_line": 228
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"MiniParse.Spec.Combinators.fst.checked",
"MiniParse.Impl.Base.fst.checked",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.ModifiesPat",
"short_module": "M"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
sz: Prims.nat ->
sz': FStar.UInt32.t{FStar.UInt32.v sz' == sz} ->
f: (s: MiniParse.Spec.Base.bytes{FStar.Seq.Base.length s == sz} -> Prims.GTot t) ->
u161: Prims.squash (MiniParse.Spec.Combinators.make_total_constant_size_parser_precond sz t f) ->
f':
(s: MiniParse.Impl.Base.buffer8{LowStar.M... | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"FStar.UInt32.t",
"Prims.eq2",
"Prims.int",
"Prims.l_or",
"FStar.UInt.size",
"FStar.UInt32.n",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"FStar.UInt32.v",
"MiniParse.Spec.Base.bytes",
"FStar.Seq.Base.length",
"MiniParse.Spec.Base.byte",
"Prims.squash",
"MiniParse.Spec.Comb... | [] | false | false | false | false | false | let make_total_constant_size_parser_impl
(sz: nat)
(sz': U32.t{U32.v sz' == sz})
(#t: Type0)
(f: (s: bytes{Seq.length s == sz} -> GTot (t)))
(u: squash (make_total_constant_size_parser_precond sz t f))
(f':
(s: buffer8{B.length s == sz}
-> HST.Stack t
... | fun (input: buffer8) (len: U32.t{len == B.len input}) ->
if U32.lt len sz'
then None
else
let s' = B.sub input 0ul sz' in
Some (f' s', (sz' <: U32.t)) | false |
MiniParse.Impl.Combinators.fst | MiniParse.Impl.Combinators.make_constant_size_parser_impl | val make_constant_size_parser_impl
(sz: nat)
(sz': U32.t{U32.v sz' == sz})
(#t: Type0)
(f: (s: bytes{Seq.length s == sz} -> GTot (option t)))
(u: squash (make_constant_size_parser_precond sz t f))
(f':
(s: buffer8{B.length s == sz}
-> HST.Stack (option t)
... | val make_constant_size_parser_impl
(sz: nat)
(sz': U32.t{U32.v sz' == sz})
(#t: Type0)
(f: (s: bytes{Seq.length s == sz} -> GTot (option t)))
(u: squash (make_constant_size_parser_precond sz t f))
(f':
(s: buffer8{B.length s == sz}
-> HST.Stack (option t)
... | let make_constant_size_parser_impl
(sz: nat)
(sz' : U32.t { U32.v sz' == sz } )
(#t: Type0)
(f: ((s: bytes {Seq.length s == sz}) -> GTot (option t)))
(u: squash (
make_constant_size_parser_precond sz t f
))
(f' : (
(s: buffer8 { B.length s == sz } ) ->
HST.Stack (option t)
(requires (fun h... | {
"file_name": "examples/miniparse/MiniParse.Impl.Combinators.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 7,
"end_line": 225,
"start_col": 0,
"start_line": 200
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"MiniParse.Spec.Combinators.fst.checked",
"MiniParse.Impl.Base.fst.checked",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Buffer.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.f... | [
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "HST"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.ModifiesPat",
"short_module": "M"
},
{
"abbrev": true,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
sz: Prims.nat ->
sz': FStar.UInt32.t{FStar.UInt32.v sz' == sz} ->
f:
(s: MiniParse.Spec.Base.bytes{FStar.Seq.Base.length s == sz}
-> Prims.GTot (FStar.Pervasives.Native.option t)) ->
u149: Prims.squash (MiniParse.Spec.Combinators.make_constant_size_parser_precond sz t f) ->
f':
... | Prims.Tot | [
"total"
] | [] | [
"Prims.nat",
"FStar.UInt32.t",
"Prims.eq2",
"Prims.int",
"Prims.l_or",
"FStar.UInt.size",
"FStar.UInt32.n",
"Prims.b2t",
"Prims.op_GreaterThanOrEqual",
"FStar.UInt32.v",
"MiniParse.Spec.Base.bytes",
"FStar.Seq.Base.length",
"MiniParse.Spec.Base.byte",
"FStar.Pervasives.Native.option",
"P... | [] | false | false | false | false | false | let make_constant_size_parser_impl
(sz: nat)
(sz': U32.t{U32.v sz' == sz})
(#t: Type0)
(f: (s: bytes{Seq.length s == sz} -> GTot (option t)))
(u: squash (make_constant_size_parser_precond sz t f))
(f':
(s: buffer8{B.length s == sz}
-> HST.Stack (option t)
... | fun (input: buffer8) (len: U32.t{len == B.len input}) ->
if U32.lt len sz'
then None
else
let s' = B.sub input 0ul sz' in
match f' s' with
| None -> None
| Some v -> Some (v, (sz' <: U32.t)) | false |
Spec.SHA3.Test.fst | Spec.SHA3.Test.test_vectors | val test_vectors:list vec | val test_vectors:list vec | let test_vectors : list vec = [
Vec SHA3_224 test1_plaintext test1_expected_sha3_224;
Vec SHA3_256 test1_plaintext test1_expected_sha3_256;
Vec SHA3_384 test1_plaintext test1_expected_sha3_384;
Vec SHA3_512 test1_plaintext test1_expected_sha3_512;
Vec SHA3_224 test2_plaintext test2_expected_sha3_224;
Vec S... | {
"file_name": "specs/tests/Spec.SHA3.Test.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 1,
"end_line": 511,
"start_col": 0,
"start_line": 481
} | module Spec.SHA3.Test
open FStar.Mul
open Lib.IntTypes
open Lib.RawIntTypes
open Lib.Sequence
open Lib.ByteSequence
module PS = Lib.PrintSequence
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
/// Test1_SHA3
let test1_plaintext : lbytes 0 =
let l = List.Tot.map u8_from_UInt8 [] in
assert_norm (List.Tot.length... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.RawIntTypes.fsti.checked",
"Lib.PrintSequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.P... | [
{
"abbrev": true,
"full_module": "Lib.PrintSequence",
"short_module": "PS"
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_modul... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Prims.list Spec.SHA3.Test.vec | Prims.Tot | [
"total"
] | [] | [
"Prims.Cons",
"Spec.SHA3.Test.vec",
"Spec.SHA3.Test.Vec",
"Spec.SHA3.Test.SHA3_224",
"Spec.SHA3.Test.test1_plaintext",
"Spec.SHA3.Test.test1_expected_sha3_224",
"Spec.SHA3.Test.SHA3_256",
"Spec.SHA3.Test.test1_expected_sha3_256",
"Spec.SHA3.Test.SHA3_384",
"Spec.SHA3.Test.test1_expected_sha3_384",... | [] | false | false | false | true | false | let test_vectors:list vec =
| [
Vec SHA3_224 test1_plaintext test1_expected_sha3_224;
Vec SHA3_256 test1_plaintext test1_expected_sha3_256;
Vec SHA3_384 test1_plaintext test1_expected_sha3_384;
Vec SHA3_512 test1_plaintext test1_expected_sha3_512;
Vec SHA3_224 test2_plaintext test2_expected_sha3_224;
Vec SHA3_256 test2_plaintext test2_e... | false |
GC.fst | GC.valid | val valid : a: GC.abs_node -> Prims.bool | let valid a = a <> no_abs | {
"file_name": "examples/algorithms/GC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 25,
"end_line": 30,
"start_col": 0,
"start_line": 30
} | (* Copyright Microsoft Research 2015
This module is an adaptation of Chris Hawblitzel and Erez Petrank's
simplified mark-sweep collector from the POPL 2009 paper
"Automated Verification of Practical Garbage Collectors"
While this module states and proves the same properties as the paper,
its implementa... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "GC.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: GC.abs_node -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"GC.abs_node",
"Prims.op_disEquality",
"GC.no_abs",
"Prims.bool"
] | [] | false | false | false | true | false | let valid a =
| a <> no_abs | false | |
GC.fst | GC.is_mem_addr | val is_mem_addr : i: Prims.int -> Prims.bool | let is_mem_addr i = mem_lo <= i && i < mem_hi | {
"file_name": "examples/algorithms/GC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 45,
"end_line": 22,
"start_col": 0,
"start_line": 22
} | (* Copyright Microsoft Research 2015
This module is an adaptation of Chris Hawblitzel and Erez Petrank's
simplified mark-sweep collector from the POPL 2009 paper
"Automated Verification of Practical Garbage Collectors"
While this module states and proves the same properties as the paper,
its implementa... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "GC.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | i: Prims.int -> Prims.bool | Prims.Tot | [
"total"
] | [] | [
"Prims.int",
"Prims.op_AmpAmp",
"Prims.op_LessThanOrEqual",
"GC.mem_lo",
"Prims.op_LessThan",
"GC.mem_hi",
"Prims.bool"
] | [] | false | false | false | true | false | let is_mem_addr i =
| mem_lo <= i && i < mem_hi | false | |
FStar.Reflection.V2.Formula.fst | FStar.Reflection.V2.Formula.inspect_unascribe | val inspect_unascribe (t: term) : Tac term_view | val inspect_unascribe (t: term) : Tac term_view | let rec inspect_unascribe (t:term) : Tac term_view =
match inspect t with
| Tv_AscribedT t _ _ _
| Tv_AscribedC t _ _ _ ->
inspect_unascribe t
| tv -> tv | {
"file_name": "ulib/FStar.Reflection.V2.Formula.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 12,
"end_line": 37,
"start_col": 8,
"start_line": 32
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.NamedView.fsti.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Stubs.Tactics.V2.Builtins.fsti.checked",
"FStar.Stubs.Tactics.Common.fsti.checked",
"FStar.Stubs.Reflection.V2.Data.fsti.checked",
"FStar.Stub... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.NamedView",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.V2.Builtins",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.Effect",
"short_module": null
},
{
"a... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac FStar.Tactics.NamedView.term_view | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Tactics.NamedView.term",
"FStar.Pervasives.Native.option",
"Prims.bool",
"FStar.Reflection.V2.Formula.inspect_unascribe",
"FStar.Tactics.NamedView.term_view",
"FStar.Tactics.NamedView.comp",
"FStar.Tactics.NamedView.named_term_view",
"FStar.Tactics.NamedView.inspect"
] | [
"recursion"
] | false | true | false | false | false | let rec inspect_unascribe (t: term) : Tac term_view =
| match inspect t with
| Tv_AscribedT t _ _ _ | Tv_AscribedC t _ _ _ -> inspect_unascribe t
| tv -> tv | false |
GC.fst | GC.gc_post | val gc_post : a: Type -> Type | let gc_post (a:Type) = a -> gc_state -> Type0 | {
"file_name": "examples/algorithms/GC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 45,
"end_line": 86,
"start_col": 0,
"start_line": 86
} | (* Copyright Microsoft Research 2015
This module is an adaptation of Chris Hawblitzel and Erez Petrank's
simplified mark-sweep collector from the POPL 2009 paper
"Automated Verification of Practical Garbage Collectors"
While this module states and proves the same properties as the paper,
its implementa... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "GC.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Type -> Type | Prims.Tot | [
"total"
] | [] | [
"GC.gc_state"
] | [] | false | false | false | true | true | let gc_post (a: Type) =
| a -> gc_state -> Type0 | false | |
FStar.Reflection.V2.Formula.fst | FStar.Reflection.V2.Formula.collect_app' | val collect_app' (args: list argv) (t: term) : Tac (term * list argv) (decreases t) | val collect_app' (args: list argv) (t: term) : Tac (term * list argv) (decreases t) | let rec collect_app' (args : list argv) (t : term)
: Tac (term * list argv) (decreases t) =
match inspect_unascribe t with
| Tv_App l r ->
collect_app' (r::args) l
| _ -> (t, args) | {
"file_name": "ulib/FStar.Reflection.V2.Formula.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 20,
"end_line": 44,
"start_col": 8,
"start_line": 39
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.NamedView.fsti.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Stubs.Tactics.V2.Builtins.fsti.checked",
"FStar.Stubs.Tactics.Common.fsti.checked",
"FStar.Stubs.Reflection.V2.Data.fsti.checked",
"FStar.Stub... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.NamedView",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.V2.Builtins",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.Effect",
"short_module": null
},
{
"a... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | args: Prims.list FStar.Stubs.Reflection.V2.Data.argv -> t: FStar.Tactics.NamedView.term
-> FStar.Tactics.Effect.Tac
(FStar.Tactics.NamedView.term * Prims.list FStar.Stubs.Reflection.V2.Data.argv) | FStar.Tactics.Effect.Tac | [
""
] | [] | [
"Prims.list",
"FStar.Stubs.Reflection.V2.Data.argv",
"FStar.Tactics.NamedView.term",
"FStar.Reflection.V2.Formula.collect_app'",
"Prims.Cons",
"FStar.Pervasives.Native.tuple2",
"FStar.Tactics.NamedView.named_term_view",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Tactics.NamedView.term_view",
"FSta... | [
"recursion"
] | false | true | false | false | false | let rec collect_app' (args: list argv) (t: term) : Tac (term * list argv) (decreases t) =
| match inspect_unascribe t with
| Tv_App l r -> collect_app' (r :: args) l
| _ -> (t, args) | false |
GC.fst | GC.upd_map | val upd_map: #a:eqtype -> #b:Type -> (a -> Tot b) -> a -> b -> a -> Tot b | val upd_map: #a:eqtype -> #b:Type -> (a -> Tot b) -> a -> b -> a -> Tot b | let upd_map #a #b f i v = fun j -> if i=j then v else f j | {
"file_name": "examples/algorithms/GC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 57,
"end_line": 108,
"start_col": 0,
"start_line": 108
} | (* Copyright Microsoft Research 2015
This module is an adaptation of Chris Hawblitzel and Erez Petrank's
simplified mark-sweep collector from the POPL 2009 paper
"Automated Verification of Practical Garbage Collectors"
While this module states and proves the same properties as the paper,
its implementa... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "GC.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: (_: a -> b) -> i: a -> v: b -> j: a -> b | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"Prims.op_Equality",
"Prims.bool"
] | [] | false | false | false | false | false | let upd_map #a #b f i v =
| fun j -> if i = j then v else f j | false |
FStar.Reflection.V2.Formula.fst | FStar.Reflection.V2.Formula.mk_Forall | val mk_Forall (typ pred: term) : Tot formula | val mk_Forall (typ pred: term) : Tot formula | let mk_Forall (typ : term) (pred : term) : Tot formula =
let b = pack_bv ({ ppname = as_ppname "x";
sort = seal typ;
index = 0; }) in
Forall b typ (pack (Tv_App pred (pack (Tv_BVar b), Q_Explicit))) | {
"file_name": "ulib/FStar.Reflection.V2.Formula.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 68,
"end_line": 77,
"start_col": 0,
"start_line": 73
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.NamedView.fsti.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Stubs.Tactics.V2.Builtins.fsti.checked",
"FStar.Stubs.Tactics.Common.fsti.checked",
"FStar.Stubs.Reflection.V2.Data.fsti.checked",
"FStar.Stub... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.NamedView",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.V2.Builtins",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.Effect",
"short_module": null
},
{
"a... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | typ: FStar.Tactics.NamedView.term -> pred: FStar.Tactics.NamedView.term
-> FStar.Reflection.V2.Formula.formula | Prims.Tot | [
"total"
] | [] | [
"FStar.Tactics.NamedView.term",
"FStar.Reflection.V2.Formula.Forall",
"FStar.Tactics.NamedView.pack",
"FStar.Tactics.NamedView.Tv_App",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.Reflection.V2.Data.aqualv",
"FStar.Tactics.NamedView.Tv_BVar",
"FStar.Stubs.Re... | [] | false | false | false | true | false | let mk_Forall (typ pred: term) : Tot formula =
| let b = pack_bv ({ ppname = as_ppname "x"; sort = seal typ; index = 0 }) in
Forall b typ (pack (Tv_App pred (pack (Tv_BVar b), Q_Explicit))) | false |
FStar.Reflection.V2.Formula.fst | FStar.Reflection.V2.Formula.collect_app | val collect_app : t: FStar.Tactics.NamedView.term
-> FStar.Tactics.Effect.Tac
(FStar.Tactics.NamedView.term * Prims.list FStar.Stubs.Reflection.V2.Data.argv) | let collect_app = collect_app' [] | {
"file_name": "ulib/FStar.Reflection.V2.Formula.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 41,
"end_line": 46,
"start_col": 8,
"start_line": 46
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.NamedView.fsti.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Stubs.Tactics.V2.Builtins.fsti.checked",
"FStar.Stubs.Tactics.Common.fsti.checked",
"FStar.Stubs.Reflection.V2.Data.fsti.checked",
"FStar.Stub... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.NamedView",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.V2.Builtins",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.Effect",
"short_module": null
},
{
"a... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: FStar.Tactics.NamedView.term
-> FStar.Tactics.Effect.Tac
(FStar.Tactics.NamedView.term * Prims.list FStar.Stubs.Reflection.V2.Data.argv) | FStar.Tactics.Effect.Tac | [
""
] | [] | [
"FStar.Reflection.V2.Formula.collect_app'",
"Prims.Nil",
"FStar.Stubs.Reflection.V2.Data.argv"
] | [] | false | true | false | false | false | let collect_app =
| collect_app' [] | false | |
FStar.Reflection.V2.Formula.fst | FStar.Reflection.V2.Formula.mk_Exists | val mk_Exists (typ pred: term) : Tot formula | val mk_Exists (typ pred: term) : Tot formula | let mk_Exists (typ : term) (pred : term) : Tot formula =
let b = pack_bv ({ ppname = as_ppname "x";
sort = seal typ;
index = 0; }) in
Exists b typ (pack (Tv_App pred (pack (Tv_BVar b), Q_Explicit))) | {
"file_name": "ulib/FStar.Reflection.V2.Formula.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 68,
"end_line": 83,
"start_col": 0,
"start_line": 79
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.NamedView.fsti.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Stubs.Tactics.V2.Builtins.fsti.checked",
"FStar.Stubs.Tactics.Common.fsti.checked",
"FStar.Stubs.Reflection.V2.Data.fsti.checked",
"FStar.Stub... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.NamedView",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.V2.Builtins",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.Effect",
"short_module": null
},
{
"a... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | typ: FStar.Tactics.NamedView.term -> pred: FStar.Tactics.NamedView.term
-> FStar.Reflection.V2.Formula.formula | Prims.Tot | [
"total"
] | [] | [
"FStar.Tactics.NamedView.term",
"FStar.Reflection.V2.Formula.Exists",
"FStar.Tactics.NamedView.pack",
"FStar.Tactics.NamedView.Tv_App",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Stubs.Reflection.Types.term",
"FStar.Stubs.Reflection.V2.Data.aqualv",
"FStar.Tactics.NamedView.Tv_BVar",
"FStar.Stubs.Re... | [] | false | false | false | true | false | let mk_Exists (typ pred: term) : Tot formula =
| let b = pack_bv ({ ppname = as_ppname "x"; sort = seal typ; index = 0 }) in
Exists b typ (pack (Tv_App pred (pack (Tv_BVar b), Q_Explicit))) | false |
FStar.Reflection.V2.Formula.fst | FStar.Reflection.V2.Formula.term_as_formula_total | val term_as_formula_total (t: term) : Tac formula | val term_as_formula_total (t: term) : Tac formula | let term_as_formula_total (t:term) : Tac formula =
term_as_formula' (maybe_unsquash_term t) | {
"file_name": "ulib/FStar.Reflection.V2.Formula.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 44,
"end_line": 175,
"start_col": 0,
"start_line": 174
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.NamedView.fsti.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Stubs.Tactics.V2.Builtins.fsti.checked",
"FStar.Stubs.Tactics.Common.fsti.checked",
"FStar.Stubs.Reflection.V2.Data.fsti.checked",
"FStar.Stub... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.NamedView",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.V2.Builtins",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.Effect",
"short_module": null
},
{
"a... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac FStar.Reflection.V2.Formula.formula | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Tactics.NamedView.term",
"FStar.Reflection.V2.Formula.term_as_formula'",
"FStar.Reflection.V2.Derived.maybe_unsquash_term",
"FStar.Reflection.V2.Formula.formula"
] | [] | false | true | false | false | false | let term_as_formula_total (t: term) : Tac formula =
| term_as_formula' (maybe_unsquash_term t) | false |
FStar.Reflection.V2.Formula.fst | FStar.Reflection.V2.Formula.namedv_to_string | val namedv_to_string (namedv: namedv) : Tac string | val namedv_to_string (namedv: namedv) : Tac string | let namedv_to_string (namedv : namedv) : Tac string =
let namedvv = inspect_namedv namedv in
unseal namedvv.ppname | {
"file_name": "ulib/FStar.Reflection.V2.Formula.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 25,
"end_line": 220,
"start_col": 8,
"start_line": 218
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.NamedView.fsti.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Stubs.Tactics.V2.Builtins.fsti.checked",
"FStar.Stubs.Tactics.Common.fsti.checked",
"FStar.Stubs.Reflection.V2.Data.fsti.checked",
"FStar.Stub... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.NamedView",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.V2.Builtins",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.Effect",
"short_module": null
},
{
"a... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | namedv: FStar.Tactics.NamedView.namedv -> FStar.Tactics.Effect.Tac Prims.string | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Tactics.NamedView.namedv",
"FStar.Tactics.Unseal.unseal",
"Prims.string",
"FStar.Stubs.Reflection.V2.Data.__proj__Mknamedv_view__item__ppname",
"FStar.Tactics.NamedView.inspect_namedv"
] | [] | false | true | false | false | false | let namedv_to_string (namedv: namedv) : Tac string =
| let namedvv = inspect_namedv namedv in
unseal namedvv.ppname | false |
FStar.Reflection.V2.Formula.fst | FStar.Reflection.V2.Formula.formula_as_term | val formula_as_term (f: formula) : Tot term | val formula_as_term (f: formula) : Tot term | let formula_as_term (f:formula) : Tot term =
pack (formula_as_term_view f) | {
"file_name": "ulib/FStar.Reflection.V2.Formula.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 33,
"end_line": 216,
"start_col": 0,
"start_line": 215
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.NamedView.fsti.checked",
"FStar.Tactics.Effect.fsti.checked",
"FStar.Stubs.Tactics.V2.Builtins.fsti.checked",
"FStar.Stubs.Tactics.Common.fsti.checked",
"FStar.Stubs.Reflection.V2.Data.fsti.checked",
"FStar.Stub... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.NamedView",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Stubs.Tactics.V2.Builtins",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Tactics.Effect",
"short_module": null
},
{
"a... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | f: FStar.Reflection.V2.Formula.formula -> FStar.Tactics.NamedView.term | Prims.Tot | [
"total"
] | [] | [
"FStar.Reflection.V2.Formula.formula",
"FStar.Tactics.NamedView.pack",
"FStar.Reflection.V2.Formula.formula_as_term_view",
"FStar.Tactics.NamedView.term"
] | [] | false | false | false | true | false | let formula_as_term (f: formula) : Tot term =
| pack (formula_as_term_view f) | false |
GC.fst | GC.upd_map2 | val upd_map2: #a:eqtype -> #b:eqtype -> #c:Type -> (a -> b -> Tot c) -> a -> b -> c -> a -> b -> Tot c | val upd_map2: #a:eqtype -> #b:eqtype -> #c:Type -> (a -> b -> Tot c) -> a -> b -> c -> a -> b -> Tot c | let upd_map2 #a #b #c m i f v = fun j g -> if (i,f)=(j,g) then v else m j g | {
"file_name": "examples/algorithms/GC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 75,
"end_line": 111,
"start_col": 0,
"start_line": 111
} | (* Copyright Microsoft Research 2015
This module is an adaptation of Chris Hawblitzel and Erez Petrank's
simplified mark-sweep collector from the POPL 2009 paper
"Automated Verification of Practical Garbage Collectors"
While this module states and proves the same properties as the paper,
its implementa... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "GC.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | m: (_: a -> _: b -> c) -> i: a -> f: b -> v: c -> j: a -> g: b -> c | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"Prims.op_Equality",
"FStar.Pervasives.Native.tuple2",
"FStar.Pervasives.Native.Mktuple2",
"Prims.bool"
] | [] | false | false | false | false | false | let upd_map2 #a #b #c m i f v =
| fun j g -> if (i, f) = (j, g) then v else m j g | false |
GC.fst | GC.initialize | val initialize: unit -> GC unit
(requires (fun g -> True))
(ensures (fun g _ g' -> mutator_inv g')) | val initialize: unit -> GC unit
(requires (fun g -> True))
(ensures (fun g _ g' -> mutator_inv g')) | let initialize () =
let rec aux_init : ptr:mem_addr -> GC unit
(requires (init_invariant ptr))
(ensures (fun gc _ gc' -> mutator_inv gc'))
= fun ptr ->
let gc = get () in
let gc' = {gc with
color=upd_map gc.color ptr Un... | {
"file_name": "examples/algorithms/GC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 17,
"end_line": 128,
"start_col": 0,
"start_line": 116
} | (* Copyright Microsoft Research 2015
This module is an adaptation of Chris Hawblitzel and Erez Petrank's
simplified mark-sweep collector from the POPL 2009 paper
"Automated Verification of Practical Garbage Collectors"
While this module states and proves the same properties as the paper,
its implementa... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "GC.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: Prims.unit -> GC.GC Prims.unit | GC.GC | [] | [] | [
"Prims.unit",
"GC.mem_lo",
"GC.mem_addr",
"GC.init_invariant",
"GC.gc_state",
"GC.mutator_inv",
"Prims.op_LessThan",
"Prims.op_Addition",
"GC.mem_hi",
"Prims.bool",
"GC.set",
"GC.Mkgc_state",
"GC.upd_map",
"GC.abs_node",
"GC.__proj__Mkgc_state__item__to_abs",
"GC.no_abs",
"GC.color",... | [] | false | true | false | false | false | let initialize () =
| let rec aux_init: ptr: mem_addr
-> GC unit (requires (init_invariant ptr)) (ensures (fun gc _ gc' -> mutator_inv gc')) =
fun ptr ->
let gc = get () in
let gc' =
{ gc with color = upd_map gc.color ptr Unalloc; to_abs = upd_map gc.to_abs ptr no_abs }
in
set gc';
if ptr + 1 < mem_hi then aux_... | false |
GC.fst | GC.write_field | val write_field: ptr:mem_addr -> f:field -> v:mem_addr -> GCMut unit
(requires (fun gc -> ptr_lifts gc ptr /\ ptr_lifts gc v))
(ensures (fun gc _ gc' -> gc'.color==gc.color)) | val write_field: ptr:mem_addr -> f:field -> v:mem_addr -> GCMut unit
(requires (fun gc -> ptr_lifts gc ptr /\ ptr_lifts gc v))
(ensures (fun gc _ gc' -> gc'.color==gc.color)) | let write_field ptr f v =
cut (trigger ptr /\ trigger v);
let gc = get () in
let gc' = {gc with
fields=upd_map gc.fields (ptr, f) v;
abs_fields=upd_map gc.abs_fields (gc.to_abs ptr, f) (gc.to_abs v);
} in
set gc' | {
"file_name": "examples/algorithms/GC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 9,
"end_line": 149,
"start_col": 0,
"start_line": 142
} | (* Copyright Microsoft Research 2015
This module is an adaptation of Chris Hawblitzel and Erez Petrank's
simplified mark-sweep collector from the POPL 2009 paper
"Automated Verification of Practical Garbage Collectors"
While this module states and proves the same properties as the paper,
its implementa... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "GC.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ptr: GC.mem_addr -> f: GC.field -> v: GC.mem_addr -> GC.GCMut Prims.unit | GC.GCMut | [] | [] | [
"GC.mem_addr",
"GC.field",
"GC.set",
"Prims.unit",
"GC.gc_state",
"GC.Mkgc_state",
"GC.__proj__Mkgc_state__item__to_abs",
"GC.__proj__Mkgc_state__item__color",
"GC.upd_map",
"FStar.Pervasives.Native.tuple2",
"GC.abs_node",
"GC.__proj__Mkgc_state__item__abs_fields",
"FStar.Pervasives.Native.M... | [] | false | true | false | false | false | let write_field ptr f v =
| cut (trigger ptr /\ trigger v);
let gc = get () in
let gc' =
{
gc with
fields = upd_map gc.fields (ptr, f) v;
abs_fields = upd_map gc.abs_fields (gc.to_abs ptr, f) (gc.to_abs v)
}
in
set gc' | false |
GC.fst | GC.test2 | val test2 : old: GC.gc_state -> Prims.unit | let test2 old = assert (gc_inv old /\ (forall i. old.color i <> Gray) ==> sweep_aux_inv old mem_lo old) | {
"file_name": "examples/algorithms/GC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 103,
"end_line": 194,
"start_col": 0,
"start_line": 194
} | (* Copyright Microsoft Research 2015
This module is an adaptation of Chris Hawblitzel and Erez Petrank's
simplified mark-sweep collector from the POPL 2009 paper
"Automated Verification of Practical Garbage Collectors"
While this module states and proves the same properties as the paper,
its implementa... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "GC.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | old: GC.gc_state -> Prims.unit | Prims.Tot | [
"total"
] | [] | [
"GC.gc_state",
"Prims._assert",
"Prims.l_imp",
"Prims.l_and",
"GC.gc_inv",
"Prims.l_Forall",
"GC.mem_addr",
"Prims.b2t",
"Prims.op_disEquality",
"GC.color",
"GC.__proj__Mkgc_state__item__color",
"GC.Gray",
"GC.sweep_aux_inv",
"GC.mem_lo",
"Prims.unit"
] | [] | false | false | false | true | false | let test2 old =
| assert (gc_inv old /\ (forall i. old.color i <> Gray) ==> sweep_aux_inv old mem_lo old) | false | |
GC.fst | GC.read_field | val read_field : ptr:mem_addr -> f:field -> GCMut mem_addr
(requires (fun gc -> ptr_lifts_to gc ptr (gc.to_abs ptr)))
(ensures (fun gc i gc' -> gc==gc'
/\ ptr_lifts_to gc' i (gc.abs_fields (gc.to_abs ptr, f)))) | val read_field : ptr:mem_addr -> f:field -> GCMut mem_addr
(requires (fun gc -> ptr_lifts_to gc ptr (gc.to_abs ptr)))
(ensures (fun gc i gc' -> gc==gc'
/\ ptr_lifts_to gc' i (gc.abs_fields (gc.to_abs ptr, f)))) | let read_field ptr f =
cut (trigger ptr);
let gc = get () in
gc.fields (ptr, f) | {
"file_name": "examples/algorithms/GC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 20,
"end_line": 137,
"start_col": 0,
"start_line": 134
} | (* Copyright Microsoft Research 2015
This module is an adaptation of Chris Hawblitzel and Erez Petrank's
simplified mark-sweep collector from the POPL 2009 paper
"Automated Verification of Practical Garbage Collectors"
While this module states and proves the same properties as the paper,
its implementa... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "GC.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ptr: GC.mem_addr -> f: GC.field -> GC.GCMut GC.mem_addr | GC.GCMut | [] | [] | [
"GC.mem_addr",
"GC.field",
"GC.__proj__Mkgc_state__item__fields",
"FStar.Pervasives.Native.Mktuple2",
"GC.gc_state",
"GC.get",
"Prims.unit",
"Prims.cut",
"GC.trigger"
] | [] | false | true | false | false | false | let read_field ptr f =
| cut (trigger ptr);
let gc = get () in
gc.fields (ptr, f) | false |
GC.fst | GC.test1 | val test1 : old: GC.gc_state -> n: GC.gc_state -> Prims.unit | let test1 old n = assert (sweep_aux_inv old mem_hi n
==> mutator_inv n) | {
"file_name": "examples/algorithms/GC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 45,
"end_line": 192,
"start_col": 0,
"start_line": 191
} | (* Copyright Microsoft Research 2015
This module is an adaptation of Chris Hawblitzel and Erez Petrank's
simplified mark-sweep collector from the POPL 2009 paper
"Automated Verification of Practical Garbage Collectors"
While this module states and proves the same properties as the paper,
its implementa... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "GC.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | old: GC.gc_state -> n: GC.gc_state -> Prims.unit | Prims.Tot | [
"total"
] | [] | [
"GC.gc_state",
"Prims._assert",
"Prims.l_imp",
"GC.sweep_aux_inv",
"GC.mem_hi",
"GC.mutator_inv",
"Prims.unit"
] | [] | false | false | false | true | false | let test1 old n =
| assert (sweep_aux_inv old mem_hi n ==> mutator_inv n) | false | |
GC.fst | GC.gc | val gc: root:mem_addr -> GCMut unit
(requires (fun gc -> root<>0 ==> ptr_lifts gc root))
(ensures (fun gc _ gc' -> (exists c a. gc' == {gc with color=c; to_abs=a})
/\ (root<>0 ==> ptr_lifts gc' root)
/\ (forall (i:mem_addr). {:pattern (trigger i)}
... | val gc: root:mem_addr -> GCMut unit
(requires (fun gc -> root<>0 ==> ptr_lifts gc root))
(ensures (fun gc _ gc' -> (exists c a. gc' == {gc with color=c; to_abs=a})
/\ (root<>0 ==> ptr_lifts gc' root)
/\ (forall (i:mem_addr). {:pattern (trigger i)}
... | let gc root =
cut (trigger root);
if (root <> 0)
then mark root;
sweep () | {
"file_name": "examples/algorithms/GC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 10,
"end_line": 247,
"start_col": 0,
"start_line": 243
} | (* Copyright Microsoft Research 2015
This module is an adaptation of Chris Hawblitzel and Erez Petrank's
simplified mark-sweep collector from the POPL 2009 paper
"Automated Verification of Practical Garbage Collectors"
While this module states and proves the same properties as the paper,
its implementa... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "GC.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | root: GC.mem_addr -> GC.GCMut Prims.unit | GC.GCMut | [] | [] | [
"GC.mem_addr",
"GC.sweep",
"Prims.unit",
"Prims.op_disEquality",
"Prims.int",
"GC.mark",
"Prims.bool",
"Prims.cut",
"GC.trigger"
] | [] | false | true | false | false | false | let gc root =
| cut (trigger root);
if (root <> 0) then mark root;
sweep () | false |
GC.fst | GC.mark | val mark : ptr:mem_addr -> GC unit
(requires (fun gc -> gc_inv gc /\ trigger ptr /\ ptr_lifts gc ptr))
(ensures (fun gc _ gc' -> gc_inv gc'
/\ (forall (i:mem_addr).{:pattern (trigger i)}
trigger i ==>
(gc'.color i <> Blac... | val mark : ptr:mem_addr -> GC unit
(requires (fun gc -> gc_inv gc /\ trigger ptr /\ ptr_lifts gc ptr))
(ensures (fun gc _ gc' -> gc_inv gc'
/\ (forall (i:mem_addr).{:pattern (trigger i)}
trigger i ==>
(gc'.color i <> Blac... | let rec mark ptr =
let st = get () in
if st.color ptr = White
then begin
let st' = {st with color=upd_map st.color ptr Gray} in
set st';
mark (st'.fields (ptr, F1));
mark (st'.fields (ptr, F2));
let st'' = get () in
set ({st'' with color = upd_map st''.color ptr Black})
end | {
"file_name": "examples/algorithms/GC.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 5,
"end_line": 170,
"start_col": 0,
"start_line": 160
} | (* Copyright Microsoft Research 2015
This module is an adaptation of Chris Hawblitzel and Erez Petrank's
simplified mark-sweep collector from the POPL 2009 paper
"Automated Verification of Practical Garbage Collectors"
While this module states and proves the same properties as the paper,
its implementa... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "GC.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar",
"short_module": null
}
] | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | ptr: GC.mem_addr -> GC.GC Prims.unit | GC.GC | [] | [] | [
"GC.mem_addr",
"Prims.op_Equality",
"GC.color",
"GC.__proj__Mkgc_state__item__color",
"GC.White",
"GC.set",
"GC.Mkgc_state",
"GC.__proj__Mkgc_state__item__to_abs",
"GC.upd_map",
"GC.Black",
"GC.__proj__Mkgc_state__item__abs_fields",
"GC.__proj__Mkgc_state__item__fields",
"Prims.unit",
"GC.... | [
"recursion"
] | false | true | false | false | false | let rec mark ptr =
| let st = get () in
if st.color ptr = White
then
let st' = { st with color = upd_map st.color ptr Gray } in
set st';
mark (st'.fields (ptr, F1));
mark (st'.fields (ptr, F2));
let st'' = get () in
set ({ st'' with color = upd_map st''.color ptr Black }) | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.