file_name stringlengths 5 52 | name stringlengths 4 95 | original_source_type stringlengths 0 23k | source_type stringlengths 9 23k | source_definition stringlengths 9 57.9k | source dict | source_range dict | file_context stringlengths 0 721k | dependencies dict | opens_and_abbrevs listlengths 2 94 | vconfig dict | interleaved bool 1
class | verbose_type stringlengths 1 7.42k | effect stringclasses 118
values | effect_flags listlengths 0 2 | mutual_with listlengths 0 11 | ideal_premises listlengths 0 236 | proof_features listlengths 0 1 | is_simple_lemma bool 2
classes | is_div bool 2
classes | is_proof bool 2
classes | is_simply_typed bool 2
classes | is_type bool 2
classes | partial_definition stringlengths 5 3.99k | completed_definiton stringlengths 1 1.63M | isa_cross_project_example bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Vale.X64.MemoryAdapters.fsti | Vale.X64.MemoryAdapters.as_vale_stack | val as_vale_stack (st: BS.machine_stack) : SI.vale_stack | val as_vale_stack (st: BS.machine_stack) : SI.vale_stack | let as_vale_stack (st:BS.machine_stack)
: SI.vale_stack
= IB.coerce st | {
"file_name": "vale/code/arch/x64/interop/Vale.X64.MemoryAdapters.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 16,
"end_line": 44,
"start_col": 0,
"start_line": 42
} | module Vale.X64.MemoryAdapters
open FStar.Mul
open Vale.Interop.Base
open Vale.Arch.HeapTypes_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Arch.MachineHeap_s
module BS = Vale.X64.Machine_Semantics_s
module BV = LowStar.BufferView
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module SI = Vale.X64.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Lib.Map16.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Ar... | [
{
"abbrev": false,
"full_module": "Vale.Arch.Heap",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.HeapImpl",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": true,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | st: Vale.X64.Machine_Semantics_s.machine_stack -> Vale.X64.Stack_i.vale_stack | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.Machine_Semantics_s.machine_stack",
"Vale.Interop.Base.coerce",
"Vale.X64.Stack_i.vale_stack"
] | [] | false | false | false | true | false | let as_vale_stack (st: BS.machine_stack) : SI.vale_stack =
| IB.coerce st | false |
Vale.X64.MemoryAdapters.fsti | Vale.X64.MemoryAdapters.coerce | val coerce (#b #a: Type) (x: a{a == b}) : b | val coerce (#b #a: Type) (x: a{a == b}) : b | let coerce (#b #a:Type) (x:a{a == b}) : b = x | {
"file_name": "vale/code/arch/x64/interop/Vale.X64.MemoryAdapters.fsti",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 52,
"end_line": 25,
"start_col": 7,
"start_line": 25
} | module Vale.X64.MemoryAdapters
open FStar.Mul
open Vale.Interop.Base
open Vale.Arch.HeapTypes_s
open Vale.Arch.HeapImpl
open Vale.Arch.Heap
open Vale.Arch.MachineHeap_s
module BS = Vale.X64.Machine_Semantics_s
module BV = LowStar.BufferView
module HS = FStar.HyperStack
module ME = Vale.X64.Memory
module SI = Vale.X64.... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.Stack_i.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Decls.fsti.checked",
"Vale.Lib.Map16.fsti.checked",
"Vale.Interop.Base.fst.checked",
"Vale.Ar... | [
{
"abbrev": false,
"full_module": "Vale.Arch.Heap",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Arch.HeapImpl",
"short_module": null
},
{
"abbrev": true,
"full_module": "LowStar.BufferView.Down",
"short_module": "DV"
},
{
"abbrev": true,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: a{a == b} -> b | Prims.Tot | [
"total"
] | [] | [
"Prims.eq2"
] | [] | false | false | false | false | false | let coerce (#b #a: Type) (x: a{a == b}) : b =
| x | false |
Hacl.Impl.Frodo.KEM.Encaps.fst | Hacl.Impl.Frodo.KEM.Encaps.frodo_mul_add_sa_plus_e | val frodo_mul_add_sa_plus_e:
a:FP.frodo_alg
-> gen_a:FP.frodo_gen_a{is_supported gen_a}
-> seed_a:lbytes bytes_seed_a
-> sp_matrix:matrix_t params_nbar (params_n a)
-> ep_matrix:matrix_t params_nbar (params_n a)
-> bp_matrix:matrix_t params_nbar (params_n a)
-> Stack unit
(requires fun h ->
li... | val frodo_mul_add_sa_plus_e:
a:FP.frodo_alg
-> gen_a:FP.frodo_gen_a{is_supported gen_a}
-> seed_a:lbytes bytes_seed_a
-> sp_matrix:matrix_t params_nbar (params_n a)
-> ep_matrix:matrix_t params_nbar (params_n a)
-> bp_matrix:matrix_t params_nbar (params_n a)
-> Stack unit
(requires fun h ->
li... | let frodo_mul_add_sa_plus_e a gen_a seed_a sp_matrix ep_matrix bp_matrix =
push_frame ();
let a_matrix = matrix_create (params_n a) (params_n a) in
frodo_gen_matrix gen_a (params_n a) seed_a a_matrix;
matrix_mul sp_matrix a_matrix bp_matrix;
matrix_add bp_matrix ep_matrix;
pop_frame () | {
"file_name": "code/frodo/Hacl.Impl.Frodo.KEM.Encaps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 53,
"start_col": 0,
"start_line": 47
} | module Hacl.Impl.Frodo.KEM.Encaps
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open LowStar.Buffer
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.Matrix
open Hacl.Impl.Frodo.Params
open Hacl.Impl.Frodo.KEM
open Hacl.Impl.Frodo.Encode
open Hacl.Impl.Frodo.Pack
open Hacl.Impl.Frodo.Sample
open Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.Matrix.fst.checked",
"Spec.Frodo.Params.fst.checked",
"Spec.Frodo.KEM.Encaps.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.Frodo.KEM.KeyGen",
"short_module": "KG"
},
{
"abbrev": true,
"full_module": "Spec.Matrix",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.Encaps",
"short_module": "S"
},
{
"abbrev": true,
"fu... | {
"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.Frodo.Params.frodo_alg ->
gen_a: Spec.Frodo.Params.frodo_gen_a{Hacl.Impl.Frodo.Params.is_supported gen_a} ->
seed_a: Hacl.Impl.Matrix.lbytes Hacl.Impl.Frodo.Params.bytes_seed_a ->
sp_matrix:
Hacl.Impl.Matrix.matrix_t Hacl.Impl.Frodo.Params.params_nbar
(Hacl.Impl.Frodo.Params.param... | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Frodo.Params.frodo_alg",
"Spec.Frodo.Params.frodo_gen_a",
"Prims.b2t",
"Hacl.Impl.Frodo.Params.is_supported",
"Hacl.Impl.Matrix.lbytes",
"Hacl.Impl.Frodo.Params.bytes_seed_a",
"Hacl.Impl.Matrix.matrix_t",
"Hacl.Impl.Frodo.Params.params_nbar",
"Hacl.Impl.Frodo.Params.params_n",
"FStar.HyperSt... | [] | false | true | false | false | false | let frodo_mul_add_sa_plus_e a gen_a seed_a sp_matrix ep_matrix bp_matrix =
| push_frame ();
let a_matrix = matrix_create (params_n a) (params_n a) in
frodo_gen_matrix gen_a (params_n a) seed_a a_matrix;
matrix_mul sp_matrix a_matrix bp_matrix;
matrix_add bp_matrix ep_matrix;
pop_frame () | false |
Hacl.Impl.Ed25519.Ladder.fst | Hacl.Impl.Ed25519.Ladder.point_mul_g_mk_q1234 | val point_mul_g_mk_q1234: out:point -> bscalar:lbuffer uint64 4ul -> q1:point ->
Stack unit
(requires fun h ->
live h bscalar /\ live h out /\ live h q1 /\
disjoint out bscalar /\ disjoint out q1 /\
BD.bn_v h bscalar < pow2 256 /\
F51.linv (as_seq h q1) /\ refl (as_seq h q1) == g_aff)
(ensures fu... | val point_mul_g_mk_q1234: out:point -> bscalar:lbuffer uint64 4ul -> q1:point ->
Stack unit
(requires fun h ->
live h bscalar /\ live h out /\ live h q1 /\
disjoint out bscalar /\ disjoint out q1 /\
BD.bn_v h bscalar < pow2 256 /\
F51.linv (as_seq h q1) /\ refl (as_seq h q1) == g_aff)
(ensures fu... | let point_mul_g_mk_q1234 out bscalar q1 =
push_frame ();
let q2 = mk_ext_g_pow2_64 () in
let q3 = mk_ext_g_pow2_128 () in
let q4 = mk_ext_g_pow2_192 () in
ext_g_pow2_64_lseq_lemma ();
ext_g_pow2_128_lseq_lemma ();
ext_g_pow2_192_lseq_lemma ();
point_mul_g_noalloc out bscalar q1 q2 q3 q4;
pop_frame () | {
"file_name": "code/ed25519/Hacl.Impl.Ed25519.Ladder.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 215,
"start_col": 0,
"start_line": 206
} | module Hacl.Impl.Ed25519.Ladder
module ST = FStar.HyperStack.ST
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum25519
module F51 = Hacl.Impl.Ed25519.Field51
module BSeq = Lib.ByteSequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module BE = Hacl.Impl... | {
"checked_file": "/",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"Spec.Ed25519.Lemmas.fsti.checked",
"Spec.Ed25519.fst.checked",
"prims.fst.checked",
"LowStar.Ignore.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Lib.ByteSequence.fsti.chec... | [
{
"abbrev": false,
"full_module": "Hacl.Ed25519.PrecompTable",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Ed25519.Group",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Ed25519.PointConstants",
"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 |
out: Hacl.Bignum25519.point ->
bscalar: Lib.Buffer.lbuffer Lib.IntTypes.uint64 4ul ->
q1: Hacl.Bignum25519.point
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Hacl.Bignum25519.point",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint64",
"FStar.UInt32.__uint_to_t",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Hacl.Impl.Ed25519.Ladder.point_mul_g_noalloc",
"Hacl.Ed25519.PrecompTable.ext_g_pow2_192_lseq_lemma",
"Hacl.Ed25519.PrecompTable.ext_g_pow2_128_lseq_lemm... | [] | false | true | false | false | false | let point_mul_g_mk_q1234 out bscalar q1 =
| push_frame ();
let q2 = mk_ext_g_pow2_64 () in
let q3 = mk_ext_g_pow2_128 () in
let q4 = mk_ext_g_pow2_192 () in
ext_g_pow2_64_lseq_lemma ();
ext_g_pow2_128_lseq_lemma ();
ext_g_pow2_192_lseq_lemma ();
point_mul_g_noalloc out bscalar q1 q2 q3 q4;
pop_frame () | false |
SteelLoops.fst | SteelLoops.sum_to_n_while | val sum_to_n_while (r: ref UInt32.t) : SteelT unit (vptr r) (fun _ -> vptr r) | val sum_to_n_while (r: ref UInt32.t) : SteelT unit (vptr r) (fun _ -> vptr r) | let sum_to_n_while (r:ref UInt32.t) : SteelT unit (vptr r) (fun _ -> vptr r) =
intro_exists (Ghost.hide true) (fun _ -> vptr r);
while_loop
(fun _ -> vptr r)
(fun _ ->
let _ = witness_exists () in
let n = read r in
FStar.UInt32.lt n 10ul
)
(fun _ ->
let n = read r in
wr... | {
"file_name": "share/steel/tests/krml/SteelLoops.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 5,
"end_line": 39,
"start_col": 0,
"start_line": 26
} | module SteelLoops
open Steel.Effect.Atomic
open Steel.Effect
open Steel.Reference
open Steel.Loops
let sum_to_n_for (r:ref UInt32.t) : SteelT unit (vptr r) (fun _ -> vptr r) =
for_loop
0sz
10sz
(fun _ -> vptr r)
(fun _ -> let x = read r in write r (x `FStar.UInt32.add_mod` 1ul))
let sum_to_n_for_2 ... | {
"checked_file": "/",
"dependencies": [
"Steel.Reference.fsti.checked",
"Steel.Loops.fsti.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.SizeT.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FS... | [
{
"abbrev": false,
"full_module": "Steel.Loops",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"full_module": "S... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: Steel.Reference.ref FStar.UInt32.t -> Steel.Effect.SteelT Prims.unit | Steel.Effect.SteelT | [] | [] | [
"Steel.Reference.ref",
"FStar.UInt32.t",
"Steel.Loops.while_loop",
"FStar.Ghost.erased",
"Prims.bool",
"Steel.Reference.vptr",
"Steel.Effect.Common.vprop",
"Prims.unit",
"FStar.UInt32.lt",
"FStar.UInt32.__uint_to_t",
"Steel.Reference.read",
"Steel.Effect.Atomic.witness_exists",
"FStar.Ghost.... | [] | false | true | false | false | false | let sum_to_n_while (r: ref UInt32.t) : SteelT unit (vptr r) (fun _ -> vptr r) =
| intro_exists (Ghost.hide true) (fun _ -> vptr r);
while_loop (fun _ -> vptr r)
(fun _ ->
let _ = witness_exists () in
let n = read r in
FStar.UInt32.lt n 10ul)
(fun _ ->
let n = read r in
write r (n `FStar.UInt32.add_mod` 1ul);
intro_exists (Ghost.hide true) (fun _ -> vptr r)) | false |
Hacl.Impl.Frodo.KEM.Encaps.fst | Hacl.Impl.Frodo.KEM.Encaps.crypto_kem_enc_ss | val crypto_kem_enc_ss:
a:FP.frodo_alg
-> k:lbytes (crypto_bytes a)
-> ct:lbytes (crypto_ciphertextbytes a)
-> ss:lbytes (crypto_bytes a)
-> Stack unit
(requires fun h ->
live h k /\ live h ct /\ live h ss /\
disjoint ct ss /\ disjoint k ct /\ disjoint k ss)
(ensures fun h0 _ h1 -> modif... | val crypto_kem_enc_ss:
a:FP.frodo_alg
-> k:lbytes (crypto_bytes a)
-> ct:lbytes (crypto_ciphertextbytes a)
-> ss:lbytes (crypto_bytes a)
-> Stack unit
(requires fun h ->
live h k /\ live h ct /\ live h ss /\
disjoint ct ss /\ disjoint k ct /\ disjoint k ss)
(ensures fun h0 _ h1 -> modif... | let crypto_kem_enc_ss a k ct ss =
push_frame ();
let ss_init_len = crypto_ciphertextbytes a +! crypto_bytes a in
let shake_input_ss = create ss_init_len (u8 0) in
concat2 (crypto_ciphertextbytes a) ct (crypto_bytes a) k shake_input_ss;
frodo_shake a ss_init_len shake_input_ss (crypto_bytes a) ss;
clear_word... | {
"file_name": "code/frodo/Hacl.Impl.Frodo.KEM.Encaps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 304,
"start_col": 0,
"start_line": 297
} | module Hacl.Impl.Frodo.KEM.Encaps
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open LowStar.Buffer
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.Matrix
open Hacl.Impl.Frodo.Params
open Hacl.Impl.Frodo.KEM
open Hacl.Impl.Frodo.Encode
open Hacl.Impl.Frodo.Pack
open Hacl.Impl.Frodo.Sample
open Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.Matrix.fst.checked",
"Spec.Frodo.Params.fst.checked",
"Spec.Frodo.KEM.Encaps.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.Frodo.KEM.KeyGen",
"short_module": "KG"
},
{
"abbrev": true,
"full_module": "Spec.Matrix",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.Encaps",
"short_module": "S"
},
{
"abbrev": true,
"fu... | {
"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.Frodo.Params.frodo_alg ->
k: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_bytes a) ->
ct: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_ciphertextbytes a) ->
ss: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_bytes a)
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Frodo.Params.frodo_alg",
"Hacl.Impl.Matrix.lbytes",
"Hacl.Impl.Frodo.Params.crypto_bytes",
"Hacl.Impl.Frodo.Params.crypto_ciphertextbytes",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Hacl.Impl.Frodo.KEM.clear_words_u8",
"Hacl.Impl.Frodo.Params.frodo_shake",
"Lib.Buffer.concat2",
"Lib.Bu... | [] | false | true | false | false | false | let crypto_kem_enc_ss a k ct ss =
| push_frame ();
let ss_init_len = crypto_ciphertextbytes a +! crypto_bytes a in
let shake_input_ss = create ss_init_len (u8 0) in
concat2 (crypto_ciphertextbytes a) ct (crypto_bytes a) k shake_input_ss;
frodo_shake a ss_init_len shake_input_ss (crypto_bytes a) ss;
clear_words_u8 shake_input_ss;
pop_frame () | false |
LowParse.Repr.fsti | LowParse.Repr.strong_parser_kind | val strong_parser_kind : Type0 | let strong_parser_kind =
k:LP.parser_kind{
LP.(k.parser_kind_subkind == Some ParserStrong)
} | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 5,
"end_line": 49,
"start_col": 0,
"start_line": 46
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Type0 | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"LowParse.Spec.Base.parser_subkind",
"LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind",
"FStar.Pervasives.Native.Some",
"LowParse.Spec.Base.ParserStrong"
] | [] | false | false | false | true | true | let strong_parser_kind =
| k: LP.parser_kind{let open LP in k.parser_kind_subkind == Some ParserStrong} | false | |
LowParse.Repr.fsti | LowParse.Repr.preorder | val preorder : c: LowStar.ConstBuffer.const_buffer LowParse.Bytes.byte
-> FStar.Preorder.preorder (FStar.Seq.Base.seq LowParse.Bytes.byte) | let preorder (c:C.const_buffer LP.byte) = C.qbuf_pre (C.as_qbuf c) | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 66,
"end_line": 51,
"start_col": 0,
"start_line": 51
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | c: LowStar.ConstBuffer.const_buffer LowParse.Bytes.byte
-> FStar.Preorder.preorder (FStar.Seq.Base.seq LowParse.Bytes.byte) | Prims.Tot | [
"total"
] | [] | [
"LowStar.ConstBuffer.const_buffer",
"LowParse.Bytes.byte",
"LowStar.ConstBuffer.qbuf_pre",
"LowStar.ConstBuffer.as_qbuf",
"FStar.Preorder.preorder",
"FStar.Seq.Base.seq"
] | [] | false | false | false | true | false | let preorder (c: C.const_buffer LP.byte) =
| C.qbuf_pre (C.as_qbuf c) | false | |
Hacl.Impl.Frodo.KEM.Encaps.fst | Hacl.Impl.Frodo.KEM.Encaps.frodo_mul_add_sb_plus_e | val frodo_mul_add_sb_plus_e:
a:FP.frodo_alg
-> b:lbytes (publicmatrixbytes_len a)
-> sp_matrix:matrix_t params_nbar (params_n a)
-> epp_matrix:matrix_t params_nbar params_nbar
-> v_matrix:matrix_t params_nbar params_nbar
-> Stack unit
(requires fun h ->
live h b /\ live h epp_matrix /\ live h v_... | val frodo_mul_add_sb_plus_e:
a:FP.frodo_alg
-> b:lbytes (publicmatrixbytes_len a)
-> sp_matrix:matrix_t params_nbar (params_n a)
-> epp_matrix:matrix_t params_nbar params_nbar
-> v_matrix:matrix_t params_nbar params_nbar
-> Stack unit
(requires fun h ->
live h b /\ live h epp_matrix /\ live h v_... | let frodo_mul_add_sb_plus_e a b sp_matrix epp_matrix v_matrix =
push_frame ();
let b_matrix = matrix_create (params_n a) params_nbar in
frodo_unpack (params_n a) params_nbar (params_logq a) b b_matrix;
matrix_mul sp_matrix b_matrix v_matrix;
matrix_add v_matrix epp_matrix;
pop_frame () | {
"file_name": "code/frodo/Hacl.Impl.Frodo.KEM.Encaps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 101,
"start_col": 0,
"start_line": 95
} | module Hacl.Impl.Frodo.KEM.Encaps
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open LowStar.Buffer
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.Matrix
open Hacl.Impl.Frodo.Params
open Hacl.Impl.Frodo.KEM
open Hacl.Impl.Frodo.Encode
open Hacl.Impl.Frodo.Pack
open Hacl.Impl.Frodo.Sample
open Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.Matrix.fst.checked",
"Spec.Frodo.Params.fst.checked",
"Spec.Frodo.KEM.Encaps.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.Frodo.KEM.KeyGen",
"short_module": "KG"
},
{
"abbrev": true,
"full_module": "Spec.Matrix",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.Encaps",
"short_module": "S"
},
{
"abbrev": true,
"fu... | {
"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.Frodo.Params.frodo_alg ->
b: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.publicmatrixbytes_len a) ->
sp_matrix:
Hacl.Impl.Matrix.matrix_t Hacl.Impl.Frodo.Params.params_nbar
(Hacl.Impl.Frodo.Params.params_n a) ->
epp_matrix:
Hacl.Impl.Matrix.matrix_t Hacl.Impl.Frodo.Param... | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Frodo.Params.frodo_alg",
"Hacl.Impl.Matrix.lbytes",
"Hacl.Impl.Frodo.Params.publicmatrixbytes_len",
"Hacl.Impl.Matrix.matrix_t",
"Hacl.Impl.Frodo.Params.params_nbar",
"Hacl.Impl.Frodo.Params.params_n",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Hacl.Impl.Matrix.matrix_add",
"Hacl.Impl.M... | [] | false | true | false | false | false | let frodo_mul_add_sb_plus_e a b sp_matrix epp_matrix v_matrix =
| push_frame ();
let b_matrix = matrix_create (params_n a) params_nbar in
frodo_unpack (params_n a) params_nbar (params_logq a) b b_matrix;
matrix_mul sp_matrix b_matrix v_matrix;
matrix_add v_matrix epp_matrix;
pop_frame () | false |
LowParse.Repr.fsti | LowParse.Repr.to_slice | val to_slice (x: const_slice) : Tot (LP.slice (preorder x.base) (preorder x.base)) | val to_slice (x: const_slice) : Tot (LP.slice (preorder x.base) (preorder x.base)) | let to_slice (x:const_slice)
: Tot (LP.slice (preorder x.base) (preorder x.base))
= slice_of_const_buffer x.base x.slice_len | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 44,
"end_line": 84,
"start_col": 0,
"start_line": 82
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: LowParse.Repr.const_slice
-> LowParse.Slice.slice (LowParse.Repr.preorder (MkSlice?.base x))
(LowParse.Repr.preorder (MkSlice?.base x)) | Prims.Tot | [
"total"
] | [] | [
"LowParse.Repr.const_slice",
"LowParse.Repr.slice_of_const_buffer",
"LowParse.Repr.__proj__MkSlice__item__base",
"LowParse.Repr.__proj__MkSlice__item__slice_len",
"LowParse.Slice.slice",
"LowParse.Repr.preorder"
] | [] | false | false | false | false | false | let to_slice (x: const_slice) : Tot (LP.slice (preorder x.base) (preorder x.base)) =
| slice_of_const_buffer x.base x.slice_len | false |
Vale.Lib.BufferViewHelpers.fst | Vale.Lib.BufferViewHelpers.lemma_uv_equal | val lemma_uv_equal (#src #dst: Type) (view: UV.view src dst) (b: DV.buffer src) (h0 h1: HS.mem)
: Lemma (requires (DV.length b % UV.View?.n view == 0 /\ DV.as_seq h0 b == DV.as_seq h1 b))
(ensures
(let bv = UV.mk_buffer b view in
UV.as_seq h0 bv == UV.as_seq h1 bv))
[SMTPat (UV.as_seq ... | val lemma_uv_equal (#src #dst: Type) (view: UV.view src dst) (b: DV.buffer src) (h0 h1: HS.mem)
: Lemma (requires (DV.length b % UV.View?.n view == 0 /\ DV.as_seq h0 b == DV.as_seq h1 b))
(ensures
(let bv = UV.mk_buffer b view in
UV.as_seq h0 bv == UV.as_seq h1 bv))
[SMTPat (UV.as_seq ... | let lemma_uv_equal
(#src:Type) (#dst:Type)
(view:UV.view src dst) (b:DV.buffer src) (h0 h1:HS.mem)
:Lemma (requires (DV.length b % UV.View?.n view == 0 /\ DV.as_seq h0 b == DV.as_seq h1 b))
(ensures (let bv = UV.mk_buffer b view in UV.as_seq h0 bv == UV.as_seq h1 bv))
[SMTPat (UV.as_seq h0 (UV.mk_buf... | {
"file_name": "vale/code/lib/util/Vale.Lib.BufferViewHelpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 28,
"end_line": 51,
"start_col": 0,
"start_line": 36
} | module Vale.Lib.BufferViewHelpers
open FStar.Mul
module MB = LowStar.Monotonic.Buffer
module BV = LowStar.BufferView
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
module HS = FStar.HyperStack
module ST = FStar.HyperStack.ST
open FStar.HyperStack.ST
open LowStar.Modifies
open LowStar.ModifiesPa... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Up.fsti.checked",
"LowStar.BufferView.Down.fsti.checked",
"LowStar.BufferView.fsti.checked",
"... | [
{
"abbrev": false,
"full_module": "LowStar.ModifiesPat",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.Modifies",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
view: LowStar.BufferView.Up.view src dst ->
b: LowStar.BufferView.Down.buffer src ->
h0: FStar.Monotonic.HyperStack.mem ->
h1: FStar.Monotonic.HyperStack.mem
-> FStar.Pervasives.Lemma
(requires
LowStar.BufferView.Down.length b % View?.n view == 0 /\
LowStar.BufferView.Down.as_se... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowStar.BufferView.Up.view",
"LowStar.BufferView.Down.buffer",
"FStar.Monotonic.HyperStack.mem",
"FStar.Seq.Base.lemma_eq_intro",
"Prims.unit",
"FStar.Classical.forall_intro",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"LowStar.BufferView.Up.length",
"Prims.eq2",
"FStar.Seq.Base.index",
... | [] | false | false | true | false | false | let lemma_uv_equal (#src #dst: Type) (view: UV.view src dst) (b: DV.buffer src) (h0 h1: HS.mem)
: Lemma (requires (DV.length b % UV.View?.n view == 0 /\ DV.as_seq h0 b == DV.as_seq h1 b))
(ensures
(let bv = UV.mk_buffer b view in
UV.as_seq h0 bv == UV.as_seq h1 bv))
[SMTPat (UV.as_seq ... | let uv = UV.mk_buffer b view in
let s0 = UV.as_seq h0 uv in
let s1 = UV.as_seq h1 uv in
let aux (i: nat{i < UV.length uv}) : Lemma (Seq.index s0 i == Seq.index s1 i) =
UV.as_seq_sel h0 uv i;
UV.as_seq_sel h1 uv i;
UV.get_sel h0 uv i;
UV.get_sel h1 uv i
in
Classical.forall_intro aux;
Seq.lemma_eq_intro s0 s1 | false |
LowParse.Repr.fsti | LowParse.Repr.live_slice | val live_slice : h: FStar.Monotonic.HyperStack.mem -> c: LowParse.Repr.const_slice -> Type0 | let live_slice (h:HS.mem) (c:const_slice) =
C.live h c.base | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 19,
"end_line": 93,
"start_col": 0,
"start_line": 92
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h: FStar.Monotonic.HyperStack.mem -> c: LowParse.Repr.const_slice -> Type0 | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.HyperStack.mem",
"LowParse.Repr.const_slice",
"LowStar.ConstBuffer.live",
"LowParse.Bytes.byte",
"LowParse.Repr.__proj__MkSlice__item__base"
] | [] | false | false | false | true | true | let live_slice (h: HS.mem) (c: const_slice) =
| C.live h c.base | false | |
LowParse.Repr.fsti | LowParse.Repr.mut_p | val mut_p : LowStar.Monotonic.Buffer.srel LowParse.Bytes.byte | let mut_p = LowStar.Buffer.trivial_preorder LP.byte | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 51,
"end_line": 62,
"start_col": 0,
"start_line": 62
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | LowStar.Monotonic.Buffer.srel LowParse.Bytes.byte | Prims.Tot | [
"total"
] | [] | [
"LowStar.Buffer.trivial_preorder",
"LowParse.Bytes.byte"
] | [] | false | false | false | true | false | let mut_p =
| LowStar.Buffer.trivial_preorder LP.byte | false | |
LowParse.Repr.fsti | LowParse.Repr.region_of | val region_of (#t: _) (p: repr_ptr t) : GTot HS.rid | val region_of (#t: _) (p: repr_ptr t) : GTot HS.rid | let region_of #t (p:repr_ptr t) : GTot HS.rid = B.frameOf (C.cast p.b) | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 70,
"end_line": 152,
"start_col": 0,
"start_line": 152
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: LowParse.Repr.repr_ptr t -> Prims.GTot FStar.Monotonic.HyperHeap.rid | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Repr.repr_ptr",
"LowStar.Monotonic.Buffer.frameOf",
"LowParse.Bytes.byte",
"LowStar.ConstBuffer.qbuf_pre",
"LowStar.ConstBuffer.as_qbuf",
"LowParse.Repr.__proj__Ptr__item__b",
"LowStar.ConstBuffer.cast",
"FStar.Monotonic.HyperHeap.rid"
] | [] | false | false | false | false | false | let region_of #t (p: repr_ptr t) : GTot HS.rid =
| B.frameOf (C.cast p.b) | false |
Vale.Lib.BufferViewHelpers.fst | Vale.Lib.BufferViewHelpers.lemma_dv_equal | val lemma_dv_equal
(#src: Type)
(#rel #rrel: MB.srel src)
(#dst: Type)
(view: DV.view src dst)
(b: MB.mbuffer src rel rrel)
(h0 h1: HS.mem)
: Lemma (requires MB.as_seq h0 b == MB.as_seq h1 b)
(ensures
(let dv = DV.mk_buffer_view b view in
DV.as_seq h0 dv =... | val lemma_dv_equal
(#src: Type)
(#rel #rrel: MB.srel src)
(#dst: Type)
(view: DV.view src dst)
(b: MB.mbuffer src rel rrel)
(h0 h1: HS.mem)
: Lemma (requires MB.as_seq h0 b == MB.as_seq h1 b)
(ensures
(let dv = DV.mk_buffer_view b view in
DV.as_seq h0 dv =... | let lemma_dv_equal
(#src:Type)
(#rel #rrel:MB.srel src)
(#dst:Type)
(view:DV.view src dst)
(b:MB.mbuffer src rel rrel)
(h0 h1:HS.mem) : Lemma
(requires MB.as_seq h0 b == MB.as_seq h1 b)
(ensures (let dv = DV.mk_buffer_view b view in
DV.as_seq h0 dv == DV.as_seq h1 dv)) =
let dv = DV.mk_buffer_vi... | {
"file_name": "vale/code/lib/util/Vale.Lib.BufferViewHelpers.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 28,
"end_line": 34,
"start_col": 0,
"start_line": 15
} | module Vale.Lib.BufferViewHelpers
open FStar.Mul
module MB = LowStar.Monotonic.Buffer
module BV = LowStar.BufferView
module DV = LowStar.BufferView.Down
module UV = LowStar.BufferView.Up
module HS = FStar.HyperStack
module ST = FStar.HyperStack.ST
open FStar.HyperStack.ST
open LowStar.Modifies
open LowStar.ModifiesPa... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Monotonic.Buffer.fsti.checked",
"LowStar.ModifiesPat.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.BufferView.Up.fsti.checked",
"LowStar.BufferView.Down.fsti.checked",
"LowStar.BufferView.fsti.checked",
"... | [
{
"abbrev": false,
"full_module": "LowStar.ModifiesPat",
"short_module": null
},
{
"abbrev": false,
"full_module": "LowStar.Modifies",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": true,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
view: LowStar.BufferView.Down.view src dst ->
b: LowStar.Monotonic.Buffer.mbuffer src rel rrel ->
h0: FStar.Monotonic.HyperStack.mem ->
h1: FStar.Monotonic.HyperStack.mem
-> FStar.Pervasives.Lemma
(requires LowStar.Monotonic.Buffer.as_seq h0 b == LowStar.Monotonic.Buffer.as_seq h1 b)
(ens... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowStar.Monotonic.Buffer.srel",
"LowStar.BufferView.Down.view",
"LowStar.Monotonic.Buffer.mbuffer",
"FStar.Monotonic.HyperStack.mem",
"FStar.Seq.Base.lemma_eq_intro",
"Prims.unit",
"FStar.Classical.forall_intro",
"Prims.nat",
"Prims.b2t",
"Prims.op_LessThan",
"LowStar.BufferView.Down.length",
... | [] | false | false | true | false | false | let lemma_dv_equal
(#src: Type)
(#rel #rrel: MB.srel src)
(#dst: Type)
(view: DV.view src dst)
(b: MB.mbuffer src rel rrel)
(h0 h1: HS.mem)
: Lemma (requires MB.as_seq h0 b == MB.as_seq h1 b)
(ensures
(let dv = DV.mk_buffer_view b view in
DV.as_seq h0 dv =... | let dv = DV.mk_buffer_view b view in
let s0 = DV.as_seq h0 dv in
let s1 = DV.as_seq h1 dv in
let aux (i: nat{i < DV.length dv}) : Lemma (Seq.index s0 i == Seq.index s1 i) =
DV.as_seq_sel h0 dv i;
DV.as_seq_sel h1 dv i;
DV.get_sel h0 dv i;
DV.get_sel h1 dv i
in
Classical.forall_intro aux;
Seq.lemma_eq_intro s0 s... | false |
Hacl.Spec.FFDHE.Lemmas.fst | Hacl.Spec.FFDHE.Lemmas.ffdhe_p_lemma_len | val ffdhe_p_lemma_len: a:ffdhe_alg -> Lemma
(let ffdhe_p = get_ffdhe_params a in
let p = Mk_ffdhe_params?.ffdhe_p ffdhe_p in
Seq.index p 0 == 0xffuy) | val ffdhe_p_lemma_len: a:ffdhe_alg -> Lemma
(let ffdhe_p = get_ffdhe_params a in
let p = Mk_ffdhe_params?.ffdhe_p ffdhe_p in
Seq.index p 0 == 0xffuy) | let ffdhe_p_lemma_len a =
let ffdhe_p = get_ffdhe_params a in
let p = Mk_ffdhe_params?.ffdhe_p ffdhe_p in
allow_inversion ffdhe_alg;
match a with
| FFDHE2048 ->
assert (p == of_list list_ffdhe_p2048);
assert_norm (List.Tot.index list_ffdhe_p2048 0 == 0xffuy);
assert (Seq.index (Seq.seq_of_list li... | {
"file_name": "code/ffdhe/Hacl.Spec.FFDHE.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 69,
"end_line": 43,
"start_col": 0,
"start_line": 18
} | module Hacl.Spec.FFDHE.Lemmas
open FStar.Mul
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open Spec.FFDHE
#set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
val ffdhe_p_lemma_len: a:ffdhe_alg -> Lemma
(let ffdhe_p = get_ffdhe_params a in
let p = Mk_ffdhe_params?.ffdhe_p ffdhe_p in
Seq.index p 0 == 0... | {
"checked_file": "/",
"dependencies": [
"Spec.FFDHE.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.UInt8.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.fst.... | [
{
"abbrev": false,
"full_module": "Spec.FFDHE",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.ByteSequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.Sequence",
"short_module": null
},
{
"abbrev": false,
"full_module": "L... | {
"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.FFDHE.ffdhe_alg
-> FStar.Pervasives.Lemma
(ensures
(let ffdhe_p = Spec.FFDHE.get_ffdhe_params a in
let p = Mk_ffdhe_params?.ffdhe_p ffdhe_p in
FStar.Seq.Base.index p 0 == 0xffuy)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Spec.FFDHE.ffdhe_alg",
"Prims._assert",
"Prims.eq2",
"FStar.UInt8.t",
"FStar.Seq.Base.index",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.PUB",
"FStar.Seq.Base.seq_of_list",
"Spec.FFDHE.list_ffdhe_p2048",
"FStar.UInt8.__uint_to_t",
"Prims.unit",
"FStar.Pervasives.assert_norm",
... | [] | false | false | true | false | false | let ffdhe_p_lemma_len a =
| let ffdhe_p = get_ffdhe_params a in
let p = Mk_ffdhe_params?.ffdhe_p ffdhe_p in
allow_inversion ffdhe_alg;
match a with
| FFDHE2048 ->
assert (p == of_list list_ffdhe_p2048);
assert_norm (List.Tot.index list_ffdhe_p2048 0 == 0xffuy);
assert (Seq.index (Seq.seq_of_list list_ffdhe_p2048) 0 == 0xffuy)
| FFDHE3072 ->... | false |
LowParse.Repr.fsti | LowParse.Repr.value | val value (#t: _) (p: repr_ptr t) : GTot t | val value (#t: _) (p: repr_ptr t) : GTot t | let value #t (p:repr_ptr t) : GTot t = p.meta.v | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 47,
"end_line": 154,
"start_col": 0,
"start_line": 154
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: LowParse.Repr.repr_ptr t -> Prims.GTot t | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Repr.repr_ptr",
"LowParse.Repr.__proj__Mkmeta__item__v",
"LowParse.Repr.__proj__Ptr__item__meta"
] | [] | false | false | false | false | false | let value #t (p: repr_ptr t) : GTot t =
| p.meta.v | false |
LowParse.Repr.fsti | LowParse.Repr.repr_ptr_p | val repr_ptr_p : t: Type -> parser: LowParse.Spec.Base.parser k t -> Type | let repr_ptr_p (t:Type) (#k:strong_parser_kind) (parser:LP.parser k t) =
p:repr_ptr t{ p.meta.parser_kind == k /\ p.meta.parser == parser } | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 68,
"end_line": 157,
"start_col": 0,
"start_line": 156
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: Type -> parser: LowParse.Spec.Base.parser k t -> Type | Prims.Tot | [
"total"
] | [] | [
"LowParse.Repr.strong_parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Repr.repr_ptr",
"Prims.l_and",
"Prims.eq2",
"LowParse.Repr.__proj__Mkmeta__item__parser_kind",
"LowParse.Repr.__proj__Ptr__item__meta",
"LowParse.Repr.__proj__Mkmeta__item__parser"
] | [] | false | false | false | false | true | let repr_ptr_p (t: Type) (#k: strong_parser_kind) (parser: LP.parser k t) =
| p: repr_ptr t {p.meta.parser_kind == k /\ p.meta.parser == parser} | false | |
LowParse.Repr.fsti | LowParse.Repr.sub_ptr | val sub_ptr : p2: LowParse.Repr.repr_ptr 'a -> p1: LowParse.Repr.repr_ptr 'b -> Prims.logical | let sub_ptr (p2:repr_ptr 'a) (p1: repr_ptr 'b) =
exists pos len. Ptr?.b p2 `C.const_sub_buffer pos len` Ptr?.b p1 | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 66,
"end_line": 164,
"start_col": 0,
"start_line": 163
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p2: LowParse.Repr.repr_ptr 'a -> p1: LowParse.Repr.repr_ptr 'b -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"LowParse.Repr.repr_ptr",
"Prims.l_Exists",
"FStar.UInt32.t",
"LowStar.ConstBuffer.const_sub_buffer",
"LowParse.Bytes.byte",
"LowParse.Repr.__proj__Ptr__item__b",
"Prims.logical"
] | [] | false | false | false | true | true | let sub_ptr (p2: repr_ptr 'a) (p1: repr_ptr 'b) =
| exists pos len. C.const_sub_buffer pos len (Ptr?.b p2) (Ptr?.b p1) | false | |
Hacl.Impl.Ed25519.Ladder.fst | Hacl.Impl.Ed25519.Ladder.point_mul_g_noalloc | val point_mul_g_noalloc: out:point -> bscalar:lbuffer uint64 4ul
-> q1:point -> q2:point
-> q3:point -> q4:point ->
Stack unit
(requires fun h ->
live h bscalar /\ live h out /\ live h q1 /\
live h q2 /\ live h q3 /\ live h q4 /\
disjoint out bscalar /\ disjoint out q1 /\ disjoint out q2 /\
disj... | val point_mul_g_noalloc: out:point -> bscalar:lbuffer uint64 4ul
-> q1:point -> q2:point
-> q3:point -> q4:point ->
Stack unit
(requires fun h ->
live h bscalar /\ live h out /\ live h q1 /\
live h q2 /\ live h q3 /\ live h q4 /\
disjoint out bscalar /\ disjoint out q1 /\ disjoint out q2 /\
disj... | let point_mul_g_noalloc out bscalar q1 q2 q3 q4 =
[@inline_let] let len = 20ul in
[@inline_let] let ctx_len = 0ul in
[@inline_let] let k = mk_ed25519_concrete_ops in
[@inline_let] let l = 4ul in
[@inline_let] let table_len = 16ul in
[@inline_let] let bLen = 1ul in
[@inline_let] let bBits = 64ul in
let ... | {
"file_name": "code/ed25519/Hacl.Impl.Ed25519.Ladder.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 26,
"end_line": 187,
"start_col": 0,
"start_line": 136
} | module Hacl.Impl.Ed25519.Ladder
module ST = FStar.HyperStack.ST
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum25519
module F51 = Hacl.Impl.Ed25519.Field51
module BSeq = Lib.ByteSequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module BE = Hacl.Impl... | {
"checked_file": "/",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"Spec.Ed25519.Lemmas.fsti.checked",
"Spec.Ed25519.fst.checked",
"prims.fst.checked",
"LowStar.Ignore.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Lib.ByteSequence.fsti.chec... | [
{
"abbrev": false,
"full_module": "Hacl.Ed25519.PrecompTable",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Ed25519.Group",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Ed25519.PointConstants",
"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 |
out: Hacl.Bignum25519.point ->
bscalar: Lib.Buffer.lbuffer Lib.IntTypes.uint64 4ul ->
q1: Hacl.Bignum25519.point ->
q2: Hacl.Bignum25519.point ->
q3: Hacl.Bignum25519.point ->
q4: Hacl.Bignum25519.point
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Hacl.Bignum25519.point",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint64",
"FStar.UInt32.__uint_to_t",
"LowStar.Ignore.ignore",
"Prims.unit",
"Hacl.Impl.MultiExponentiation.mk_lexp_four_fw_tables",
"Lib.IntTypes.U64",
"Hacl.Impl.Ed25519.Ladder.table_inv_w4",
"Hacl.Impl.Ed25519.Ladder.precomp_get_const... | [] | false | true | false | false | false | let point_mul_g_noalloc out bscalar q1 q2 q3 q4 =
| [@@ inline_let ]let len = 20ul in
[@@ inline_let ]let ctx_len = 0ul in
[@@ inline_let ]let k = mk_ed25519_concrete_ops in
[@@ inline_let ]let l = 4ul in
[@@ inline_let ]let table_len = 16ul in
[@@ inline_let ]let bLen = 1ul in
[@@ inline_let ]let bBits = 64ul in
let h0 = ST.get () in
recall_contents precomp_basepoint_t... | false |
LowParse.Repr.fsti | LowParse.Repr.fp | val fp (#t: _) (p: repr_ptr t) : GTot B.loc | val fp (#t: _) (p: repr_ptr t) : GTot B.loc | let fp #t (p:repr_ptr t)
: GTot B.loc
= C.loc_buffer p.b | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 20,
"end_line": 227,
"start_col": 0,
"start_line": 225
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: LowParse.Repr.repr_ptr t -> Prims.GTot LowStar.Monotonic.Buffer.loc | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Repr.repr_ptr",
"LowStar.ConstBuffer.loc_buffer",
"LowParse.Bytes.byte",
"LowParse.Repr.__proj__Ptr__item__b",
"LowStar.Monotonic.Buffer.loc"
] | [] | false | false | false | false | false | let fp #t (p: repr_ptr t) : GTot B.loc =
| C.loc_buffer p.b | false |
LowParse.Repr.fsti | LowParse.Repr.stable_repr_ptr | val stable_repr_ptr : t: Type -> Type | let stable_repr_ptr t= p:repr_ptr t { valid_if_live p } | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 55,
"end_line": 423,
"start_col": 0,
"start_line": 423
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | t: Type -> Type | Prims.Tot | [
"total"
] | [] | [
"LowParse.Repr.repr_ptr",
"LowParse.Repr.valid_if_live"
] | [] | false | false | false | true | true | let stable_repr_ptr t =
| p: repr_ptr t {valid_if_live p} | false | |
LowParse.TestLib.Low.fst | LowParse.TestLib.Low.test_file_buffer | val test_file_buffer (t: testbuffer_t) (filename: string)
: ST unit (fun _ -> true) (fun _ _ _ -> true) | val test_file_buffer (t: testbuffer_t) (filename: string)
: ST unit (fun _ -> true) (fun _ _ _ -> true) | let test_file_buffer (t:testbuffer_t) (filename:string): ST unit (fun _ -> true) (fun _ _ _ -> true) =
push_frame();
let input = load_file_buffer filename in
(*test_buffer t filename input inputlen;*)
pop_frame() | {
"file_name": "src/lowparse/LowParse.TestLib.Low.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 13,
"end_line": 93,
"start_col": 0,
"start_line": 89
} | module LowParse.TestLib.Low
open FStar.HyperStack.ST
open FStar.HyperStack.IO
open FStar.Printf
open LowParse.Low.Base
module B = LowStar.Buffer
module IB = LowStar.ImmutableBuffer
module U32 = FStar.UInt32
module M = LowStar.Modifies
#reset-options "--using_facts_from '* -LowParse'"
#reset-options "--z3cliopt smt.a... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"F... | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Modifies",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "Lo... | {
"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: LowParse.TestLib.Low.testbuffer_t -> filename: Prims.string -> FStar.HyperStack.ST.ST Prims.unit | FStar.HyperStack.ST.ST | [] | [] | [
"LowParse.TestLib.Low.testbuffer_t",
"Prims.string",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"LowParse.Slice.slice",
"LowParse.Slice.srel_of_buffer_srel",
"LowParse.Bytes.byte",
"LowStar.ImmutableBuffer.immutable_preorder",
"LowParse.TestLib.Low.load_file_buffer",
"FStar.HyperStack.ST.push_... | [] | false | true | false | false | false | let test_file_buffer (t: testbuffer_t) (filename: string)
: ST unit (fun _ -> true) (fun _ _ _ -> true) =
| push_frame ();
let input = load_file_buffer filename in
pop_frame () | false |
LowParse.Repr.fsti | LowParse.Repr.is_stable_in_region | val is_stable_in_region : p: LowParse.Repr.repr_ptr t -> Prims.logical | let is_stable_in_region #t (p:repr_ptr t) =
let r = B.frameOf (C.cast p.b) in
valid_if_live p /\
B.frameOf (C.cast p.b) == r /\
B.region_lifetime_buf (C.cast p.b) | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 36,
"end_line": 527,
"start_col": 0,
"start_line": 523
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"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 | p: LowParse.Repr.repr_ptr t -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"LowParse.Repr.repr_ptr",
"Prims.l_and",
"LowParse.Repr.valid_if_live",
"Prims.eq2",
"FStar.Monotonic.HyperHeap.rid",
"LowStar.Monotonic.Buffer.frameOf",
"LowParse.Bytes.byte",
"LowStar.ConstBuffer.qbuf_pre",
"LowStar.ConstBuffer.as_qbuf",
"LowParse.Repr.__proj__Ptr__item__b",
"LowStar.ConstBuff... | [] | false | false | false | true | true | let is_stable_in_region #t (p: repr_ptr t) =
| let r = B.frameOf (C.cast p.b) in
valid_if_live p /\ B.frameOf (C.cast p.b) == r /\ B.region_lifetime_buf (C.cast p.b) | false | |
LowParse.TestLib.Low.fst | LowParse.TestLib.Low.test_buffer | val test_buffer (t: testbuffer_t) (testname: string) (#rrel #rel: _) (input: slice rrel rel)
: ST unit (requires (fun h -> live_slice h input)) (ensures (fun _ _ _ -> true)) | val test_buffer (t: testbuffer_t) (testname: string) (#rrel #rel: _) (input: slice rrel rel)
: ST unit (requires (fun h -> live_slice h input)) (ensures (fun _ _ _ -> true)) | let test_buffer (t:testbuffer_t) (testname:string) (#rrel #rel: _) (input:slice rrel rel)
: ST unit
(requires (fun h -> live_slice h input))
(ensures (fun _ _ _ -> true)) =
push_frame();
print_string (sprintf "==== Testing buffer %s ====\n" testname);
let result = t input in
(match result with
| Some output ... | {
"file_name": "src/lowparse/LowParse.TestLib.Low.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 13,
"end_line": 84,
"start_col": 0,
"start_line": 63
} | module LowParse.TestLib.Low
open FStar.HyperStack.ST
open FStar.HyperStack.IO
open FStar.Printf
open LowParse.Low.Base
module B = LowStar.Buffer
module IB = LowStar.ImmutableBuffer
module U32 = FStar.UInt32
module M = LowStar.Modifies
#reset-options "--using_facts_from '* -LowParse'"
#reset-options "--z3cliopt smt.a... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Modifies.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Printf.fst.checked",
"F... | [
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Modifies",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "Lo... | {
"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: LowParse.TestLib.Low.testbuffer_t ->
testname: Prims.string ->
input: LowParse.Slice.slice rrel rel
-> FStar.HyperStack.ST.ST Prims.unit | FStar.HyperStack.ST.ST | [] | [] | [
"LowParse.TestLib.Low.testbuffer_t",
"Prims.string",
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Slice.slice",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"FStar.HyperStack.IO.print_string",
"FStar.Printf.sprintf",
"FStar.UInt32.lte",
"LowParse.Slice.__proj__Mkslice__item__len",
... | [] | false | true | false | false | false | let test_buffer (t: testbuffer_t) (testname: string) (#rrel #rel: _) (input: slice rrel rel)
: ST unit (requires (fun h -> live_slice h input)) (ensures (fun _ _ _ -> true)) =
| push_frame ();
print_string (sprintf "==== Testing buffer %s ====\n" testname);
let result = t input in
(match result with
| Some output ->
(if U32.lte output.len input.len
then
(if beqb () input.base output.base output.len
then print_string "Formatted data matches original input data\n"
... | false |
LowParse.Repr.fsti | LowParse.Repr.slice_of_const_buffer | val slice_of_const_buffer (b: C.const_buffer LP.byte) (len: uint_32{U32.v len <= C.length b})
: LP.slice (preorder b) (preorder b) | val slice_of_const_buffer (b: C.const_buffer LP.byte) (len: uint_32{U32.v len <= C.length b})
: LP.slice (preorder b) (preorder b) | let slice_of_const_buffer (b:C.const_buffer LP.byte) (len:uint_32{U32.v len <= C.length b})
: LP.slice (preorder b) (preorder b)
=
LP.({
base = C.cast b;
len = len
}) | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 6,
"end_line": 60,
"start_col": 0,
"start_line": 54
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
b: LowStar.ConstBuffer.const_buffer LowParse.Bytes.byte ->
len: FStar.Integers.uint_32{FStar.UInt32.v len <= LowStar.ConstBuffer.length b}
-> LowParse.Slice.slice (LowParse.Repr.preorder b) (LowParse.Repr.preorder b) | Prims.Tot | [
"total"
] | [] | [
"LowStar.ConstBuffer.const_buffer",
"LowParse.Bytes.byte",
"FStar.Integers.uint_32",
"Prims.b2t",
"FStar.Integers.op_Less_Equals",
"FStar.Integers.Signed",
"FStar.Integers.Winfinite",
"FStar.UInt32.v",
"LowStar.ConstBuffer.length",
"LowParse.Slice.Mkslice",
"LowParse.Repr.preorder",
"LowStar.C... | [] | false | false | false | false | false | let slice_of_const_buffer (b: C.const_buffer LP.byte) (len: uint_32{U32.v len <= C.length b})
: LP.slice (preorder b) (preorder b) =
| let open LP in { base = C.cast b; len = len } | false |
LowParse.Repr.fsti | LowParse.Repr.of_slice | val of_slice (x: LP.slice mut_p mut_p) : Tot const_slice | val of_slice (x: LP.slice mut_p mut_p) : Tot const_slice | let of_slice (x:LP.slice mut_p mut_p)
: Tot const_slice
= let b = C.of_buffer x.LP.base in
let len = x.LP.len in
MkSlice b len | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 17,
"end_line": 90,
"start_col": 0,
"start_line": 86
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: LowParse.Slice.slice LowParse.Repr.mut_p LowParse.Repr.mut_p -> LowParse.Repr.const_slice | Prims.Tot | [
"total"
] | [] | [
"LowParse.Slice.slice",
"LowParse.Repr.mut_p",
"LowParse.Repr.MkSlice",
"FStar.UInt32.t",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.UInt32.v",
"LowStar.Monotonic.Buffer.length",
"LowParse.Bytes.byte",
"LowParse.Slice.buffer_srel_of_srel",
"LowParse.Slice.__proj__Mkslice__item__base",
"Lo... | [] | false | false | false | true | false | let of_slice (x: LP.slice mut_p mut_p) : Tot const_slice =
| let b = C.of_buffer x.LP.base in
let len = x.LP.len in
MkSlice b len | false |
Hacl.Impl.Frodo.KEM.Encaps.fst | Hacl.Impl.Frodo.KEM.Encaps.crypto_kem_enc_seed_se_k | val crypto_kem_enc_seed_se_k:
a:FP.frodo_alg
-> mu:lbytes (bytes_mu a)
-> pk:lbytes (crypto_publickeybytes a)
-> seed_se_k:lbytes (2ul *! crypto_bytes a)
-> Stack unit
(requires fun h ->
live h mu /\ live h pk /\ live h seed_se_k /\
disjoint seed_se_k mu /\ disjoint seed_se_k pk)
(ensure... | val crypto_kem_enc_seed_se_k:
a:FP.frodo_alg
-> mu:lbytes (bytes_mu a)
-> pk:lbytes (crypto_publickeybytes a)
-> seed_se_k:lbytes (2ul *! crypto_bytes a)
-> Stack unit
(requires fun h ->
live h mu /\ live h pk /\ live h seed_se_k /\
disjoint seed_se_k mu /\ disjoint seed_se_k pk)
(ensure... | let crypto_kem_enc_seed_se_k a mu pk seed_se_k =
push_frame ();
let pkh_mu = create (bytes_pkhash a +! bytes_mu a) (u8 0) in
let h0 = ST.get () in
update_sub_f h0 pkh_mu 0ul (bytes_pkhash a)
(fun h -> FP.frodo_shake a (v (crypto_publickeybytes a)) (as_seq h0 pk) (v (bytes_pkhash a)))
(fun _ -> frodo_sha... | {
"file_name": "code/frodo/Hacl.Impl.Frodo.KEM.Encaps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 339,
"start_col": 0,
"start_line": 320
} | module Hacl.Impl.Frodo.KEM.Encaps
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open LowStar.Buffer
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.Matrix
open Hacl.Impl.Frodo.Params
open Hacl.Impl.Frodo.KEM
open Hacl.Impl.Frodo.Encode
open Hacl.Impl.Frodo.Pack
open Hacl.Impl.Frodo.Sample
open Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.Matrix.fst.checked",
"Spec.Frodo.Params.fst.checked",
"Spec.Frodo.KEM.Encaps.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.Frodo.KEM.KeyGen",
"short_module": "KG"
},
{
"abbrev": true,
"full_module": "Spec.Matrix",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.Encaps",
"short_module": "S"
},
{
"abbrev": true,
"fu... | {
"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.Frodo.Params.frodo_alg ->
mu: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.bytes_mu a) ->
pk: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_publickeybytes a) ->
seed_se_k: Hacl.Impl.Matrix.lbytes (2ul *! Hacl.Impl.Frodo.Params.crypto_bytes a)
-> FStar.HyperStack.ST.Stack Prims.uni... | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Frodo.Params.frodo_alg",
"Hacl.Impl.Matrix.lbytes",
"Hacl.Impl.Frodo.Params.bytes_mu",
"Hacl.Impl.Frodo.Params.crypto_publickeybytes",
"Lib.IntTypes.op_Star_Bang",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"FStar.UInt32.__uint_to_t",
"Hacl.Impl.Frodo.Params.crypto_bytes",
"FStar.HyperStack.ST.... | [] | false | true | false | false | false | let crypto_kem_enc_seed_se_k a mu pk seed_se_k =
| push_frame ();
let pkh_mu = create (bytes_pkhash a +! bytes_mu a) (u8 0) in
let h0 = ST.get () in
update_sub_f h0
pkh_mu
0ul
(bytes_pkhash a)
(fun h -> FP.frodo_shake a (v (crypto_publickeybytes a)) (as_seq h0 pk) (v (bytes_pkhash a)))
(fun _ ->
frodo_shake a (crypto_publickeybytes a) pk (bytes_pkhash a... | false |
LowParse.Repr.fsti | LowParse.Repr.field_accessor_comp | val field_accessor_comp
(#k1 #k2 #k3: strong_parser_kind)
(#t1 #t2 #t3: Type)
(#p1: LP.parser k1 t1)
(#p2: LP.parser k2 t2)
(#p3: LP.parser k3 t3)
(f12: field_accessor p1 p2)
(f23: field_accessor p2 p3)
: field_accessor p1 p3 | val field_accessor_comp
(#k1 #k2 #k3: strong_parser_kind)
(#t1 #t2 #t3: Type)
(#p1: LP.parser k1 t1)
(#p2: LP.parser k2 t2)
(#p3: LP.parser k3 t3)
(f12: field_accessor p1 p2)
(f23: field_accessor p2 p3)
: field_accessor p1 p3 | let field_accessor_comp (#k1 #k2 #k3:strong_parser_kind)
(#t1 #t2 #t3:Type)
(#p1 : LP.parser k1 t1)
(#p2 : LP.parser k2 t2)
(#p3 : LP.parser k3 t3)
(f12 : field_accessor p1 p2)
... | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 31,
"end_line": 625,
"start_col": 0,
"start_line": 613
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"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 | f12: LowParse.Repr.field_accessor p1 p2 -> f23: LowParse.Repr.field_accessor p2 p3
-> LowParse.Repr.field_accessor p1 p3 | Prims.Tot | [
"total"
] | [] | [
"LowParse.Repr.strong_parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Repr.field_accessor",
"LowParse.Low.Base.Spec.clens",
"LowParse.Low.Base.Spec.gaccessor",
"LowParse.Low.Base.accessor",
"LowParse.Low.Base.jumper",
"LowParse.SLow.Base.parser32",
"LowParse.Repr.FieldAccessor",
"LowParse.Low... | [] | false | false | false | false | false | let field_accessor_comp
(#k1 #k2 #k3: strong_parser_kind)
(#t1 #t2 #t3: Type)
(#p1: LP.parser k1 t1)
(#p2: LP.parser k2 t2)
(#p3: LP.parser k3 t3)
(f12: field_accessor p1 p2)
(f23: field_accessor p2 p3)
: field_accessor p1 p3 =
| [@@ inline_let ]let FieldAccessor acc12 j2 p2' = f12 in
[@@ inline_let ]let FieldAccessor acc23 j3 p3' = f23 in
[@@ inline_let ]let acc13 = LP.accessor_compose acc12 acc23 () in
FieldAccessor acc13 j3 p3' | false |
LowParse.Repr.fsti | LowParse.Repr.stable_region_repr_ptr | val stable_region_repr_ptr : r: FStar.HyperStack.ST.drgn -> t: Type -> Type | let stable_region_repr_ptr (r:ST.drgn) (t:Type) =
p:repr_ptr t {
is_stable_in_region p /\
B.frameOf (C.cast p.b) == ST.rid_of_drgn r
} | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 533,
"start_col": 0,
"start_line": 529
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: FStar.HyperStack.ST.drgn -> t: Type -> Type | Prims.Tot | [
"total"
] | [] | [
"FStar.HyperStack.ST.drgn",
"LowParse.Repr.repr_ptr",
"Prims.l_and",
"LowParse.Repr.is_stable_in_region",
"Prims.eq2",
"FStar.Monotonic.HyperHeap.rid",
"LowStar.Monotonic.Buffer.frameOf",
"LowParse.Bytes.byte",
"LowStar.ConstBuffer.qbuf_pre",
"LowStar.ConstBuffer.as_qbuf",
"LowParse.Repr.__proj_... | [] | false | false | false | true | true | let stable_region_repr_ptr (r: ST.drgn) (t: Type) =
| p: repr_ptr t {is_stable_in_region p /\ B.frameOf (C.cast p.b) == ST.rid_of_drgn r} | false | |
LowParse.Repr.fsti | LowParse.Repr.slice_of_repr_ptr | val slice_of_repr_ptr (#t: _) (p: repr_ptr t) : GTot (LP.slice (preorder p.b) (preorder p.b)) | val slice_of_repr_ptr (#t: _) (p: repr_ptr t) : GTot (LP.slice (preorder p.b) (preorder p.b)) | let slice_of_repr_ptr #t (p:repr_ptr t)
: GTot (LP.slice (preorder p.b) (preorder p.b))
= slice_of_const_buffer p.b p.meta.len | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 40,
"end_line": 161,
"start_col": 0,
"start_line": 159
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: LowParse.Repr.repr_ptr t
-> Prims.GTot
(LowParse.Slice.slice (LowParse.Repr.preorder (Ptr?.b p)) (LowParse.Repr.preorder (Ptr?.b p))) | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Repr.repr_ptr",
"LowParse.Repr.slice_of_const_buffer",
"LowParse.Repr.__proj__Ptr__item__b",
"LowParse.Repr.__proj__Mkmeta__item__len",
"LowParse.Repr.__proj__Ptr__item__meta",
"LowParse.Slice.slice",
"LowParse.Repr.preorder"
] | [] | false | false | false | false | false | let slice_of_repr_ptr #t (p: repr_ptr t) : GTot (LP.slice (preorder p.b) (preorder p.b)) =
| slice_of_const_buffer p.b p.meta.len | false |
LowParse.Repr.fsti | LowParse.Repr.valid' | val valid' : p: LowParse.Repr.repr_ptr t -> h: FStar.Monotonic.HyperStack.mem -> Prims.GTot Prims.logical | let valid' (#t:Type) (p:repr_ptr t) (h:HS.mem) =
let slice = slice_of_const_buffer p.b p.meta.len in
valid_slice slice p.meta h | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 28,
"end_line": 212,
"start_col": 0,
"start_line": 210
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: LowParse.Repr.repr_ptr t -> h: FStar.Monotonic.HyperStack.mem -> Prims.GTot Prims.logical | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Repr.repr_ptr",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Repr.valid_slice",
"LowParse.Repr.preorder",
"LowParse.Repr.__proj__Ptr__item__b",
"LowParse.Repr.__proj__Ptr__item__meta",
"LowParse.Slice.slice",
"LowParse.Repr.slice_of_const_buffer",
"LowParse.Repr.__proj__Mkmeta__item__len",
... | [] | false | false | false | false | true | let valid' (#t: Type) (p: repr_ptr t) (h: HS.mem) =
| let slice = slice_of_const_buffer p.b p.meta.len in
valid_slice slice p.meta h | false | |
LowParse.Repr.fsti | LowParse.Repr.index | val index : b: LowParse.Repr.const_slice -> Type0 | let index (b:const_slice)= i:uint_32{ i <= b.slice_len } | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 56,
"end_line": 710,
"start_col": 0,
"start_line": 710
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | b: LowParse.Repr.const_slice -> Type0 | Prims.Tot | [
"total"
] | [] | [
"LowParse.Repr.const_slice",
"FStar.Integers.uint_32",
"Prims.b2t",
"FStar.Integers.op_Less_Equals",
"FStar.Integers.Unsigned",
"FStar.Integers.W32",
"LowParse.Repr.__proj__MkSlice__item__slice_len"
] | [] | false | false | false | true | true | let index (b: const_slice) =
| i: uint_32{i <= b.slice_len} | false | |
LowParse.Repr.fsti | LowParse.Repr.temp_slice_of_repr_ptr | val temp_slice_of_repr_ptr (#t: _) (p: repr_ptr t) : Tot (LP.slice (preorder p.b) (preorder p.b)) | val temp_slice_of_repr_ptr (#t: _) (p: repr_ptr t) : Tot (LP.slice (preorder p.b) (preorder p.b)) | let temp_slice_of_repr_ptr #t (p:repr_ptr t)
: Tot (LP.slice (preorder p.b) (preorder p.b))
= slice_of_const_buffer p.b p.length | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 38,
"end_line": 184,
"start_col": 0,
"start_line": 182
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: LowParse.Repr.repr_ptr t
-> LowParse.Slice.slice (LowParse.Repr.preorder (Ptr?.b p)) (LowParse.Repr.preorder (Ptr?.b p)) | Prims.Tot | [
"total"
] | [] | [
"LowParse.Repr.repr_ptr",
"LowParse.Repr.slice_of_const_buffer",
"LowParse.Repr.__proj__Ptr__item__b",
"LowParse.Repr.__proj__Ptr__item__length",
"LowParse.Slice.slice",
"LowParse.Repr.preorder"
] | [] | false | false | false | false | false | let temp_slice_of_repr_ptr #t (p: repr_ptr t) : Tot (LP.slice (preorder p.b) (preorder p.b)) =
| slice_of_const_buffer p.b p.length | false |
LowParse.Repr.fsti | LowParse.Repr.value_pos | val value_pos (#t #b: _) (r: repr_pos t b) : GTot t | val value_pos (#t #b: _) (r: repr_pos t b) : GTot t | let value_pos #t #b (r:repr_pos t b) : GTot t = r.meta.v | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 56,
"end_line": 722,
"start_col": 0,
"start_line": 722
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: LowParse.Repr.repr_pos t b -> Prims.GTot t | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Repr.const_slice",
"LowParse.Repr.repr_pos",
"LowParse.Repr.__proj__Mkmeta__item__v",
"LowParse.Repr.__proj__Pos__item__meta"
] | [] | false | false | false | false | false | let value_pos #t #b (r: repr_pos t b) : GTot t =
| r.meta.v | false |
LowParse.Repr.fsti | LowParse.Repr.valid_repr_pos | val valid_repr_pos : r: LowParse.Repr.repr_pos t b -> h: FStar.Monotonic.HyperStack.mem -> Prims.logical | let valid_repr_pos (#t:Type) (#b:const_slice) (r:repr_pos t b) (h:HS.mem)
= valid (as_ptr_spec r) h /\
C.live h b.base | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 19,
"end_line": 747,
"start_col": 0,
"start_line": 745
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: LowParse.Repr.repr_pos t b -> h: FStar.Monotonic.HyperStack.mem -> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"LowParse.Repr.const_slice",
"LowParse.Repr.repr_pos",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"LowParse.Repr.valid",
"LowParse.Repr.as_ptr_spec",
"LowStar.ConstBuffer.live",
"LowParse.Bytes.byte",
"LowParse.Repr.__proj__MkSlice__item__base",
"Prims.logical"
] | [] | false | false | false | false | true | let valid_repr_pos (#t: Type) (#b: const_slice) (r: repr_pos t b) (h: HS.mem) =
| valid (as_ptr_spec r) h /\ C.live h b.base | false | |
LowParse.Repr.fsti | LowParse.Repr.valid_slice | val valid_slice : slice: LowParse.Slice.slice r s -> meta: LowParse.Repr.meta t -> h: FStar.Monotonic.HyperStack.mem
-> Prims.logical | let valid_slice (#t:Type) (#r #s:_) (slice:LP.slice r s) (meta:meta t) (h:HS.mem) =
LP.valid_content_pos meta.parser h slice 0ul meta.v meta.len /\
meta.repr_bytes == LP.bytes_of_slice_from_to h slice 0ul meta.len | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 67,
"end_line": 207,
"start_col": 0,
"start_line": 205
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | slice: LowParse.Slice.slice r s -> meta: LowParse.Repr.meta t -> h: FStar.Monotonic.HyperStack.mem
-> Prims.logical | Prims.Tot | [
"total"
] | [] | [
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Slice.slice",
"LowParse.Repr.meta",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"LowParse.Low.Base.Spec.valid_content_pos",
"LowParse.Repr.__proj__Mkmeta__item__parser_kind",
"LowParse.Repr.__proj__Mkmeta__item__parser",
"FStar.UInt32.__... | [] | false | false | false | false | true | let valid_slice (#t: Type) (#r #s: _) (slice: LP.slice r s) (meta: meta t) (h: HS.mem) =
| LP.valid_content_pos meta.parser h slice 0ul meta.v meta.len /\
meta.repr_bytes == LP.bytes_of_slice_from_to h slice 0ul meta.len | false | |
LowParse.Repr.fsti | LowParse.Repr.fp_pos | val fp_pos (#t: _) (#b: const_slice) (r: repr_pos t b) : GTot B.loc | val fp_pos (#t: _) (#b: const_slice) (r: repr_pos t b) : GTot B.loc | let fp_pos #t (#b:const_slice) (r:repr_pos t b)
: GTot B.loc
= fp (as_ptr_spec r) | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 22,
"end_line": 753,
"start_col": 0,
"start_line": 751
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: LowParse.Repr.repr_pos t b -> Prims.GTot LowStar.Monotonic.Buffer.loc | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Repr.const_slice",
"LowParse.Repr.repr_pos",
"LowParse.Repr.fp",
"LowParse.Repr.as_ptr_spec",
"LowStar.Monotonic.Buffer.loc"
] | [] | false | false | false | false | false | let fp_pos #t (#b: const_slice) (r: repr_pos t b) : GTot B.loc =
| fp (as_ptr_spec r) | false |
LowParse.Repr.fsti | LowParse.Repr.slice_as_seq | val slice_as_seq : h: FStar.Monotonic.HyperStack.mem -> c: LowParse.Repr.const_slice
-> Prims.GTot (FStar.Seq.Base.seq LowParse.Bytes.byte) | let slice_as_seq (h:HS.mem) (c:const_slice) =
Seq.slice (C.as_seq h c.base) 0 (U32.v c.slice_len) | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 55,
"end_line": 96,
"start_col": 0,
"start_line": 95
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | h: FStar.Monotonic.HyperStack.mem -> c: LowParse.Repr.const_slice
-> Prims.GTot (FStar.Seq.Base.seq LowParse.Bytes.byte) | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Monotonic.HyperStack.mem",
"LowParse.Repr.const_slice",
"FStar.Seq.Base.slice",
"LowParse.Bytes.byte",
"LowStar.ConstBuffer.as_seq",
"LowParse.Repr.__proj__MkSlice__item__base",
"FStar.UInt32.v",
"LowParse.Repr.__proj__MkSlice__item__slice_len",
"FStar.Seq.Base.seq"
] | [] | false | false | false | false | false | let slice_as_seq (h: HS.mem) (c: const_slice) =
| Seq.slice (C.as_seq h c.base) 0 (U32.v c.slice_len) | false | |
LowParse.Repr.fsti | LowParse.Repr.to_bytes | val to_bytes (#t: _) (p: repr_ptr t) (len: uint_32)
: Stack FStar.Bytes.bytes
(requires fun h -> valid p h /\ len == p.meta.len)
(ensures
fun h x h' ->
B.modifies B.loc_none h h' /\ FStar.Bytes.reveal x == p.meta.repr_bytes /\
FStar.Bytes.len x == p.meta.len) | val to_bytes (#t: _) (p: repr_ptr t) (len: uint_32)
: Stack FStar.Bytes.bytes
(requires fun h -> valid p h /\ len == p.meta.len)
(ensures
fun h x h' ->
B.modifies B.loc_none h h' /\ FStar.Bytes.reveal x == p.meta.repr_bytes /\
FStar.Bytes.len x == p.meta.len) | let to_bytes #t (p: repr_ptr t) (len:uint_32)
: Stack FStar.Bytes.bytes
(requires fun h ->
valid p h /\
len == p.meta.len
)
(ensures fun h x h' ->
B.modifies B.loc_none h h' /\
FStar.Bytes.reveal x == p.meta.repr_bytes /\
FStar.Bytes.len x == p.meta.len
)
= reveal_valid... | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 42,
"end_line": 386,
"start_col": 0,
"start_line": 374
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: LowParse.Repr.repr_ptr t -> len: FStar.Integers.uint_32
-> FStar.HyperStack.ST.Stack FStar.Bytes.bytes | FStar.HyperStack.ST.Stack | [] | [] | [
"LowParse.Repr.repr_ptr",
"FStar.Integers.uint_32",
"FStar.Bytes.of_buffer",
"LowStar.ConstBuffer.qbuf_pre",
"LowParse.Bytes.byte",
"LowStar.ConstBuffer.as_qbuf",
"LowParse.Repr.__proj__Ptr__item__b",
"LowStar.ConstBuffer.cast",
"FStar.Bytes.bytes",
"Prims.b2t",
"Prims.op_Equality",
"FStar.UIn... | [] | false | true | false | false | false | let to_bytes #t (p: repr_ptr t) (len: uint_32)
: Stack FStar.Bytes.bytes
(requires fun h -> valid p h /\ len == p.meta.len)
(ensures
fun h x h' ->
B.modifies B.loc_none h h' /\ FStar.Bytes.reveal x == p.meta.repr_bytes /\
FStar.Bytes.len x == p.meta.len) =
| reveal_valid ();
FStar.Bytes.of_buffer len (C.cast p.b) | false |
Hacl.Impl.Ed25519.Ladder.fst | Hacl.Impl.Ed25519.Ladder.point_mul_g | val point_mul_g:
out:point
-> scalar:lbuffer uint8 32ul ->
Stack unit
(requires fun h ->
live h scalar /\ live h out /\ disjoint out scalar)
(ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\
F51.point_inv_t h1 out /\ F51.inv_ext_point (as_seq h1 out) /\
S.to_aff_point (F51.point_eval h1 out) ... | val point_mul_g:
out:point
-> scalar:lbuffer uint8 32ul ->
Stack unit
(requires fun h ->
live h scalar /\ live h out /\ disjoint out scalar)
(ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\
F51.point_inv_t h1 out /\ F51.inv_ext_point (as_seq h1 out) /\
S.to_aff_point (F51.point_eval h1 out) ... | let point_mul_g out scalar =
push_frame ();
let h0 = ST.get () in
let bscalar = create 4ul (u64 0) in
convert_scalar scalar bscalar;
let q1 = create 20ul (u64 0) in
make_g q1;
point_mul_g_mk_q1234 out bscalar q1;
lemma_exp_four_fw_local (as_seq h0 scalar);
pop_frame () | {
"file_name": "code/ed25519/Hacl.Impl.Ed25519.Ladder.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 248,
"start_col": 0,
"start_line": 239
} | module Hacl.Impl.Ed25519.Ladder
module ST = FStar.HyperStack.ST
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum25519
module F51 = Hacl.Impl.Ed25519.Field51
module BSeq = Lib.ByteSequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module BE = Hacl.Impl... | {
"checked_file": "/",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"Spec.Ed25519.Lemmas.fsti.checked",
"Spec.Ed25519.fst.checked",
"prims.fst.checked",
"LowStar.Ignore.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Lib.ByteSequence.fsti.chec... | [
{
"abbrev": false,
"full_module": "Hacl.Ed25519.PrecompTable",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Ed25519.Group",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Ed25519.PointConstants",
"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 | out: Hacl.Bignum25519.point -> scalar: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Hacl.Bignum25519.point",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Hacl.Impl.Ed25519.Ladder.lemma_exp_four_fw_local",
"Lib.Buffer.as_seq",
"Lib.Buffer.MUT",
"Hacl.Impl.Ed25519.Ladder.point_mul_g_mk_q1234",
"Hacl.Impl.... | [] | false | true | false | false | false | let point_mul_g out scalar =
| push_frame ();
let h0 = ST.get () in
let bscalar = create 4ul (u64 0) in
convert_scalar scalar bscalar;
let q1 = create 20ul (u64 0) in
make_g q1;
point_mul_g_mk_q1234 out bscalar q1;
lemma_exp_four_fw_local (as_seq h0 scalar);
pop_frame () | false |
LowParse.Repr.fsti | LowParse.Repr.length | val length (#t: _) (p: repr_ptr t) (j: LP.jumper p.meta.parser)
: Stack U32.t
(requires fun h -> valid p h)
(ensures fun h n h' -> B.modifies B.loc_none h h' /\ n == p.meta.len) | val length (#t: _) (p: repr_ptr t) (j: LP.jumper p.meta.parser)
: Stack U32.t
(requires fun h -> valid p h)
(ensures fun h n h' -> B.modifies B.loc_none h h' /\ n == p.meta.len) | let length #t (p: repr_ptr t) (j:LP.jumper p.meta.parser)
: Stack U32.t
(requires fun h ->
valid p h)
(ensures fun h n h' ->
B.modifies B.loc_none h h' /\
n == p.meta.len)
= reveal_valid ();
let s = temp_slice_of_repr_ptr p in
(* TODO: Need to revise the type of jumpers to take a p... | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 11,
"end_line": 371,
"start_col": 0,
"start_line": 361
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: LowParse.Repr.repr_ptr t -> j: LowParse.Low.Base.jumper (Mkmeta?.parser (Ptr?.meta p))
-> FStar.HyperStack.ST.Stack FStar.UInt32.t | FStar.HyperStack.ST.Stack | [] | [] | [
"LowParse.Repr.repr_ptr",
"LowParse.Low.Base.jumper",
"LowParse.Repr.__proj__Mkmeta__item__parser_kind",
"LowParse.Repr.__proj__Ptr__item__meta",
"LowParse.Repr.__proj__Mkmeta__item__parser",
"LowParse.Repr.preorder",
"LowParse.Repr.__proj__Ptr__item__b",
"FStar.UInt32.__uint_to_t",
"FStar.UInt32.t"... | [] | false | true | false | false | false | let length #t (p: repr_ptr t) (j: LP.jumper p.meta.parser)
: Stack U32.t
(requires fun h -> valid p h)
(ensures fun h n h' -> B.modifies B.loc_none h h' /\ n == p.meta.len) =
| reveal_valid ();
let s = temp_slice_of_repr_ptr p in
j s 0ul | false |
EverParse3d.InputStream.Base.fst | EverParse3d.InputStream.Base.length_all | val length_all: #t: _ -> #input_stream_inst t -> x: t -> GTot nat | val length_all: #t: _ -> #input_stream_inst t -> x: t -> GTot nat | let length_all #t (#_: input_stream_inst t) (x: t) : GTot nat = U64.v (len_all x) | {
"file_name": "src/3d/prelude/EverParse3d.InputStream.Base.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 81,
"end_line": 232,
"start_col": 0,
"start_line": 232
} | module EverParse3d.InputStream.Base
module U8 = FStar.UInt8
module U64 = FStar.UInt64
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module LPE = EverParse3d.ErrorCode
module LP = LowParse.Low.Base
noextract
inline_for_extraction
class input_stream_inst (t: Type) : Type = {
... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.Tactics.Typeclasses.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checke... | [
{
"abbrev": true,
"full_module": "LowParse.Low.Base",
"short_module": "LP"
},
{
"abbrev": true,
"full_module": "EverParse3d.ErrorCode",
"short_module": "LPE"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: t -> Prims.GTot Prims.nat | Prims.GTot | [
"sometrivial"
] | [] | [
"EverParse3d.InputStream.Base.input_stream_inst",
"FStar.UInt64.v",
"EverParse3d.InputStream.Base.len_all",
"Prims.nat"
] | [] | false | false | false | false | false | let length_all #t (#_: input_stream_inst t) (x: t) : GTot nat =
| U64.v (len_all x) | false |
LowParse.Repr.fsti | LowParse.Repr.valid_if_live_intro | val valid_if_live_intro (#t: _) (r: repr_ptr t) (h: HS.mem)
: Lemma
(requires
(C.qbuf_qual (C.as_qbuf r.b) == C.IMMUTABLE /\ valid r h /\
(let i:I.ibuffer LP.byte = C.as_mbuf r.b in
let m = r.meta in
B.as_seq h i == m.repr_bytes /\ i `I.value_is` (Ghost.hide m.repr_by... | val valid_if_live_intro (#t: _) (r: repr_ptr t) (h: HS.mem)
: Lemma
(requires
(C.qbuf_qual (C.as_qbuf r.b) == C.IMMUTABLE /\ valid r h /\
(let i:I.ibuffer LP.byte = C.as_mbuf r.b in
let m = r.meta in
B.as_seq h i == m.repr_bytes /\ i `I.value_is` (Ghost.hide m.repr_by... | let valid_if_live_intro #t (r:repr_ptr t) (h:HS.mem)
: Lemma
(requires (
C.qbuf_qual (C.as_qbuf r.b) == C.IMMUTABLE /\
valid r h /\
(let i : I.ibuffer LP.byte = C.as_mbuf r.b in
let m = r.meta in
B.as_seq h i == m.repr_bytes /\
i `I.value_is` Ghost.hide m.repr_bytes)))
(... | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 6,
"end_line": 458,
"start_col": 0,
"start_line": 434
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: LowParse.Repr.repr_ptr t -> h: FStar.Monotonic.HyperStack.mem
-> FStar.Pervasives.Lemma
(requires
LowStar.ConstBuffer.qbuf_qual (LowStar.ConstBuffer.as_qbuf (Ptr?.b r)) ==
LowStar.ConstBuffer.IMMUTABLE /\ LowParse.Repr.valid r h /\
(let i = LowStar.ConstBuffer.as_mbuf (Ptr?.b r) in
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Repr.repr_ptr",
"FStar.Monotonic.HyperStack.mem",
"Prims.unit",
"Prims.l_and",
"LowStar.ConstBuffer.live",
"LowParse.Bytes.byte",
"LowParse.Repr.__proj__Ptr__item__b",
"FStar.Seq.Base.equal",
"LowStar.Monotonic.Buffer.as_seq",
"LowStar.ImmutableBuffer.immutable_preorder",
"Prims.squash... | [] | false | false | true | false | false | let valid_if_live_intro #t (r: repr_ptr t) (h: HS.mem)
: Lemma
(requires
(C.qbuf_qual (C.as_qbuf r.b) == C.IMMUTABLE /\ valid r h /\
(let i:I.ibuffer LP.byte = C.as_mbuf r.b in
let m = r.meta in
B.as_seq h i == m.repr_bytes /\ i `I.value_is` (Ghost.hide m.repr_bytes))... | reveal_valid ();
let i:I.ibuffer LP.byte = C.as_mbuf r.b in
let aux (h': HS.mem)
: Lemma (requires C.live h' r.b /\ (B.as_seq h i) `Seq.equal` (B.as_seq h' i))
(ensures valid r h')
[SMTPat (valid r h')] =
let m = r.meta in
LP.valid_ext_intro m.parser h (slice_of_repr_ptr r) 0ul h' (slice_of_repr_ptr... | false |
LowParse.Repr.fsti | LowParse.Repr.valid_if_live | val valid_if_live : p: LowParse.Repr.repr_ptr t -> Prims.GTot Prims.logical | let valid_if_live #t (p:repr_ptr t) =
C.qbuf_qual (C.as_qbuf p.b) == C.IMMUTABLE /\
(let i : I.ibuffer LP.byte = C.as_mbuf p.b in
let m = p.meta in
i `I.value_is` Ghost.hide m.repr_bytes /\
(exists (h:HS.mem).{:pattern valid p h}
m.repr_bytes == B.as_seq h i /\
valid p h /\
(forall h'.
... | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 21,
"end_line": 419,
"start_col": 0,
"start_line": 408
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p: LowParse.Repr.repr_ptr t -> Prims.GTot Prims.logical | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Repr.repr_ptr",
"Prims.l_and",
"Prims.eq2",
"LowStar.ConstBuffer.qual",
"LowStar.ConstBuffer.qbuf_qual",
"LowParse.Bytes.byte",
"LowStar.ConstBuffer.as_qbuf",
"LowParse.Repr.__proj__Ptr__item__b",
"LowStar.ConstBuffer.IMMUTABLE",
"LowStar.ImmutableBuffer.value_is",
"FStar.Ghost.hide",
... | [] | false | false | false | false | true | let valid_if_live #t (p: repr_ptr t) =
| C.qbuf_qual (C.as_qbuf p.b) == C.IMMUTABLE /\
(let i:I.ibuffer LP.byte = C.as_mbuf p.b in
let m = p.meta in
i `I.value_is` (Ghost.hide m.repr_bytes) /\
(exists (h: HS.mem). {:pattern valid p h}
m.repr_bytes == B.as_seq h i /\ valid p h /\
(forall h'. C.live h' p.b /\ (B.as_seq h i) `Seq.equal` (B.as_s... | false | |
LowParse.Repr.fsti | LowParse.Repr.field_accessor_t | val field_accessor_t : f: LowParse.Repr.field_accessor p1 p2 -> Type | let field_accessor_t
(#k1:strong_parser_kind) #t1 (#p1:LP.parser k1 t1)
(#k2: strong_parser_kind) (#t2:Type) (#p2:LP.parser k2 t2)
(f:field_accessor p1 p2)
= p:repr_ptr_p t1 p1 ->
Stack (repr_ptr_p t2 p2)
(requires fun h ->
valid p h /\
f.cl.LP.clens_cond p.meta.v)
... | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 35,
"end_line": 643,
"start_col": 0,
"start_line": 628
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"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 | f: LowParse.Repr.field_accessor p1 p2 -> Type | Prims.Tot | [
"total"
] | [] | [
"LowParse.Repr.strong_parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Repr.field_accessor",
"LowParse.Repr.repr_ptr_p",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"LowParse.Repr.valid",
"LowParse.Low.Base.Spec.__proj__Mkclens__item__clens_cond",
"LowParse.Repr.__proj__FieldAccessor__item_... | [] | false | false | false | false | true | let field_accessor_t
(#k1: strong_parser_kind)
#t1
(#p1: LP.parser k1 t1)
(#k2: strong_parser_kind)
(#t2: Type)
(#p2: LP.parser k2 t2)
(f: field_accessor p1 p2)
=
| p: repr_ptr_p t1 p1
-> Stack (repr_ptr_p t2 p2)
(requires fun h -> valid p h /\ f.cl.LP.clens_cond p.meta.v)
(ensures
fun h0 (q: repr_ptr_p t2 p2) h1 ->
f.cl.LP.clens_cond p.meta.v /\ B.modifies B.loc_none h0 h1 /\ valid q h1 /\
value q == f.cl.LP.clens_get (value p) /\ q `sub_... | false | |
LowParse.Repr.fsti | LowParse.Repr.as_ptr_spec | val as_ptr_spec (#t #b: _) (p: repr_pos t b) : GTot (repr_ptr t) | val as_ptr_spec (#t #b: _) (p: repr_pos t b) : GTot (repr_ptr t) | let as_ptr_spec #t #b (p:repr_pos t b)
: GTot (repr_ptr t)
= Ptr (C.gsub b.base p.start_pos ((Pos?.meta p).len))
(Pos?.meta p)
(Pos?.vv_pos p)
(Pos?.length p) | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 23,
"end_line": 729,
"start_col": 0,
"start_line": 724
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"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 | p: LowParse.Repr.repr_pos t b -> Prims.GTot (LowParse.Repr.repr_ptr t) | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Repr.const_slice",
"LowParse.Repr.repr_pos",
"LowParse.Repr.Ptr",
"LowStar.ConstBuffer.gsub",
"LowParse.Bytes.byte",
"LowParse.Repr.__proj__MkSlice__item__base",
"LowParse.Repr.__proj__Pos__item__start_pos",
"LowParse.Repr.__proj__Mkmeta__item__len",
"LowParse.Repr.__proj__Pos__item__meta"... | [] | false | false | false | false | false | let as_ptr_spec #t #b (p: repr_pos t b) : GTot (repr_ptr t) =
| Ptr (C.gsub b.base p.start_pos ((Pos?.meta p).len)) (Pos?.meta p) (Pos?.vv_pos p) (Pos?.length p) | false |
Hacl.Impl.Frodo.KEM.Encaps.fst | Hacl.Impl.Frodo.KEM.Encaps.crypto_kem_enc_ct_ss | val crypto_kem_enc_ct_ss:
a:FP.frodo_alg
-> gen_a:FP.frodo_gen_a{is_supported gen_a}
-> seed_se_k:lbytes (2ul *! crypto_bytes a)
-> mu:lbytes (bytes_mu a)
-> ct:lbytes (crypto_ciphertextbytes a)
-> ss:lbytes (crypto_bytes a)
-> pk:lbytes (crypto_publickeybytes a)
-> Stack unit
(requires fun h ->
... | val crypto_kem_enc_ct_ss:
a:FP.frodo_alg
-> gen_a:FP.frodo_gen_a{is_supported gen_a}
-> seed_se_k:lbytes (2ul *! crypto_bytes a)
-> mu:lbytes (bytes_mu a)
-> ct:lbytes (crypto_ciphertextbytes a)
-> ss:lbytes (crypto_bytes a)
-> pk:lbytes (crypto_publickeybytes a)
-> Stack unit
(requires fun h ->
... | let crypto_kem_enc_ct_ss a gen_a seed_se_k mu ct ss pk =
let seed_se = sub seed_se_k 0ul (crypto_bytes a) in
let k = sub seed_se_k (crypto_bytes a) (crypto_bytes a) in
crypto_kem_enc_ct a gen_a mu pk seed_se ct;
crypto_kem_enc_ss a k ct ss | {
"file_name": "code/frodo/Hacl.Impl.Frodo.KEM.Encaps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 29,
"end_line": 366,
"start_col": 0,
"start_line": 362
} | module Hacl.Impl.Frodo.KEM.Encaps
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open LowStar.Buffer
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.Matrix
open Hacl.Impl.Frodo.Params
open Hacl.Impl.Frodo.KEM
open Hacl.Impl.Frodo.Encode
open Hacl.Impl.Frodo.Pack
open Hacl.Impl.Frodo.Sample
open Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.Matrix.fst.checked",
"Spec.Frodo.Params.fst.checked",
"Spec.Frodo.KEM.Encaps.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.Frodo.KEM.KeyGen",
"short_module": "KG"
},
{
"abbrev": true,
"full_module": "Spec.Matrix",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.Encaps",
"short_module": "S"
},
{
"abbrev": true,
"fu... | {
"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.Frodo.Params.frodo_alg ->
gen_a: Spec.Frodo.Params.frodo_gen_a{Hacl.Impl.Frodo.Params.is_supported gen_a} ->
seed_se_k: Hacl.Impl.Matrix.lbytes (2ul *! Hacl.Impl.Frodo.Params.crypto_bytes a) ->
mu: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.bytes_mu a) ->
ct: Hacl.Impl.Matrix.lbytes (H... | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Frodo.Params.frodo_alg",
"Spec.Frodo.Params.frodo_gen_a",
"Prims.b2t",
"Hacl.Impl.Frodo.Params.is_supported",
"Hacl.Impl.Matrix.lbytes",
"Lib.IntTypes.op_Star_Bang",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"FStar.UInt32.__uint_to_t",
"Hacl.Impl.Frodo.Params.crypto_bytes",
"Hacl.Impl.Frodo.... | [] | false | true | false | false | false | let crypto_kem_enc_ct_ss a gen_a seed_se_k mu ct ss pk =
| let seed_se = sub seed_se_k 0ul (crypto_bytes a) in
let k = sub seed_se_k (crypto_bytes a) (crypto_bytes a) in
crypto_kem_enc_ct a gen_a mu pk seed_se ct;
crypto_kem_enc_ss a k ct ss | false |
LowParse.Repr.fsti | LowParse.Repr.recall_stable_region_repr_ptr | val recall_stable_region_repr_ptr (#t: _) (r: ST.drgn) (p: stable_region_repr_ptr r t)
: Stack unit
(requires fun h -> HS.live_region h (ST.rid_of_drgn r))
(ensures fun h0 _ h1 -> h0 == h1 /\ valid p h1) | val recall_stable_region_repr_ptr (#t: _) (r: ST.drgn) (p: stable_region_repr_ptr r t)
: Stack unit
(requires fun h -> HS.live_region h (ST.rid_of_drgn r))
(ensures fun h0 _ h1 -> h0 == h1 /\ valid p h1) | let recall_stable_region_repr_ptr #t (r:ST.drgn) (p:stable_region_repr_ptr r t)
: Stack unit
(requires fun h ->
HS.live_region h (ST.rid_of_drgn r))
(ensures fun h0 _ h1 ->
h0 == h1 /\
valid p h1)
= B.recall (C.cast p.b);
recall_stable_repr_ptr p | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 28,
"end_line": 543,
"start_col": 0,
"start_line": 535
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: FStar.HyperStack.ST.drgn -> p: LowParse.Repr.stable_region_repr_ptr r t
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"FStar.HyperStack.ST.drgn",
"LowParse.Repr.stable_region_repr_ptr",
"LowParse.Repr.recall_stable_repr_ptr",
"Prims.unit",
"LowStar.Monotonic.Buffer.recall",
"LowParse.Bytes.byte",
"LowStar.ConstBuffer.qbuf_pre",
"LowStar.ConstBuffer.as_qbuf",
"LowParse.Repr.__proj__Ptr__item__b",
"LowStar.ConstBuf... | [] | false | true | false | false | false | let recall_stable_region_repr_ptr #t (r: ST.drgn) (p: stable_region_repr_ptr r t)
: Stack unit
(requires fun h -> HS.live_region h (ST.rid_of_drgn r))
(ensures fun h0 _ h1 -> h0 == h1 /\ valid p h1) =
| B.recall (C.cast p.b);
recall_stable_repr_ptr p | false |
LowParse.Repr.fsti | LowParse.Repr.stash | val stash (rgn: ST.drgn) (#t: _) (r: repr_ptr t) (len: uint_32{len == r.meta.len})
: ST (stable_region_repr_ptr rgn t)
(requires fun h -> valid r h /\ HS.live_region h (ST.rid_of_drgn rgn))
(ensures fun h0 r' h1 -> B.modifies B.loc_none h0 h1 /\ valid r' h1 /\ r.meta == r'.meta) | val stash (rgn: ST.drgn) (#t: _) (r: repr_ptr t) (len: uint_32{len == r.meta.len})
: ST (stable_region_repr_ptr rgn t)
(requires fun h -> valid r h /\ HS.live_region h (ST.rid_of_drgn rgn))
(ensures fun h0 r' h1 -> B.modifies B.loc_none h0 h1 /\ valid r' h1 /\ r.meta == r'.meta) | let stash (rgn:ST.drgn) #t (r:repr_ptr t) (len:uint_32{len == r.meta.len})
: ST (stable_region_repr_ptr rgn t)
(requires fun h ->
valid r h /\
HS.live_region h (ST.rid_of_drgn rgn))
(ensures fun h0 r' h1 ->
B.modifies B.loc_none h0 h1 /\
valid r' h1 /\
r.meta == r'.meta)
= reveal_valid... | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 4,
"end_line": 592,
"start_col": 0,
"start_line": 571
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"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 |
rgn: FStar.HyperStack.ST.drgn ->
r: LowParse.Repr.repr_ptr t ->
len: FStar.Integers.uint_32{len == Mkmeta?.len (Ptr?.meta r)}
-> FStar.HyperStack.ST.ST (LowParse.Repr.stable_region_repr_ptr rgn t) | FStar.HyperStack.ST.ST | [] | [] | [
"FStar.HyperStack.ST.drgn",
"LowParse.Repr.repr_ptr",
"FStar.Integers.uint_32",
"Prims.eq2",
"LowParse.Repr.__proj__Mkmeta__item__len",
"LowParse.Repr.__proj__Ptr__item__meta",
"Prims.unit",
"LowParse.Repr.valid_if_live_intro",
"LowParse.Repr.Ptr",
"LowParse.Repr.__proj__Ptr__item__vv",
"LowPars... | [] | false | true | false | false | false | let stash (rgn: ST.drgn) #t (r: repr_ptr t) (len: uint_32{len == r.meta.len})
: ST (stable_region_repr_ptr rgn t)
(requires fun h -> valid r h /\ HS.live_region h (ST.rid_of_drgn rgn))
(ensures fun h0 r' h1 -> B.modifies B.loc_none h0 h1 /\ valid r' h1 /\ r.meta == r'.meta) =
| reveal_valid ();
let buf' = ralloc_and_blit rgn r.b len in
let s = MkSlice buf' len in
let h = get () in
let _ =
let slice = slice_of_const_buffer r.b len in
let slice' = slice_of_const_buffer buf' len in
LP.valid_facts r.meta.parser h slice 0ul;
LP.valid_facts r.meta.parser h slice' 0ul
in
let p = Ptr buf' r.m... | false |
EverParse3d.InputStream.Base.fst | EverParse3d.InputStream.Base.preserved' | val preserved'
(#t: Type)
(#[EverParse3d.Util.solve_from_ctx ()] inst: input_stream_inst t)
(x: t)
(l: B.loc)
(h h': HS.mem)
: Lemma (requires (live x h /\ B.modifies l h h' /\ B.loc_disjoint (footprint x) l))
(ensures
(live x h' /\ get_remaining x h' == get_remaining x h... | val preserved'
(#t: Type)
(#[EverParse3d.Util.solve_from_ctx ()] inst: input_stream_inst t)
(x: t)
(l: B.loc)
(h h': HS.mem)
: Lemma (requires (live x h /\ B.modifies l h h' /\ B.loc_disjoint (footprint x) l))
(ensures
(live x h' /\ get_remaining x h' == get_remaining x h... | let preserved'
(#t: Type)
(# [EverParse3d.Util.solve_from_ctx ()] inst : input_stream_inst t)
(x: t)
(l: B.loc)
(h: HS.mem)
(h' : HS.mem)
: Lemma
(requires (live x h /\ B.modifies l h h' /\ B.loc_disjoint (footprint x) l))
(ensures (
live x h' /\
get_remaining x h' == get_r... | {
"file_name": "src/3d/prelude/EverParse3d.InputStream.Base.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 20,
"end_line": 256,
"start_col": 0,
"start_line": 234
} | module EverParse3d.InputStream.Base
module U8 = FStar.UInt8
module U64 = FStar.UInt64
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module LPE = EverParse3d.ErrorCode
module LP = LowParse.Low.Base
noextract
inline_for_extraction
class input_stream_inst (t: Type) : Type = {
... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt8.fsti.checked",
"FStar.UInt64.fsti.checked",
"FStar.Tactics.Typeclasses.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checke... | [
{
"abbrev": true,
"full_module": "LowParse.Low.Base",
"short_module": "LP"
},
{
"abbrev": true,
"full_module": "EverParse3d.ErrorCode",
"short_module": "LPE"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_m... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 2,
"max_fuel": 0,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
x: t ->
l: LowStar.Monotonic.Buffer.loc ->
h: FStar.Monotonic.HyperStack.mem ->
h': FStar.Monotonic.HyperStack.mem
-> FStar.Pervasives.Lemma
(requires
EverParse3d.InputStream.Base.live x h /\ LowStar.Monotonic.Buffer.modifies l h h' /\
LowStar.Monotonic.Buffer.loc_disjoint (Ever... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"EverParse3d.InputStream.Base.input_stream_inst",
"LowStar.Monotonic.Buffer.loc",
"FStar.Monotonic.HyperStack.mem",
"EverParse3d.InputStream.Base.preserved",
"Prims.unit",
"Prims.l_and",
"EverParse3d.InputStream.Base.live",
"LowStar.Monotonic.Buffer.modifies",
"LowStar.Monotonic.Buffer.loc_disjoint"... | [] | true | false | true | false | false | let preserved'
(#t: Type)
(#[EverParse3d.Util.solve_from_ctx ()] inst: input_stream_inst t)
(x: t)
(l: B.loc)
(h h': HS.mem)
: Lemma (requires (live x h /\ B.modifies l h h' /\ B.loc_disjoint (footprint x) l))
(ensures
(live x h' /\ get_remaining x h' == get_remaining x h... | preserved x l h h' | false |
LowParse.Repr.fsti | LowParse.Repr.mk | val mk
(#k: strong_parser_kind)
(#t: _)
(#parser: LP.parser k t)
(parser32: LS.parser32 parser)
(#q: _)
(slice: LP.slice (C.q_preorder q LP.byte) (C.q_preorder q LP.byte))
(from to: uint_32)
: Stack (repr_ptr_p t parser)
(requires fun h -> LP.valid_pos parser h slice ... | val mk
(#k: strong_parser_kind)
(#t: _)
(#parser: LP.parser k t)
(parser32: LS.parser32 parser)
(#q: _)
(slice: LP.slice (C.q_preorder q LP.byte) (C.q_preorder q LP.byte))
(from to: uint_32)
: Stack (repr_ptr_p t parser)
(requires fun h -> LP.valid_pos parser h slice ... | let mk (#k:strong_parser_kind) #t (#parser:LP.parser k t)
(parser32:LS.parser32 parser)
#q
(slice:LP.slice (C.q_preorder q LP.byte) (C.q_preorder q LP.byte))
(from to:uint_32)
: Stack (repr_ptr_p t parser)
(requires fun h ->
LP.valid_pos parser h slice from to)
(ensures fun h... | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 42,
"end_line": 310,
"start_col": 0,
"start_line": 296
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
parser32: LowParse.SLow.Base.parser32 parser ->
slice:
LowParse.Slice.slice (LowStar.ConstBuffer.q_preorder q LowParse.Bytes.byte)
(LowStar.ConstBuffer.q_preorder q LowParse.Bytes.byte) ->
from: FStar.Integers.uint_32 ->
to: FStar.Integers.uint_32
-> FStar.HyperStack.ST.Stack (LowParse.... | FStar.HyperStack.ST.Stack | [] | [] | [
"LowParse.Repr.strong_parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.SLow.Base.parser32",
"LowStar.ConstBuffer.qual",
"LowParse.Slice.slice",
"LowStar.ConstBuffer.q_preorder",
"LowParse.Bytes.byte",
"FStar.Integers.uint_32",
"LowParse.Repr.mk_from_const_slice",
"LowParse.Repr.repr_ptr_p",
... | [] | false | true | false | false | false | let mk
(#k: strong_parser_kind)
#t
(#parser: LP.parser k t)
(parser32: LS.parser32 parser)
#q
(slice: LP.slice (C.q_preorder q LP.byte) (C.q_preorder q LP.byte))
(from: uint_32)
(to: uint_32)
: Stack (repr_ptr_p t parser)
(requires fun h -> LP.valid_pos parser h... | let c = MkSlice (C.of_qbuf slice.LP.base) slice.LP.len in
mk_from_const_slice parser32 c from to | false |
LowParse.Repr.fsti | LowParse.Repr.recall_stable_repr_ptr | val recall_stable_repr_ptr (#t: _) (r: stable_repr_ptr t)
: Stack unit (requires fun h -> C.live h r.b) (ensures fun h0 _ h1 -> h0 == h1 /\ valid r h1) | val recall_stable_repr_ptr (#t: _) (r: stable_repr_ptr t)
: Stack unit (requires fun h -> C.live h r.b) (ensures fun h0 _ h1 -> h0 == h1 /\ valid r h1) | let recall_stable_repr_ptr #t (r:stable_repr_ptr t)
: Stack unit
(requires fun h ->
C.live h r.b)
(ensures fun h0 _ h1 ->
h0 == h1 /\
valid r h1)
= reveal_valid ();
let h1 = get () in
let i = C.to_ibuffer r.b in
let aux (h:HS.mem)
: Lemma
(requires
valid... | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 24,
"end_line": 521,
"start_col": 0,
"start_line": 496
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: LowParse.Repr.stable_repr_ptr t -> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"LowParse.Repr.stable_repr_ptr",
"LowStar.ImmutableBuffer.recall_value",
"LowParse.Bytes.byte",
"Prims.unit",
"FStar.Ghost.erased",
"FStar.Seq.Base.seq",
"FStar.Ghost.hide",
"LowParse.Repr.__proj__Mkmeta__item__repr_bytes",
"LowParse.Repr.meta",
"LowParse.Repr.__proj__Ptr__item__meta",
"FStar.Mo... | [] | false | true | false | false | false | let recall_stable_repr_ptr #t (r: stable_repr_ptr t)
: Stack unit (requires fun h -> C.live h r.b) (ensures fun h0 _ h1 -> h0 == h1 /\ valid r h1) =
| reveal_valid ();
let h1 = get () in
let i = C.to_ibuffer r.b in
let aux (h: HS.mem)
: Lemma (requires valid r h /\ B.as_seq h i == B.as_seq h1 i)
(ensures valid r h1)
[SMTPat (valid r h)] =
let m = r.meta in
LP.valid_ext_intro m.parser h (slice_of_repr_ptr r) 0ul h1 (slice_of_repr_ptr r) 0ul
in
let ... | false |
LowParse.Repr.fsti | LowParse.Repr.mk_from_serialize | val mk_from_serialize
(#k: strong_parser_kind)
(#t: _)
(#parser: LP.parser k t)
(#serializer: LP.serializer parser)
(parser32: LS.parser32 parser)
(serializer32: LS.serializer32 serializer)
(size32: LS.size32 serializer)
(b: LP.slice mut_p mut_p)
(from: uint_32{from... | val mk_from_serialize
(#k: strong_parser_kind)
(#t: _)
(#parser: LP.parser k t)
(#serializer: LP.serializer parser)
(parser32: LS.parser32 parser)
(serializer32: LS.serializer32 serializer)
(size32: LS.size32 serializer)
(b: LP.slice mut_p mut_p)
(from: uint_32{from... | let mk_from_serialize
(#k:strong_parser_kind) #t (#parser:LP.parser k t) (#serializer: LP.serializer parser)
(parser32: LS.parser32 parser) (serializer32: LS.serializer32 serializer)
(size32: LS.size32 serializer)
(b:LP.slice mut_p mut_p)
(from:uint_32 { from <= b.LP.len })
(x: t)
: Stack (opt... | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 7,
"end_line": 354,
"start_col": 0,
"start_line": 319
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
parser32: LowParse.SLow.Base.parser32 parser ->
serializer32: LowParse.SLow.Base.serializer32 serializer ->
size32: LowParse.SLow.Base.size32 serializer ->
b: LowParse.Slice.slice LowParse.Repr.mut_p LowParse.Repr.mut_p ->
from: FStar.Integers.uint_32{from <= Mkslice?.len b} ->
x: t
-> FStar.... | FStar.HyperStack.ST.Stack | [] | [] | [
"LowParse.Repr.strong_parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"LowParse.SLow.Base.parser32",
"LowParse.SLow.Base.serializer32",
"LowParse.SLow.Base.size32",
"LowParse.Slice.slice",
"LowParse.Repr.mut_p",
"FStar.Integers.uint_32",
"Prims.b2t",
"FStar.Integers.o... | [] | false | true | false | false | false | let mk_from_serialize
(#k: strong_parser_kind)
#t
(#parser: LP.parser k t)
(#serializer: LP.serializer parser)
(parser32: LS.parser32 parser)
(serializer32: LS.serializer32 serializer)
(size32: LS.size32 serializer)
(b: LP.slice mut_p mut_p)
(from: uint_32{from <= b... | let size = size32 x in
let len = b.LP.len - from in
if len < size
then None
else
let bytes = serializer32 x in
let dst = B.sub b.LP.base from size in
(if size > 0ul then FStar.Bytes.store_bytes bytes dst);
let to = from + size in
let h = get () in
LP.serialize_valid_exact serializer h b x from to;
let r =... | false |
LowParse.Repr.fsti | LowParse.Repr.repr_pos_p | val repr_pos_p : t: Type -> b: LowParse.Repr.const_slice -> parser: LowParse.Spec.Base.parser k t -> Type | let repr_pos_p (t:Type) (b:const_slice) #k (parser:LP.parser k t) =
r:repr_pos t b {
r.meta.parser_kind == k /\
r.meta.parser == parser
} | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 741,
"start_col": 0,
"start_line": 737
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"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 | t: Type -> b: LowParse.Repr.const_slice -> parser: LowParse.Spec.Base.parser k t -> Type | Prims.Tot | [
"total"
] | [] | [
"LowParse.Repr.const_slice",
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Repr.repr_pos",
"Prims.l_and",
"Prims.eq2",
"LowParse.Repr.__proj__Mkmeta__item__parser_kind",
"LowParse.Repr.__proj__Pos__item__meta",
"LowParse.Repr.__proj__Mkmeta__item__parser"
] | [] | false | false | false | false | true | let repr_pos_p (t: Type) (b: const_slice) #k (parser: LP.parser k t) =
| r: repr_pos t b {r.meta.parser_kind == k /\ r.meta.parser == parser} | false | |
LowParse.Repr.fsti | LowParse.Repr.read_field | val read_field
(#k1: strong_parser_kind)
(#t1: _)
(#p1: LP.parser k1 t1)
(#t2: _)
(f: field_reader p1 t2)
: field_reader_t f | val read_field
(#k1: strong_parser_kind)
(#t1: _)
(#p1: LP.parser k1 t1)
(#t2: _)
(f: field_reader p1 t2)
: field_reader_t f | let read_field (#k1:strong_parser_kind) (#t1:_) (#p1:LP.parser k1 t1)
#t2 (f:field_reader p1 t2)
: field_reader_t f
= reveal_valid ();
fun p ->
[@inline_let]
let FieldReader acc reader = f in
let b = temp_slice_of_repr_ptr p in
let pos = acc b 0ul in
reader b pos | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 16,
"end_line": 705,
"start_col": 0,
"start_line": 696
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"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 | f: LowParse.Repr.field_reader p1 t2 -> LowParse.Repr.field_reader_t f | Prims.Tot | [
"total"
] | [] | [
"LowParse.Repr.strong_parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Repr.field_reader",
"LowParse.Repr.repr_ptr_p",
"LowParse.Low.Base.Spec.clens",
"LowParse.Low.Base.Spec.gaccessor",
"LowParse.Low.Base.accessor",
"LowParse.Low.Base.leaf_reader",
"LowParse.Repr.preorder",
"LowParse.Repr.__p... | [] | false | false | false | false | false | let read_field (#k1: strong_parser_kind) (#t1: _) (#p1: LP.parser k1 t1) #t2 (f: field_reader p1 t2)
: field_reader_t f =
| reveal_valid ();
fun p ->
[@@ inline_let ]let FieldReader acc reader = f in
let b = temp_slice_of_repr_ptr p in
let pos = acc b 0ul in
reader b pos | false |
LowParse.Repr.fsti | LowParse.Repr.field_reader_t | val field_reader_t : f: LowParse.Repr.field_reader p1 t2 -> Type | let field_reader_t
(#k1:strong_parser_kind) #t1 (#p1:LP.parser k1 t1)
(#t2:Type)
(f:field_reader p1 t2)
= p:repr_ptr_p t1 p1 ->
Stack t2
(requires fun h ->
valid p h /\
f.cl.LP.clens_cond p.meta.v)
(ensures fun h0 pv h1 ->
B.modifies B.loc_none h0 h1 /\
pv... | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 41,
"end_line": 693,
"start_col": 0,
"start_line": 682
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"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 | f: LowParse.Repr.field_reader p1 t2 -> Type | Prims.Tot | [
"total"
] | [] | [
"LowParse.Repr.strong_parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Repr.field_reader",
"LowParse.Repr.repr_ptr_p",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"LowParse.Repr.valid",
"LowParse.Low.Base.Spec.__proj__Mkclens__item__clens_cond",
"LowParse.Repr.__proj__FieldReader__item__cl"... | [] | false | false | false | false | true | let field_reader_t
(#k1: strong_parser_kind)
#t1
(#p1: LP.parser k1 t1)
(#t2: Type)
(f: field_reader p1 t2)
=
| p: repr_ptr_p t1 p1
-> Stack t2
(requires fun h -> valid p h /\ f.cl.LP.clens_cond p.meta.v)
(ensures fun h0 pv h1 -> B.modifies B.loc_none h0 h1 /\ pv == f.cl.LP.clens_get (value p)) | false | |
LowParse.Repr.fsti | LowParse.Repr.const_buffer_of_repr_pos | val const_buffer_of_repr_pos (#t #b: _) (r: repr_pos t b) : GTot (C.const_buffer LP.byte) | val const_buffer_of_repr_pos (#t #b: _) (r: repr_pos t b) : GTot (C.const_buffer LP.byte) | let const_buffer_of_repr_pos #t #b (r:repr_pos t b)
: GTot (C.const_buffer LP.byte)
= C.gsub b.base r.start_pos r.meta.len | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 40,
"end_line": 734,
"start_col": 0,
"start_line": 732
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: LowParse.Repr.repr_pos t b -> Prims.GTot (LowStar.ConstBuffer.const_buffer LowParse.Bytes.byte) | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Repr.const_slice",
"LowParse.Repr.repr_pos",
"LowStar.ConstBuffer.gsub",
"LowParse.Bytes.byte",
"LowParse.Repr.__proj__MkSlice__item__base",
"LowParse.Repr.__proj__Pos__item__start_pos",
"LowParse.Repr.__proj__Mkmeta__item__len",
"LowParse.Repr.__proj__Pos__item__meta",
"LowStar.ConstBuffe... | [] | false | false | false | false | false | let const_buffer_of_repr_pos #t #b (r: repr_pos t b) : GTot (C.const_buffer LP.byte) =
| C.gsub b.base r.start_pos r.meta.len | false |
FStar.Matrix.fst | FStar.Matrix.matrix_mul_is_right_distributive | val matrix_mul_is_right_distributive (#c:_) (#eq:_) (#m #n #p:pos) (add: CE.cm c eq)
(mul: CE.cm c eq{is_fully_distributive mul add /\ is_absorber add.unit mul})
(mx my: matrix c m n) (mz: matrix c n p)
: Lemma (matrix_mul add mul (matrix_add ad... | val matrix_mul_is_right_distributive (#c:_) (#eq:_) (#m #n #p:pos) (add: CE.cm c eq)
(mul: CE.cm c eq{is_fully_distributive mul add /\ is_absorber add.unit mul})
(mx my: matrix c m n) (mz: matrix c n p)
: Lemma (matrix_mul add mul (matrix_add ad... | let matrix_mul_is_right_distributive #c #eq #m #n #p (add: CE.cm c eq)
(mul: CE.cm c eq{is_fully_distributive mul add /\ is_absorber add.unit mul})
(mx my: matrix c m n) (mz: matrix c n p)
: Lemma (matrix_mul add mul (matrix_add add mx my) mz `m... | {
"file_name": "ulib/FStar.Matrix.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 43,
"end_line": 1172,
"start_col": 0,
"start_line": 1140
} | (*
Copyright 2022 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... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Seq.Properties.fsti.checked",
"FStar.Seq.Permutation.fsti.checked",
"FStar.Seq.Equiv.fsti.checked",
"FStar.Seq.Base.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Mul.f... | [
{
"abbrev": false,
"full_module": "FStar.Seq.Equiv",
"short_module": null
},
{
"abbrev": true,
"full_module": "FStar.Seq.Properties",
"short_module": "SProp"
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
add: FStar.Algebra.CommMonoid.Equiv.cm c eq ->
mul:
FStar.Algebra.CommMonoid.Equiv.cm c eq
{FStar.Matrix.is_fully_distributive mul add /\ FStar.Matrix.is_absorber (CM?.unit add) mul} ->
mx: FStar.Matrix.matrix c m n ->
my: FStar.Matrix.matrix c m n ->
mz: FStar.Matrix.matrix c n p
-... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Algebra.CommMonoid.Equiv.equiv",
"Prims.pos",
"FStar.Algebra.CommMonoid.Equiv.cm",
"Prims.l_and",
"FStar.Matrix.is_fully_distributive",
"FStar.Matrix.is_absorber",
"FStar.Algebra.CommMonoid.Equiv.__proj__CM__item__unit",
"FStar.Matrix.matrix",
"FStar.Matrix.matrix_equiv_from_proof",
"FStar.... | [] | false | false | true | false | false | let matrix_mul_is_right_distributive
#c
#eq
#m
#n
#p
(add: CE.cm c eq)
(mul: CE.cm c eq {is_fully_distributive mul add /\ is_absorber add.unit mul})
(mx: matrix c m n)
(my: matrix c m n)
(mz: matrix c n p)
: Lemma
(matrix_eq_fun eq
(matrix_mul ... | let mxy = matrix_add add mx my in
let mxz = matrix_mul add mul mx mz in
let myz = matrix_mul add mul my mz in
let lhs = matrix_mul add mul mxy mz in
let rhs = matrix_add add mxz myz in
let sum_j (f: (under n -> c)) = SP.foldm_snoc add (SB.init n f) in
let sum_k (f: (under p -> c)) = SP.foldm_snoc add (SB.init p f) in
l... | false |
Hacl.Impl.Frodo.KEM.Encaps.fst | Hacl.Impl.Frodo.KEM.Encaps.crypto_kem_enc_ | val crypto_kem_enc_:
a:FP.frodo_alg
-> gen_a:FP.frodo_gen_a{is_supported gen_a}
-> mu:lbytes (bytes_mu a)
-> ct:lbytes (crypto_ciphertextbytes a)
-> ss:lbytes (crypto_bytes a)
-> pk:lbytes (crypto_publickeybytes a)
-> Stack unit
(requires fun h ->
live h ct /\ live h ss /\ live h pk /\ live h... | val crypto_kem_enc_:
a:FP.frodo_alg
-> gen_a:FP.frodo_gen_a{is_supported gen_a}
-> mu:lbytes (bytes_mu a)
-> ct:lbytes (crypto_ciphertextbytes a)
-> ss:lbytes (crypto_bytes a)
-> pk:lbytes (crypto_publickeybytes a)
-> Stack unit
(requires fun h ->
live h ct /\ live h ss /\ live h pk /\ live h... | let crypto_kem_enc_ a gen_a mu ct ss pk =
push_frame ();
let seed_se_k = create (2ul *! crypto_bytes a) (u8 0) in
crypto_kem_enc0 a gen_a mu ct ss pk seed_se_k;
clear_words_u8 seed_se_k;
pop_frame () | {
"file_name": "code/frodo/Hacl.Impl.Frodo.KEM.Encaps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 412,
"start_col": 0,
"start_line": 407
} | module Hacl.Impl.Frodo.KEM.Encaps
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open LowStar.Buffer
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.Matrix
open Hacl.Impl.Frodo.Params
open Hacl.Impl.Frodo.KEM
open Hacl.Impl.Frodo.Encode
open Hacl.Impl.Frodo.Pack
open Hacl.Impl.Frodo.Sample
open Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.Matrix.fst.checked",
"Spec.Frodo.Params.fst.checked",
"Spec.Frodo.KEM.Encaps.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.Frodo.KEM.KeyGen",
"short_module": "KG"
},
{
"abbrev": true,
"full_module": "Spec.Matrix",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.Encaps",
"short_module": "S"
},
{
"abbrev": true,
"fu... | {
"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.Frodo.Params.frodo_alg ->
gen_a: Spec.Frodo.Params.frodo_gen_a{Hacl.Impl.Frodo.Params.is_supported gen_a} ->
mu: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.bytes_mu a) ->
ct: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_ciphertextbytes a) ->
ss: Hacl.Impl.Matrix.lbytes (Hacl.... | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Frodo.Params.frodo_alg",
"Spec.Frodo.Params.frodo_gen_a",
"Prims.b2t",
"Hacl.Impl.Frodo.Params.is_supported",
"Hacl.Impl.Matrix.lbytes",
"Hacl.Impl.Frodo.Params.bytes_mu",
"Hacl.Impl.Frodo.Params.crypto_ciphertextbytes",
"Hacl.Impl.Frodo.Params.crypto_bytes",
"Hacl.Impl.Frodo.Params.crypto_pub... | [] | false | true | false | false | false | let crypto_kem_enc_ a gen_a mu ct ss pk =
| push_frame ();
let seed_se_k = create (2ul *! crypto_bytes a) (u8 0) in
crypto_kem_enc0 a gen_a mu ct ss pk seed_se_k;
clear_words_u8 seed_se_k;
pop_frame () | false |
LowParse.Repr.fsti | LowParse.Repr.as_repr_pos | val as_repr_pos (#t: _) (b: const_slice) (from to: index b) (p: repr_ptr t)
: Pure (repr_pos t b)
(requires from <= to /\ Ptr?.b p == C.gsub b.base from (to - from))
(ensures fun r -> p == as_ptr_spec r) | val as_repr_pos (#t: _) (b: const_slice) (from to: index b) (p: repr_ptr t)
: Pure (repr_pos t b)
(requires from <= to /\ Ptr?.b p == C.gsub b.base from (to - from))
(ensures fun r -> p == as_ptr_spec r) | let as_repr_pos #t (b:const_slice) (from to:index b) (p:repr_ptr t)
: Pure (repr_pos t b)
(requires
from <= to /\
Ptr?.b p == C.gsub b.base from (to - from))
(ensures fun r ->
p == as_ptr_spec r)
= Pos from (Ptr?.meta p) (Ptr?.vv p) (to - from) | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 50,
"end_line": 818,
"start_col": 0,
"start_line": 811
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
b: LowParse.Repr.const_slice ->
from: LowParse.Repr.index b ->
to: LowParse.Repr.index b ->
p: LowParse.Repr.repr_ptr t
-> Prims.Pure (LowParse.Repr.repr_pos t b) | Prims.Pure | [] | [] | [
"LowParse.Repr.const_slice",
"LowParse.Repr.index",
"LowParse.Repr.repr_ptr",
"LowParse.Repr.Pos",
"LowParse.Repr.__proj__Ptr__item__meta",
"LowParse.Repr.__proj__Ptr__item__vv",
"FStar.Integers.op_Subtraction",
"FStar.Integers.Unsigned",
"FStar.Integers.W32",
"LowParse.Repr.repr_pos",
"Prims.l_... | [] | false | false | false | false | false | let as_repr_pos #t (b: const_slice) (from: index b) (to: index b) (p: repr_ptr t)
: Pure (repr_pos t b)
(requires from <= to /\ Ptr?.b p == C.gsub b.base from (to - from))
(ensures fun r -> p == as_ptr_spec r) =
| Pos from (Ptr?.meta p) (Ptr?.vv p) (to - from) | false |
LowParse.Repr.fsti | LowParse.Repr.field_accessor_pos_post | val field_accessor_pos_post : p: LowParse.Repr.repr_pos t1 b ->
f: LowParse.Repr.field_accessor (Mkmeta?.parser (Pos?.meta p)) p2 ->
h0: FStar.Monotonic.HyperStack.mem ->
q: LowParse.Repr.repr_pos_p t2 b p2 ->
h1: FStar.Monotonic.HyperStack.mem
-> Prims.GTot Prims.logical | let field_accessor_pos_post (#b:const_slice) (#t1:Type) (p:repr_pos t1 b)
(#k2: strong_parser_kind)
(#t2:Type)
(#p2: LP.parser k2 t2)
(f:field_accessor p.meta.parser p2) =
fun h0 (q:repr_pos_p t2 b p2) h1 ... | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 50,
"end_line": 908,
"start_col": 0,
"start_line": 898
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"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 |
p: LowParse.Repr.repr_pos t1 b ->
f: LowParse.Repr.field_accessor (Mkmeta?.parser (Pos?.meta p)) p2 ->
h0: FStar.Monotonic.HyperStack.mem ->
q: LowParse.Repr.repr_pos_p t2 b p2 ->
h1: FStar.Monotonic.HyperStack.mem
-> Prims.GTot Prims.logical | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Repr.const_slice",
"LowParse.Repr.repr_pos",
"LowParse.Repr.strong_parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Repr.field_accessor",
"LowParse.Repr.__proj__Mkmeta__item__parser_kind",
"LowParse.Repr.__proj__Pos__item__meta",
"LowParse.Repr.__proj__Mkmeta__item__parser",
"FStar.Mon... | [] | false | false | false | false | true | let field_accessor_pos_post
(#b: const_slice)
(#t1: Type)
(p: repr_pos t1 b)
(#k2: strong_parser_kind)
(#t2: Type)
(#p2: LP.parser k2 t2)
(f: field_accessor p.meta.parser p2)
=
| fun h0 (q: repr_pos_p t2 b p2) h1 ->
let cl = FieldAccessor?.cl f in
cl.LP.clens_cond p.meta.v /\ B.modifies B.loc_none h0 h1 /\ valid_repr_pos q h1 /\
value_pos q == cl.LP.clens_get (value_pos p) | false | |
LowParse.Repr.fsti | LowParse.Repr.as_ptr | val as_ptr (#t #b: _) (r: repr_pos t b)
: Stack (repr_ptr t)
(requires fun h -> valid_repr_pos r h)
(ensures fun h0 ptr h1 -> ptr == as_ptr_spec r /\ h0 == h1) | val as_ptr (#t #b: _) (r: repr_pos t b)
: Stack (repr_ptr t)
(requires fun h -> valid_repr_pos r h)
(ensures fun h0 ptr h1 -> ptr == as_ptr_spec r /\ h0 == h1) | let as_ptr #t #b (r:repr_pos t b)
: Stack (repr_ptr t)
(requires fun h ->
valid_repr_pos r h)
(ensures fun h0 ptr h1 ->
ptr == as_ptr_spec r /\
h0 == h1)
= let b = C.sub b.base r.start_pos (Ghost.hide r.meta.len) in
let m = r.meta in
let v = r.vv_pos in
let l = r.length in
... | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 15,
"end_line": 809,
"start_col": 0,
"start_line": 798
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: LowParse.Repr.repr_pos t b -> FStar.HyperStack.ST.Stack (LowParse.Repr.repr_ptr t) | FStar.HyperStack.ST.Stack | [] | [] | [
"LowParse.Repr.const_slice",
"LowParse.Repr.repr_pos",
"LowParse.Repr.Ptr",
"FStar.UInt32.t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"FStar.UInt32.v",
"LowParse.Repr.__proj__Pos__item__start_pos",
"LowParse.Repr.__proj__Mkmeta__item__len",
"LowParse.Repr._... | [] | false | true | false | false | false | let as_ptr #t #b (r: repr_pos t b)
: Stack (repr_ptr t)
(requires fun h -> valid_repr_pos r h)
(ensures fun h0 ptr h1 -> ptr == as_ptr_spec r /\ h0 == h1) =
| let b = C.sub b.base r.start_pos (Ghost.hide r.meta.len) in
let m = r.meta in
let v = r.vv_pos in
let l = r.length in
Ptr b m v l | false |
LowParse.Repr.fsti | LowParse.Repr.get_field_pos_t | val get_field_pos_t : f: LowParse.Repr.field_accessor p1 p2 -> Type | let get_field_pos_t (#k1: strong_parser_kind) (#t1: Type) (#p1: LP.parser k1 t1)
(#k2: strong_parser_kind) (#t2: Type) (#p2: LP.parser k2 t2)
(f:field_accessor p1 p2)
= (#b:const_slice) ->
(pp:repr_pos_p t1 b p1) ->
Stack (repr_pos_p t2 b p2)
(requires fun h ->
... | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 36,
"end_line": 922,
"start_col": 0,
"start_line": 911
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"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 | f: LowParse.Repr.field_accessor p1 p2 -> Type | Prims.Tot | [
"total"
] | [] | [
"LowParse.Repr.strong_parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Repr.field_accessor",
"LowParse.Repr.const_slice",
"LowParse.Repr.repr_pos_p",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"LowParse.Repr.valid_repr_pos",
"LowParse.Low.Base.Spec.__proj__Mkclens__item__clens_cond",
"Lo... | [] | false | false | false | false | true | let get_field_pos_t
(#k1: strong_parser_kind)
(#t1: Type)
(#p1: LP.parser k1 t1)
(#k2: strong_parser_kind)
(#t2: Type)
(#p2: LP.parser k2 t2)
(f: field_accessor p1 p2)
=
| #b: const_slice -> pp: repr_pos_p t1 b p1
-> Stack (repr_pos_p t2 b p2)
(requires
fun h ->
let cl = FieldAccessor?.cl f in
valid_repr_pos pp h /\ cl.LP.clens_cond pp.meta.v)
(ensures field_accessor_pos_post pp f) | false | |
LowParse.Repr.fsti | LowParse.Repr.end_pos | val end_pos (#t #b: _) (r: repr_pos t b) : index b | val end_pos (#t #b: _) (r: repr_pos t b) : index b | let end_pos #t #b (r:repr_pos t b)
: index b
= r.start_pos + r.length | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 26,
"end_line": 776,
"start_col": 0,
"start_line": 774
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: LowParse.Repr.repr_pos t b -> LowParse.Repr.index b | Prims.Tot | [
"total"
] | [] | [
"LowParse.Repr.const_slice",
"LowParse.Repr.repr_pos",
"FStar.Integers.op_Plus",
"FStar.Integers.Unsigned",
"FStar.Integers.W32",
"LowParse.Repr.__proj__Pos__item__start_pos",
"LowParse.Repr.__proj__Pos__item__length",
"LowParse.Repr.index"
] | [] | false | false | false | false | false | let end_pos #t #b (r: repr_pos t b) : index b =
| r.start_pos + r.length | false |
LowParse.Repr.fsti | LowParse.Repr.read_field_pos_t | val read_field_pos_t : f: LowParse.Repr.field_reader p1 t2 -> Type | let read_field_pos_t (#k1: strong_parser_kind) (#t1: Type) (#p1: LP.parser k1 t1)
#t2 (f:field_reader p1 t2)
= (#b:const_slice) ->
(p:repr_pos_p t1 b p1) ->
Stack t2
(requires fun h ->
valid_repr_pos p h /\
f.cl.LP.clens_cond p.meta.v)
(ensures fun h0 pv h1 ->
B.... | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 44,
"end_line": 953,
"start_col": 0,
"start_line": 943
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"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 | f: LowParse.Repr.field_reader p1 t2 -> Type | Prims.Tot | [
"total"
] | [] | [
"LowParse.Repr.strong_parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Repr.field_reader",
"LowParse.Repr.const_slice",
"LowParse.Repr.repr_pos_p",
"FStar.Monotonic.HyperStack.mem",
"Prims.l_and",
"LowParse.Repr.valid_repr_pos",
"LowParse.Low.Base.Spec.__proj__Mkclens__item__clens_cond",
"LowP... | [] | false | false | false | false | true | let read_field_pos_t
(#k1: strong_parser_kind)
(#t1: Type)
(#p1: LP.parser k1 t1)
#t2
(f: field_reader p1 t2)
=
| #b: const_slice -> p: repr_pos_p t1 b p1
-> Stack t2
(requires fun h -> valid_repr_pos p h /\ f.cl.LP.clens_cond p.meta.v)
(ensures fun h0 pv h1 -> B.modifies B.loc_none h0 h1 /\ pv == f.cl.LP.clens_get (value_pos p)) | false | |
Vale.X64.Lemmas.fst | Vale.X64.Lemmas.lemma_whileMerge_total | val lemma_whileMerge_total (c:code) (s0:vale_state) (f0:fuel) (sM:vale_state) (fM:fuel) (sN:vale_state) : Ghost fuel
(requires While? c /\ (
let cond = While?.whileCond c in
sN.vs_ok /\
valid_ocmp cond sM /\
eval_ocmp sM cond /\
eval_while_inv c s0 f0 sM /\
eval_code (While?.whileBody c) ({sM ... | val lemma_whileMerge_total (c:code) (s0:vale_state) (f0:fuel) (sM:vale_state) (fM:fuel) (sN:vale_state) : Ghost fuel
(requires While? c /\ (
let cond = While?.whileCond c in
sN.vs_ok /\
valid_ocmp cond sM /\
eval_ocmp sM cond /\
eval_while_inv c s0 f0 sM /\
eval_code (While?.whileBody c) ({sM ... | let lemma_whileMerge_total (c:code) (s0:vale_state) (f0:fuel) (sM:vale_state) (fM:fuel) (sN:vale_state) =
reveal_opaque (`%BS.valid_ocmp_opaque) BS.valid_ocmp_opaque;
reveal_opaque (`%BS.eval_ocmp_opaque) BS.eval_ocmp_opaque;
let fN:nat = f0 + fM + 1 in
let g = code_modifies_ghost c in
let fForall (f:nat) : L... | {
"file_name": "vale/code/arch/x64/Vale.X64.Lemmas.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 4,
"end_line": 423,
"start_col": 0,
"start_line": 398
} | module Vale.X64.Lemmas
open FStar.Mul
open Vale.X64.Machine_s
open Vale.X64.State
open Vale.X64.StateLemmas
open Vale.X64.Instruction_s
open Vale.X64.Bytes_Code_s
module BS = Vale.X64.Machine_Semantics_s
module ME = Vale.X64.Memory
#reset-options "--initial_fuel 1 --max_fuel 1 --z3rlimit 100"
#restart-solver
let rec ... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.StateLemmas.fsti.checked",
"Vale.X64.State.fsti.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_Semantics_s.fst.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.Instruction_s.fsti.checked",
"Vale.X64.Flags.fsti.checked",... | [
{
"abbrev": true,
"full_module": "Vale.X64.Memory",
"short_module": "ME"
},
{
"abbrev": true,
"full_module": "Vale.X64.Machine_Semantics_s",
"short_module": "BS"
},
{
"abbrev": false,
"full_module": "Vale.X64.Bytes_Code_s",
"short_module": null
},
{
"abbrev": fals... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 2,
"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 |
c: Vale.X64.StateLemmas.code ->
s0: Vale.X64.State.vale_state ->
f0: Vale.X64.Lemmas.fuel ->
sM: Vale.X64.State.vale_state ->
fM: Vale.X64.Lemmas.fuel ->
sN: Vale.X64.State.vale_state
-> Prims.Ghost Vale.X64.Lemmas.fuel | Prims.Ghost | [] | [] | [
"Vale.X64.StateLemmas.code",
"Vale.X64.State.vale_state",
"Vale.X64.Lemmas.fuel",
"Prims.nat",
"Prims.unit",
"Prims.b2t",
"FStar.Pervasives.Native.uu___is_Some",
"Vale.X64.Machine_Semantics_s.machine_state",
"Vale.X64.Machine_Semantics_s.machine_eval_code",
"Vale.X64.StateLemmas.state_to_S",
"Pr... | [] | false | false | false | false | false | let lemma_whileMerge_total
(c: code)
(s0: vale_state)
(f0: fuel)
(sM: vale_state)
(fM: fuel)
(sN: vale_state)
=
| reveal_opaque (`%BS.valid_ocmp_opaque) BS.valid_ocmp_opaque;
reveal_opaque (`%BS.eval_ocmp_opaque) BS.eval_ocmp_opaque;
let fN:nat = f0 + fM + 1 in
let g = code_modifies_ghost c in
let fForall (f: nat)
: Lemma (requires Some? (BS.machine_eval_code c f (state_to_S sN)))
(ensures
state_eq_opt g
... | false |
LowParse.Repr.fsti | LowParse.Repr.valid_repr_pos_elim | val valid_repr_pos_elim (#t: Type) (#b: const_slice) (r: repr_pos t b) (h: HS.mem)
: Lemma (requires (valid_repr_pos r h))
(ensures (LP.valid_content_pos r.meta.parser h (to_slice b) r.start_pos r.meta.v (end_pos r))) | val valid_repr_pos_elim (#t: Type) (#b: const_slice) (r: repr_pos t b) (h: HS.mem)
: Lemma (requires (valid_repr_pos r h))
(ensures (LP.valid_content_pos r.meta.parser h (to_slice b) r.start_pos r.meta.v (end_pos r))) | let valid_repr_pos_elim
(#t: Type)
(#b: const_slice)
(r: repr_pos t b)
(h: HS.mem)
: Lemma
(requires (
valid_repr_pos r h
))
(ensures (
LP.valid_content_pos r.meta.parser h (to_slice b) r.start_pos r.meta.v (end_pos r)
))
= reveal_valid ();
let p : repr_ptr t = as_ptr_spec r in
let slice = s... | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 127,
"end_line": 795,
"start_col": 0,
"start_line": 778
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 1,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | r: LowParse.Repr.repr_pos t b -> h: FStar.Monotonic.HyperStack.mem
-> FStar.Pervasives.Lemma (requires LowParse.Repr.valid_repr_pos r h)
(ensures
LowParse.Low.Base.Spec.valid_content_pos (Mkmeta?.parser (Pos?.meta r))
h
(LowParse.Repr.to_slice b)
(Pos?.start_pos r)
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Repr.const_slice",
"LowParse.Repr.repr_pos",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Spec.Base.parse_strong_prefix",
"LowParse.Repr.__proj__Mkmeta__item__parser_kind",
"LowParse.Repr.__proj__Pos__item__meta",
"LowParse.Repr.__proj__Mkmeta__item__parser",
"LowParse.Slice.bytes_of_slice_fr... | [] | true | false | true | false | false | let valid_repr_pos_elim (#t: Type) (#b: const_slice) (r: repr_pos t b) (h: HS.mem)
: Lemma (requires (valid_repr_pos r h))
(ensures (LP.valid_content_pos r.meta.parser h (to_slice b) r.start_pos r.meta.v (end_pos r))) =
| reveal_valid ();
let p:repr_ptr t = as_ptr_spec r in
let slice = slice_of_const_buffer (Ptr?.b p) (Ptr?.meta p).len in
LP.valid_facts r.meta.parser h slice 0ul;
LP.valid_facts r.meta.parser h (to_slice b) r.start_pos;
LP.parse_strong_prefix r.meta.parser
(LP.bytes_of_slice_from h slice 0ul)
(LP.bytes_of_slice_from ... | false |
LowParse.Repr.fsti | LowParse.Repr.mk_repr_pos_from_const_slice | val mk_repr_pos_from_const_slice
(#k: strong_parser_kind)
(#t: _)
(#parser: LP.parser k t)
(parser32: LS.parser32 parser)
(b: const_slice)
(from to: index b)
: Stack (repr_pos_p t b parser)
(requires fun h -> LP.valid_pos parser h (to_slice b) from to)
(ensures
... | val mk_repr_pos_from_const_slice
(#k: strong_parser_kind)
(#t: _)
(#parser: LP.parser k t)
(parser32: LS.parser32 parser)
(b: const_slice)
(from to: index b)
: Stack (repr_pos_p t b parser)
(requires fun h -> LP.valid_pos parser h (to_slice b) from to)
(ensures
... | let mk_repr_pos_from_const_slice
(#k:strong_parser_kind) #t (#parser:LP.parser k t)
(parser32:LS.parser32 parser)
(b:const_slice)
(from to:index b)
: Stack (repr_pos_p t b parser)
(requires fun h ->
LP.valid_pos parser h (to_slice b) from to)
(ensures fun h0 r h1 ->
... | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 66,
"end_line": 859,
"start_col": 0,
"start_line": 845
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"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 |
parser32: LowParse.SLow.Base.parser32 parser ->
b: LowParse.Repr.const_slice ->
from: LowParse.Repr.index b ->
to: LowParse.Repr.index b
-> FStar.HyperStack.ST.Stack (LowParse.Repr.repr_pos_p t b parser) | FStar.HyperStack.ST.Stack | [] | [] | [
"LowParse.Repr.strong_parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.SLow.Base.parser32",
"LowParse.Repr.const_slice",
"LowParse.Repr.index",
"LowParse.Repr.as_repr_pos",
"LowParse.Repr.repr_pos_p",
"LowParse.Repr.repr_ptr",
"LowParse.Repr.mk_from_const_slice",
"LowParse.Repr.repr_ptr_p",
... | [] | false | true | false | false | false | let mk_repr_pos_from_const_slice
(#k: strong_parser_kind)
#t
(#parser: LP.parser k t)
(parser32: LS.parser32 parser)
(b: const_slice)
(from: index b)
(to: index b)
: Stack (repr_pos_p t b parser)
(requires fun h -> LP.valid_pos parser h (to_slice b) from to)
(en... | as_repr_pos b from to (mk_from_const_slice parser32 b from to) | false |
LowParse.Repr.fsti | LowParse.Repr.mk_repr_pos | val mk_repr_pos
(#k: strong_parser_kind)
(#t: _)
(#parser: LP.parser k t)
(parser32: LS.parser32 parser)
(b: LP.slice mut_p mut_p)
(from to: index (of_slice b))
: Stack (repr_pos_p t (of_slice b) parser)
(requires fun h -> LP.valid_pos parser h b from to)
(ensures
... | val mk_repr_pos
(#k: strong_parser_kind)
(#t: _)
(#parser: LP.parser k t)
(parser32: LS.parser32 parser)
(b: LP.slice mut_p mut_p)
(from to: index (of_slice b))
: Stack (repr_pos_p t (of_slice b) parser)
(requires fun h -> LP.valid_pos parser h b from to)
(ensures
... | let mk_repr_pos (#k:strong_parser_kind) #t (#parser:LP.parser k t)
(parser32:LS.parser32 parser)
(b:LP.slice mut_p mut_p)
(from to:index (of_slice b))
: Stack (repr_pos_p t (of_slice b) parser)
(requires fun h ->
LP.valid_pos parser h b from to)
(ensures f... | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 60,
"end_line": 838,
"start_col": 0,
"start_line": 825
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"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 |
parser32: LowParse.SLow.Base.parser32 parser ->
b: LowParse.Slice.slice LowParse.Repr.mut_p LowParse.Repr.mut_p ->
from: LowParse.Repr.index (LowParse.Repr.of_slice b) ->
to: LowParse.Repr.index (LowParse.Repr.of_slice b)
-> FStar.HyperStack.ST.Stack (LowParse.Repr.repr_pos_p t (LowParse.Repr.of_slic... | FStar.HyperStack.ST.Stack | [] | [] | [
"LowParse.Repr.strong_parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.SLow.Base.parser32",
"LowParse.Slice.slice",
"LowParse.Repr.mut_p",
"LowParse.Repr.index",
"LowParse.Repr.of_slice",
"LowParse.Repr.as_repr_pos",
"LowParse.Repr.repr_pos_p",
"LowParse.Repr.repr_ptr",
"LowParse.Repr.mk",
... | [] | false | true | false | false | false | let mk_repr_pos
(#k: strong_parser_kind)
#t
(#parser: LP.parser k t)
(parser32: LS.parser32 parser)
(b: LP.slice mut_p mut_p)
(from: index (of_slice b))
(to: index (of_slice b))
: Stack (repr_pos_p t (of_slice b) parser)
(requires fun h -> LP.valid_pos parser h b from... | as_repr_pos (of_slice b) from to (mk parser32 b from to) | false |
LowParse.Repr.fsti | LowParse.Repr.mk_repr_pos_from_serialize | val mk_repr_pos_from_serialize
(#k: strong_parser_kind)
(#t: _)
(#parser: LP.parser k t)
(#serializer: LP.serializer parser)
(parser32: LS.parser32 parser)
(serializer32: LS.serializer32 serializer)
(size32: LS.size32 serializer)
(b: LP.slice mut_p mut_p)
(from: ind... | val mk_repr_pos_from_serialize
(#k: strong_parser_kind)
(#t: _)
(#parser: LP.parser k t)
(#serializer: LP.serializer parser)
(parser32: LS.parser32 parser)
(serializer32: LS.serializer32 serializer)
(size32: LS.size32 serializer)
(b: LP.slice mut_p mut_p)
(from: ind... | let mk_repr_pos_from_serialize
(#k:strong_parser_kind) #t (#parser:LP.parser k t) (#serializer: LP.serializer parser)
(parser32: LS.parser32 parser) (serializer32: LS.serializer32 serializer)
(size32: LS.size32 serializer)
(b:LP.slice mut_p mut_p)
(from:index (of_slice b))
(x: t)
: Stack (option (repr_pos_p... | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 66,
"end_line": 894,
"start_col": 0,
"start_line": 868
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"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 |
parser32: LowParse.SLow.Base.parser32 parser ->
serializer32: LowParse.SLow.Base.serializer32 serializer ->
size32: LowParse.SLow.Base.size32 serializer ->
b: LowParse.Slice.slice LowParse.Repr.mut_p LowParse.Repr.mut_p ->
from: LowParse.Repr.index (LowParse.Repr.of_slice b) ->
x: t
-> FStar.... | FStar.HyperStack.ST.Stack | [] | [] | [
"LowParse.Repr.strong_parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"LowParse.SLow.Base.parser32",
"LowParse.SLow.Base.serializer32",
"LowParse.SLow.Base.size32",
"LowParse.Slice.slice",
"LowParse.Repr.mut_p",
"LowParse.Repr.index",
"LowParse.Repr.of_slice",
"FStar.... | [] | false | true | false | false | false | let mk_repr_pos_from_serialize
(#k: strong_parser_kind)
#t
(#parser: LP.parser k t)
(#serializer: LP.serializer parser)
(parser32: LS.parser32 parser)
(serializer32: LS.serializer32 serializer)
(size32: LS.size32 serializer)
(b: LP.slice mut_p mut_p)
(from: index (o... | let size = size32 x in
match (mk_from_serialize parser32 serializer32 size32 b from x) with
| None -> None
| Some p -> Some (as_repr_pos (of_slice b) from (from + size) p) | false |
LowParse.Repr.fsti | LowParse.Repr.mk_from_const_slice | val mk_from_const_slice
(#k: strong_parser_kind)
(#t: _)
(#parser: LP.parser k t)
(parser32: LS.parser32 parser)
(b: const_slice)
(from to: uint_32)
: Stack (repr_ptr_p t parser)
(requires fun h -> LP.valid_pos parser h (to_slice b) from to)
(ensures
fun h0 p ... | val mk_from_const_slice
(#k: strong_parser_kind)
(#t: _)
(#parser: LP.parser k t)
(parser32: LS.parser32 parser)
(b: const_slice)
(from to: uint_32)
: Stack (repr_ptr_p t parser)
(requires fun h -> LP.valid_pos parser h (to_slice b) from to)
(ensures
fun h0 p ... | let mk_from_const_slice
(#k:strong_parser_kind) #t (#parser:LP.parser k t)
(parser32:LS.parser32 parser)
(b:const_slice)
(from to:uint_32)
: Stack (repr_ptr_p t parser)
(requires fun h ->
LP.valid_pos parser h (to_slice b) from to)
(ensures fun h0 p h1 ->
B.(mod... | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 5,
"end_line": 288,
"start_col": 0,
"start_line": 250
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
parser32: LowParse.SLow.Base.parser32 parser ->
b: LowParse.Repr.const_slice ->
from: FStar.Integers.uint_32 ->
to: FStar.Integers.uint_32
-> FStar.HyperStack.ST.Stack (LowParse.Repr.repr_ptr_p t parser) | FStar.HyperStack.ST.Stack | [] | [] | [
"LowParse.Repr.strong_parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.SLow.Base.parser32",
"LowParse.Repr.const_slice",
"FStar.Integers.uint_32",
"Prims.unit",
"LowParse.Low.Base.Spec.valid_facts",
"LowParse.Repr.preorder",
"LowParse.Repr.__proj__Mkmeta__item__parser_kind",
"LowParse.Repr.__p... | [] | false | true | false | false | false | let mk_from_const_slice
(#k: strong_parser_kind)
#t
(#parser: LP.parser k t)
(parser32: LS.parser32 parser)
(b: const_slice)
(from: uint_32)
(to: uint_32)
: Stack (repr_ptr_p t parser)
(requires fun h -> LP.valid_pos parser h (to_slice b) from to)
(ensures
... | reveal_valid ();
let h = get () in
let slice = to_slice b in
LP.contents_exact_eq parser h slice from to;
let meta:meta t =
{
parser_kind = _;
parser = parser;
parser32 = parser32;
v = LP.contents parser h slice from;
len = to - from;
repr_bytes = LP.bytes_of_slice_from_to h slice from to;
... | false |
Hacl.Impl.Frodo.KEM.Encaps.fst | Hacl.Impl.Frodo.KEM.Encaps.get_sp_ep_epp_matrices | val get_sp_ep_epp_matrices:
a:FP.frodo_alg
-> seed_se:lbytes (crypto_bytes a)
-> sp_matrix:matrix_t params_nbar (params_n a)
-> ep_matrix:matrix_t params_nbar (params_n a)
-> epp_matrix:matrix_t params_nbar params_nbar
-> Stack unit
(requires fun h ->
live h seed_se /\ live h sp_matrix /\
... | val get_sp_ep_epp_matrices:
a:FP.frodo_alg
-> seed_se:lbytes (crypto_bytes a)
-> sp_matrix:matrix_t params_nbar (params_n a)
-> ep_matrix:matrix_t params_nbar (params_n a)
-> epp_matrix:matrix_t params_nbar params_nbar
-> Stack unit
(requires fun h ->
live h seed_se /\ live h sp_matrix /\
... | let get_sp_ep_epp_matrices a seed_se sp_matrix ep_matrix epp_matrix =
push_frame ();
[@inline_let] let s_bytes_len = secretmatrixbytes_len a in
let r = create (2ul *! s_bytes_len +! 2ul *! params_nbar *! params_nbar) (u8 0) in
KG.frodo_shake_r a (u8 0x96) seed_se (2ul *! s_bytes_len +! 2ul *! params_nbar *! par... | {
"file_name": "code/frodo/Hacl.Impl.Frodo.KEM.Encaps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 186,
"start_col": 0,
"start_line": 178
} | module Hacl.Impl.Frodo.KEM.Encaps
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open LowStar.Buffer
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.Matrix
open Hacl.Impl.Frodo.Params
open Hacl.Impl.Frodo.KEM
open Hacl.Impl.Frodo.Encode
open Hacl.Impl.Frodo.Pack
open Hacl.Impl.Frodo.Sample
open Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.Matrix.fst.checked",
"Spec.Frodo.Params.fst.checked",
"Spec.Frodo.KEM.Encaps.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.Frodo.KEM.KeyGen",
"short_module": "KG"
},
{
"abbrev": true,
"full_module": "Spec.Matrix",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.Encaps",
"short_module": "S"
},
{
"abbrev": true,
"fu... | {
"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.Frodo.Params.frodo_alg ->
seed_se: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_bytes a) ->
sp_matrix:
Hacl.Impl.Matrix.matrix_t Hacl.Impl.Frodo.Params.params_nbar
(Hacl.Impl.Frodo.Params.params_n a) ->
ep_matrix:
Hacl.Impl.Matrix.matrix_t Hacl.Impl.Frodo.Params.pa... | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Frodo.Params.frodo_alg",
"Hacl.Impl.Matrix.lbytes",
"Hacl.Impl.Frodo.Params.crypto_bytes",
"Hacl.Impl.Matrix.matrix_t",
"Hacl.Impl.Frodo.Params.params_nbar",
"Hacl.Impl.Frodo.Params.params_n",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Hacl.Impl.Frodo.Sample.frodo_sample_matrix",
"Lib.B... | [] | false | true | false | false | false | let get_sp_ep_epp_matrices a seed_se sp_matrix ep_matrix epp_matrix =
| push_frame ();
[@@ inline_let ]let s_bytes_len = secretmatrixbytes_len a in
let r = create (2ul *! s_bytes_len +! 2ul *! params_nbar *! params_nbar) (u8 0) in
KG.frodo_shake_r a (u8 0x96) seed_se (2ul *! s_bytes_len +! 2ul *! params_nbar *! params_nbar) r;
frodo_sample_matrix a params_nbar (params_n a) (sub r 0ul s_byt... | false |
LowParse.Repr.fsti | LowParse.Repr.read_field_pos | val read_field_pos
(#k1: strong_parser_kind)
(#t1: Type)
(#p1: LP.parser k1 t1)
(#t2: _)
(f: field_reader p1 t2)
: read_field_pos_t f | val read_field_pos
(#k1: strong_parser_kind)
(#t1: Type)
(#p1: LP.parser k1 t1)
(#t2: _)
(f: field_reader p1 t2)
: read_field_pos_t f | let read_field_pos (#k1: strong_parser_kind) (#t1: Type) (#p1: LP.parser k1 t1)
#t2 (f:field_reader p1 t2)
: read_field_pos_t f
= fun #b p ->
read_field f (as_ptr p) | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 28,
"end_line": 960,
"start_col": 0,
"start_line": 956
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"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 | f: LowParse.Repr.field_reader p1 t2 -> LowParse.Repr.read_field_pos_t f | Prims.Tot | [
"total"
] | [] | [
"LowParse.Repr.strong_parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Repr.field_reader",
"LowParse.Repr.const_slice",
"LowParse.Repr.repr_pos_p",
"LowParse.Repr.read_field",
"LowParse.Repr.repr_ptr_p",
"LowParse.Repr.as_ptr",
"LowParse.Repr.repr_ptr",
"LowParse.Repr.read_field_pos_t"
] | [] | false | false | false | false | false | let read_field_pos
(#k1: strong_parser_kind)
(#t1: Type)
(#p1: LP.parser k1 t1)
#t2
(f: field_reader p1 t2)
: read_field_pos_t f =
| fun #b p -> read_field f (as_ptr p) | false |
FStar.Tactics.CanonMonoid.fst | FStar.Tactics.CanonMonoid.dump | val dump : m: Prims.string -> FStar.Tactics.Effect.Tac Prims.unit | let dump m = if debugging () then dump m | {
"file_name": "ulib/FStar.Tactics.CanonMonoid.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 40,
"end_line": 24,
"start_col": 0,
"start_line": 24
} | (*
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.V2.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.Algebra.Monoid.fst.c... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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: Prims.string -> FStar.Tactics.Effect.Tac Prims.unit | FStar.Tactics.Effect.Tac | [] | [] | [
"Prims.string",
"FStar.Stubs.Tactics.V2.Builtins.dump",
"Prims.unit",
"Prims.bool",
"FStar.Stubs.Tactics.V2.Builtins.debugging"
] | [] | false | true | false | false | false | let dump m =
| if debugging () then dump m | false | |
LowParse.Repr.fsti | LowParse.Repr.sub_ptr_stable | val sub_ptr_stable (#t0 #t1: _) (r0: repr_ptr t0) (r1: repr_ptr t1) (h: HS.mem)
: Lemma (requires r0 `sub_ptr` r1 /\ valid_if_live r1 /\ valid r1 h /\ valid r0 h)
(ensures
valid_if_live r0 /\
(let b0 = C.cast r0.b in
let b1 = C.cast r1.b in
B.frameOf b0 == B.frameOf b1 /\ (... | val sub_ptr_stable (#t0 #t1: _) (r0: repr_ptr t0) (r1: repr_ptr t1) (h: HS.mem)
: Lemma (requires r0 `sub_ptr` r1 /\ valid_if_live r1 /\ valid r1 h /\ valid r0 h)
(ensures
valid_if_live r0 /\
(let b0 = C.cast r0.b in
let b1 = C.cast r1.b in
B.frameOf b0 == B.frameOf b1 /\ (... | let sub_ptr_stable (#t0 #t1:_) (r0:repr_ptr t0) (r1:repr_ptr t1) (h:HS.mem)
: Lemma
(requires
r0 `sub_ptr` r1 /\
valid_if_live r1 /\
valid r1 h /\
valid r0 h)
(ensures
valid_if_live r0 /\
(let b0 = C.cast r0.b in
let b1 = C.cast r1.b in
B.frameOf b0 == B.frame... | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 28,
"end_line": 492,
"start_col": 0,
"start_line": 460
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"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 | r0: LowParse.Repr.repr_ptr t0 -> r1: LowParse.Repr.repr_ptr t1 -> h: FStar.Monotonic.HyperStack.mem
-> FStar.Pervasives.Lemma
(requires
LowParse.Repr.sub_ptr r0 r1 /\ LowParse.Repr.valid_if_live r1 /\ LowParse.Repr.valid r1 h /\
LowParse.Repr.valid r0 h)
(ensures
LowParse.Repr.vali... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"LowParse.Repr.repr_ptr",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Repr.valid_if_live_intro",
"Prims.unit",
"LowStar.Monotonic.Buffer.region_lifetime_sub",
"LowParse.Bytes.byte",
"LowStar.ImmutableBuffer.immutable_preorder",
"FStar.UInt32.t",
"LowStar.ConstBuffer.const_sub_buffer",
"LowParse.Re... | [] | false | false | true | false | false | let sub_ptr_stable (#t0 #t1: _) (r0: repr_ptr t0) (r1: repr_ptr t1) (h: HS.mem)
: Lemma (requires r0 `sub_ptr` r1 /\ valid_if_live r1 /\ valid r1 h /\ valid r0 h)
(ensures
valid_if_live r0 /\
(let b0 = C.cast r0.b in
let b1 = C.cast r1.b in
B.frameOf b0 == B.frameOf b1 /\ (... | reveal_valid ();
let b0:I.ibuffer LP.byte = C.cast r0.b in
let b1:I.ibuffer LP.byte = C.cast r1.b in
assert (I.value_is b1 (Ghost.hide r1.meta.repr_bytes));
assert (Seq.length r1.meta.repr_bytes == B.length b1);
let aux (i len: U32.t)
: Lemma (requires C.const_sub_buffer i len r0.b r1.b)
(ensures I.value_is b... | false |
LowParse.Repr.fsti | LowParse.Repr.get_field_pos | val get_field_pos
(#k1: strong_parser_kind)
(#t1: Type)
(#p1: LP.parser k1 t1)
(#k2: strong_parser_kind)
(#t2: Type)
(#p2: LP.parser k2 t2)
(f: field_accessor p1 p2)
: get_field_pos_t f | val get_field_pos
(#k1: strong_parser_kind)
(#t1: Type)
(#p1: LP.parser k1 t1)
(#k2: strong_parser_kind)
(#t2: Type)
(#p2: LP.parser k2 t2)
(f: field_accessor p1 p2)
: get_field_pos_t f | let get_field_pos (#k1: strong_parser_kind) (#t1: Type) (#p1: LP.parser k1 t1)
(#k2: strong_parser_kind) (#t2: Type) (#p2: LP.parser k2 t2)
(f:field_accessor p1 p2)
: get_field_pos_t f
= reveal_valid ();
fun #b pp ->
[@inline_let] let FieldAccessor acc jump p2' = f in
le... | {
"file_name": "src/lowparse/LowParse.Repr.fsti",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 67,
"end_line": 940,
"start_col": 0,
"start_line": 926
} | (*
Copyright 2015--2019 INRIA and Microsoft Corporation
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 o... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.ImmutableBuffer.fst.checked",
"LowStar.ConstBuffer.fsti.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Spec.Base.fsti.checked",
"LowParse.SLow.Base.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.f... | [
{
"abbrev": true,
"full_module": "LowStar.ImmutableBuffer",
"short_module": "I"
},
{
"abbrev": true,
"full_module": "FStar.HyperStack.ST",
"short_module": "ST"
},
{
"abbrev": false,
"full_module": "FStar.HyperStack.ST",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"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 | f: LowParse.Repr.field_accessor p1 p2 -> LowParse.Repr.get_field_pos_t f | Prims.Tot | [
"total"
] | [] | [
"LowParse.Repr.strong_parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Repr.field_accessor",
"LowParse.Repr.const_slice",
"LowParse.Repr.repr_pos_p",
"LowParse.Low.Base.Spec.clens",
"LowParse.Low.Base.Spec.gaccessor",
"LowParse.Low.Base.accessor",
"LowParse.Low.Base.jumper",
"LowParse.SLow.Bas... | [] | false | false | false | false | false | let get_field_pos
(#k1: strong_parser_kind)
(#t1: Type)
(#p1: LP.parser k1 t1)
(#k2: strong_parser_kind)
(#t2: Type)
(#p2: LP.parser k2 t2)
(f: field_accessor p1 p2)
: get_field_pos_t f =
| reveal_valid ();
fun #b pp ->
[@@ inline_let ]let FieldAccessor acc jump p2' = f in
let p = as_ptr pp in
let bb = temp_slice_of_repr_ptr p in
let pos = acc bb 0ul in
let pos_to = jump bb pos in
let q = mk p2' bb pos pos_to in
let len = pos_to - pos in
assert (C.const_sub_buffer pos len (Ptr?.b q) (Ptr?.... | false |
FStar.Algebra.CommMonoid.Equiv.fst | FStar.Algebra.CommMonoid.Equiv.elim_eq_laws | val elim_eq_laws (#a: _) (eq: equiv a)
: Lemma
((forall x. {:pattern (x `eq.eq` x)} x `eq.eq` x) /\
(forall x y. {:pattern (x `eq.eq` y)} x `eq.eq` y ==> y `eq.eq` x) /\
(forall x y z. {:pattern eq.eq x y; eq.eq y z} (x `eq.eq` y /\ y `eq.eq` z) ==> x `eq.eq` z)) | val elim_eq_laws (#a: _) (eq: equiv a)
: Lemma
((forall x. {:pattern (x `eq.eq` x)} x `eq.eq` x) /\
(forall x y. {:pattern (x `eq.eq` y)} x `eq.eq` y ==> y `eq.eq` x) /\
(forall x y z. {:pattern eq.eq x y; eq.eq y z} (x `eq.eq` y /\ y `eq.eq` z) ==> x `eq.eq` z)) | let elim_eq_laws #a (eq:equiv a)
: Lemma (
(forall x.{:pattern (x `eq.eq` x)} x `eq.eq` x) /\
(forall x y.{:pattern (x `eq.eq` y)} x `eq.eq` y ==> y `eq.eq` x) /\
(forall x y z.{:pattern eq.eq x y; eq.eq y z} (x `eq.eq` y /\ y `eq.eq` z) ==> x `eq.eq` z)
)
= introduce forall ... | {
"file_name": "ulib/FStar.Algebra.CommMonoid.Equiv.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 40,
"end_line": 44,
"start_col": 0,
"start_line": 29
} | (*
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.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Classical.Sugar.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Algebra.CommMonoid.Equiv.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra.CommMonoid",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra.CommMonoid",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | eq: FStar.Algebra.CommMonoid.Equiv.equiv a
-> FStar.Pervasives.Lemma
(ensures
(forall (x: a). {:pattern EQ?.eq eq x x} EQ?.eq eq x x) /\
(forall (x: a) (y: a). {:pattern EQ?.eq eq x y} EQ?.eq eq x y ==> EQ?.eq eq y x) /\
(forall (x: a) (y: a) (z: a). {:pattern EQ?.eq eq x y; EQ?.eq eq y z}
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Algebra.CommMonoid.Equiv.equiv",
"FStar.Classical.Sugar.forall_intro",
"Prims.l_Forall",
"Prims.l_imp",
"Prims.l_and",
"FStar.Algebra.CommMonoid.Equiv.__proj__EQ__item__eq",
"FStar.Classical.Sugar.implies_intro",
"Prims.squash",
"FStar.Algebra.CommMonoid.Equiv.__proj__EQ__item__transitivity",... | [] | false | false | true | false | false | let elim_eq_laws #a (eq: equiv a)
: Lemma
((forall x. {:pattern (x `eq.eq` x)} x `eq.eq` x) /\
(forall x y. {:pattern (x `eq.eq` y)} x `eq.eq` y ==> y `eq.eq` x) /\
(forall x y z. {:pattern eq.eq x y; eq.eq y z} (x `eq.eq` y /\ y `eq.eq` z) ==> x `eq.eq` z)) =
| introduce forall x . x `eq.eq` x
with (eq.reflexivity x);
introduce forall x y . x `eq.eq` y ==> y `eq.eq` x
with (introduce _ ==> _
with _. eq.symmetry x y);
introduce forall x y z . (x `eq.eq` y /\ y `eq.eq` z) ==> x `eq.eq` z
with (introduce _ ==> _
with _. eq.transitivity x y z) | false |
FStar.Tactics.CanonMonoid.fst | FStar.Tactics.CanonMonoid.reification_aux | val reification_aux (#a: Type) (mult unit me: term) : Tac (exp a) | val reification_aux (#a: Type) (mult unit me: term) : Tac (exp a) | let rec reification_aux (#a:Type) (mult unit me : term) : Tac (exp a) =
let hd, tl = collect_app_ref me in
let tl = list_unref tl in
match inspect hd, tl with
| Tv_FVar fv, [(me1, Q_Explicit) ; (me2, Q_Explicit)] ->
if term_eq_old (pack (Tv_FVar fv)) mult
then Mult (reification_aux mult unit me1) (reifi... | {
"file_name": "ulib/FStar.Tactics.CanonMonoid.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 25,
"end_line": 94,
"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",
"FStar.Tactics.V2.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.Algebra.Monoid.fst.c... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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 |
mult: FStar.Tactics.NamedView.term ->
unit: FStar.Tactics.NamedView.term ->
me: FStar.Tactics.NamedView.term
-> FStar.Tactics.Effect.Tac (FStar.Tactics.CanonMonoid.exp a) | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Tactics.NamedView.term",
"FStar.Stubs.Reflection.Types.term",
"Prims.l_or",
"Prims.eq2",
"Prims.precedes",
"Prims.list",
"FStar.Stubs.Reflection.V2.Data.argv",
"FStar.Pervasives.Native.fst",
"FStar.Stubs.Reflection.V2.Data.aqualv",
"FStar.Stubs.Reflection.Types.fv",
"FStar.Tactics.CanonMo... | [
"recursion"
] | false | true | false | false | false | let rec reification_aux (#a: Type) (mult unit me: term) : Tac (exp a) =
| let hd, tl = collect_app_ref me in
let tl = list_unref tl in
match inspect hd, tl with
| Tv_FVar fv, [me1, Q_Explicit ; me2, Q_Explicit] ->
if term_eq_old (pack (Tv_FVar fv)) mult
then Mult (reification_aux mult unit me1) (reification_aux mult unit me2)
else Var (unquote me)
| _, _ -> if term_eq_old me unit then ... | false |
FStar.Tactics.CanonMonoid.fst | FStar.Tactics.CanonMonoid.reification | val reification (#a: Type) (m: monoid a) (me: term) : Tac (exp a) | val reification (#a: Type) (m: monoid a) (me: term) : Tac (exp a) | let reification (#a:Type) (m:monoid a) (me:term) : Tac (exp a) =
let mult = norm_term [delta;zeta;iota] (quote (Monoid?.mult m)) in
let unit = norm_term [delta;zeta;iota] (quote (Monoid?.unit m)) in
let me = norm_term [delta;zeta;iota] me in
// dump ("mult = " ^ term_to_string mult ^
// "; uni... | {
"file_name": "ulib/FStar.Tactics.CanonMonoid.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 32,
"end_line": 103,
"start_col": 0,
"start_line": 96
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.Algebra.Monoid.fst.c... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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: FStar.Algebra.Monoid.monoid a -> me: FStar.Tactics.NamedView.term
-> FStar.Tactics.Effect.Tac (FStar.Tactics.CanonMonoid.exp a) | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Algebra.Monoid.monoid",
"FStar.Tactics.NamedView.term",
"FStar.Tactics.CanonMonoid.reification_aux",
"FStar.Tactics.CanonMonoid.exp",
"FStar.Tactics.V2.Derived.norm_term",
"Prims.Cons",
"FStar.Pervasives.norm_step",
"FStar.Pervasives.delta",
"FStar.Pervasives.zeta",
"FStar.Pervasives.iota",... | [] | false | true | false | false | false | let reification (#a: Type) (m: monoid a) (me: term) : Tac (exp a) =
| let mult = norm_term [delta; zeta; iota] (quote (Monoid?.mult m)) in
let unit = norm_term [delta; zeta; iota] (quote (Monoid?.unit m)) in
let me = norm_term [delta; zeta; iota] me in
reification_aux mult unit me | false |
FStar.Tactics.CanonMonoid.fst | FStar.Tactics.CanonMonoid.lem0 | val lem0 : a: Prims.int -> b: Prims.int -> c: Prims.int -> d: Prims.int -> Prims.unit | let lem0 (a b c d : int) =
assert_by_tactic (0 + a + b + c + d == (0 + a) + (b + c + 0) + (d + 0))
(fun _ -> canon_monoid int_plus_monoid (* string_of_int *); trefl()) | {
"file_name": "ulib/FStar.Tactics.CanonMonoid.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 70,
"end_line": 124,
"start_col": 0,
"start_line": 122
} | (*
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.V2.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.Algebra.Monoid.fst.c... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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: Prims.int -> b: Prims.int -> c: Prims.int -> d: Prims.int -> Prims.unit | Prims.Tot | [
"total"
] | [] | [
"Prims.int",
"FStar.Tactics.Effect.assert_by_tactic",
"Prims.eq2",
"Prims.op_Addition",
"Prims.unit",
"FStar.Tactics.V2.Derived.trefl",
"FStar.Tactics.CanonMonoid.canon_monoid",
"FStar.Algebra.Monoid.int_plus_monoid"
] | [] | false | false | false | true | false | let lem0 (a b c d: int) =
| assert_by_tactic (0 + a + b + c + d == (0 + a) + (b + c + 0) + (d + 0))
(fun _ ->
canon_monoid int_plus_monoid;
trefl ()) | false | |
FStar.Tactics.CanonMonoid.fst | FStar.Tactics.CanonMonoid.exp_to_string | val exp_to_string : a_to_string: (_: a -> Prims.string) -> e: FStar.Tactics.CanonMonoid.exp a -> Prims.string | let rec exp_to_string (#a:Type) (a_to_string:a->string) (e:exp a) =
match e with
| Unit -> "Unit"
| Var x -> "Var " ^ a_to_string x
| Mult e1 e2 -> "Mult (" ^ exp_to_string a_to_string e1
^ ") (" ^ exp_to_string a_to_string e2 ^ ")" | {
"file_name": "ulib/FStar.Tactics.CanonMonoid.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 63,
"end_line": 39,
"start_col": 0,
"start_line": 34
} | (*
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.V2.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.Algebra.Monoid.fst.c... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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_to_string: (_: a -> Prims.string) -> e: FStar.Tactics.CanonMonoid.exp a -> Prims.string | Prims.Tot | [
"total"
] | [] | [
"Prims.string",
"FStar.Tactics.CanonMonoid.exp",
"Prims.op_Hat",
"FStar.Tactics.CanonMonoid.exp_to_string"
] | [
"recursion"
] | false | false | false | true | false | let rec exp_to_string (#a: Type) (a_to_string: (a -> string)) (e: exp a) =
| match e with
| Unit -> "Unit"
| Var x -> "Var " ^ a_to_string x
| Mult e1 e2 -> "Mult (" ^ exp_to_string a_to_string e1 ^ ") (" ^ exp_to_string a_to_string e2 ^ ")" | false | |
FStar.Algebra.CommMonoid.Equiv.fst | FStar.Algebra.CommMonoid.Equiv.equality_equiv | val equality_equiv (a: Type) : equiv a | val equality_equiv (a: Type) : equiv a | let equality_equiv (a:Type) : equiv a =
EQ (fun x y -> x == y) (fun x -> ()) (fun x y -> ()) (fun x y z -> ()) | {
"file_name": "ulib/FStar.Algebra.CommMonoid.Equiv.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 72,
"end_line": 47,
"start_col": 0,
"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.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Classical.Sugar.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Algebra.CommMonoid.Equiv.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra.CommMonoid",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra.CommMonoid",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | a: Type -> FStar.Algebra.CommMonoid.Equiv.equiv a | Prims.Tot | [
"total"
] | [] | [
"FStar.Algebra.CommMonoid.Equiv.EQ",
"Prims.eq2",
"Prims.unit",
"FStar.Algebra.CommMonoid.Equiv.equiv"
] | [] | false | false | false | true | false | let equality_equiv (a: Type) : equiv a =
| EQ (fun x y -> x == y) (fun x -> ()) (fun x y -> ()) (fun x y z -> ()) | false |
FStar.Algebra.CommMonoid.Equiv.fst | FStar.Algebra.CommMonoid.Equiv.right_identity | val right_identity (#a: Type u#aa) (eq: equiv a) (m: cm a eq) (x: a)
: Lemma (EQ?.eq eq (CM?.mult m x (CM?.unit m)) x) | val right_identity (#a: Type u#aa) (eq: equiv a) (m: cm a eq) (x: a)
: Lemma (EQ?.eq eq (CM?.mult m x (CM?.unit m)) x) | let right_identity (#a:Type u#aa) (eq:equiv a) (m:cm a eq) (x:a)
: Lemma (x `CM?.mult m` (CM?.unit m) `EQ?.eq eq` x) =
CM?.commutativity m x (CM?.unit m);
CM?.identity m x;
EQ?.transitivity eq (x `CM?.mult m` (CM?.unit m)) ((CM?.unit m) `CM?.mult m` x) x | {
"file_name": "ulib/FStar.Algebra.CommMonoid.Equiv.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 83,
"end_line": 70,
"start_col": 0,
"start_line": 66
} | (*
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.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Classical.Sugar.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Algebra.CommMonoid.Equiv.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra.CommMonoid",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra.CommMonoid",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | eq: FStar.Algebra.CommMonoid.Equiv.equiv a -> m: FStar.Algebra.CommMonoid.Equiv.cm a eq -> x: a
-> FStar.Pervasives.Lemma (ensures EQ?.eq eq (CM?.mult m x (CM?.unit m)) x) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Algebra.CommMonoid.Equiv.equiv",
"FStar.Algebra.CommMonoid.Equiv.cm",
"FStar.Algebra.CommMonoid.Equiv.__proj__EQ__item__transitivity",
"FStar.Algebra.CommMonoid.Equiv.__proj__CM__item__mult",
"FStar.Algebra.CommMonoid.Equiv.__proj__CM__item__unit",
"Prims.unit",
"FStar.Algebra.CommMonoid.Equiv.__... | [] | true | false | true | false | false | let right_identity (#a: Type u#aa) (eq: equiv a) (m: cm a eq) (x: a)
: Lemma (EQ?.eq eq (CM?.mult m x (CM?.unit m)) x) =
| CM?.commutativity m x (CM?.unit m);
CM?.identity m x;
EQ?.transitivity eq (CM?.mult m x (CM?.unit m)) (CM?.mult m (CM?.unit m) x) x | false |
FStar.Algebra.CommMonoid.Equiv.fst | FStar.Algebra.CommMonoid.Equiv.int_plus_cm | val int_plus_cm:cm int (equality_equiv int) | val int_plus_cm:cm int (equality_equiv int) | let int_plus_cm : cm int (equality_equiv int) =
CM 0 (+) (fun _ -> ()) (fun _ _ _ -> ()) (fun _ _ -> ()) (fun _ _ _ _ -> ()) | {
"file_name": "ulib/FStar.Algebra.CommMonoid.Equiv.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 78,
"end_line": 73,
"start_col": 0,
"start_line": 72
} | (*
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.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Classical.Sugar.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Algebra.CommMonoid.Equiv.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra.CommMonoid",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra.CommMonoid",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | FStar.Algebra.CommMonoid.Equiv.cm Prims.int
(FStar.Algebra.CommMonoid.Equiv.equality_equiv Prims.int) | Prims.Tot | [
"total"
] | [] | [
"FStar.Algebra.CommMonoid.Equiv.CM",
"Prims.int",
"FStar.Algebra.CommMonoid.Equiv.equality_equiv",
"Prims.op_Addition",
"Prims.unit"
] | [] | false | false | false | true | false | let int_plus_cm:cm int (equality_equiv int) =
| CM 0 ( + ) (fun _ -> ()) (fun _ _ _ -> ()) (fun _ _ -> ()) (fun _ _ _ _ -> ()) | false |
FStar.Tactics.CanonMonoid.fst | FStar.Tactics.CanonMonoid.canon_monoid | val canon_monoid (#a: Type) (m: monoid a) : Tac unit | val canon_monoid (#a: Type) (m: monoid a) : Tac unit | let canon_monoid (#a:Type) (m:monoid a) : Tac unit =
norm [];
let g = cur_goal () in
match term_as_formula g with
| Comp (Eq (Some t)) me1 me2 ->
if term_eq_old t (quote a) then
let r1 = reification m me1 in
let r2 = reification m me2 in
change_sq (quote (mdenote m r1 == mdenote m ... | {
"file_name": "ulib/FStar.Tactics.CanonMonoid.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 42,
"end_line": 120,
"start_col": 0,
"start_line": 105
} | (*
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.V2.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.Algebra.Monoid.fst.c... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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: FStar.Algebra.Monoid.monoid a -> FStar.Tactics.Effect.Tac Prims.unit | FStar.Tactics.Effect.Tac | [] | [] | [
"FStar.Algebra.Monoid.monoid",
"FStar.Stubs.Reflection.Types.typ",
"FStar.Tactics.NamedView.term",
"FStar.Stubs.Tactics.V2.Builtins.norm",
"Prims.Cons",
"FStar.Pervasives.norm_step",
"FStar.Pervasives.delta_only",
"Prims.string",
"Prims.Nil",
"Prims.unit",
"FStar.Tactics.V2.Derived.apply",
"FS... | [] | false | true | false | false | false | let canon_monoid (#a: Type) (m: monoid a) : Tac unit =
| norm [];
let g = cur_goal () in
match term_as_formula g with
| Comp (Eq (Some t)) me1 me2 ->
if term_eq_old t (quote a)
then
let r1 = reification m me1 in
let r2 = reification m me2 in
change_sq (quote (mdenote m r1 == mdenote m r2));
apply (`monoid_reflect);
norm [delta_only [`%mldenote; `%flat... | false |
FStar.Tactics.CanonMonoid.fst | FStar.Tactics.CanonMonoid.mdenote | val mdenote (#a: Type) (m: monoid a) (e: exp a) : a | val mdenote (#a: Type) (m: monoid a) (e: exp a) : a | let rec mdenote (#a:Type) (m:monoid a) (e:exp a) : a =
match e with
| Unit -> Monoid?.unit m
| Var x -> x
| Mult e1 e2 -> Monoid?.mult m (mdenote m e1) (mdenote m e2) | {
"file_name": "ulib/FStar.Tactics.CanonMonoid.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 62,
"end_line": 45,
"start_col": 0,
"start_line": 41
} | (*
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.V2.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.Algebra.Monoid.fst.c... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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: FStar.Algebra.Monoid.monoid a -> e: FStar.Tactics.CanonMonoid.exp a -> a | Prims.Tot | [
"total"
] | [] | [
"FStar.Algebra.Monoid.monoid",
"FStar.Tactics.CanonMonoid.exp",
"FStar.Algebra.Monoid.__proj__Monoid__item__unit",
"FStar.Algebra.Monoid.__proj__Monoid__item__mult",
"FStar.Tactics.CanonMonoid.mdenote"
] | [
"recursion"
] | false | false | false | true | false | let rec mdenote (#a: Type) (m: monoid a) (e: exp a) : a =
| match e with
| Unit -> Monoid?.unit m
| Var x -> x
| Mult e1 e2 -> Monoid?.mult m (mdenote m e1) (mdenote m e2) | false |
FStar.Algebra.CommMonoid.Equiv.fst | FStar.Algebra.CommMonoid.Equiv.int_multiply_cm | val int_multiply_cm:cm int (equality_equiv int) | val int_multiply_cm:cm int (equality_equiv int) | let int_multiply_cm : cm int (equality_equiv int) =
CM 1 ( * ) (fun _ -> ()) (fun _ _ _ -> ()) (fun _ _ -> ()) (fun _ _ _ _ -> ()) | {
"file_name": "ulib/FStar.Algebra.CommMonoid.Equiv.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 80,
"end_line": 76,
"start_col": 0,
"start_line": 75
} | (*
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.Pervasives.fsti.checked",
"FStar.Mul.fst.checked",
"FStar.Classical.Sugar.fsti.checked"
],
"interface_file": false,
"source_file": "FStar.Algebra.CommMonoid.Equiv.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra.CommMonoid",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Algebra.CommMonoid",
"short_module": null
},
{
"abbrev": false,
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | FStar.Algebra.CommMonoid.Equiv.cm Prims.int
(FStar.Algebra.CommMonoid.Equiv.equality_equiv Prims.int) | Prims.Tot | [
"total"
] | [] | [
"FStar.Algebra.CommMonoid.Equiv.CM",
"Prims.int",
"FStar.Algebra.CommMonoid.Equiv.equality_equiv",
"FStar.Mul.op_Star",
"Prims.unit"
] | [] | false | false | false | true | false | let int_multiply_cm:cm int (equality_equiv int) =
| CM 1 ( * ) (fun _ -> ()) (fun _ _ _ -> ()) (fun _ _ -> ()) (fun _ _ _ _ -> ()) | false |
FStar.Tactics.CanonMonoid.fst | FStar.Tactics.CanonMonoid.flatten_correct | val flatten_correct (#a: Type) (m: monoid a) (e: exp a)
: Lemma (mdenote m e == mldenote m (flatten e)) | val flatten_correct (#a: Type) (m: monoid a) (e: exp a)
: Lemma (mdenote m e == mldenote m (flatten e)) | let rec flatten_correct (#a:Type) (m:monoid a) (e:exp a) :
Lemma (mdenote m e == mldenote m (flatten e)) =
match e with
| Unit | Var _ -> ()
| Mult e1 e2 -> flatten_correct_aux m (flatten e1) (flatten e2);
flatten_correct m e1; flatten_correct m e2 | {
"file_name": "ulib/FStar.Tactics.CanonMonoid.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 60,
"end_line": 75,
"start_col": 0,
"start_line": 70
} | (*
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.V2.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.Algebra.Monoid.fst.c... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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: FStar.Algebra.Monoid.monoid a -> e: FStar.Tactics.CanonMonoid.exp a
-> FStar.Pervasives.Lemma
(ensures
FStar.Tactics.CanonMonoid.mdenote m e ==
FStar.Tactics.CanonMonoid.mldenote m (FStar.Tactics.CanonMonoid.flatten e)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Algebra.Monoid.monoid",
"FStar.Tactics.CanonMonoid.exp",
"FStar.Tactics.CanonMonoid.flatten_correct",
"Prims.unit",
"FStar.Tactics.CanonMonoid.flatten_correct_aux",
"FStar.Tactics.CanonMonoid.flatten",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"FStar.Tactics.CanonMonoid.mdenote",
"FSta... | [
"recursion"
] | false | false | true | false | false | let rec flatten_correct (#a: Type) (m: monoid a) (e: exp a)
: Lemma (mdenote m e == mldenote m (flatten e)) =
| match e with
| Unit | Var _ -> ()
| Mult e1 e2 ->
flatten_correct_aux m (flatten e1) (flatten e2);
flatten_correct m e1;
flatten_correct m e2 | false |
FStar.Tactics.CanonMonoid.fst | FStar.Tactics.CanonMonoid.mldenote | val mldenote (#a: Type) (m: monoid a) (xs: list a) : a | val mldenote (#a: Type) (m: monoid a) (xs: list a) : a | let rec mldenote (#a:Type) (m:monoid a) (xs:list a) : a =
match xs with
| [] -> Monoid?.unit m
| [x] -> x
| x::xs' -> Monoid?.mult m x (mldenote m xs') | {
"file_name": "ulib/FStar.Tactics.CanonMonoid.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 47,
"end_line": 51,
"start_col": 0,
"start_line": 47
} | (*
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.V2.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.Algebra.Monoid.fst.c... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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: FStar.Algebra.Monoid.monoid a -> xs: Prims.list a -> a | Prims.Tot | [
"total"
] | [] | [
"FStar.Algebra.Monoid.monoid",
"Prims.list",
"FStar.Algebra.Monoid.__proj__Monoid__item__unit",
"FStar.Algebra.Monoid.__proj__Monoid__item__mult",
"FStar.Tactics.CanonMonoid.mldenote"
] | [
"recursion"
] | false | false | false | true | false | let rec mldenote (#a: Type) (m: monoid a) (xs: list a) : a =
| match xs with
| [] -> Monoid?.unit m
| [x] -> x
| x :: xs' -> Monoid?.mult m x (mldenote m xs') | false |
FStar.Tactics.CanonMonoid.fst | FStar.Tactics.CanonMonoid.flatten | val flatten (#a: Type) (e: exp a) : list a | val flatten (#a: Type) (e: exp a) : list a | let rec flatten (#a:Type) (e:exp a) : list a =
match e with
| Unit -> []
| Var x -> [x]
| Mult e1 e2 -> flatten e1 @ flatten e2 | {
"file_name": "ulib/FStar.Tactics.CanonMonoid.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 41,
"end_line": 57,
"start_col": 0,
"start_line": 53
} | (*
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.V2.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.Algebra.Monoid.fst.c... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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 | e: FStar.Tactics.CanonMonoid.exp a -> Prims.list a | Prims.Tot | [
"total"
] | [] | [
"FStar.Tactics.CanonMonoid.exp",
"Prims.Nil",
"Prims.Cons",
"FStar.List.Tot.Base.op_At",
"FStar.Tactics.CanonMonoid.flatten",
"Prims.list"
] | [
"recursion"
] | false | false | false | true | false | let rec flatten (#a: Type) (e: exp a) : list a =
| match e with
| Unit -> []
| Var x -> [x]
| Mult e1 e2 -> flatten e1 @ flatten e2 | false |
Hacl.Impl.Frodo.KEM.Encaps.fst | Hacl.Impl.Frodo.KEM.Encaps.frodo_mul_add_sb_plus_e_plus_mu | val frodo_mul_add_sb_plus_e_plus_mu:
a:FP.frodo_alg
-> mu:lbytes (bytes_mu a)
-> b:lbytes (publicmatrixbytes_len a)
-> sp_matrix:matrix_t params_nbar (params_n a)
-> epp_matrix:matrix_t params_nbar params_nbar
-> v_matrix:matrix_t params_nbar params_nbar
-> Stack unit
(requires fun h ->
live h... | val frodo_mul_add_sb_plus_e_plus_mu:
a:FP.frodo_alg
-> mu:lbytes (bytes_mu a)
-> b:lbytes (publicmatrixbytes_len a)
-> sp_matrix:matrix_t params_nbar (params_n a)
-> epp_matrix:matrix_t params_nbar params_nbar
-> v_matrix:matrix_t params_nbar params_nbar
-> Stack unit
(requires fun h ->
live h... | let frodo_mul_add_sb_plus_e_plus_mu a mu b sp_matrix epp_matrix v_matrix =
push_frame ();
frodo_mul_add_sb_plus_e a b sp_matrix epp_matrix v_matrix;
let mu_encode = matrix_create params_nbar params_nbar in
frodo_key_encode (params_logq a) (params_extracted_bits a) params_nbar mu mu_encode;
matrix_add v_matrix... | {
"file_name": "code/frodo/Hacl.Impl.Frodo.KEM.Encaps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 129,
"start_col": 0,
"start_line": 122
} | module Hacl.Impl.Frodo.KEM.Encaps
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open LowStar.Buffer
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.Matrix
open Hacl.Impl.Frodo.Params
open Hacl.Impl.Frodo.KEM
open Hacl.Impl.Frodo.Encode
open Hacl.Impl.Frodo.Pack
open Hacl.Impl.Frodo.Sample
open Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.Matrix.fst.checked",
"Spec.Frodo.Params.fst.checked",
"Spec.Frodo.KEM.Encaps.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.Frodo.KEM.KeyGen",
"short_module": "KG"
},
{
"abbrev": true,
"full_module": "Spec.Matrix",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.Encaps",
"short_module": "S"
},
{
"abbrev": true,
"fu... | {
"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.Frodo.Params.frodo_alg ->
mu: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.bytes_mu a) ->
b: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.publicmatrixbytes_len a) ->
sp_matrix:
Hacl.Impl.Matrix.matrix_t Hacl.Impl.Frodo.Params.params_nbar
(Hacl.Impl.Frodo.Params.params_n a) -... | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Frodo.Params.frodo_alg",
"Hacl.Impl.Matrix.lbytes",
"Hacl.Impl.Frodo.Params.bytes_mu",
"Hacl.Impl.Frodo.Params.publicmatrixbytes_len",
"Hacl.Impl.Matrix.matrix_t",
"Hacl.Impl.Frodo.Params.params_nbar",
"Hacl.Impl.Frodo.Params.params_n",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Hacl.Im... | [] | false | true | false | false | false | let frodo_mul_add_sb_plus_e_plus_mu a mu b sp_matrix epp_matrix v_matrix =
| push_frame ();
frodo_mul_add_sb_plus_e a b sp_matrix epp_matrix v_matrix;
let mu_encode = matrix_create params_nbar params_nbar in
frodo_key_encode (params_logq a) (params_extracted_bits a) params_nbar mu mu_encode;
matrix_add v_matrix mu_encode;
clear_matrix mu_encode;
pop_frame () | false |
FStar.Tactics.CanonMonoid.fst | FStar.Tactics.CanonMonoid.monoid_reflect | val monoid_reflect:
#a: Type ->
m: monoid a ->
e1: exp a ->
e2: exp a ->
squash (mldenote m (flatten e1) == mldenote m (flatten e2))
-> squash (mdenote m e1 == mdenote m e2) | val monoid_reflect:
#a: Type ->
m: monoid a ->
e1: exp a ->
e2: exp a ->
squash (mldenote m (flatten e1) == mldenote m (flatten e2))
-> squash (mdenote m e1 == mdenote m e2) | let monoid_reflect (#a:Type) (m:monoid a) (e1 e2:exp a)
(_ : squash (mldenote m (flatten e1) == mldenote m (flatten e2)))
: squash (mdenote m e1 == mdenote m e2) =
flatten_correct m e1; flatten_correct m e2 | {
"file_name": "ulib/FStar.Tactics.CanonMonoid.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 44,
"end_line": 80,
"start_col": 0,
"start_line": 77
} | (*
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.V2.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.Algebra.Monoid.fst.c... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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: FStar.Algebra.Monoid.monoid a ->
e1: FStar.Tactics.CanonMonoid.exp a ->
e2: FStar.Tactics.CanonMonoid.exp a ->
_:
Prims.squash (FStar.Tactics.CanonMonoid.mldenote m (FStar.Tactics.CanonMonoid.flatten e1) ==
FStar.Tactics.CanonMonoid.mldenote m (FStar.Tactics.CanonMonoid.flatten e2))
... | Prims.Tot | [
"total"
] | [] | [
"FStar.Algebra.Monoid.monoid",
"FStar.Tactics.CanonMonoid.exp",
"Prims.squash",
"Prims.eq2",
"FStar.Tactics.CanonMonoid.mldenote",
"FStar.Tactics.CanonMonoid.flatten",
"FStar.Tactics.CanonMonoid.flatten_correct",
"Prims.unit",
"FStar.Tactics.CanonMonoid.mdenote"
] | [] | false | false | true | false | false | let monoid_reflect
(#a: Type)
(m: monoid a)
(e1: exp a)
(e2: exp a)
(_: squash (mldenote m (flatten e1) == mldenote m (flatten e2)))
: squash (mdenote m e1 == mdenote m e2) =
| flatten_correct m e1;
flatten_correct m e2 | false |
FStar.Tactics.CanonMonoid.fst | FStar.Tactics.CanonMonoid.flatten_correct_aux | val flatten_correct_aux (#a: Type) (m: monoid a) (ml1 ml2: _)
: Lemma (mldenote m (ml1 @ ml2) == Monoid?.mult m (mldenote m ml1) (mldenote m ml2)) | val flatten_correct_aux (#a: Type) (m: monoid a) (ml1 ml2: _)
: Lemma (mldenote m (ml1 @ ml2) == Monoid?.mult m (mldenote m ml1) (mldenote m ml2)) | let rec flatten_correct_aux (#a:Type) (m:monoid a) ml1 ml2 :
Lemma (mldenote m (ml1 @ ml2) == Monoid?.mult m (mldenote m ml1)
(mldenote m ml2)) =
match ml1 with
| [] -> ()
| e::es1' -> flatten_correct_aux m es1' ml2 | {
"file_name": "ulib/FStar.Tactics.CanonMonoid.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 45,
"end_line": 68,
"start_col": 0,
"start_line": 63
} | (*
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.V2.fst.checked",
"FStar.Reflection.V2.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.List.fst.checked",
"FStar.Algebra.Monoid.fst.c... | [
{
"abbrev": false,
"full_module": "FStar.Tactics.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Reflection.V2",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.List",
"short_module": null
},
{
"abbrev": false,
"full_modu... | {
"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: FStar.Algebra.Monoid.monoid a -> ml1: Prims.list a -> ml2: Prims.list a
-> FStar.Pervasives.Lemma
(ensures
FStar.Tactics.CanonMonoid.mldenote m (ml1 @ ml2) ==
Monoid?.mult m
(FStar.Tactics.CanonMonoid.mldenote m ml1)
(FStar.Tactics.CanonMonoid.mldenote m ml2)) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Algebra.Monoid.monoid",
"Prims.list",
"FStar.Tactics.CanonMonoid.flatten_correct_aux",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.eq2",
"FStar.Tactics.CanonMonoid.mldenote",
"FStar.List.Tot.Base.op_At",
"FStar.Algebra.Monoid.__proj__Monoid__item__mult",
"Prims.Nil",
"FStar.Per... | [
"recursion"
] | false | false | true | false | false | let rec flatten_correct_aux (#a: Type) (m: monoid a) ml1 ml2
: Lemma (mldenote m (ml1 @ ml2) == Monoid?.mult m (mldenote m ml1) (mldenote m ml2)) =
| match ml1 with
| [] -> ()
| e :: es1' -> flatten_correct_aux m es1' ml2 | false |
Hacl.Impl.Frodo.KEM.Encaps.fst | Hacl.Impl.Frodo.KEM.Encaps.crypto_kem_enc | val crypto_kem_enc:
a:FP.frodo_alg
-> gen_a:FP.frodo_gen_a{is_supported gen_a}
-> ct:lbytes (crypto_ciphertextbytes a)
-> ss:lbytes (crypto_bytes a)
-> pk:lbytes (crypto_publickeybytes a)
-> Stack uint32
(requires fun h ->
disjoint state ct /\ disjoint state ss /\ disjoint state pk /\
liv... | val crypto_kem_enc:
a:FP.frodo_alg
-> gen_a:FP.frodo_gen_a{is_supported gen_a}
-> ct:lbytes (crypto_ciphertextbytes a)
-> ss:lbytes (crypto_bytes a)
-> pk:lbytes (crypto_publickeybytes a)
-> Stack uint32
(requires fun h ->
disjoint state ct /\ disjoint state ss /\ disjoint state pk /\
liv... | let crypto_kem_enc a gen_a ct ss pk =
recall state;
push_frame ();
let coins = create (bytes_mu a) (u8 0) in
recall state;
randombytes_ (bytes_mu a) coins;
crypto_kem_enc_ a gen_a coins ct ss pk;
clear_words_u8 coins;
pop_frame ();
u32 0 | {
"file_name": "code/frodo/Hacl.Impl.Frodo.KEM.Encaps.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 7,
"end_line": 439,
"start_col": 0,
"start_line": 430
} | module Hacl.Impl.Frodo.KEM.Encaps
open FStar.HyperStack
open FStar.HyperStack.ST
open FStar.Mul
open LowStar.Buffer
open Lib.IntTypes
open Lib.Buffer
open Hacl.Impl.Matrix
open Hacl.Impl.Frodo.Params
open Hacl.Impl.Frodo.KEM
open Hacl.Impl.Frodo.Encode
open Hacl.Impl.Frodo.Pack
open Hacl.Impl.Frodo.Sample
open Hacl... | {
"checked_file": "/",
"dependencies": [
"Spec.Matrix.fst.checked",
"Spec.Frodo.Params.fst.checked",
"Spec.Frodo.KEM.Encaps.fst.checked",
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
... | [
{
"abbrev": true,
"full_module": "Hacl.Impl.Frodo.KEM.KeyGen",
"short_module": "KG"
},
{
"abbrev": true,
"full_module": "Spec.Matrix",
"short_module": "M"
},
{
"abbrev": true,
"full_module": "Spec.Frodo.KEM.Encaps",
"short_module": "S"
},
{
"abbrev": true,
"fu... | {
"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.Frodo.Params.frodo_alg ->
gen_a: Spec.Frodo.Params.frodo_gen_a{Hacl.Impl.Frodo.Params.is_supported gen_a} ->
ct: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_ciphertextbytes a) ->
ss: Hacl.Impl.Matrix.lbytes (Hacl.Impl.Frodo.Params.crypto_bytes a) ->
pk: Hacl.Impl.Matrix.lbytes (H... | FStar.HyperStack.ST.Stack | [] | [] | [
"Spec.Frodo.Params.frodo_alg",
"Spec.Frodo.Params.frodo_gen_a",
"Prims.b2t",
"Hacl.Impl.Frodo.Params.is_supported",
"Hacl.Impl.Matrix.lbytes",
"Hacl.Impl.Frodo.Params.crypto_ciphertextbytes",
"Hacl.Impl.Frodo.Params.crypto_bytes",
"Hacl.Impl.Frodo.Params.crypto_publickeybytes",
"Lib.IntTypes.u32",
... | [] | false | true | false | false | false | let crypto_kem_enc a gen_a ct ss pk =
| recall state;
push_frame ();
let coins = create (bytes_mu a) (u8 0) in
recall state;
randombytes_ (bytes_mu a) coins;
crypto_kem_enc_ a gen_a coins ct ss pk;
clear_words_u8 coins;
pop_frame ();
u32 0 | false |
Hacl.Impl.Ed25519.Ladder.fst | Hacl.Impl.Ed25519.Ladder.point_mul_g_double_vartime | val point_mul_g_double_vartime:
out:point
-> scalar1:lbuffer uint8 32ul
-> scalar2:lbuffer uint8 32ul
-> q2:point ->
Stack unit
(requires fun h ->
live h out /\ live h scalar1 /\
live h scalar2 /\ live h q2 /\
disjoint q2 out /\ disjoint scalar1 out /\ disjoint scalar2 out /\
F51.linv (as_... | val point_mul_g_double_vartime:
out:point
-> scalar1:lbuffer uint8 32ul
-> scalar2:lbuffer uint8 32ul
-> q2:point ->
Stack unit
(requires fun h ->
live h out /\ live h scalar1 /\
live h scalar2 /\ live h q2 /\
disjoint q2 out /\ disjoint scalar1 out /\ disjoint scalar2 out /\
F51.linv (as_... | let point_mul_g_double_vartime out scalar1 scalar2 q2 =
push_frame ();
let tmp = create 28ul (u64 0) in
let g = sub tmp 0ul 20ul in
let bscalar1 = sub tmp 20ul 4ul in
let bscalar2 = sub tmp 24ul 4ul in
make_g g;
point_mul_g_double_vartime_aux out scalar1 g scalar2 q2 bscalar1 bscalar2;
pop_frame () | {
"file_name": "code/ed25519/Hacl.Impl.Ed25519.Ladder.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 14,
"end_line": 404,
"start_col": 0,
"start_line": 396
} | module Hacl.Impl.Ed25519.Ladder
module ST = FStar.HyperStack.ST
open FStar.HyperStack.All
open FStar.Mul
open Lib.IntTypes
open Lib.Buffer
open Hacl.Bignum25519
module F51 = Hacl.Impl.Ed25519.Field51
module BSeq = Lib.ByteSequence
module LE = Lib.Exponentiation
module SE = Spec.Exponentiation
module BE = Hacl.Impl... | {
"checked_file": "/",
"dependencies": [
"Spec.Exponentiation.fsti.checked",
"Spec.Ed25519.Lemmas.fsti.checked",
"Spec.Ed25519.fst.checked",
"prims.fst.checked",
"LowStar.Ignore.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Exponentiation.fsti.checked",
"Lib.ByteSequence.fsti.chec... | [
{
"abbrev": false,
"full_module": "Hacl.Ed25519.PrecompTable",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Ed25519.Group",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.Impl.Ed25519.PointConstants",
"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 |
out: Hacl.Bignum25519.point ->
scalar1: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
scalar2: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul ->
q2: Hacl.Bignum25519.point
-> FStar.HyperStack.ST.Stack Prims.unit | FStar.HyperStack.ST.Stack | [] | [] | [
"Hacl.Bignum25519.point",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.uint8",
"FStar.UInt32.__uint_to_t",
"FStar.HyperStack.ST.pop_frame",
"Prims.unit",
"Hacl.Impl.Ed25519.Ladder.point_mul_g_double_vartime_aux",
"Hacl.Impl.Ed25519.PointConstants.make_g",
"Lib.Buffer.lbuffer_t",
"Lib.Buffer.MUT",
"Lib.In... | [] | false | true | false | false | false | let point_mul_g_double_vartime out scalar1 scalar2 q2 =
| push_frame ();
let tmp = create 28ul (u64 0) in
let g = sub tmp 0ul 20ul in
let bscalar1 = sub tmp 20ul 4ul in
let bscalar2 = sub tmp 24ul 4ul in
make_g g;
point_mul_g_double_vartime_aux out scalar1 g scalar2 q2 bscalar1 bscalar2;
pop_frame () | false |
BinaryTrees.fst | BinaryTrees.size | val size : tree -> Tot nat | val size : tree -> Tot nat | let rec size t =
match t with
| Leaf -> 0
| Node n t1 t2 -> 1 + size t1 + size t2 | {
"file_name": "examples/data_structures/BinaryTrees.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 41,
"end_line": 26,
"start_col": 0,
"start_line": 23
} | (*
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.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "BinaryTrees.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 | t: BinaryTrees.tree -> Prims.nat | Prims.Tot | [
"total"
] | [] | [
"BinaryTrees.tree",
"Prims.int",
"Prims.op_Addition",
"BinaryTrees.size",
"Prims.nat"
] | [
"recursion"
] | false | false | false | true | false | let rec size t =
| match t with
| Leaf -> 0
| Node n t1 t2 -> 1 + size t1 + size t2 | false |
BinaryTrees.fst | BinaryTrees.compose | val compose : f1: (_: _ -> _) -> f2: (_: _ -> _) -> x: _ -> _ | let compose f1 f2 x = f1 (f2 x) | {
"file_name": "examples/data_structures/BinaryTrees.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 31,
"end_line": 59,
"start_col": 0,
"start_line": 59
} | (*
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.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "BinaryTrees.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 | f1: (_: _ -> _) -> f2: (_: _ -> _) -> x: _ -> _ | Prims.Tot | [
"total"
] | [] | [] | [] | false | false | false | true | false | let compose f1 f2 x =
| f1 (f2 x) | false | |
BinaryTrees.fst | BinaryTrees.map_size | val map_size : f:(int -> Tot int) -> t:tree -> Lemma (size (map f t) = size t) | val map_size : f:(int -> Tot int) -> t:tree -> Lemma (size (map f t) = size t) | let rec map_size f t =
match t with
| Leaf -> ()
| Node n t1 t2 -> map_size f t1; map_size f t2 | {
"file_name": "examples/data_structures/BinaryTrees.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 48,
"end_line": 38,
"start_col": 0,
"start_line": 35
} | (*
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.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "BinaryTrees.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: (_: Prims.int -> Prims.int) -> t: BinaryTrees.tree
-> FStar.Pervasives.Lemma (ensures BinaryTrees.size (BinaryTrees.map f t) = BinaryTrees.size t) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Prims.int",
"BinaryTrees.tree",
"BinaryTrees.map_size",
"Prims.unit"
] | [
"recursion"
] | false | false | true | false | false | let rec map_size f t =
| match t with
| Leaf -> ()
| Node n t1 t2 ->
map_size f t1;
map_size f t2 | false |
BinaryTrees.fst | BinaryTrees.map | val map : f:(int -> Tot int) -> tree -> Tot tree | val map : f:(int -> Tot int) -> tree -> Tot tree | let rec map f t =
match t with
| Leaf -> Leaf
| Node n t1 t2 -> Node (f n) (map f t1) (map f t2) | {
"file_name": "examples/data_structures/BinaryTrees.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 52,
"end_line": 32,
"start_col": 0,
"start_line": 29
} | (*
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.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file": false,
"source_file": "BinaryTrees.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: (_: Prims.int -> Prims.int) -> t: BinaryTrees.tree -> BinaryTrees.tree | Prims.Tot | [
"total"
] | [] | [
"Prims.int",
"BinaryTrees.tree",
"BinaryTrees.Leaf",
"BinaryTrees.Node",
"BinaryTrees.map"
] | [
"recursion"
] | false | false | false | true | false | let rec map f t =
| match t with
| Leaf -> Leaf
| Node n t1 t2 -> Node (f n) (map f t1) (map f t2) | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.