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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ID3.fst | ID3.return | val return (a: Type) (x: a) : repr a (as_pure_wp (fun p -> p x)) | val return (a: Type) (x: a) : repr a (as_pure_wp (fun p -> p x)) | let return (a : Type) (x : a) : repr a (as_pure_wp (fun p -> p x)) =
x | {
"file_name": "examples/layeredeffects/ID3.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 20,
"start_col": 0,
"start_line": 19
} | module ID3
// The base type of WPs
val w0 (a : Type u#a) : Type u#(max 1 a)
let w0 a = (a -> Type0) -> Type0
// We require monotonicity of them
let monotonic (w:w0 'a) =
forall p1 p2. (forall x. p1 x ==> p2 x) ==> w p1 ==> w p2
val w (a : Type u#a) : Type u#(max 1 a)
let w a = pure_wp a
let repr (a : Type) (wp : ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "ID3.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module":... | {
"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 -> x: a -> ID3.repr a (FStar.Monotonic.Pure.as_pure_wp (fun p -> p x)) | Prims.Tot | [
"total"
] | [] | [
"ID3.repr",
"FStar.Monotonic.Pure.as_pure_wp",
"Prims.pure_post",
"Prims.pure_pre"
] | [] | false | false | false | false | false | let return (a: Type) (x: a) : repr a (as_pure_wp (fun p -> p x)) =
| x | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.swvalue | val swvalue
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#space_beyond: nat)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder... | val swvalue
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#space_beyond: nat)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder... | let swvalue
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong } )
(#h0: HS.mem)
(#space_beyond: nat)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(w: swriter s h0... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 18,
"end_line": 65,
"start_col": 0,
"start_line": 54
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 | w: LowParse.Low.Writers.swriter s h0 space_beyond sout pout_from0 -> Prims.GTot t | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"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.B... | [] | false | false | false | false | false | let swvalue
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#space_beyond: nat)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder... | Ghost.reveal w.v | false |
Hacl.IntTypes.Intrinsics_128.fst | Hacl.IntTypes.Intrinsics_128.add_carry_u64 | val add_carry_u64: add_carry_st U64 | val add_carry_u64: add_carry_st U64 | let add_carry_u64 cin x y r =
let res = to_u128 x +. to_u128 cin +. to_u128 y in
let c = to_u64 (res >>. 64ul) in
r.(0ul) <- to_u64 res;
c | {
"file_name": "code/fallback/Hacl.IntTypes.Intrinsics_128.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 3,
"end_line": 17,
"start_col": 0,
"start_line": 13
} | module Hacl.IntTypes.Intrinsics_128
open Hacl.IntTypes.Intrinsics
open Lib.IntTypes
open Lib.Buffer
(* Versions of add_carry_u64 and sub_borrow_u64 that rely on uint128 *)
#set-options "--fuel 0 --ifuel 0 --z3rlimit 200" | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Lib.IntTypes.fsti.checked",
"Lib.Buffer.fsti.checked",
"Hacl.IntTypes.Intrinsics.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Math.Lemmas.fst.checked"
],
"interface_file": false,
"s... | [
{
"abbrev": false,
"full_module": "Lib.Buffer",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.IntTypes",
"short_module": null
},
{
"abbrev": false,
"full_module": "Hacl.IntTypes.Intrinsics",
"short_module": null
},
{
"abbrev": false,
"full_mod... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 0,
"initial_ifuel": 0,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | Hacl.IntTypes.Intrinsics.add_carry_st Lib.IntTypes.U64 | Prims.Tot | [
"total"
] | [] | [
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Lib.Buffer.lbuffer",
"Lib.IntTypes.size",
"Prims.unit",
"Lib.Buffer.op_Array_Assignment",
"FStar.UInt32.__uint_to_t",
"Lib.IntTypes.to_u64",
"Lib.IntTypes.U128",
"Lib.IntTypes.int_t",
"Lib.IntTypes.op_Greater_Greater_Dot",
"Lib.... | [] | false | false | false | true | false | let add_carry_u64 cin x y r =
| let res = to_u128 x +. to_u128 cin +. to_u128 y in
let c = to_u64 (res >>. 64ul) in
r.(0ul) <- to_u64 res;
c | false |
ID3.fst | ID3.if_then_else_wp | val if_then_else_wp : wp1: ID3.w a -> wp2: ID3.w a -> p: Prims.bool -> Prims.pure_wp a | let if_then_else_wp #a (wp1 wp2:w a) (p:bool) =
elim_pure_wp_monotonicity_forall ();
as_pure_wp (fun post -> (p ==> wp1 post) /\ ((~p) ==> wp2 post)) | {
"file_name": "examples/layeredeffects/ID3.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 66,
"end_line": 43,
"start_col": 0,
"start_line": 41
} | module ID3
// The base type of WPs
val w0 (a : Type u#a) : Type u#(max 1 a)
let w0 a = (a -> Type0) -> Type0
// We require monotonicity of them
let monotonic (w:w0 'a) =
forall p1 p2. (forall x. p1 x ==> p2 x) ==> w p1 ==> w p2
val w (a : Type u#a) : Type u#(max 1 a)
let w a = pure_wp a
let repr (a : Type) (wp : ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "ID3.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module":... | {
"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 | wp1: ID3.w a -> wp2: ID3.w a -> p: Prims.bool -> Prims.pure_wp a | Prims.Tot | [
"total"
] | [] | [
"ID3.w",
"Prims.bool",
"FStar.Monotonic.Pure.as_pure_wp",
"Prims.pure_post",
"Prims.l_and",
"Prims.l_imp",
"Prims.b2t",
"Prims.l_not",
"Prims.pure_pre",
"Prims.unit",
"FStar.Monotonic.Pure.elim_pure_wp_monotonicity_forall",
"Prims.pure_wp"
] | [] | false | false | false | true | false | let if_then_else_wp #a (wp1: w a) (wp2: w a) (p: bool) =
| elim_pure_wp_monotonicity_forall ();
as_pure_wp (fun post -> (p ==> wp1 post) /\ ((~p) ==> wp2 post)) | false | |
ID3.fst | ID3.sum | val sum (l: list int) : IdT int | val sum (l: list int) : IdT int | let rec sum (l : list int) : IdT int
=
match l with
| [] -> 0
| x::xs ->
assert (xs << l); // this succeeds!!
x + sum xs | {
"file_name": "examples/layeredeffects/ID3.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 14,
"end_line": 90,
"start_col": 0,
"start_line": 84
} | module ID3
// The base type of WPs
val w0 (a : Type u#a) : Type u#(max 1 a)
let w0 a = (a -> Type0) -> Type0
// We require monotonicity of them
let monotonic (w:w0 'a) =
forall p1 p2. (forall x. p1 x ==> p2 x) ==> w p1 ==> w p2
val w (a : Type u#a) : Type u#(max 1 a)
let w a = pure_wp a
let repr (a : Type) (wp : ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "ID3.fst"
} | [
{
"abbrev": true,
"full_module": "FStar.Tactics.V2",
"short_module": "T"
},
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | l: Prims.list Prims.int -> ID3.IdT Prims.int | ID3.IdT | [] | [] | [
"Prims.list",
"Prims.int",
"Prims.op_Addition",
"ID3.sum",
"Prims.unit",
"Prims._assert",
"Prims.precedes"
] | [
"recursion"
] | false | true | false | false | false | let rec sum (l: list int) : IdT int =
| match l with
| [] -> 0
| x :: xs ->
assert (xs << l);
x + sum xs | false |
EtM.AE.fst | EtM.AE.mac_and_cpa_refine_ae | val mac_and_cpa_refine_ae
(ae_entries: Seq.seq log_entry)
(mac_entries: Seq.seq EtM.MAC.log_entry)
(cpa_entries: Seq.seq EtM.CPA.log_entry)
: Tot Type0 (decreases (Seq.length ae_entries)) | val mac_and_cpa_refine_ae
(ae_entries: Seq.seq log_entry)
(mac_entries: Seq.seq EtM.MAC.log_entry)
(cpa_entries: Seq.seq EtM.CPA.log_entry)
: Tot Type0 (decreases (Seq.length ae_entries)) | let rec mac_and_cpa_refine_ae (ae_entries:Seq.seq log_entry)
(mac_entries:Seq.seq EtM.MAC.log_entry)
(cpa_entries:Seq.seq EtM.CPA.log_entry)
: Tot Type0 (decreases (Seq.length ae_entries)) =
Seq.length ae_entries == Seq.length mac_entries /\
Seq.l... | {
"file_name": "examples/crypto/EtM.AE.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 13,
"end_line": 154,
"start_col": 0,
"start_line": 142
} | (*
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",
"Platform.Bytes.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"FStar.Map.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "EtM.Plain",
"short_module": "Plain"
},
{
"abbrev": true,
"full_module": "EtM.Ideal",
"short_module": "Ideal"
},
{
"abbrev": true,
"full_module": "EtM.MAC",
"short_module": "MAC"
},
{
"abbrev": true,
"full_module": "EtM.CPA",
... | {
"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 |
ae_entries: FStar.Seq.Base.seq EtM.AE.log_entry ->
mac_entries: FStar.Seq.Base.seq EtM.MAC.log_entry ->
cpa_entries: FStar.Seq.Base.seq EtM.CPA.log_entry
-> Prims.Tot Type0 | Prims.Tot | [
"total",
""
] | [] | [
"FStar.Seq.Base.seq",
"EtM.AE.log_entry",
"EtM.MAC.log_entry",
"EtM.CPA.log_entry",
"Prims.l_and",
"Prims.eq2",
"Prims.nat",
"FStar.Seq.Base.length",
"Prims.op_disEquality",
"Prims.int",
"EtM.AE.mac_and_cpa_refine_ae_entry",
"EtM.AE.mac_and_cpa_refine_ae",
"Prims.logical",
"FStar.Pervasive... | [
"recursion"
] | false | false | false | true | true | let rec mac_and_cpa_refine_ae
(ae_entries: Seq.seq log_entry)
(mac_entries: Seq.seq EtM.MAC.log_entry)
(cpa_entries: Seq.seq EtM.CPA.log_entry)
: Tot Type0 (decreases (Seq.length ae_entries)) =
| Seq.length ae_entries == Seq.length mac_entries /\ Seq.length mac_entries == Seq.length cpa_entries /\
(if Seq.length ae_entries <> 0
then
let ae_prefix, ae_last = Seq.un_snoc ae_entries in
let mac_prefix, mac_last = Seq.un_snoc mac_entries in
let cpa_prefix, cpa_last = Seq.un_snoc cpa_entries in
mac_... | false |
EtM.AE.fst | EtM.AE.mac_only_cpa_ciphers | val mac_only_cpa_ciphers (macs: Seq.seq EtM.MAC.log_entry) (cpas: Seq.seq EtM.CPA.log_entry)
: Tot Type0 (decreases (Seq.length macs)) | val mac_only_cpa_ciphers (macs: Seq.seq EtM.MAC.log_entry) (cpas: Seq.seq EtM.CPA.log_entry)
: Tot Type0 (decreases (Seq.length macs)) | let rec mac_only_cpa_ciphers (macs:Seq.seq EtM.MAC.log_entry)
(cpas:Seq.seq EtM.CPA.log_entry)
: Tot Type0 (decreases (Seq.length macs)) =
Seq.length macs == Seq.length cpas /\
(if Seq.length macs > 0 then
let macs, mac = Seq.un_snoc macs in
let cpas, cpa = Seq.un_sno... | {
"file_name": "examples/crypto/EtM.AE.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 14,
"end_line": 101,
"start_col": 0,
"start_line": 92
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"FStar.Map.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "EtM.Plain",
"short_module": "Plain"
},
{
"abbrev": true,
"full_module": "EtM.Ideal",
"short_module": "Ideal"
},
{
"abbrev": true,
"full_module": "EtM.MAC",
"short_module": "MAC"
},
{
"abbrev": true,
"full_module": "EtM.CPA",
... | {
"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 | macs: FStar.Seq.Base.seq EtM.MAC.log_entry -> cpas: FStar.Seq.Base.seq EtM.CPA.log_entry
-> Prims.Tot Type0 | Prims.Tot | [
"total",
""
] | [] | [
"FStar.Seq.Base.seq",
"EtM.MAC.log_entry",
"EtM.CPA.log_entry",
"Prims.l_and",
"Prims.eq2",
"Prims.nat",
"FStar.Seq.Base.length",
"Prims.op_GreaterThan",
"EtM.AE.mac_cpa_related",
"EtM.AE.mac_only_cpa_ciphers",
"Prims.logical",
"FStar.Pervasives.Native.tuple2",
"FStar.Seq.Properties.snoc",
... | [
"recursion"
] | false | false | false | true | true | let rec mac_only_cpa_ciphers (macs: Seq.seq EtM.MAC.log_entry) (cpas: Seq.seq EtM.CPA.log_entry)
: Tot Type0 (decreases (Seq.length macs)) =
| Seq.length macs == Seq.length cpas /\
(if Seq.length macs > 0
then
let macs, mac = Seq.un_snoc macs in
let cpas, cpa = Seq.un_snoc cpas in
mac_cpa_related mac cpa /\ mac_only_cpa_ciphers macs cpas
else True) | false |
CQueue.LList.fst | CQueue.LList.ralloc | val ralloc (#a: Type0) (x: a)
: Steel (ref a)
emp
(fun r -> vptr r)
(requires fun _ -> True)
(ensures fun _ r h1 -> h1 (vptr r) == x /\ not (is_null r)) | val ralloc (#a: Type0) (x: a)
: Steel (ref a)
emp
(fun r -> vptr r)
(requires fun _ -> True)
(ensures fun _ r h1 -> h1 (vptr r) == x /\ not (is_null r)) | let ralloc (#a:Type0) (x:a) : Steel (ref a)
emp (fun r -> vptr r)
(requires fun _ -> True)
(ensures fun _ r h1 -> h1 (vptr r) == x /\ not (is_null r))
=
malloc x | {
"file_name": "share/steel/examples/steel/CQueue.LList.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 10,
"end_line": 145,
"start_col": 0,
"start_line": 140
} | module CQueue.LList
noeq
type cllist_ptrvalue (a: Type0) = {
head: ref (ccell_ptrvalue a);
tail: ref (ref (ccell_ptrvalue a));
all_or_none_null: squash (is_null head == is_null tail);
}
let cllist_ptrvalue_null a = {head = null; tail = null; all_or_none_null = ()}
let cllist_ptrvalue_is_null #a x = is_null x.h... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": true,
"source_file": "CQueue.LList.fst"
} | [
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"f... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: a -> Steel.Effect.Steel (Steel.Reference.ref a) | Steel.Effect.Steel | [] | [] | [
"Steel.Reference.malloc",
"Steel.Reference.ref",
"Steel.Effect.Common.emp",
"Steel.Reference.vptr",
"Steel.Effect.Common.vprop",
"Steel.Effect.Common.rmem",
"Prims.l_True",
"Prims.l_and",
"Prims.eq2",
"Steel.Effect.Common.normal",
"Steel.Effect.Common.t_of",
"Prims.b2t",
"Prims.op_Negation",... | [] | false | true | false | false | false | let ralloc (#a: Type0) (x: a)
: Steel (ref a)
emp
(fun r -> vptr r)
(requires fun _ -> True)
(ensures fun _ r h1 -> h1 (vptr r) == x /\ not (is_null r)) =
| malloc x | false |
EtM.AE.fst | EtM.AE.invert_invariant | val invert_invariant (h: mem) (k: key) (c: cipher) (p: Plain.plain)
: Lemma
(requires
(invariant h k /\ Seq.mem c (get_mac_log h k) /\
Seq.mem (CPA.Entry p (fst c)) (get_cpa_log h k))) (ensures (Seq.mem (p, c) (get_log h k))) | val invert_invariant (h: mem) (k: key) (c: cipher) (p: Plain.plain)
: Lemma
(requires
(invariant h k /\ Seq.mem c (get_mac_log h k) /\
Seq.mem (CPA.Entry p (fst c)) (get_cpa_log h k))) (ensures (Seq.mem (p, c) (get_log h k))) | let invert_invariant (h:mem) (k:key) (c:cipher) (p:Plain.plain)
: Lemma (requires (invariant h k /\
Seq.mem c (get_mac_log h k) /\
Seq.mem (CPA.Entry p (fst c)) (get_cpa_log h k)))
(ensures (Seq.mem (p, c) (get_log h k)))
= let macs = get_mac_log h k in
... | {
"file_name": "examples/crypto/EtM.AE.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 44,
"end_line": 247,
"start_col": 0,
"start_line": 239
} | (*
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",
"Platform.Bytes.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"FStar.Map.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "EtM.Plain",
"short_module": "Plain"
},
{
"abbrev": true,
"full_module": "EtM.Ideal",
"short_module": "Ideal"
},
{
"abbrev": true,
"full_module": "EtM.MAC",
"short_module": "MAC"
},
{
"abbrev": true,
"full_module": "EtM.CPA",
... | {
"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 -> k: EtM.AE.key -> c: EtM.AE.cipher -> p: EtM.Plain.plain
-> FStar.Pervasives.Lemma
(requires
EtM.AE.invariant h k /\ FStar.Seq.Properties.mem c (EtM.AE.get_mac_log h k) /\
FStar.Seq.Properties.mem (EtM.CPA.Entry p (FStar.Pervasives.Native.fst c))
(Et... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Monotonic.HyperStack.mem",
"EtM.AE.key",
"EtM.AE.cipher",
"EtM.Plain.plain",
"EtM.AE.invert_invariant_aux",
"FStar.Seq.Base.seq",
"EtM.AE.log_entry",
"EtM.AE.get_log",
"EtM.CPA.log_entry",
"EtM.AE.get_cpa_log",
"EtM.MAC.log_entry",
"EtM.AE.get_mac_log",
"Prims.unit",
"Prims.l_and",
... | [] | true | false | true | false | false | let invert_invariant (h: mem) (k: key) (c: cipher) (p: Plain.plain)
: Lemma
(requires
(invariant h k /\ Seq.mem c (get_mac_log h k) /\
Seq.mem (CPA.Entry p (fst c)) (get_cpa_log h k))) (ensures (Seq.mem (p, c) (get_log h k))) =
| let macs = get_mac_log h k in
let cpas = get_cpa_log h k in
let aes = get_log h k in
invert_invariant_aux c p macs cpas aes | false |
EtM.AE.fst | EtM.AE.mac_only_cpa_ciphers_snoc | val mac_only_cpa_ciphers_snoc
(macs: Seq.seq EtM.MAC.log_entry)
(mac: EtM.MAC.log_entry)
(cpas: Seq.seq EtM.CPA.log_entry)
(cpa: EtM.CPA.log_entry)
: Lemma
(mac_only_cpa_ciphers (snoc macs mac) (snoc cpas cpa) <==>
(mac_only_cpa_ciphers macs cpas /\ mac_cpa_related mac cpa)) | val mac_only_cpa_ciphers_snoc
(macs: Seq.seq EtM.MAC.log_entry)
(mac: EtM.MAC.log_entry)
(cpas: Seq.seq EtM.CPA.log_entry)
(cpa: EtM.CPA.log_entry)
: Lemma
(mac_only_cpa_ciphers (snoc macs mac) (snoc cpas cpa) <==>
(mac_only_cpa_ciphers macs cpas /\ mac_cpa_related mac cpa)) | let mac_only_cpa_ciphers_snoc (macs:Seq.seq EtM.MAC.log_entry) (mac:EtM.MAC.log_entry)
(cpas:Seq.seq EtM.CPA.log_entry) (cpa:EtM.CPA.log_entry)
: Lemma (mac_only_cpa_ciphers (snoc macs mac) (snoc cpas cpa) <==>
(mac_only_cpa_ciphers macs cpas /\ mac_cpa_related mac cpa))... | {
"file_name": "examples/crypto/EtM.AE.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 25,
"end_line": 109,
"start_col": 0,
"start_line": 104
} | (*
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",
"Platform.Bytes.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"FStar.Map.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "EtM.Plain",
"short_module": "Plain"
},
{
"abbrev": true,
"full_module": "EtM.Ideal",
"short_module": "Ideal"
},
{
"abbrev": true,
"full_module": "EtM.MAC",
"short_module": "MAC"
},
{
"abbrev": true,
"full_module": "EtM.CPA",
... | {
"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 |
macs: FStar.Seq.Base.seq EtM.MAC.log_entry ->
mac: EtM.MAC.log_entry ->
cpas: FStar.Seq.Base.seq EtM.CPA.log_entry ->
cpa: EtM.CPA.log_entry
-> FStar.Pervasives.Lemma
(ensures
EtM.AE.mac_only_cpa_ciphers (FStar.Monotonic.Seq.snoc macs mac)
(FStar.Monotonic.Seq.snoc cpas cpa) <==>
... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Seq.Base.seq",
"EtM.MAC.log_entry",
"EtM.CPA.log_entry",
"FStar.Seq.Properties.un_snoc_snoc",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.l_iff",
"EtM.AE.mac_only_cpa_ciphers",
"FStar.Monotonic.Seq.snoc",
"Prims.l_and",
"EtM.AE.mac_cpa_related",
"Prims.Nil",
"FStar.Pervasiv... | [] | true | false | true | false | false | let mac_only_cpa_ciphers_snoc
(macs: Seq.seq EtM.MAC.log_entry)
(mac: EtM.MAC.log_entry)
(cpas: Seq.seq EtM.CPA.log_entry)
(cpa: EtM.CPA.log_entry)
: Lemma
(mac_only_cpa_ciphers (snoc macs mac) (snoc cpas cpa) <==>
(mac_only_cpa_ciphers macs cpas /\ mac_cpa_related mac cpa)) =
| un_snoc_snoc macs mac;
un_snoc_snoc cpas cpa | false |
EtM.AE.fst | EtM.AE.mac_and_cpa_refine_ae_snoc | val mac_and_cpa_refine_ae_snoc
(ae_entries: Seq.seq log_entry)
(mac_entries: Seq.seq EtM.MAC.log_entry)
(cpa_entries: Seq.seq EtM.CPA.log_entry)
(ae: log_entry)
(mac: EtM.MAC.log_entry)
(cpa: EtM.CPA.log_entry)
: Lemma
(mac_and_cpa_refine_ae (snoc ae_entries ae) (snoc mac_ent... | val mac_and_cpa_refine_ae_snoc
(ae_entries: Seq.seq log_entry)
(mac_entries: Seq.seq EtM.MAC.log_entry)
(cpa_entries: Seq.seq EtM.CPA.log_entry)
(ae: log_entry)
(mac: EtM.MAC.log_entry)
(cpa: EtM.CPA.log_entry)
: Lemma
(mac_and_cpa_refine_ae (snoc ae_entries ae) (snoc mac_ent... | let mac_and_cpa_refine_ae_snoc (ae_entries:Seq.seq log_entry)
(mac_entries:Seq.seq EtM.MAC.log_entry)
(cpa_entries:Seq.seq EtM.CPA.log_entry)
(ae:log_entry)
(mac:EtM.MAC.log_entry)
... | {
"file_name": "examples/crypto/EtM.AE.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 38,
"end_line": 170,
"start_col": 0,
"start_line": 157
} | (*
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",
"Platform.Bytes.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"FStar.Map.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "EtM.Plain",
"short_module": "Plain"
},
{
"abbrev": true,
"full_module": "EtM.Ideal",
"short_module": "Ideal"
},
{
"abbrev": true,
"full_module": "EtM.MAC",
"short_module": "MAC"
},
{
"abbrev": true,
"full_module": "EtM.CPA",
... | {
"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 |
ae_entries: FStar.Seq.Base.seq EtM.AE.log_entry ->
mac_entries: FStar.Seq.Base.seq EtM.MAC.log_entry ->
cpa_entries: FStar.Seq.Base.seq EtM.CPA.log_entry ->
ae: EtM.AE.log_entry ->
mac: EtM.MAC.log_entry ->
cpa: EtM.CPA.log_entry
-> FStar.Pervasives.Lemma
(ensures
EtM.AE.mac_and_cpa... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"FStar.Seq.Base.seq",
"EtM.AE.log_entry",
"EtM.MAC.log_entry",
"EtM.CPA.log_entry",
"FStar.Seq.Properties.un_snoc_snoc",
"Prims.unit",
"Prims.l_True",
"Prims.squash",
"Prims.l_iff",
"EtM.AE.mac_and_cpa_refine_ae",
"FStar.Monotonic.Seq.snoc",
"Prims.l_and",
"EtM.AE.mac_and_cpa_refine_ae_entry... | [] | true | false | true | false | false | let mac_and_cpa_refine_ae_snoc
(ae_entries: Seq.seq log_entry)
(mac_entries: Seq.seq EtM.MAC.log_entry)
(cpa_entries: Seq.seq EtM.CPA.log_entry)
(ae: log_entry)
(mac: EtM.MAC.log_entry)
(cpa: EtM.CPA.log_entry)
: Lemma
(mac_and_cpa_refine_ae (snoc ae_entries ae) (snoc mac_ent... | Seq.un_snoc_snoc ae_entries ae;
Seq.un_snoc_snoc mac_entries mac;
Seq.un_snoc_snoc cpa_entries cpa | false |
ID3.fst | ID3.lift_pure_nd | val lift_pure_nd (a: Type) (wp: pure_wp a) (f: (unit -> PURE a wp))
: Pure (repr a wp) (requires (wp (fun _ -> True))) (ensures (fun _ -> True)) | val lift_pure_nd (a: Type) (wp: pure_wp a) (f: (unit -> PURE a wp))
: Pure (repr a wp) (requires (wp (fun _ -> True))) (ensures (fun _ -> True)) | let lift_pure_nd (a:Type) (wp:pure_wp a) (f:unit -> PURE a wp) :
Pure (repr a wp) (requires (wp (fun _ -> True)))
(ensures (fun _ -> True))
= elim_pure_wp_monotonicity_forall ();
f () | {
"file_name": "examples/layeredeffects/ID3.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 8,
"end_line": 65,
"start_col": 0,
"start_line": 61
} | module ID3
// The base type of WPs
val w0 (a : Type u#a) : Type u#(max 1 a)
let w0 a = (a -> Type0) -> Type0
// We require monotonicity of them
let monotonic (w:w0 'a) =
forall p1 p2. (forall x. p1 x ==> p2 x) ==> w p1 ==> w p2
val w (a : Type u#a) : Type u#(max 1 a)
let w a = pure_wp a
let repr (a : Type) (wp : ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "ID3.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module":... | {
"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 -> wp: Prims.pure_wp a -> f: (_: Prims.unit -> Prims.PURE a) -> Prims.Pure (ID3.repr a wp) | Prims.Pure | [] | [] | [
"Prims.pure_wp",
"Prims.unit",
"FStar.Monotonic.Pure.elim_pure_wp_monotonicity_forall",
"ID3.repr",
"Prims.l_True"
] | [] | false | false | false | false | false | let lift_pure_nd (a: Type) (wp: pure_wp a) (f: (unit -> PURE a wp))
: Pure (repr a wp) (requires (wp (fun _ -> True))) (ensures (fun _ -> True)) =
| elim_pure_wp_monotonicity_forall ();
f () | false |
ID3.fst | ID3.subcomp | val subcomp (a: Type) (wp1 wp2: w a) (f: repr a wp1)
: Pure (repr a wp2) (requires (forall p. wp2 p ==> wp1 p)) (ensures fun _ -> True) | val subcomp (a: Type) (wp1 wp2: w a) (f: repr a wp1)
: Pure (repr a wp2) (requires (forall p. wp2 p ==> wp1 p)) (ensures fun _ -> True) | let subcomp (a:Type) (wp1 wp2: w a)
(f : repr a wp1)
: Pure (repr a wp2)
(requires (forall p. wp2 p ==> wp1 p))
(ensures fun _ -> True)
= f | {
"file_name": "examples/layeredeffects/ID3.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 3,
"end_line": 38,
"start_col": 0,
"start_line": 33
} | module ID3
// The base type of WPs
val w0 (a : Type u#a) : Type u#(max 1 a)
let w0 a = (a -> Type0) -> Type0
// We require monotonicity of them
let monotonic (w:w0 'a) =
forall p1 p2. (forall x. p1 x ==> p2 x) ==> w p1 ==> w p2
val w (a : Type u#a) : Type u#(max 1 a)
let w a = pure_wp a
let repr (a : Type) (wp : ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "ID3.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module":... | {
"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 -> wp1: ID3.w a -> wp2: ID3.w a -> f: ID3.repr a wp1 -> Prims.Pure (ID3.repr a wp2) | Prims.Pure | [] | [] | [
"ID3.w",
"ID3.repr",
"Prims.l_Forall",
"Prims.pure_post",
"Prims.l_imp",
"Prims.l_True"
] | [] | false | false | false | false | false | let subcomp (a: Type) (wp1 wp2: w a) (f: repr a wp1)
: Pure (repr a wp2) (requires (forall p. wp2 p ==> wp1 p)) (ensures fun _ -> True) =
| f | false |
ID3.fst | ID3.test_f | val test_f : unit -> ID int (as_pure_wp (fun p -> p 5 /\ p 3)) | val test_f : unit -> ID int (as_pure_wp (fun p -> p 5 /\ p 3)) | let test_f () = 3 | {
"file_name": "examples/layeredeffects/ID3.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 17,
"end_line": 72,
"start_col": 0,
"start_line": 72
} | module ID3
// The base type of WPs
val w0 (a : Type u#a) : Type u#(max 1 a)
let w0 a = (a -> Type0) -> Type0
// We require monotonicity of them
let monotonic (w:w0 'a) =
forall p1 p2. (forall x. p1 x ==> p2 x) ==> w p1 ==> w p2
val w (a : Type u#a) : Type u#(max 1 a)
let w a = pure_wp a
let repr (a : Type) (wp : ... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"FStar.Tactics.V2.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Pure.fst.checked"
],
"interface_file": false,
"source_file": "ID3.fst"
} | [
{
"abbrev": false,
"full_module": "FStar.Monotonic.Pure",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Pervasives",
"short_module": null
},
{
"abbrev": false,
"full_module": "Prims",
"short_module": null
},
{
"abbrev": false,
"full_module":... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _: Prims.unit -> ID3.ID Prims.int | ID3.ID | [] | [] | [
"Prims.unit",
"Prims.int"
] | [] | false | true | false | false | false | let test_f () =
| 3 | false |
Steel.Primitive.ForkJoin.Unix.fst | Steel.Primitive.ForkJoin.Unix.can_be_split_forall_frame | val can_be_split_forall_frame (#a: Type) (p q: post_t a) (frame: vprop) (x: a)
: Lemma (requires can_be_split_forall p q)
(ensures (frame `star` (p x)) `can_be_split` (frame `star` (q x))) | val can_be_split_forall_frame (#a: Type) (p q: post_t a) (frame: vprop) (x: a)
: Lemma (requires can_be_split_forall p q)
(ensures (frame `star` (p x)) `can_be_split` (frame `star` (q x))) | let can_be_split_forall_frame (#a:Type) (p q:post_t a) (frame:vprop) (x:a)
: Lemma (requires can_be_split_forall p q)
(ensures (frame `star` p x) `can_be_split` (frame `star` q x))
= let frame = hp_of frame in
let p = hp_of (p x) in
let q = hp_of (q x) in
reveal_can_be_split ();
assert (slimp p q... | {
"file_name": "lib/steel/Steel.Primitive.ForkJoin.Unix.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 40,
"end_line": 83,
"start_col": 0,
"start_line": 73
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.Reference.fsti.checked",
"Steel.Primitive.ForkJoin.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Tactic... | [
{
"abbrev": false,
"full_module": "Steel.Primitive.ForkJoin",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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: Steel.Effect.Common.post_t a ->
q: Steel.Effect.Common.post_t a ->
frame: Steel.Effect.Common.vprop ->
x: a
-> FStar.Pervasives.Lemma (requires Steel.Effect.Common.can_be_split_forall p q)
(ensures
Steel.Effect.Common.can_be_split (Steel.Effect.Common.star frame (p x))
(Ste... | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Effect.Common.post_t",
"Steel.Effect.Common.vprop",
"Steel.Memory.star_commutative",
"Prims.unit",
"Steel.Memory.slimp_star",
"Prims._assert",
"Steel.Memory.slimp",
"Steel.Effect.Common.reveal_can_be_split",
"Steel.Memory.slprop",
"Steel.Effect.Common.hp_of",
"Steel.Effect.Common.can_be_s... | [] | true | false | true | false | false | let can_be_split_forall_frame (#a: Type) (p q: post_t a) (frame: vprop) (x: a)
: Lemma (requires can_be_split_forall p q)
(ensures (frame `star` (p x)) `can_be_split` (frame `star` (q x))) =
| let frame = hp_of frame in
let p = hp_of (p x) in
let q = hp_of (q x) in
reveal_can_be_split ();
assert (slimp p q);
slimp_star p q frame frame;
Steel.Memory.star_commutative p frame;
Steel.Memory.star_commutative q frame | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.wvalue | val wvalue
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U3... | val wvalue
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U3... | let wvalue
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(w: writer s h0 sout pout_from0)
: GTot ... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 18,
"end_line": 191,
"start_col": 0,
"start_line": 181
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 | w: LowParse.Low.Writers.writer s h0 sout pout_from0 -> Prims.GTot t | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"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.B... | [] | false | false | false | false | false | let wvalue
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U3... | Ghost.reveal w.v | false |
EtM.AE.fst | EtM.AE.keygen | val keygen (parent: rid)
: ST key
(requires (fun _ -> HyperStack.ST.witnessed (region_contains_pred parent)))
(ensures
(fun h0 k h1 ->
modifies Set.empty h0 h1 /\ extends k.region parent /\ fresh_region k.region h0 h1 /\
Map.contains (get_hmap h1) k.region /\ contains h1 ... | val keygen (parent: rid)
: ST key
(requires (fun _ -> HyperStack.ST.witnessed (region_contains_pred parent)))
(ensures
(fun h0 k h1 ->
modifies Set.empty h0 h1 /\ extends k.region parent /\ fresh_region k.region h0 h1 /\
Map.contains (get_hmap h1) k.region /\ contains h1 ... | let keygen (parent:rid)
: ST key
(requires (fun _ -> HyperStack.ST.witnessed (region_contains_pred parent)))
(ensures (fun h0 k h1 ->
modifies Set.empty h0 h1 /\
extends k.region parent /\
fresh_region k.region h0 h1 /\
Map.contains (get_hmap h1) k.region /\
contains h1 k.log /\
se... | {
"file_name": "examples/crypto/EtM.AE.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 23,
"end_line": 269,
"start_col": 0,
"start_line": 254
} | (*
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",
"Platform.Bytes.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"FStar.Map.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "EtM.Plain",
"short_module": "Plain"
},
{
"abbrev": true,
"full_module": "EtM.Ideal",
"short_module": "Ideal"
},
{
"abbrev": true,
"full_module": "EtM.MAC",
"short_module": "MAC"
},
{
"abbrev": true,
"full_module": "EtM.CPA",
... | {
"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 | parent: EtM.AE.rid -> FStar.HyperStack.ST.ST EtM.AE.key | FStar.HyperStack.ST.ST | [] | [] | [
"EtM.AE.rid",
"EtM.AE.Key",
"EtM.AE.key",
"FStar.HyperStack.ST.m_rref",
"FStar.Seq.Base.seq",
"EtM.AE.log_entry",
"FStar.Monotonic.Seq.grows",
"FStar.Monotonic.Seq.alloc_mref_seq",
"FStar.Seq.Base.empty",
"EtM.MAC.key",
"EtM.MAC.keygen",
"EtM.CPA.key",
"EtM.CPA.keygen",
"FStar.Monotonic.Hy... | [] | false | true | false | false | false | let keygen (parent: rid)
: ST key
(requires (fun _ -> HyperStack.ST.witnessed (region_contains_pred parent)))
(ensures
(fun h0 k h1 ->
modifies Set.empty h0 h1 /\ extends k.region parent /\ fresh_region k.region h0 h1 /\
Map.contains (get_hmap h1) k.region /\ contains h1 ... | let region = new_region parent in
let ke = CPA.keygen region in
let ka = MAC.keygen region in
let log = alloc_mref_seq region Seq.empty in
Key #region ke ka log | false |
Pulse.Lib.HashTable.Type.fsti | Pulse.Lib.HashTable.Type.exploded_vp | val exploded_vp
(#k: eqtype)
(#v: Type0)
(r: ref (ht_t k v))
(ht: ht_t k v)
(r_sz: ref pos_us)
(r_hashf: ref (k -> SZ.t))
(r_contents: ref (V.vec (cell k v)))
: vprop | val exploded_vp
(#k: eqtype)
(#v: Type0)
(r: ref (ht_t k v))
(ht: ht_t k v)
(r_sz: ref pos_us)
(r_hashf: ref (k -> SZ.t))
(r_contents: ref (V.vec (cell k v)))
: vprop | let exploded_vp (#k:eqtype) (#v:Type0)
(r:ref (ht_t k v))
(ht:ht_t k v)
(r_sz:ref pos_us)
(r_hashf:ref (k -> SZ.t))
(r_contents:ref (V.vec (cell k v))) : vprop =
pts_to r_sz ht.sz **
pts_to r_hashf ht.hashf **
pts_to r_contents ht.contents **
token r r_sz r_hashf r_contents | {
"file_name": "share/steel/examples/pulse/lib/Pulse.Lib.HashTable.Type.fsti",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 33,
"end_line": 53,
"start_col": 0,
"start_line": 44
} | (*
Copyright 2023 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Pulse.Lib.Vec.fsti.checked",
"Pulse.Lib.Reference.fsti.checked",
"Pulse.Lib.Pervasives.fst.checked",
"Pulse.Lib.HashTable.Spec.fst.checked",
"prims.fst.checked",
"FStar.SizeT.fsti.checked",
"FStar.Pervasives.fsti.checked"
],
"interface_file":... | [
{
"abbrev": true,
"full_module": "FStar.SizeT",
"short_module": "SZ"
},
{
"abbrev": true,
"full_module": "Pulse.Lib.Reference",
"short_module": "R"
},
{
"abbrev": true,
"full_module": "Pulse.Lib.Vec",
"short_module": "V"
},
{
"abbrev": false,
"full_module": "P... | {
"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: Pulse.Lib.Reference.ref (Pulse.Lib.HashTable.Type.ht_t k v) ->
ht: Pulse.Lib.HashTable.Type.ht_t k v ->
r_sz: Pulse.Lib.Reference.ref Pulse.Lib.HashTable.Type.pos_us ->
r_hashf: Pulse.Lib.Reference.ref (_: k -> FStar.SizeT.t) ->
r_contents: Pulse.Lib.Reference.ref (Pulse.Lib.Vec.vec (Pulse.Lib.H... | Prims.Tot | [
"total"
] | [] | [
"Prims.eqtype",
"Pulse.Lib.Reference.ref",
"Pulse.Lib.HashTable.Type.ht_t",
"Pulse.Lib.HashTable.Type.pos_us",
"FStar.SizeT.t",
"Pulse.Lib.Vec.vec",
"Pulse.Lib.HashTable.Spec.cell",
"Pulse.Lib.Core.op_Star_Star",
"Pulse.Lib.Reference.pts_to",
"PulseCore.FractionalPermission.full_perm",
"Pulse.Li... | [] | false | false | false | false | false | let exploded_vp
(#k: eqtype)
(#v: Type0)
(r: ref (ht_t k v))
(ht: ht_t k v)
(r_sz: ref pos_us)
(r_hashf: ref (k -> SZ.t))
(r_contents: ref (V.vec (cell k v)))
: vprop =
| ((pts_to r_sz ht.sz ** pts_to r_hashf ht.hashf) ** pts_to r_contents ht.contents) **
token r r_sz r_hashf r_contents | false |
Steel.PCMFrac.fst | Steel.PCMFrac.fractional | val fractional : a: Type -> Type | let fractional (a:Type u#a) = option (a & perm) | {
"file_name": "lib/steel/Steel.PCMFrac.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 47,
"end_line": 6,
"start_col": 0,
"start_line": 6
} | module Steel.PCMFrac
include FStar.PCM
include Steel.FractionalPermission
open FStar.Real | {
"checked_file": "/",
"dependencies": [
"Steel.FractionalPermission.fst.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": false,
... | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"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: Type -> Type | Prims.Tot | [
"total"
] | [] | [
"FStar.Pervasives.Native.option",
"FStar.Pervasives.Native.tuple2",
"Steel.FractionalPermission.perm"
] | [] | false | false | false | true | true | let fractional (a: Type u#a) =
| option (a & perm) | false | |
Steel.Primitive.ForkJoin.Unix.fst | Steel.Primitive.ForkJoin.Unix.rearrange3 | val rearrange3 (p q r: vprop) : Lemma (((p `star` q) `star` r) `equiv` (p `star` (r `star` q))) | val rearrange3 (p q r: vprop) : Lemma (((p `star` q) `star` r) `equiv` (p `star` (r `star` q))) | let rearrange3 (p q r:vprop) : Lemma
(((p `star` q) `star` r) `equiv` (p `star` (r `star` q)))
= let open FStar.Tactics in
assert (((p `star` q) `star` r) `equiv` (p `star` (r `star` q))) by
(norm [delta_attr [`%__reduce__]]; canon' false (`true_p) (`true_p)) | {
"file_name": "lib/steel/Steel.Primitive.ForkJoin.Unix.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 81,
"end_line": 63,
"start_col": 0,
"start_line": 59
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.Reference.fsti.checked",
"Steel.Primitive.ForkJoin.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Tactic... | [
{
"abbrev": false,
"full_module": "Steel.Primitive.ForkJoin",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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: Steel.Effect.Common.vprop -> q: Steel.Effect.Common.vprop -> r: Steel.Effect.Common.vprop
-> FStar.Pervasives.Lemma
(ensures
Steel.Effect.Common.equiv (Steel.Effect.Common.star (Steel.Effect.Common.star p q) r)
(Steel.Effect.Common.star p (Steel.Effect.Common.star r q))) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Effect.Common.vprop",
"FStar.Tactics.Effect.assert_by_tactic",
"Steel.Effect.Common.equiv",
"Steel.Effect.Common.star",
"Prims.unit",
"Steel.Effect.Common.canon'",
"FStar.Stubs.Tactics.V1.Builtins.norm",
"Prims.Cons",
"FStar.Pervasives.norm_step",
"FStar.Pervasives.delta_attr",
"Prims.str... | [] | false | false | true | false | false | let rearrange3 (p q r: vprop) : Lemma (((p `star` q) `star` r) `equiv` (p `star` (r `star` q))) =
| let open FStar.Tactics in
FStar.Tactics.Effect.assert_by_tactic (((p `star` q) `star` r) `equiv` (p `star` (r `star` q)))
(fun _ ->
();
(norm [delta_attr [`%__reduce__]];
canon' false (`true_p) (`true_p))) | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.lwvalue | val lwvalue
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _... | val lwvalue
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _... | let lwvalue
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0 } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(w: lwriter s ... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 18,
"end_line": 321,
"start_col": 0,
"start_line": 311
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 | w: LowParse.Low.Writers.lwriter s h0 sout pout_from0 -> Prims.GTot (Prims.list t) | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.l_and",
"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",
... | [] | false | false | false | false | false | let lwvalue
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _... | Ghost.reveal w.v | false |
EtM.AE.fst | EtM.AE.mac_only_cpa_ciphers_mem | val mac_only_cpa_ciphers_mem
(macs: Seq.seq EtM.MAC.log_entry)
(cpas: Seq.seq EtM.CPA.log_entry)
(c: cipher)
: Lemma (requires (mac_only_cpa_ciphers macs cpas /\ Seq.mem c macs))
(ensures (exists p. Seq.mem (CPA.Entry p (fst c)) cpas))
(decreases (Seq.length macs)) | val mac_only_cpa_ciphers_mem
(macs: Seq.seq EtM.MAC.log_entry)
(cpas: Seq.seq EtM.CPA.log_entry)
(c: cipher)
: Lemma (requires (mac_only_cpa_ciphers macs cpas /\ Seq.mem c macs))
(ensures (exists p. Seq.mem (CPA.Entry p (fst c)) cpas))
(decreases (Seq.length macs)) | let rec mac_only_cpa_ciphers_mem (macs:Seq.seq EtM.MAC.log_entry)
(cpas:Seq.seq EtM.CPA.log_entry)
(c:cipher)
: Lemma (requires (mac_only_cpa_ciphers macs cpas /\
Seq.mem c macs))
(ensures (exists p. Seq.mem (CPA.E... | {
"file_name": "examples/crypto/EtM.AE.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 52,
"end_line": 127,
"start_col": 0,
"start_line": 113
} | (*
Copyright 2008-2018 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agre... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"Platform.Bytes.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"FStar.Map.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "EtM.Plain",
"short_module": "Plain"
},
{
"abbrev": true,
"full_module": "EtM.Ideal",
"short_module": "Ideal"
},
{
"abbrev": true,
"full_module": "EtM.MAC",
"short_module": "MAC"
},
{
"abbrev": true,
"full_module": "EtM.CPA",
... | {
"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 |
macs: FStar.Seq.Base.seq EtM.MAC.log_entry ->
cpas: FStar.Seq.Base.seq EtM.CPA.log_entry ->
c: EtM.AE.cipher
-> FStar.Pervasives.Lemma
(requires EtM.AE.mac_only_cpa_ciphers macs cpas /\ FStar.Seq.Properties.mem c macs)
(ensures
exists (p: EtM.Plain.plain).
FStar.Seq.Properti... | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"FStar.Seq.Base.seq",
"EtM.MAC.log_entry",
"EtM.CPA.log_entry",
"EtM.AE.cipher",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"Prims.bool",
"FStar.Pervasives.Native.tuple2",
"EtM.CPA.cipher",
"EtM.MAC.tag",
"EtM.AE.mac_only_cpa_ciphers_mem",
"Prims.unit",
"FStar.Seq.Propertie... | [
"recursion"
] | false | false | true | false | false | let rec mac_only_cpa_ciphers_mem
(macs: Seq.seq EtM.MAC.log_entry)
(cpas: Seq.seq EtM.CPA.log_entry)
(c: cipher)
: Lemma (requires (mac_only_cpa_ciphers macs cpas /\ Seq.mem c macs))
(ensures (exists p. Seq.mem (CPA.Entry p (fst c)) cpas))
(decreases (Seq.length macs)) =
| if Seq.length macs = 0
then ()
else
let macs, mac = un_snoc macs in
let cpas, cpa = un_snoc cpas in
Seq.lemma_mem_snoc macs mac;
Seq.lemma_mem_snoc cpas cpa;
if mac = c then () else mac_only_cpa_ciphers_mem macs cpas c | false |
Steel.Primitive.ForkJoin.Unix.fst | Steel.Primitive.ForkJoin.Unix.equiv_symmetric | val equiv_symmetric (p1 p2: vprop) : Lemma (requires p1 `equiv` p2) (ensures p2 `equiv` p1) | val equiv_symmetric (p1 p2: vprop) : Lemma (requires p1 `equiv` p2) (ensures p2 `equiv` p1) | let equiv_symmetric (p1 p2:vprop)
: Lemma (requires p1 `equiv` p2) (ensures p2 `equiv` p1)
= reveal_equiv p1 p2;
equiv_symmetric (hp_of p1) (hp_of p2);
reveal_equiv p2 p1 | {
"file_name": "lib/steel/Steel.Primitive.ForkJoin.Unix.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 22,
"end_line": 70,
"start_col": 0,
"start_line": 66
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.Reference.fsti.checked",
"Steel.Primitive.ForkJoin.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Tactic... | [
{
"abbrev": false,
"full_module": "Steel.Primitive.ForkJoin",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | p1: Steel.Effect.Common.vprop -> p2: Steel.Effect.Common.vprop
-> FStar.Pervasives.Lemma (requires Steel.Effect.Common.equiv p1 p2)
(ensures Steel.Effect.Common.equiv p2 p1) | FStar.Pervasives.Lemma | [
"lemma"
] | [] | [
"Steel.Effect.Common.vprop",
"Steel.Effect.Common.reveal_equiv",
"Prims.unit",
"Steel.Memory.equiv_symmetric",
"Steel.Effect.Common.hp_of",
"Steel.Effect.Common.equiv",
"Prims.squash",
"Prims.Nil",
"FStar.Pervasives.pattern"
] | [] | true | false | true | false | false | let equiv_symmetric (p1 p2: vprop) : Lemma (requires p1 `equiv` p2) (ensures p2 `equiv` p1) =
| reveal_equiv p1 p2;
equiv_symmetric (hp_of p1) (hp_of p2);
reveal_equiv p2 p1 | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.owvalue | val owvalue
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U... | val owvalue
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U... | let owvalue
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(w: owriter s h0 sout pout_from0)
: GTo... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 18,
"end_line": 561,
"start_col": 0,
"start_line": 551
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 | w: LowParse.Low.Writers.owriter s h0 sout pout_from0
-> Prims.GTot (FStar.Pervasives.Native.option t) | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"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.B... | [] | false | false | false | false | false | let owvalue
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U... | Ghost.reveal w.v | false |
Vale.AES.X64.AESopt.fst | Vale.AES.X64.AESopt.va_qcode_Loop6x | val va_qcode_Loop6x
(va_mods: va_mods_t)
(alg: algorithm)
(h_LE y_orig y_prev: quad32)
(count: nat)
(iv_b in0_b in_b out_b scratch_b: buffer128)
(plain_quads: (seq quad32))
(key_words: (seq nat32))
(round_keys: (seq quad32))
(keys_b hkeys_b: buffer128)
(ctr_BE... | val va_qcode_Loop6x
(va_mods: va_mods_t)
(alg: algorithm)
(h_LE y_orig y_prev: quad32)
(count: nat)
(iv_b in0_b in_b out_b scratch_b: buffer128)
(plain_quads: (seq quad32))
(key_words: (seq nat32))
(round_keys: (seq quad32))
(keys_b hkeys_b: buffer128)
(ctr_BE... | let va_qcode_Loop6x (va_mods:va_mods_t) (alg:algorithm) (h_LE:quad32) (y_orig:quad32)
(y_prev:quad32) (count:nat) (iv_b:buffer128) (in0_b:buffer128) (in_b:buffer128) (out_b:buffer128)
(scratch_b:buffer128) (plain_quads:(seq quad32)) (key_words:(seq nat32)) (round_keys:(seq
quad32)) (keys_b:buffer128) (hkeys_b:buf... | {
"file_name": "obj/Vale.AES.X64.AESopt.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 100,
"end_line": 2432,
"start_col": 0,
"start_line": 2253
} | module Vale.AES.X64.AESopt
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
op... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Transformers.Transform",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESGCM_expected_code",
"short_module": null
},
{
"abbrev... | {
"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 |
va_mods: Vale.X64.QuickCode.va_mods_t ->
alg: Vale.AES.AES_common_s.algorithm ->
h_LE: Vale.X64.Decls.quad32 ->
y_orig: Vale.X64.Decls.quad32 ->
y_prev: Vale.X64.Decls.quad32 ->
count: Prims.nat ->
iv_b: Vale.X64.Memory.buffer128 ->
in0_b: Vale.X64.Memory.buffer128 ->
in_b: Vale.X64... | Prims.Tot | [
"total"
] | [] | [
"Vale.X64.QuickCode.va_mods_t",
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Decls.quad32",
"Prims.nat",
"Vale.X64.Memory.buffer128",
"FStar.Seq.Base.seq",
"Vale.X64.Memory.nat32",
"Vale.X64.QuickCodes.qblock",
"Vale.Def.Types_s.quad32",
"Prims.Cons",
"Vale.X64.Decls.va_code",
"Vale.X64.Machin... | [] | false | false | false | false | false | let va_qcode_Loop6x
(va_mods: va_mods_t)
(alg: algorithm)
(h_LE y_orig y_prev: quad32)
(count: nat)
(iv_b in0_b in_b out_b scratch_b: buffer128)
(plain_quads: (seq quad32))
(key_words: (seq nat32))
(round_keys: (seq quad32))
(keys_b hkeys_b: buffer128)
(ctr_BE... | (qblock va_mods
(fun (va_s: va_state) ->
let va_old_s:va_state = va_s in
let prev:Vale.Math.Poly2_s.poly =
add (add (Vale.Math.Poly2.Bits_s.of_quad32 (va_get_xmm 8 va_s))
(Vale.Math.Poly2.Bits_s.of_quad32 (va_get_xmm 4 va_s)))
(Vale.Math.Poly2.Bits_s.of_quad32 (... | false |
EtM.AE.fst | EtM.AE.decrypt | val decrypt (k: key) (c: cipher)
: ST (option Plain.plain)
(requires (fun h0 -> invariant h0 k))
(ensures
(fun h0 res h1 ->
modifies_none h0 h1 /\ invariant h1 k /\
(b2t Ideal.uf_cma /\ Some? res ==> Seq.mem (Some?.v res, c) (get_log h0 k)))) | val decrypt (k: key) (c: cipher)
: ST (option Plain.plain)
(requires (fun h0 -> invariant h0 k))
(ensures
(fun h0 res h1 ->
modifies_none h0 h1 /\ invariant h1 k /\
(b2t Ideal.uf_cma /\ Some? res ==> Seq.mem (Some?.v res, c) (get_log h0 k)))) | let decrypt (k:key) (c:cipher)
: ST (option Plain.plain)
(requires (fun h0 -> invariant h0 k))
(ensures (fun h0 res h1 ->
modifies_none h0 h1 /\
invariant h1 k /\
(b2t Ideal.uf_cma /\ Some? res ==>
Seq.mem (Some?.v res, c) (get_log h0 k)))) =
let c, tag = c in
let h0 = FStar.HyperStack.ST.get... | {
"file_name": "examples/crypto/EtM.AE.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 11,
"end_line": 319,
"start_col": 0,
"start_line": 300
} | (*
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",
"Platform.Bytes.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"FStar.Map.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "EtM.Plain",
"short_module": "Plain"
},
{
"abbrev": true,
"full_module": "EtM.Ideal",
"short_module": "Ideal"
},
{
"abbrev": true,
"full_module": "EtM.MAC",
"short_module": "MAC"
},
{
"abbrev": true,
"full_module": "EtM.CPA",
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 1,
"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 | k: EtM.AE.key -> c: EtM.AE.cipher
-> FStar.HyperStack.ST.ST (FStar.Pervasives.Native.option EtM.Plain.plain) | FStar.HyperStack.ST.ST | [] | [] | [
"EtM.AE.key",
"EtM.AE.cipher",
"EtM.CPA.cipher",
"EtM.MAC.tag",
"FStar.Pervasives.Native.Some",
"EtM.Plain.plain",
"FStar.Pervasives.Native.option",
"Prims.unit",
"EtM.Ideal.uf_cma",
"EtM.AE.invert_invariant",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Monotonic.HyperStack.mem",
"FStar.Hyper... | [] | false | true | false | false | false | let decrypt (k: key) (c: cipher)
: ST (option Plain.plain)
(requires (fun h0 -> invariant h0 k))
(ensures
(fun h0 res h1 ->
modifies_none h0 h1 /\ invariant h1 k /\
(b2t Ideal.uf_cma /\ Some? res ==> Seq.mem (Some?.v res, c) (get_log h0 k)))) =
| let c, tag = c in
let h0 = FStar.HyperStack.ST.get () in
if MAC.verify k.km c tag
then
(if Ideal.uf_cma then mac_only_cpa_ciphers_mem (get_mac_log h0 k) (get_cpa_log h0 k) (c, tag);
let p = CPA.decrypt k.ke c in
if Ideal.uf_cma
then
(let h = FStar.HyperStack.ST.get () in
invert_invariant h k... | false |
Steel.PCMFrac.fst | Steel.PCMFrac.composable | val composable (#a: _) : symrel (fractional a) | val composable (#a: _) : symrel (fractional a) | let composable #a : symrel (fractional a) =
fun (f0 f1:fractional a) ->
match f0, f1 with
| None, _
| _, None -> True
| Some (x0, p0), Some (x1, p1) -> x0==x1 /\ (sum_perm p0 p1).v <=. one | {
"file_name": "lib/steel/Steel.PCMFrac.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 74,
"end_line": 12,
"start_col": 0,
"start_line": 7
} | module Steel.PCMFrac
include FStar.PCM
include Steel.FractionalPermission
open FStar.Real | {
"checked_file": "/",
"dependencies": [
"Steel.FractionalPermission.fst.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": false,
... | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"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 | FStar.PCM.symrel (Steel.PCMFrac.fractional a) | Prims.Tot | [
"total"
] | [] | [
"Steel.PCMFrac.fractional",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Pervasives.Native.option",
"FStar.Pervasives.Native.tuple2",
"Steel.FractionalPermission.perm",
"Prims.l_True",
"Prims.l_and",
"Prims.eq2",
"Prims.b2t",
"FStar.Real.op_Less_Equals_Dot",
"Steel.FractionalPermission.__proj__MkP... | [] | false | false | false | true | false | let composable #a : symrel (fractional a) =
| fun (f0: fractional a) (f1: fractional a) ->
match f0, f1 with
| None, _ | _, None -> True
| Some (x0, p0), Some (x1, p1) -> x0 == x1 /\ (sum_perm p0 p1).v <=. one | false |
EtM.AE.fst | EtM.AE.invert_invariant_aux | val invert_invariant_aux
(c: cipher)
(p: Plain.plain)
(macs: Seq.seq MAC.log_entry)
(cpas: Seq.seq CPA.log_entry)
(aes: Seq.seq log_entry)
: Lemma
(requires
(mac_only_cpa_ciphers macs cpas /\ mac_and_cpa_refine_ae aes macs cpas /\
CPA.pairwise_distinct_ivs cpas ... | val invert_invariant_aux
(c: cipher)
(p: Plain.plain)
(macs: Seq.seq MAC.log_entry)
(cpas: Seq.seq CPA.log_entry)
(aes: Seq.seq log_entry)
: Lemma
(requires
(mac_only_cpa_ciphers macs cpas /\ mac_and_cpa_refine_ae aes macs cpas /\
CPA.pairwise_distinct_ivs cpas ... | let rec invert_invariant_aux (c:cipher) (p:Plain.plain)
(macs:Seq.seq MAC.log_entry)
(cpas:Seq.seq CPA.log_entry)
(aes :Seq.seq log_entry)
: Lemma (requires (mac_only_cpa_ciphers macs cpas /\
mac_and_cpa_re... | {
"file_name": "examples/crypto/EtM.AE.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 14,
"end_line": 236,
"start_col": 0,
"start_line": 199
} | (*
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",
"Platform.Bytes.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"FStar.Map.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "EtM.Plain",
"short_module": "Plain"
},
{
"abbrev": true,
"full_module": "EtM.Ideal",
"short_module": "Ideal"
},
{
"abbrev": true,
"full_module": "EtM.MAC",
"short_module": "MAC"
},
{
"abbrev": true,
"full_module": "EtM.CPA",
... | {
"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: EtM.AE.cipher ->
p: EtM.Plain.plain ->
macs: FStar.Seq.Base.seq EtM.MAC.log_entry ->
cpas: FStar.Seq.Base.seq EtM.CPA.log_entry ->
aes: FStar.Seq.Base.seq EtM.AE.log_entry
-> FStar.Pervasives.Lemma
(requires
EtM.AE.mac_only_cpa_ciphers macs cpas /\ EtM.AE.mac_and_cpa_refine_ae ae... | FStar.Pervasives.Lemma | [
"lemma",
""
] | [] | [
"EtM.AE.cipher",
"EtM.Plain.plain",
"FStar.Seq.Base.seq",
"EtM.MAC.log_entry",
"EtM.CPA.log_entry",
"EtM.AE.log_entry",
"Prims.op_Equality",
"Prims.int",
"FStar.Seq.Base.length",
"Prims.bool",
"FStar.Pervasives.Native.tuple2",
"EtM.CPA.cipher",
"EtM.MAC.tag",
"Prims._assert",
"Prims.b2t"... | [
"recursion"
] | false | false | true | false | false | let rec invert_invariant_aux
(c: cipher)
(p: Plain.plain)
(macs: Seq.seq MAC.log_entry)
(cpas: Seq.seq CPA.log_entry)
(aes: Seq.seq log_entry)
: Lemma
(requires
(mac_only_cpa_ciphers macs cpas /\ mac_and_cpa_refine_ae aes macs cpas /\
CPA.pairwise_distinct_ivs c... | assert (Seq.length macs == Seq.length aes);
if Seq.length macs = 0
then ()
else
let macs, mac = un_snoc macs in
let cpas, cpa = un_snoc cpas in
let aes, ae = un_snoc aes in
Seq.lemma_mem_snoc aes ae;
Seq.lemma_mem_snoc macs mac;
Seq.lemma_mem_snoc cpas cpa;
if mac = c
then
(assert (CPA.Entry?.c cpa ... | false |
Steel.PCMFrac.fst | Steel.PCMFrac.mk_frame_preserving_upd | val mk_frame_preserving_upd (#a: Type) (v0: Ghost.erased a) (v1: a)
: Tot (frame_preserving_upd pcm_frac (Some (Ghost.reveal v0, full_perm)) (Some (v1, full_perm))) | val mk_frame_preserving_upd (#a: Type) (v0: Ghost.erased a) (v1: a)
: Tot (frame_preserving_upd pcm_frac (Some (Ghost.reveal v0, full_perm)) (Some (v1, full_perm))) | let mk_frame_preserving_upd
(#a: Type)
(v0: Ghost.erased a)
(v1: a)
: Tot (frame_preserving_upd pcm_frac (Some (Ghost.reveal v0, full_perm)) (Some (v1, full_perm)))
= fun _ -> Some (v1, full_perm) | {
"file_name": "lib/steel/Steel.PCMFrac.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 31,
"end_line": 37,
"start_col": 0,
"start_line": 32
} | module Steel.PCMFrac
include FStar.PCM
include Steel.FractionalPermission
open FStar.Real
let fractional (a:Type u#a) = option (a & perm)
let composable #a : symrel (fractional a) =
fun (f0 f1:fractional a) ->
match f0, f1 with
| None, _
| _, None -> True
| Some (x0, p0), Some (x1, p1) -> x0==x1 /\ (... | {
"checked_file": "/",
"dependencies": [
"Steel.FractionalPermission.fst.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": false,
... | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"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 | v0: FStar.Ghost.erased a -> v1: a
-> FStar.PCM.frame_preserving_upd Steel.PCMFrac.pcm_frac
(FStar.Pervasives.Native.Some (FStar.Ghost.reveal v0, Steel.FractionalPermission.full_perm))
(FStar.Pervasives.Native.Some (v1, Steel.FractionalPermission.full_perm)) | Prims.Tot | [
"total"
] | [] | [
"FStar.Ghost.erased",
"Steel.PCMFrac.fractional",
"Prims.l_and",
"FStar.PCM.__proj__Mkpcm__item__refine",
"Steel.PCMFrac.pcm_frac",
"FStar.PCM.compatible",
"FStar.Pervasives.Native.Some",
"FStar.Pervasives.Native.tuple2",
"Steel.FractionalPermission.perm",
"FStar.Pervasives.Native.Mktuple2",
"FS... | [] | false | false | false | false | false | let mk_frame_preserving_upd (#a: Type) (v0: Ghost.erased a) (v1: a)
: Tot (frame_preserving_upd pcm_frac (Some (Ghost.reveal v0, full_perm)) (Some (v1, full_perm))) =
| fun _ -> Some (v1, full_perm) | false |
Steel.PCMFrac.fst | Steel.PCMFrac.compose | val compose (#a: _) (f0: fractional a) (f1: fractional a {composable f0 f1}) : fractional a | val compose (#a: _) (f0: fractional a) (f1: fractional a {composable f0 f1}) : fractional a | let compose #a (f0:fractional a) (f1:fractional a{composable f0 f1}) : fractional a =
match f0, f1 with
| None, f
| f, None -> f
| Some (x0, p0), Some (_, p1) -> Some (x0, sum_perm p0 p1) | {
"file_name": "lib/steel/Steel.PCMFrac.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 60,
"end_line": 17,
"start_col": 0,
"start_line": 13
} | module Steel.PCMFrac
include FStar.PCM
include Steel.FractionalPermission
open FStar.Real
let fractional (a:Type u#a) = option (a & perm)
let composable #a : symrel (fractional a) =
fun (f0 f1:fractional a) ->
match f0, f1 with
| None, _
| _, None -> True | {
"checked_file": "/",
"dependencies": [
"Steel.FractionalPermission.fst.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": false,
... | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"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 | f0: Steel.PCMFrac.fractional a -> f1: Steel.PCMFrac.fractional a {Steel.PCMFrac.composable f0 f1}
-> Steel.PCMFrac.fractional a | Prims.Tot | [
"total"
] | [] | [
"Steel.PCMFrac.fractional",
"Steel.PCMFrac.composable",
"FStar.Pervasives.Native.Mktuple2",
"FStar.Pervasives.Native.option",
"FStar.Pervasives.Native.tuple2",
"Steel.FractionalPermission.perm",
"FStar.Pervasives.Native.Some",
"Steel.FractionalPermission.sum_perm"
] | [] | false | false | false | false | false | let compose #a (f0: fractional a) (f1: fractional a {composable f0 f1}) : fractional a =
| match f0, f1 with
| None, f | f, None -> f
| Some (x0, p0), Some (_, p1) -> Some (x0, sum_perm p0 p1) | false |
EtM.AE.fst | EtM.AE.encrypt | val encrypt (k: key) (plain: Plain.plain)
: ST cipher
(requires (fun h0 -> invariant h0 k))
(ensures
(fun h0 c h1 ->
(let log0 = get_log h0 k in
let log1 = get_log h1 k in
modifies_transitively (Set.singleton k.region) h0 h1 /\ invariant h1 k /\
... | val encrypt (k: key) (plain: Plain.plain)
: ST cipher
(requires (fun h0 -> invariant h0 k))
(ensures
(fun h0 c h1 ->
(let log0 = get_log h0 k in
let log1 = get_log h1 k in
modifies_transitively (Set.singleton k.region) h0 h1 /\ invariant h1 k /\
... | let encrypt (k:key) (plain:Plain.plain)
: ST cipher
(requires (fun h0 -> invariant h0 k))
(ensures (fun h0 c h1 ->
(let log0 = get_log h0 k in
let log1 = get_log h1 k in
modifies_transitively (Set.singleton k.region) h0 h1
/\ invariant h1 k
/\ log1 == snoc log0 (plain, c)))) =
let h0 =... | {
"file_name": "examples/crypto/EtM.AE.fst",
"git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3",
"git_url": "https://github.com/FStarLang/FStar.git",
"project_name": "FStar"
} | {
"end_col": 8,
"end_line": 295,
"start_col": 0,
"start_line": 275
} | (*
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",
"Platform.Bytes.fst.checked",
"FStar.Set.fsti.checked",
"FStar.Seq.fst.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.Monotonic.Seq.fst.checked",
"FStar.Map.fsti.checked",
"FSt... | [
{
"abbrev": true,
"full_module": "EtM.Plain",
"short_module": "Plain"
},
{
"abbrev": true,
"full_module": "EtM.Ideal",
"short_module": "Ideal"
},
{
"abbrev": true,
"full_module": "EtM.MAC",
"short_module": "MAC"
},
{
"abbrev": true,
"full_module": "EtM.CPA",
... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 1,
"initial_ifuel": 1,
"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 | k: EtM.AE.key -> plain: EtM.Plain.plain -> FStar.HyperStack.ST.ST EtM.AE.cipher | FStar.HyperStack.ST.ST | [] | [] | [
"EtM.AE.key",
"EtM.Plain.plain",
"FStar.Pervasives.Native.Mktuple2",
"EtM.CPA.cipher",
"EtM.MAC.tag",
"Prims.unit",
"EtM.AE.mac_only_cpa_ciphers_snoc",
"EtM.AE.get_mac_log",
"EtM.MAC.msg",
"EtM.AE.get_cpa_log",
"EtM.CPA.Entry",
"EtM.AE.mac_and_cpa_refine_ae_snoc",
"EtM.AE.get_log",
"EtM.AE... | [] | false | true | false | false | false | let encrypt (k: key) (plain: Plain.plain)
: ST cipher
(requires (fun h0 -> invariant h0 k))
(ensures
(fun h0 c h1 ->
(let log0 = get_log h0 k in
let log1 = get_log h1 k in
modifies_transitively (Set.singleton k.region) h0 h1 /\ invariant h1 k /\
... | let h0 = FStar.HyperStack.ST.get () in
let c = CPA.encrypt k.ke plain in
let t = MAC.mac k.km c in
write_at_end k.log (plain, (c, t));
let h1 = FStar.HyperStack.ST.get () in
assert (sel h1 k.log == snoc (sel h0 k.log) (plain, (c, t)));
assert (EtM.CPA.invariant (Key?.ke k) h1);
mac_and_cpa_refine_ae_snoc (get_log h0 k)... | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.swriter_ifthenelse | val swriter_ifthenelse
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#space_beyond: nat)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(sre... | val swriter_ifthenelse
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#space_beyond: nat)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(sre... | let swriter_ifthenelse
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0 } )
(#h0: HS.mem)
(#space_beyond: nat)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#p... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 95,
"end_line": 118,
"start_col": 0,
"start_line": 104
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 |
cond: Prims.bool ->
wtrue:
(_: Prims.squash (cond == true)
-> LowParse.Low.Writers.swriter s h0 space_beyond sout pout_from0) ->
wfalse:
(_: Prims.squash (cond == false)
-> LowParse.Low.Writers.swriter s h0 space_beyond sout pout_from0)
-> x:
LowParse.Low.Writers.swrit... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.l_and",
"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",
... | [] | false | false | false | false | false | let swriter_ifthenelse
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#space_beyond: nat)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(sre... | SWriter (if cond then SWriter?.v (wtrue ()) else SWriter?.v (wfalse ()))
(fun pout_from -> if cond then swrite (wtrue ()) pout_from else swrite (wfalse ()) pout_from) | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.swrite | val swrite
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U3... | val swrite
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U3... | let swrite
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(#space_beyond: nat)
(w: swriter s h... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 33,
"end_line": 100,
"start_col": 0,
"start_line": 89
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 | w: LowParse.Low.Writers.swriter s h0 space_beyond sout pout_from0
-> LowParse.Low.Writers.fswriter s
h0
space_beyond
sout
pout_from0
(LowParse.Low.Writers.swvalue w) | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"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.B... | [] | false | false | false | false | false | let swrite
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U3... | match w with | SWriter _ f -> f | false |
Spec.SHA3.fst | Spec.SHA3.rotl | val rotl (a: uint64) (b: size_t{0 < uint_v b /\ uint_v b < 64}) : Tot uint64 | val rotl (a: uint64) (b: size_t{0 < uint_v b /\ uint_v b < 64}) : Tot uint64 | let rotl (a:uint64) (b:size_t{0 < uint_v b /\ uint_v b < 64}) : Tot uint64 =
rotate_left a b | {
"file_name": "specs/Spec.SHA3.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 17,
"end_line": 26,
"start_col": 0,
"start_line": 25
} | module Spec.SHA3
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open FStar.Mul
open Lib.LoopCombinators
open Spec.SHA3.Constants
#reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0"
unfold
type state = lseq uint64 25
unfold
type index = n:size_nat{n < 5}
let get (s:state) (x:index) (y:index) : Tot... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.Constants.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": false,
"full_module": "Spec.SHA3.Constants",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
a: Lib.IntTypes.uint64 ->
b: Lib.IntTypes.size_t{0 < Lib.IntTypes.uint_v b /\ Lib.IntTypes.uint_v b < 64}
-> Lib.IntTypes.uint64 | Prims.Tot | [
"total"
] | [] | [
"Lib.IntTypes.uint64",
"Lib.IntTypes.size_t",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.IntTypes.uint_v",
"Lib.IntTypes.U32",
"Lib.IntTypes.PUB",
"Lib.IntTypes.rotate_left",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC"
] | [] | false | false | false | false | false | let rotl (a: uint64) (b: size_t{0 < uint_v b /\ uint_v b < 64}) : Tot uint64 =
| rotate_left a b | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.swrite_leaf | val swrite_leaf
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(w: leaf_writer_strong s)
(h0: HS.mem)
(sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_p... | val swrite_leaf
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(w: leaf_writer_strong s)
(h0: HS.mem)
(sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_p... | let swrite_leaf
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong } )
(w: leaf_writer_strong s)
(h0: HS.mem)
(sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(pout_from0: U32.t)
(x: t)
: T... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 39,
"end_line": 134,
"start_col": 0,
"start_line": 122
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 |
w: LowParse.Low.Base.leaf_writer_strong s ->
h0: FStar.Monotonic.HyperStack.mem ->
sout:
LowParse.Slice.slice (LowParse.Slice.srel_of_buffer_srel (LowStar.Buffer.trivial_preorder LowParse.Bytes.byte
))
(LowParse.Slice.srel_of_buffer_srel (LowStar.Buffer.trivial_preorder LowParse... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"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.B... | [] | false | false | false | false | false | let swrite_leaf
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(w: leaf_writer_strong s)
(h0: HS.mem)
(sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_p... | SWriter (Ghost.hide x) (fun pout_from -> w x sout pout_from) | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.olwvalue | val olwvalue
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder ... | val olwvalue
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder ... | let olwvalue
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0 } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(w: olwriter ... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 18,
"end_line": 708,
"start_col": 0,
"start_line": 698
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 | w: LowParse.Low.Writers.olwriter s h0 sout pout_from0
-> Prims.GTot (FStar.Pervasives.Native.option (Prims.list t)) | Prims.GTot | [
"sometrivial"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.l_and",
"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",
... | [] | false | false | false | false | false | let olwvalue
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder ... | Ghost.reveal w.v | false |
Spec.SHA3.fst | Spec.SHA3.state_theta_inner_s_inner | val state_theta_inner_s_inner (x: index) (_D: uint64) (y: index) (s: state) : Tot state | val state_theta_inner_s_inner (x: index) (_D: uint64) (y: index) (s: state) : Tot state | let state_theta_inner_s_inner (x:index) (_D:uint64) (y:index) (s:state) : Tot state =
set s x y (get s x y ^. _D) | {
"file_name": "specs/Spec.SHA3.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 29,
"end_line": 35,
"start_col": 0,
"start_line": 34
} | module Spec.SHA3
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open FStar.Mul
open Lib.LoopCombinators
open Spec.SHA3.Constants
#reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0"
unfold
type state = lseq uint64 25
unfold
type index = n:size_nat{n < 5}
let get (s:state) (x:index) (y:index) : Tot... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.Constants.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": false,
"full_module": "Spec.SHA3.Constants",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | x: Spec.SHA3.index -> _D: Lib.IntTypes.uint64 -> y: Spec.SHA3.index -> s: Spec.SHA3.state
-> Spec.SHA3.state | Prims.Tot | [
"total"
] | [] | [
"Spec.SHA3.index",
"Lib.IntTypes.uint64",
"Spec.SHA3.state",
"Spec.SHA3.set",
"Lib.IntTypes.op_Hat_Dot",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Spec.SHA3.get"
] | [] | false | false | false | true | false | let state_theta_inner_s_inner (x: index) (_D: uint64) (y: index) (s: state) : Tot state =
| set s x y (get s x y ^. _D) | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.lwrite | val lwrite
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)... | val lwrite
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)... | let lwrite
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0 } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(w: lwriter s h... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 33,
"end_line": 353,
"start_col": 0,
"start_line": 343
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 | w: LowParse.Low.Writers.lwriter s h0 sout pout_from0
-> LowParse.Low.Writers.flwriter s h0 sout pout_from0 (LowParse.Low.Writers.lwvalue w) | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.l_and",
"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",
... | [] | false | false | false | false | false | let lwrite
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)... | match w with | LWriter _ f -> f | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.weaken_swriter | val weaken_swriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#space_beyond0: nat)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_... | val weaken_swriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#space_beyond0: nat)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_... | let weaken_swriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong } )
(#h0: HS.mem)
(#space_beyond0: nat)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(w: swri... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 46,
"end_line": 85,
"start_col": 0,
"start_line": 69
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 |
w: LowParse.Low.Writers.swriter s h0 space_beyond0 sout pout_from0 ->
h1: FStar.Monotonic.HyperStack.mem ->
space_beyond1: Prims.nat ->
pout_from1: FStar.UInt32.t
-> Prims.Pure
(w':
LowParse.Low.Writers.swriter s h1 space_beyond1 sout pout_from1
{LowParse.Low.Writers.swvalue w' == L... | Prims.Pure | [] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"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.B... | [] | false | false | false | false | false | let weaken_swriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#space_beyond0: nat)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_... | SWriter w.v (fun pout_from -> w.w pout_from) | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.write | val write
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32... | val write
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32... | let write
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(w: writer s h0 sout pout_from0)
: Tot (f... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 32,
"end_line": 223,
"start_col": 0,
"start_line": 213
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 | w: LowParse.Low.Writers.writer s h0 sout pout_from0
-> LowParse.Low.Writers.fwriter s h0 sout pout_from0 (LowParse.Low.Writers.wvalue w) | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"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.B... | [] | false | false | false | false | false | let write
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32... | match w with | Writer _ f -> f | false |
Steel.PCMFrac.fst | Steel.PCMFrac.pcm_frac | val pcm_frac (#a: _) : pcm (fractional a) | val pcm_frac (#a: _) : pcm (fractional a) | let pcm_frac #a : pcm (fractional a) = {
p = {
composable = composable;
op = compose;
one = None
};
comm = (fun _ _ -> ());
assoc = (fun _ _ _ -> ());
assoc_r = (fun _ _ _ -> ());
is_unit = (fun _ -> ());
refine = (fun _ -> True)
} | {
"file_name": "lib/steel/Steel.PCMFrac.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 1,
"end_line": 30,
"start_col": 0,
"start_line": 19
} | module Steel.PCMFrac
include FStar.PCM
include Steel.FractionalPermission
open FStar.Real
let fractional (a:Type u#a) = option (a & perm)
let composable #a : symrel (fractional a) =
fun (f0 f1:fractional a) ->
match f0, f1 with
| None, _
| _, None -> True
| Some (x0, p0), Some (x1, p1) -> x0==x1 /\ (... | {
"checked_file": "/",
"dependencies": [
"Steel.FractionalPermission.fst.checked",
"prims.fst.checked",
"FStar.Real.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.PCM.fst.checked",
"FStar.Ghost.fsti.checked"
],
"interface_file": false,
... | [
{
"abbrev": false,
"full_module": "FStar.Real",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.FractionalPermission",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.PCM",
"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 | FStar.PCM.pcm (Steel.PCMFrac.fractional a) | Prims.Tot | [
"total"
] | [] | [
"FStar.PCM.Mkpcm",
"Steel.PCMFrac.fractional",
"FStar.PCM.Mkpcm'",
"Steel.PCMFrac.composable",
"Steel.PCMFrac.compose",
"FStar.Pervasives.Native.None",
"FStar.Pervasives.Native.tuple2",
"Steel.FractionalPermission.perm",
"FStar.PCM.__proj__Mkpcm'__item__composable",
"Prims.unit",
"Prims.l_and",
... | [] | false | false | false | true | false | let pcm_frac #a : pcm (fractional a) =
| {
p = { composable = composable; op = compose; one = None };
comm = (fun _ _ -> ());
assoc = (fun _ _ _ -> ());
assoc_r = (fun _ _ _ -> ());
is_unit = (fun _ -> ());
refine = (fun _ -> True)
} | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.grvalue | val grvalue
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(#t: Type)
(r: greader h0 sout pout_from0 t)
: GTot t | val grvalue
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(#t: Type)
(r: greader h0 sout pout_from0 t)
: GTot t | let grvalue
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(#t: Type)
(r: greader h0 sout pout_from0 t)
: GTot t
= Ghost.reveal (GReader?.v r) | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 29,
"end_line": 932,
"start_col": 0,
"start_line": 925
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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: LowParse.Low.Writers.greader h0 sout pout_from0 t -> Prims.GTot t | Prims.GTot | [
"sometrivial"
] | [] | [
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"LowParse.Slice.srel_of_buffer_srel",
"LowParse.Bytes.byte",
"LowStar.Buffer.trivial_preorder",
"FStar.UInt32.t",
"LowParse.Low.Writers.greader",
"FStar.Ghost.reveal",
"LowParse.Low.Writers.__proj__GReader__item__v"
] | [] | false | false | false | false | false | let grvalue
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(#t: Type)
(r: greader h0 sout pout_from0 t)
: GTot t =
| Ghost.reveal (GReader?.v r) | false |
Steel.Primitive.ForkJoin.Unix.fst | Steel.Primitive.ForkJoin.Unix.as_steelk_repr | val as_steelk_repr
(a: Type)
(pre: pre_t)
(post: post_t a)
(f: repr a false pre post (triv_pre pre) (triv_post pre post))
: steelK a false pre post | val as_steelk_repr
(a: Type)
(pre: pre_t)
(post: post_t a)
(f: repr a false pre post (triv_pre pre) (triv_post pre post))
: steelK a false pre post | let as_steelk_repr (a:Type) (pre:pre_t) (post:post_t a)
(f:repr a false pre post (triv_pre pre) (triv_post pre post))// unit -> SteelT a pre post)
: steelK a false pre post
= as_steelk_repr' a pre post (fun _ -> SteelBase?.reflect f) | {
"file_name": "lib/steel/Steel.Primitive.ForkJoin.Unix.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 62,
"end_line": 237,
"start_col": 0,
"start_line": 234
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.Reference.fsti.checked",
"Steel.Primitive.ForkJoin.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Tactic... | [
{
"abbrev": false,
"full_module": "Steel.Primitive.ForkJoin",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 ->
pre: Steel.Effect.Common.pre_t ->
post: Steel.Effect.Common.post_t a ->
f:
Steel.Effect.repr a
false
pre
post
(Steel.Primitive.ForkJoin.Unix.triv_pre pre)
(Steel.Primitive.ForkJoin.Unix.triv_post pre post)
-> Steel.Primitive.ForkJoin.Unix.steel... | Prims.Tot | [
"total"
] | [] | [
"Steel.Effect.Common.pre_t",
"Steel.Effect.Common.post_t",
"Steel.Effect.repr",
"Steel.Primitive.ForkJoin.Unix.triv_pre",
"Steel.Primitive.ForkJoin.Unix.triv_post",
"Steel.Primitive.ForkJoin.Unix.as_steelk_repr'",
"Prims.unit",
"Steel.Primitive.ForkJoin.Unix.steelK"
] | [] | false | false | false | false | false | let as_steelk_repr
(a: Type)
(pre: pre_t)
(post: post_t a)
(f: repr a false pre post (triv_pre pre) (triv_post pre post))
: steelK a false pre post =
| as_steelk_repr' a pre post (fun _ -> SteelBase?.reflect f) | false |
Spec.SHA3.fst | Spec.SHA3.state_pi_rho_s | val state_pi_rho_s: i:size_nat{i <= 24} -> Type0 | val state_pi_rho_s: i:size_nat{i <= 24} -> Type0 | let state_pi_rho_s i = uint64 & state | {
"file_name": "specs/Spec.SHA3.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 37,
"end_line": 58,
"start_col": 0,
"start_line": 58
} | module Spec.SHA3
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open FStar.Mul
open Lib.LoopCombinators
open Spec.SHA3.Constants
#reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0"
unfold
type state = lseq uint64 25
unfold
type index = n:size_nat{n < 5}
let get (s:state) (x:index) (y:index) : Tot... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.Constants.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": false,
"full_module": "Spec.SHA3.Constants",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | i: Lib.IntTypes.size_nat{i <= 24} -> Type0 | Prims.Tot | [
"total"
] | [] | [
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"FStar.Pervasives.Native.tuple2",
"Lib.IntTypes.uint64",
"Spec.SHA3.state"
] | [] | false | false | false | false | true | let state_pi_rho_s i =
| uint64 & state | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.lwriter_nil | val lwriter_nil
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(h0: HS.mem)
(sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder ... | val lwriter_nil
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(h0: HS.mem)
(sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder ... | let lwriter_nil
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0 } )
(h0: HS.mem)
(sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(pout_from0: U32.t)
: Tot (x: lwrite... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 371,
"start_col": 0,
"start_line": 357
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
s:
LowParse.Spec.Base.serializer p
{ Mkparser_kind'?.parser_kind_subkind k ==
FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong /\
Mkparser_kind'?.parser_kind_low k > 0 } ->
h0: FStar.Monotonic.HyperStack.mem ->
sout:
LowParse.Slice.slice (LowParse.Slice.s... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.l_and",
"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",
... | [] | false | false | false | false | false | let lwriter_nil
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(h0: HS.mem)
(sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder ... | LWriter (Ghost.hide [])
(fun pout_from ->
let h = HST.get () in
valid_list_nil p h sout pout_from;
pout_from) | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.writer_ifthenelse | val writer_ifthenelse
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_... | val writer_ifthenelse
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_... | let writer_ifthenelse
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0 } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(con... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 93,
"end_line": 240,
"start_col": 0,
"start_line": 227
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 |
cond: Prims.bool ->
wtrue: (_: Prims.squash (cond == true) -> LowParse.Low.Writers.writer s h0 sout pout_from0) ->
wfalse: (_: Prims.squash (cond == false) -> LowParse.Low.Writers.writer s h0 sout pout_from0)
-> x:
LowParse.Low.Writers.writer s h0 sout pout_from0
{ LowParse.Low.Writers.wvalue x... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.l_and",
"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",
... | [] | false | false | false | false | false | let writer_ifthenelse
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_... | Writer (if cond then Writer?.v (wtrue ()) else Writer?.v (wfalse ()))
(fun pout_from -> if cond then write (wtrue ()) pout_from else write (wfalse ()) pout_from) | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.weaken_writer | val weaken_writer
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_fr... | val weaken_writer
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_fr... | let weaken_writer
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(w: writer s h0 sout pout_from0)
... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 45,
"end_line": 209,
"start_col": 0,
"start_line": 195
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 |
w: LowParse.Low.Writers.writer s h0 sout pout_from0 ->
h1: FStar.Monotonic.HyperStack.mem ->
pout_from1: FStar.UInt32.t
-> Prims.Pure
(w':
LowParse.Low.Writers.writer s h1 sout pout_from1
{LowParse.Low.Writers.wvalue w' == LowParse.Low.Writers.wvalue w}) | Prims.Pure | [] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"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.B... | [] | false | false | false | false | false | let weaken_writer
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_fr... | Writer w.v (fun pout_from -> w.w pout_from) | false |
Spec.SHA3.fst | Spec.SHA3.state_permute1 | val state_permute1 (round: size_nat{round < 24}) (s: state) : Tot state | val state_permute1 (round: size_nat{round < 24}) (s: state) : Tot state | let state_permute1 (round:size_nat{round < 24}) (s:state) : Tot state =
let s_theta = state_theta s in
let s_pi_rho = state_pi_rho s_theta in
let s_chi = state_chi s_pi_rho in
let s_iota = state_iota s_chi round in
s_iota | {
"file_name": "specs/Spec.SHA3.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 8,
"end_line": 87,
"start_col": 0,
"start_line": 82
} | module Spec.SHA3
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open FStar.Mul
open Lib.LoopCombinators
open Spec.SHA3.Constants
#reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0"
unfold
type state = lseq uint64 25
unfold
type index = n:size_nat{n < 5}
let get (s:state) (x:index) (y:index) : Tot... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.Constants.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": false,
"full_module": "Spec.SHA3.Constants",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | round: Lib.IntTypes.size_nat{round < 24} -> s: Spec.SHA3.state -> Spec.SHA3.state | Prims.Tot | [
"total"
] | [] | [
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThan",
"Spec.SHA3.state",
"Lib.Sequence.lseq",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Spec.SHA3.state_iota",
"Spec.SHA3.state_chi",
"Spec.SHA3.state_pi_rho",
"Spec.SHA3.state_theta"
] | [] | false | false | false | false | false | let state_permute1 (round: size_nat{round < 24}) (s: state) : Tot state =
| let s_theta = state_theta s in
let s_pi_rho = state_pi_rho s_theta in
let s_chi = state_chi s_pi_rho in
let s_iota = state_iota s_chi round in
s_iota | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.weaken_lwriter | val weaken_lwriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_pre... | val weaken_lwriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_pre... | let weaken_lwriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0 } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(w: lwr... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 46,
"end_line": 339,
"start_col": 0,
"start_line": 325
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 |
w: LowParse.Low.Writers.lwriter s h0 sout pout_from0 ->
h1: FStar.Monotonic.HyperStack.mem ->
pout_from1: FStar.UInt32.t
-> Prims.Pure
(w':
LowParse.Low.Writers.lwriter s h1 sout pout_from1
{LowParse.Low.Writers.lwvalue w' == LowParse.Low.Writers.lwvalue w}) | Prims.Pure | [] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.l_and",
"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",
... | [] | false | false | false | false | false | let weaken_lwriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_pre... | LWriter w.v (fun pout_from -> w.w pout_from) | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.write_leaf_cs | val write_leaf_cs
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s:
serializer p
{ k.parser_kind_subkind == Some ParserStrong /\
k.parser_kind_high == Some k.parser_kind_low /\ k.parser_kind_low < 4294967296 })
(w: leaf_writer_strong s)
(h0: HS.me... | val write_leaf_cs
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s:
serializer p
{ k.parser_kind_subkind == Some ParserStrong /\
k.parser_kind_high == Some k.parser_kind_low /\ k.parser_kind_low < 4294967296 })
(w: leaf_writer_strong s)
(h0: HS.me... | let write_leaf_cs
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_high == Some k.parser_kind_low /\ k.parser_kind_low < 4294967296 } )
(w: leaf_writer_strong s)
(h0: HS.mem)
(sout: slice (srel_of_buffer_srel (B.trivial_preorder ... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 260,
"start_col": 0,
"start_line": 244
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 |
w: LowParse.Low.Base.leaf_writer_strong s ->
h0: FStar.Monotonic.HyperStack.mem ->
sout:
LowParse.Slice.slice (LowParse.Slice.srel_of_buffer_srel (LowStar.Buffer.trivial_preorder LowParse.Bytes.byte
))
(LowParse.Slice.srel_of_buffer_srel (LowStar.Buffer.trivial_preorder LowParse... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.l_and",
"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",
... | [] | false | false | false | false | false | let write_leaf_cs
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s:
serializer p
{ k.parser_kind_subkind == Some ParserStrong /\
k.parser_kind_high == Some k.parser_kind_low /\ k.parser_kind_low < 4294967296 })
(w: leaf_writer_strong s)
(h0: HS.me... | Writer (Ghost.hide x)
(fun pout_from ->
if (U32.uint_to_t k.parser_kind_low) `U32.gt` (sout.len `U32.sub` pout_from)
then max_uint32
else w x sout pout_from) | false |
Spec.SHA3.fst | Spec.SHA3.set | val set (s: state) (x y: index) (v: uint64) : Tot state | val set (s: state) (x y: index) (v: uint64) : Tot state | let set (s:state) (x:index) (y:index) (v:uint64) : Tot state =
s.[x + 5 * y] <- v | {
"file_name": "specs/Spec.SHA3.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 20,
"end_line": 23,
"start_col": 0,
"start_line": 22
} | module Spec.SHA3
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open FStar.Mul
open Lib.LoopCombinators
open Spec.SHA3.Constants
#reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0"
unfold
type state = lseq uint64 25
unfold
type index = n:size_nat{n < 5}
let get (s:state) (x:index) (y:index) : Tot... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.Constants.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": false,
"full_module": "Spec.SHA3.Constants",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: Spec.SHA3.state -> x: Spec.SHA3.index -> y: Spec.SHA3.index -> v: Lib.IntTypes.uint64
-> Spec.SHA3.state | Prims.Tot | [
"total"
] | [] | [
"Spec.SHA3.state",
"Spec.SHA3.index",
"Lib.IntTypes.uint64",
"Lib.Sequence.op_String_Assignment",
"Prims.op_Addition",
"FStar.Mul.op_Star"
] | [] | false | false | false | true | false | let set (s: state) (x y: index) (v: uint64) : Tot state =
| s.[ x + 5 * y ] <- v | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.owrite | val owrite
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U3... | val owrite
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U3... | let owrite
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(w: owriter s h0 sout pout_from0)
: Tot ... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 33,
"end_line": 593,
"start_col": 0,
"start_line": 583
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 | w: LowParse.Low.Writers.owriter s h0 sout pout_from0
-> LowParse.Low.Writers.fowriter s h0 sout pout_from0 (LowParse.Low.Writers.owvalue w) | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"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.B... | [] | false | false | false | false | false | let owrite
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U3... | match w with | OWriter _ f -> f | false |
Steel.Primitive.ForkJoin.Unix.fst | Steel.Primitive.ForkJoin.Unix.return_ | val return_ (a: _) (x: a) (#[@@@ framing_implicit]p: (a -> vprop))
: steelK a true (return_pre (p x)) p | val return_ (a: _) (x: a) (#[@@@ framing_implicit]p: (a -> vprop))
: steelK a true (return_pre (p x)) p | let return_ a (x:a) (#[@@@ framing_implicit] p: a -> vprop) : steelK a true (return_pre (p x)) p =
fun k -> k x | {
"file_name": "lib/steel/Steel.Primitive.ForkJoin.Unix.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 14,
"end_line": 56,
"start_col": 0,
"start_line": 55
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.Reference.fsti.checked",
"Steel.Primitive.ForkJoin.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Tactic... | [
{
"abbrev": false,
"full_module": "Steel.Primitive.ForkJoin",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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 -> x: a
-> Steel.Primitive.ForkJoin.Unix.steelK a true (Steel.Effect.Common.return_pre (p x)) p | Prims.Tot | [
"total"
] | [] | [
"Steel.Effect.Common.vprop",
"Prims.unit",
"Steel.Effect.Common.star",
"Steel.Primitive.ForkJoin.Unix.steelK",
"Steel.Effect.Common.return_pre"
] | [] | false | false | false | false | false | let return_ a (x: a) (#[@@@ framing_implicit]p: (a -> vprop)) : steelK a true (return_pre (p x)) p =
| fun k -> k x | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.weaken_olwriter | val weaken_olwriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_pr... | val weaken_olwriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_pr... | let weaken_olwriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0 } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(w: ol... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 47,
"end_line": 726,
"start_col": 0,
"start_line": 712
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 |
w: LowParse.Low.Writers.olwriter s h0 sout pout_from0 ->
h1: FStar.Monotonic.HyperStack.mem ->
pout_from1: FStar.UInt32.t
-> Prims.Pure
(w':
LowParse.Low.Writers.olwriter s h1 sout pout_from1
{LowParse.Low.Writers.olwvalue w' == LowParse.Low.Writers.olwvalue w}) | Prims.Pure | [] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.l_and",
"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",
... | [] | false | false | false | false | false | let weaken_olwriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_pr... | OLWriter w.v (fun pout_from -> w.w pout_from) | false |
Spec.SHA3.fst | Spec.SHA3.get | val get (s: state) (x y: index) : Tot uint64 | val get (s: state) (x y: index) : Tot uint64 | let get (s:state) (x:index) (y:index) : Tot uint64 =
s.[x + 5 * y] | {
"file_name": "specs/Spec.SHA3.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 15,
"end_line": 20,
"start_col": 0,
"start_line": 19
} | module Spec.SHA3
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open FStar.Mul
open Lib.LoopCombinators
open Spec.SHA3.Constants
#reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0"
unfold
type state = lseq uint64 25
unfold
type index = n:size_nat{n < 5} | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.Constants.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": false,
"full_module": "Spec.SHA3.Constants",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: Spec.SHA3.state -> x: Spec.SHA3.index -> y: Spec.SHA3.index -> Lib.IntTypes.uint64 | Prims.Tot | [
"total"
] | [] | [
"Spec.SHA3.state",
"Spec.SHA3.index",
"Lib.Sequence.op_String_Access",
"Lib.IntTypes.uint64",
"Prims.op_Addition",
"FStar.Mul.op_Star"
] | [] | false | false | false | true | false | let get (s: state) (x y: index) : Tot uint64 =
| s.[ x + 5 * y ] | false |
Spec.SHA3.fst | Spec.SHA3.state_theta0 | val state_theta0 : s: Spec.SHA3.state -> _C: Lib.Sequence.lseq Lib.IntTypes.uint64 5
-> Lib.Sequence.lseq Lib.IntTypes.uint64 5 | let state_theta0 (s:state) (_C:lseq uint64 5) =
repeati 5 (state_theta_inner_C s) _C | {
"file_name": "specs/Spec.SHA3.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 38,
"end_line": 32,
"start_col": 0,
"start_line": 31
} | module Spec.SHA3
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open FStar.Mul
open Lib.LoopCombinators
open Spec.SHA3.Constants
#reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0"
unfold
type state = lseq uint64 25
unfold
type index = n:size_nat{n < 5}
let get (s:state) (x:index) (y:index) : Tot... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.Constants.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": false,
"full_module": "Spec.SHA3.Constants",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: Spec.SHA3.state -> _C: Lib.Sequence.lseq Lib.IntTypes.uint64 5
-> Lib.Sequence.lseq Lib.IntTypes.uint64 5 | Prims.Tot | [
"total"
] | [] | [
"Spec.SHA3.state",
"Lib.Sequence.lseq",
"Lib.IntTypes.uint64",
"Lib.LoopCombinators.repeati",
"Spec.SHA3.state_theta_inner_C"
] | [] | false | false | false | false | false | let state_theta0 (s: state) (_C: lseq uint64 5) =
| repeati 5 (state_theta_inner_C s) _C | false | |
LowParse.Low.Writers.fst | LowParse.Low.Writers.lwriter_singleton | val lwriter_singleton
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_... | val lwriter_singleton
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_... | let lwriter_singleton
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0 } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(w: ... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 402,
"start_col": 0,
"start_line": 375
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 | w: LowParse.Low.Writers.writer s h0 sout pout_from0
-> x:
LowParse.Low.Writers.lwriter s h0 sout pout_from0
{LowParse.Low.Writers.lwvalue x == [LowParse.Low.Writers.wvalue w]} | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.l_and",
"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",
... | [] | false | false | false | false | false | let lwriter_singleton
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_... | LWriter (Ghost.hide [wvalue w])
(fun pout_from ->
let res = write w pout_from in
if res `U32.lt` max_uint32
then
let h = HST.get () in
valid_list_nil p h sout res;
valid_list_cons p h sout pout_from res
else
([@@ inline_let ]let f ()
: Lemma
... | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.owriter_ifthenelse | val owriter_ifthenelse
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial... | val owriter_ifthenelse
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial... | let owriter_ifthenelse
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0 } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(co... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 95,
"end_line": 610,
"start_col": 0,
"start_line": 597
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 |
cond: Prims.bool ->
wtrue: (_: Prims.squash (cond == true) -> LowParse.Low.Writers.owriter s h0 sout pout_from0) ->
wfalse: (_: Prims.squash (cond == false) -> LowParse.Low.Writers.owriter s h0 sout pout_from0)
-> x:
LowParse.Low.Writers.owriter s h0 sout pout_from0
{ LowParse.Low.Writers.owval... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.l_and",
"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",
... | [] | false | false | false | false | false | let owriter_ifthenelse
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial... | OWriter (if cond then OWriter?.v (wtrue ()) else OWriter?.v (wfalse ()))
(fun pout_from -> if cond then owrite (wtrue ()) pout_from else owrite (wfalse ()) pout_from) | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.lwriter_append | val lwriter_append
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_pre... | val lwriter_append
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_pre... | let lwriter_append
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0 } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(w1 w2:... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 434,
"start_col": 0,
"start_line": 406
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 |
w1: LowParse.Low.Writers.lwriter s h0 sout pout_from0 ->
w2: LowParse.Low.Writers.lwriter s h0 sout pout_from0
-> x:
LowParse.Low.Writers.lwriter s h0 sout pout_from0
{ LowParse.Low.Writers.lwvalue x ==
LowParse.Low.Writers.lwvalue w1 @ LowParse.Low.Writers.lwvalue w2 } | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.l_and",
"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",
... | [] | false | false | false | false | false | let lwriter_append
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_pre... | LWriter (Ghost.hide ((lwvalue w1) `List.Tot.append` (lwvalue w2)))
(fun pout_from ->
let res1 = lwrite w1 pout_from in
Classical.forall_intro_2 (serialized_list_length_append s);
if res1 = max_uint32
then res1
else
let res2 = lwrite w2 res1 in
let h = HST.get () in
... | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.owriter_of_writer | val owriter_of_writer
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pou... | val owriter_of_writer
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pou... | let owriter_of_writer
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(w: writer s h0 sout pout_fro... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 77,
"end_line": 644,
"start_col": 0,
"start_line": 634
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 | w: LowParse.Low.Writers.writer s h0 sout pout_from0
-> x:
LowParse.Low.Writers.owriter s h0 sout pout_from0
{ LowParse.Low.Writers.owvalue x ==
FStar.Pervasives.Native.Some (LowParse.Low.Writers.wvalue w) } | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"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.B... | [] | false | false | false | false | false | let owriter_of_writer
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pou... | OWriter (Ghost.hide (Some (wvalue w))) (fun pout_from -> write w pout_from) | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.olwrite | val olwrite
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _... | val olwrite
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _... | let olwrite
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0 } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(w: olwriter s... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 34,
"end_line": 740,
"start_col": 0,
"start_line": 730
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 | w: LowParse.Low.Writers.olwriter s h0 sout pout_from0
-> LowParse.Low.Writers.folwriter s h0 sout pout_from0 (LowParse.Low.Writers.olwvalue w) | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.l_and",
"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",
... | [] | false | false | false | false | false | let olwrite
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _... | match w with | OLWriter _ f -> f | false |
Spec.SHA3.fst | Spec.SHA3.state_chi_inner0 | val state_chi_inner0 (s_pi_rho: state) (y x: index) (s: state) : Tot state | val state_chi_inner0 (s_pi_rho: state) (y x: index) (s: state) : Tot state | let state_chi_inner0 (s_pi_rho:state) (y:index) (x:index) (s:state) : Tot state =
set s x y
(get s_pi_rho x y ^.
((lognot (get s_pi_rho ((x + 1) % 5) y)) &.
get s_pi_rho ((x + 2) % 5) y)) | {
"file_name": "specs/Spec.SHA3.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 36,
"end_line": 71,
"start_col": 0,
"start_line": 67
} | module Spec.SHA3
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open FStar.Mul
open Lib.LoopCombinators
open Spec.SHA3.Constants
#reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0"
unfold
type state = lseq uint64 25
unfold
type index = n:size_nat{n < 5}
let get (s:state) (x:index) (y:index) : Tot... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.Constants.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": false,
"full_module": "Spec.SHA3.Constants",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s_pi_rho: Spec.SHA3.state -> y: Spec.SHA3.index -> x: Spec.SHA3.index -> s: Spec.SHA3.state
-> Spec.SHA3.state | Prims.Tot | [
"total"
] | [] | [
"Spec.SHA3.state",
"Spec.SHA3.index",
"Spec.SHA3.set",
"Lib.IntTypes.op_Hat_Dot",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Spec.SHA3.get",
"Lib.IntTypes.op_Amp_Dot",
"Lib.IntTypes.lognot",
"Prims.op_Modulus",
"Prims.op_Addition"
] | [] | false | false | false | true | false | let state_chi_inner0 (s_pi_rho: state) (y x: index) (s: state) : Tot state =
| set s
x
y
(get s_pi_rho x y ^. ((lognot (get s_pi_rho ((x + 1) % 5) y)) &. get s_pi_rho ((x + 2) % 5) y)) | false |
Spec.SHA3.fst | Spec.SHA3.state_chi | val state_chi (s_pi_rho: state) : Tot state | val state_chi (s_pi_rho: state) : Tot state | let state_chi (s_pi_rho:state) : Tot state =
repeati 5 (state_chi_inner1 s_pi_rho) s_pi_rho | {
"file_name": "specs/Spec.SHA3.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 48,
"end_line": 77,
"start_col": 0,
"start_line": 76
} | module Spec.SHA3
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open FStar.Mul
open Lib.LoopCombinators
open Spec.SHA3.Constants
#reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0"
unfold
type state = lseq uint64 25
unfold
type index = n:size_nat{n < 5}
let get (s:state) (x:index) (y:index) : Tot... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.Constants.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": false,
"full_module": "Spec.SHA3.Constants",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s_pi_rho: Spec.SHA3.state -> Spec.SHA3.state | Prims.Tot | [
"total"
] | [] | [
"Spec.SHA3.state",
"Lib.LoopCombinators.repeati",
"Spec.SHA3.state_chi_inner1"
] | [] | false | false | false | true | false | let state_chi (s_pi_rho: state) : Tot state =
| repeati 5 (state_chi_inner1 s_pi_rho) s_pi_rho | false |
Spec.SHA3.fst | Spec.SHA3.state_chi_inner1 | val state_chi_inner1 (s_pi_rho: state) (y: index) (s: state) : Tot state | val state_chi_inner1 (s_pi_rho: state) (y: index) (s: state) : Tot state | let state_chi_inner1 (s_pi_rho:state) (y:index) (s:state) : Tot state =
repeati 5 (state_chi_inner0 s_pi_rho y) s | {
"file_name": "specs/Spec.SHA3.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 43,
"end_line": 74,
"start_col": 0,
"start_line": 73
} | module Spec.SHA3
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open FStar.Mul
open Lib.LoopCombinators
open Spec.SHA3.Constants
#reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0"
unfold
type state = lseq uint64 25
unfold
type index = n:size_nat{n < 5}
let get (s:state) (x:index) (y:index) : Tot... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.Constants.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": false,
"full_module": "Spec.SHA3.Constants",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s_pi_rho: Spec.SHA3.state -> y: Spec.SHA3.index -> s: Spec.SHA3.state -> Spec.SHA3.state | Prims.Tot | [
"total"
] | [] | [
"Spec.SHA3.state",
"Spec.SHA3.index",
"Lib.LoopCombinators.repeati",
"Spec.SHA3.state_chi_inner0"
] | [] | false | false | false | true | false | let state_chi_inner1 (s_pi_rho: state) (y: index) (s: state) : Tot state =
| repeati 5 (state_chi_inner0 s_pi_rho y) s | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.weaken_owriter | val weaken_owriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_f... | val weaken_owriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_f... | let weaken_owriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(w: owriter s h0 sout pout_from0... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 46,
"end_line": 579,
"start_col": 0,
"start_line": 565
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 |
w: LowParse.Low.Writers.owriter s h0 sout pout_from0 ->
h1: FStar.Monotonic.HyperStack.mem ->
pout_from1: FStar.UInt32.t
-> Prims.Pure
(w':
LowParse.Low.Writers.owriter s h1 sout pout_from1
{LowParse.Low.Writers.owvalue w' == LowParse.Low.Writers.owvalue w}) | Prims.Pure | [] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"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.B... | [] | false | false | false | false | false | let weaken_owriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_f... | OWriter w.v (fun pout_from -> w.w pout_from) | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.greader_tot | val greader_tot
(h0: HS.mem)
(sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(pout_from0: U32.t)
(#t: Type)
(x: t)
: Tot (r: greader h0 sout pout_from0 t {grvalue r == x}) | val greader_tot
(h0: HS.mem)
(sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(pout_from0: U32.t)
(#t: Type)
(x: t)
: Tot (r: greader h0 sout pout_from0 t {grvalue r == x}) | let greader_tot
(h0: HS.mem)
(sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(pout_from0: U32.t)
(#t: Type)
(x: t)
: Tot (r: greader h0 sout pout_from0 t { grvalue r == x } )
= GReader (Ghost.hide x) (fun _ -> x) | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 37,
"end_line": 1060,
"start_col": 0,
"start_line": 1053
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 |
h0: FStar.Monotonic.HyperStack.mem ->
sout:
LowParse.Slice.slice (LowParse.Slice.srel_of_buffer_srel (LowStar.Buffer.trivial_preorder LowParse.Bytes.byte
))
(LowParse.Slice.srel_of_buffer_srel (LowStar.Buffer.trivial_preorder LowParse.Bytes.byte)) ->
pout_from0: FStar.UInt32.t -... | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"LowParse.Slice.srel_of_buffer_srel",
"LowParse.Bytes.byte",
"LowStar.Buffer.trivial_preorder",
"FStar.UInt32.t",
"LowParse.Low.Writers.GReader",
"FStar.Ghost.hide",
"Prims.unit",
"LowParse.Low.Writers.greader",
"Prims.eq2",
"LowParse.L... | [] | false | false | false | false | false | let greader_tot
(h0: HS.mem)
(sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(pout_from0: U32.t)
(#t: Type)
(x: t)
: Tot (r: greader h0 sout pout_from0 t {grvalue r == x}) =
| GReader (Ghost.hide x) (fun _ -> x) | false |
Spec.SHA3.fst | Spec.SHA3.absorb_inner | val absorb_inner
(rateInBytes: size_nat{0 < rateInBytes /\ rateInBytes <= 200})
(block: lbytes rateInBytes)
(s: state)
: Tot state | val absorb_inner
(rateInBytes: size_nat{0 < rateInBytes /\ rateInBytes <= 200})
(block: lbytes rateInBytes)
(s: state)
: Tot state | let absorb_inner
(rateInBytes:size_nat{0 < rateInBytes /\ rateInBytes <= 200})
(block:lbytes rateInBytes)
(s:state) :
Tot state =
let s = loadState rateInBytes block s in
state_permute s | {
"file_name": "specs/Spec.SHA3.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 17,
"end_line": 145,
"start_col": 0,
"start_line": 138
} | module Spec.SHA3
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open FStar.Mul
open Lib.LoopCombinators
open Spec.SHA3.Constants
#reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0"
unfold
type state = lseq uint64 25
unfold
type index = n:size_nat{n < 5}
let get (s:state) (x:index) (y:index) : Tot... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.Constants.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": false,
"full_module": "Spec.SHA3.Constants",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
rateInBytes: Lib.IntTypes.size_nat{0 < rateInBytes /\ rateInBytes <= 200} ->
block: Lib.ByteSequence.lbytes rateInBytes ->
s: Spec.SHA3.state
-> Spec.SHA3.state | Prims.Tot | [
"total"
] | [] | [
"Lib.IntTypes.size_nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.op_LessThanOrEqual",
"Lib.ByteSequence.lbytes",
"Spec.SHA3.state",
"Spec.SHA3.state_permute",
"Lib.Sequence.lseq",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Spec.SHA3.loadState"
] | [] | false | false | false | false | false | let absorb_inner
(rateInBytes: size_nat{0 < rateInBytes /\ rateInBytes <= 200})
(block: lbytes rateInBytes)
(s: state)
: Tot state =
| let s = loadState rateInBytes block s in
state_permute s | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.owrite_leaf_cs | val owrite_leaf_cs
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s:
serializer p
{ k.parser_kind_subkind == Some ParserStrong /\
k.parser_kind_high == Some k.parser_kind_low /\ k.parser_kind_low < 4294967296 })
(w: leaf_writer_strong s)
(h0: HS.m... | val owrite_leaf_cs
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s:
serializer p
{ k.parser_kind_subkind == Some ParserStrong /\
k.parser_kind_high == Some k.parser_kind_low /\ k.parser_kind_low < 4294967296 })
(w: leaf_writer_strong s)
(h0: HS.m... | let owrite_leaf_cs
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_high == Some k.parser_kind_low /\ k.parser_kind_low < 4294967296 } )
(w: leaf_writer_strong s)
(h0: HS.mem)
(sout: slice (srel_of_buffer_srel (B.trivial_preorder... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 630,
"start_col": 0,
"start_line": 614
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 |
w: LowParse.Low.Base.leaf_writer_strong s ->
h0: FStar.Monotonic.HyperStack.mem ->
sout:
LowParse.Slice.slice (LowParse.Slice.srel_of_buffer_srel (LowStar.Buffer.trivial_preorder LowParse.Bytes.byte
))
(LowParse.Slice.srel_of_buffer_srel (LowStar.Buffer.trivial_preorder LowParse... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.l_and",
"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",
... | [] | false | false | false | false | false | let owrite_leaf_cs
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s:
serializer p
{ k.parser_kind_subkind == Some ParserStrong /\
k.parser_kind_high == Some k.parser_kind_low /\ k.parser_kind_low < 4294967296 })
(w: leaf_writer_strong s)
(h0: HS.m... | OWriter (Ghost.hide (Some x))
(fun pout_from ->
if (U32.uint_to_t k.parser_kind_low) `U32.gt` (sout.len `U32.sub` pout_from)
then max_uint32
else w x sout pout_from) | false |
Spec.SHA3.fst | Spec.SHA3.state_theta_inner_C | val state_theta_inner_C (s: state) (i: size_nat{i < 5}) (_C: lseq uint64 5) : Tot (lseq uint64 5) | val state_theta_inner_C (s: state) (i: size_nat{i < 5}) (_C: lseq uint64 5) : Tot (lseq uint64 5) | let state_theta_inner_C (s:state) (i:size_nat{i < 5}) (_C:lseq uint64 5) : Tot (lseq uint64 5) =
_C.[i] <- get s i 0 ^. get s i 1 ^. get s i 2 ^. get s i 3 ^. get s i 4 | {
"file_name": "specs/Spec.SHA3.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 73,
"end_line": 29,
"start_col": 0,
"start_line": 28
} | module Spec.SHA3
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open FStar.Mul
open Lib.LoopCombinators
open Spec.SHA3.Constants
#reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0"
unfold
type state = lseq uint64 25
unfold
type index = n:size_nat{n < 5}
let get (s:state) (x:index) (y:index) : Tot... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.Constants.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": false,
"full_module": "Spec.SHA3.Constants",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: Spec.SHA3.state -> i: Lib.IntTypes.size_nat{i < 5} -> _C: Lib.Sequence.lseq Lib.IntTypes.uint64 5
-> Lib.Sequence.lseq Lib.IntTypes.uint64 5 | Prims.Tot | [
"total"
] | [] | [
"Spec.SHA3.state",
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThan",
"Lib.Sequence.lseq",
"Lib.IntTypes.uint64",
"Lib.Sequence.op_String_Assignment",
"Lib.IntTypes.op_Hat_Dot",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Spec.SHA3.get"
] | [] | false | false | false | false | false | let state_theta_inner_C (s: state) (i: size_nat{i < 5}) (_C: lseq uint64 5) : Tot (lseq uint64 5) =
| _C.[ i ] <- get s i 0 ^. get s i 1 ^. get s i 2 ^. get s i 3 ^. get s i 4 | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.olwriter_ifthenelse | val olwriter_ifthenelse
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivia... | val olwriter_ifthenelse
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivia... | let olwriter_ifthenelse
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0 } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(c... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 97,
"end_line": 838,
"start_col": 0,
"start_line": 825
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 |
cond: Prims.bool ->
wtrue: (_: Prims.squash (cond == true) -> LowParse.Low.Writers.olwriter s h0 sout pout_from0) ->
wfalse: (_: Prims.squash (cond == false) -> LowParse.Low.Writers.olwriter s h0 sout pout_from0)
-> x:
LowParse.Low.Writers.olwriter s h0 sout pout_from0
{ LowParse.Low.Writers.ol... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.l_and",
"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",
... | [] | false | false | false | false | false | let olwriter_ifthenelse
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivia... | OLWriter (if cond then (wtrue ()).v else (wfalse ()).v)
(fun pout_from -> if cond then olwrite (wtrue ()) pout_from else olwrite (wfalse ()) pout_from) | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.owbind | val owbind
(#tr: Type)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
... | val owbind
(#tr: Type)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
... | let owbind
(#tr: Type)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(r: greader h0 sout pout_f... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 1009,
"start_col": 0,
"start_line": 994
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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: LowParse.Low.Writers.greader h0 sout pout_from0 tr ->
w: (x: tr -> Prims.Pure (LowParse.Low.Writers.owriter s h0 sout pout_from0))
-> w':
LowParse.Low.Writers.owriter s h0 sout pout_from0
{ LowParse.Low.Writers.owvalue w' ==
LowParse.Low.Writers.owvalue (w (LowParse.Low.Writers.grvalue r... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"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.B... | [] | false | false | false | false | false | let owbind
(#tr: Type)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
... | OWriter (Ghost.hide (owvalue (w (grvalue r))))
(fun pout_from ->
let v = gread r in
owrite (w v) pout_from) | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.swbind | val swbind
(#tr: Type)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#space_beyond: nat)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B... | val swbind
(#tr: Type)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#space_beyond: nat)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B... | let swbind
(#tr: Type)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong } )
(#h0: HS.mem)
(#space_beyond: nat)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(r:... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 971,
"start_col": 0,
"start_line": 955
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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: LowParse.Low.Writers.greader h0 sout pout_from0 tr ->
w: (x: tr -> Prims.Pure (LowParse.Low.Writers.swriter s h0 space_beyond sout pout_from0))
-> w':
LowParse.Low.Writers.swriter s h0 space_beyond sout pout_from0
{ LowParse.Low.Writers.swvalue w' ==
LowParse.Low.Writers.swvalue (w (LowP... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"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.B... | [] | false | false | false | false | false | let swbind
(#tr: Type)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#space_beyond: nat)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B... | SWriter (Ghost.hide (swvalue (w (grvalue r))))
(fun pout_from ->
let v = gread r in
swrite (w v) pout_from) | false |
Spec.SHA3.fst | Spec.SHA3.state_iota | val state_iota (s: state) (round: size_nat{round < 24}) : Tot state | val state_iota (s: state) (round: size_nat{round < 24}) : Tot state | let state_iota (s:state) (round:size_nat{round < 24}) : Tot state =
set s 0 0 (get s 0 0 ^. secret keccak_rndc.[round]) | {
"file_name": "specs/Spec.SHA3.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 53,
"end_line": 80,
"start_col": 0,
"start_line": 79
} | module Spec.SHA3
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open FStar.Mul
open Lib.LoopCombinators
open Spec.SHA3.Constants
#reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0"
unfold
type state = lseq uint64 25
unfold
type index = n:size_nat{n < 5}
let get (s:state) (x:index) (y:index) : Tot... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.Constants.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": false,
"full_module": "Spec.SHA3.Constants",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: Spec.SHA3.state -> round: Lib.IntTypes.size_nat{round < 24} -> Spec.SHA3.state | Prims.Tot | [
"total"
] | [] | [
"Spec.SHA3.state",
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThan",
"Spec.SHA3.set",
"Lib.IntTypes.op_Hat_Dot",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Spec.SHA3.get",
"Lib.IntTypes.secret",
"Lib.Sequence.op_String_Access",
"Lib.IntTypes.int_t",
"Lib.IntTypes.PUB",
"Spec.SHA3.Co... | [] | false | false | false | false | false | let state_iota (s: state) (round: size_nat{round < 24}) : Tot state =
| set s 0 0 (get s 0 0 ^. secret keccak_rndc.[ round ]) | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.olwriter_of_lwriter | val olwriter_of_lwriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivia... | val olwriter_of_lwriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivia... | let olwriter_of_lwriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0 } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(w... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 80,
"end_line": 852,
"start_col": 0,
"start_line": 842
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 | w: LowParse.Low.Writers.lwriter s h0 sout pout_from0
-> LowParse.Low.Writers.olwriter s h0 sout pout_from0 | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.l_and",
"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",
... | [] | false | false | false | false | false | let olwriter_of_lwriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivia... | OLWriter (Ghost.hide (Some (lwvalue w))) (fun pout_from -> lwrite w pout_from) | false |
Spec.SHA3.fst | Spec.SHA3.state_theta | val state_theta (s: state) : Tot state | val state_theta (s: state) : Tot state | let state_theta (s:state) : Tot state =
let _C = create 5 (u64 0) in
let _C = state_theta0 s _C in
state_theta1 s _C | {
"file_name": "specs/Spec.SHA3.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 19,
"end_line": 47,
"start_col": 0,
"start_line": 44
} | module Spec.SHA3
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open FStar.Mul
open Lib.LoopCombinators
open Spec.SHA3.Constants
#reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0"
unfold
type state = lseq uint64 25
unfold
type index = n:size_nat{n < 5}
let get (s:state) (x:index) (y:index) : Tot... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.Constants.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": false,
"full_module": "Spec.SHA3.Constants",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: Spec.SHA3.state -> Spec.SHA3.state | Prims.Tot | [
"total"
] | [] | [
"Spec.SHA3.state",
"Spec.SHA3.state_theta1",
"Lib.Sequence.lseq",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Spec.SHA3.state_theta0",
"Prims.l_and",
"Prims.eq2",
"FStar.Seq.Base.seq",
"Lib.Sequence.to_seq",
"FStar.Seq.Base.create",
"Lib.IntTypes.mk_int",
"Prims.l_Forall... | [] | false | false | false | true | false | let state_theta (s: state) : Tot state =
| let _C = create 5 (u64 0) in
let _C = state_theta0 s _C in
state_theta1 s _C | false |
Vale.AES.X64.AESopt.fst | Vale.AES.X64.AESopt.va_lemma_untransformedoriginal_Loop6x_partial | val va_lemma_untransformedoriginal_Loop6x_partial : va_b0:va_code -> va_s0:va_state ->
alg:algorithm -> h_LE:quad32 -> y_prev:quad32 -> data:(seq quad32) -> count:nat -> in0_count:nat
-> iv_b:buffer128 -> in0_b:buffer128 -> in_b:buffer128 -> scratch_b:buffer128 -> key_words:(seq
nat32) -> round_keys:(seq quad32) ... | val va_lemma_untransformedoriginal_Loop6x_partial : va_b0:va_code -> va_s0:va_state ->
alg:algorithm -> h_LE:quad32 -> y_prev:quad32 -> data:(seq quad32) -> count:nat -> in0_count:nat
-> iv_b:buffer128 -> in0_b:buffer128 -> in_b:buffer128 -> scratch_b:buffer128 -> key_words:(seq
nat32) -> round_keys:(seq quad32) ... | let va_lemma_untransformedoriginal_Loop6x_partial va_b0 va_s0 alg h_LE y_prev data count in0_count
iv_b in0_b in_b scratch_b key_words round_keys keys_b hkeys_b ctr_BE =
let (va_mods:va_mods_t) = [va_Mod_flags; va_Mod_mem_heaplet 3; va_Mod_mem_heaplet 2; va_Mod_xmm
15; va_Mod_xmm 14; va_Mod_xmm 13; va_Mod_xmm 1... | {
"file_name": "obj/Vale.AES.X64.AESopt.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 22,
"end_line": 2164,
"start_col": 0,
"start_line": 2075
} | module Vale.AES.X64.AESopt
open FStar.Mul
open Vale.Def.Prop_s
open Vale.Def.Opaque_s
open Vale.Def.Words_s
open Vale.Def.Types_s
open FStar.Seq
open Vale.Arch.Types
open Vale.Arch.HeapImpl
open Vale.AES.AES_s
open Vale.X64.Machine_s
open Vale.X64.Memory
open Vale.X64.State
open Vale.X64.Decls
open Vale.X64.InsBasic
op... | {
"checked_file": "/",
"dependencies": [
"Vale.X64.State.fsti.checked",
"Vale.X64.QuickCodes.fsti.checked",
"Vale.X64.QuickCode.fst.checked",
"Vale.X64.Memory.fsti.checked",
"Vale.X64.Machine_s.fst.checked",
"Vale.X64.InsVector.fsti.checked",
"Vale.X64.InsMem.fsti.checked",
"Vale.X64... | [
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.Transformers.Transform",
"short_module": null
},
{
"abbrev": false,
"full_module": "Vale.AES.X64.AESGCM_expected_code",
"short_module": null
},
{
"abbrev... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 0,
"max_fuel": 1,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
va_b0: Vale.X64.Decls.va_code ->
va_s0: Vale.X64.Decls.va_state ->
alg: Vale.AES.AES_common_s.algorithm ->
h_LE: Vale.X64.Decls.quad32 ->
y_prev: Vale.X64.Decls.quad32 ->
data: FStar.Seq.Base.seq Vale.X64.Decls.quad32 ->
count: Prims.nat ->
in0_count: Prims.nat ->
iv_b: Vale.X64.Mem... | Prims.Ghost | [] | [] | [
"Vale.X64.Decls.va_code",
"Vale.X64.Decls.va_state",
"Vale.AES.AES_common_s.algorithm",
"Vale.X64.Decls.quad32",
"FStar.Seq.Base.seq",
"Prims.nat",
"Vale.X64.Memory.buffer128",
"Vale.X64.Memory.nat32",
"Vale.X64.QuickCodes.fuel",
"Vale.AES.X64.AESopt.quad32_6",
"FStar.Pervasives.Native.Mktuple3"... | [] | false | false | false | false | false | let va_lemma_untransformedoriginal_Loop6x_partial
va_b0
va_s0
alg
h_LE
y_prev
data
count
in0_count
iv_b
in0_b
in_b
scratch_b
key_words
round_keys
keys_b
hkeys_b
ctr_BE
=
| let va_mods:va_mods_t =
[
va_Mod_flags; va_Mod_mem_heaplet 3; va_Mod_mem_heaplet 2; va_Mod_xmm 15; va_Mod_xmm 14;
va_Mod_xmm 13; va_Mod_xmm 12; va_Mod_xmm 11; va_Mod_xmm 10; va_Mod_xmm 9; va_Mod_xmm 8;
va_Mod_xmm 7; va_Mod_xmm 6; va_Mod_xmm 5; va_Mod_xmm 4; va_Mod_xmm 3; va_Mod_xmm 2; va_Mod_xmm 1;
va... | false |
Spec.SHA3.fst | Spec.SHA3.state_permute | val state_permute (s: state) : Tot state | val state_permute (s: state) : Tot state | let state_permute (s:state) : Tot state =
repeati 24 state_permute1 s | {
"file_name": "specs/Spec.SHA3.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 29,
"end_line": 90,
"start_col": 0,
"start_line": 89
} | module Spec.SHA3
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open FStar.Mul
open Lib.LoopCombinators
open Spec.SHA3.Constants
#reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0"
unfold
type state = lseq uint64 25
unfold
type index = n:size_nat{n < 5}
let get (s:state) (x:index) (y:index) : Tot... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.Constants.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": false,
"full_module": "Spec.SHA3.Constants",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: Spec.SHA3.state -> Spec.SHA3.state | Prims.Tot | [
"total"
] | [] | [
"Spec.SHA3.state",
"Lib.LoopCombinators.repeati",
"Spec.SHA3.state_permute1"
] | [] | false | false | false | true | false | let state_permute (s: state) : Tot state =
| repeati 24 state_permute1 s | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.gread | val gread
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(#t: Type)
(r: greader h0 sout pout_from0 t)
: HST.Stack t
(requires (fun h -> B.modifies (loc_slice_from so... | val gread
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(#t: Type)
(r: greader h0 sout pout_from0 t)
: HST.Stack t
(requires (fun h -> B.modifies (loc_slice_from so... | let gread
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(#t: Type)
(r: greader h0 sout pout_from0 t)
: HST.Stack t
(requires (fun h ->
B.modifies (loc_slice_from sout pout_from0) h0 h
))
(ensures (fun h res... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 23,
"end_line": 951,
"start_col": 0,
"start_line": 936
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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: LowParse.Low.Writers.greader h0 sout pout_from0 t -> FStar.HyperStack.ST.Stack t | FStar.HyperStack.ST.Stack | [] | [] | [
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"LowParse.Slice.srel_of_buffer_srel",
"LowParse.Bytes.byte",
"LowStar.Buffer.trivial_preorder",
"FStar.UInt32.t",
"LowParse.Low.Writers.greader",
"FStar.Ghost.erased",
"Prims.unit",
"LowStar.Monotonic.Buffer.modifies",
"LowParse.Slice.loc... | [] | false | true | false | false | false | let gread
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(#t: Type)
(r: greader h0 sout pout_from0 t)
: HST.Stack t
(requires (fun h -> B.modifies (loc_slice_from so... | match r with | GReader _ f -> f () | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.graccess | val graccess
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl: clens t1 t2)
(#g: gaccessor p1 p2 cl)
(a: accessor g)
(#rrel #rel: _)
(sin: slice rrel rel)
(pin: U32.t)
(sout:
... | val graccess
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl: clens t1 t2)
(#g: gaccessor p1 p2 cl)
(a: accessor g)
(#rrel #rel: _)
(sin: slice rrel rel)
(pin: U32.t)
(sout:
... | let graccess
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl: clens t1 t2)
(#g: gaccessor p1 p2 cl)
(a: accessor g)
(#rrel #rel: _)
(sin: slice rrel rel)
(pin: U32.t)
(sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_b... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 1089,
"start_col": 0,
"start_line": 1064
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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: LowParse.Low.Base.accessor g ->
sin: LowParse.Slice.slice rrel rel ->
pin: FStar.UInt32.t ->
sout:
LowParse.Slice.slice (LowParse.Slice.srel_of_buffer_srel (LowStar.Buffer.trivial_preorder LowParse.Bytes.byte
))
(LowParse.Slice.srel_of_buffer_srel (LowStar.Buffer.trivial_... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Low.Base.Spec.clens",
"LowParse.Low.Base.Spec.gaccessor",
"LowParse.Low.Base.accessor",
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowParse.Slice.srel_of_buffer_srel",
"LowStar.... | [] | false | false | false | false | false | let graccess
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(#cl: clens t1 t2)
(#g: gaccessor p1 p2 cl)
(a: accessor g)
(#rrel #rel: _)
(sin: slice rrel rel)
(pin: U32.t)
(sout:
... | GReader (Ghost.hide (slice_access h0 g sin pin)) (fun _ -> a sin pin) | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.lwriter_ifthenelse | val lwriter_ifthenelse
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial... | val lwriter_ifthenelse
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial... | let lwriter_ifthenelse
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0 } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(co... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 95,
"end_line": 451,
"start_col": 0,
"start_line": 438
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 |
cond: Prims.bool ->
wtrue: (_: Prims.squash (cond == true) -> LowParse.Low.Writers.lwriter s h0 sout pout_from0) ->
wfalse: (_: Prims.squash (cond == false) -> LowParse.Low.Writers.lwriter s h0 sout pout_from0)
-> x:
LowParse.Low.Writers.lwriter s h0 sout pout_from0
{ LowParse.Low.Writers.lwval... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.l_and",
"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",
... | [] | false | false | false | false | false | let lwriter_ifthenelse
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial... | LWriter (if cond then (wtrue ()).v else (wfalse ()).v)
(fun pout_from -> if cond then lwrite (wtrue ()) pout_from else lwrite (wfalse ()) pout_from) | false |
Steel.Primitive.ForkJoin.Unix.fst | Steel.Primitive.ForkJoin.Unix.test_lift | val test_lift (#p #q: _) (f: (unit -> SteelK unit p (fun _ -> q))) : SteelK unit p (fun _ -> q) | val test_lift (#p #q: _) (f: (unit -> SteelK unit p (fun _ -> q))) : SteelK unit p (fun _ -> q) | let test_lift #p #q (f : unit -> SteelK unit p (fun _ -> q)) : SteelK unit p (fun _ -> q) =
();
f ();
() | {
"file_name": "lib/steel/Steel.Primitive.ForkJoin.Unix.fst",
"git_rev": "f984200f79bdc452374ae994a5ca837496476c41",
"git_url": "https://github.com/FStarLang/steel.git",
"project_name": "steel"
} | {
"end_col": 4,
"end_line": 183,
"start_col": 0,
"start_line": 180
} | (*
Copyright 2020 Microsoft Research
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | {
"checked_file": "/",
"dependencies": [
"Steel.Reference.fsti.checked",
"Steel.Primitive.ForkJoin.fsti.checked",
"Steel.Memory.fsti.checked",
"Steel.FractionalPermission.fst.checked",
"Steel.Effect.Atomic.fsti.checked",
"Steel.Effect.fsti.checked",
"prims.fst.checked",
"FStar.Tactic... | [
{
"abbrev": false,
"full_module": "Steel.Primitive.ForkJoin",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Reference",
"short_module": null
},
{
"abbrev": false,
"full_module": "Steel.Effect",
"short_module": null
},
{
"abbrev": false,
"ful... | {
"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.unit -> Steel.Primitive.ForkJoin.Unix.SteelK Prims.unit)
-> Steel.Primitive.ForkJoin.Unix.SteelK Prims.unit | Steel.Primitive.ForkJoin.Unix.SteelK | [] | [] | [
"Steel.Effect.Common.pre_t",
"Steel.Effect.Common.vprop",
"Prims.unit"
] | [] | false | true | false | false | false | let test_lift #p #q (f: (unit -> SteelK unit p (fun _ -> q))) : SteelK unit p (fun _ -> q) =
| ();
f ();
() | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.wbind | val wbind
(#tr: Type)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
... | val wbind
(#tr: Type)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
... | let wbind
(#tr: Type)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(r: greader h0 sout pout_fr... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 990,
"start_col": 0,
"start_line": 975
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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: LowParse.Low.Writers.greader h0 sout pout_from0 tr ->
w: (x: tr -> Prims.Pure (LowParse.Low.Writers.writer s h0 sout pout_from0))
-> w':
LowParse.Low.Writers.writer s h0 sout pout_from0
{ LowParse.Low.Writers.wvalue w' ==
LowParse.Low.Writers.wvalue (w (LowParse.Low.Writers.grvalue r)) } | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"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.B... | [] | false | false | false | false | false | let wbind
(#tr: Type)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
... | Writer (Ghost.hide (wvalue (w (grvalue r))))
(fun pout_from ->
let v = gread r in
write (w v) pout_from) | false |
Spec.SHA3.fst | Spec.SHA3.state_pi_rho | val state_pi_rho (s_theta: state) : Tot state | val state_pi_rho (s_theta: state) : Tot state | let state_pi_rho (s_theta:state) : Tot state =
let current = get s_theta 1 0 in
let _, s_pi_rho = repeat_gen 24 state_pi_rho_s
state_pi_rho_inner (current, s_theta) in
s_pi_rho | {
"file_name": "specs/Spec.SHA3.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 10,
"end_line": 64,
"start_col": 0,
"start_line": 60
} | module Spec.SHA3
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open FStar.Mul
open Lib.LoopCombinators
open Spec.SHA3.Constants
#reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0"
unfold
type state = lseq uint64 25
unfold
type index = n:size_nat{n < 5}
let get (s:state) (x:index) (y:index) : Tot... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.Constants.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": false,
"full_module": "Spec.SHA3.Constants",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s_theta: Spec.SHA3.state -> Spec.SHA3.state | Prims.Tot | [
"total"
] | [] | [
"Spec.SHA3.state",
"Lib.IntTypes.uint64",
"Spec.SHA3.state_pi_rho_s",
"Lib.LoopCombinators.repeat_gen",
"Spec.SHA3.state_pi_rho_inner",
"FStar.Pervasives.Native.Mktuple2",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Spec.SHA3.get"
] | [] | false | false | false | true | false | let state_pi_rho (s_theta: state) : Tot state =
| let current = get s_theta 1 0 in
let _, s_pi_rho = repeat_gen 24 state_pi_rho_s state_pi_rho_inner (current, s_theta) in
s_pi_rho | false |
Spec.SHA3.fst | Spec.SHA3.absorb | val absorb
(s: state)
(rateInBytes: size_nat{0 < rateInBytes /\ rateInBytes <= 200})
(inputByteLen: nat)
(input: bytes{length input == inputByteLen})
(delimitedSuffix: byte_t)
: Tot state | val absorb
(s: state)
(rateInBytes: size_nat{0 < rateInBytes /\ rateInBytes <= 200})
(inputByteLen: nat)
(input: bytes{length input == inputByteLen})
(delimitedSuffix: byte_t)
: Tot state | let absorb
(s:state)
(rateInBytes:size_nat{0 < rateInBytes /\ rateInBytes <= 200})
(inputByteLen:nat)
(input:bytes{length input == inputByteLen})
(delimitedSuffix:byte_t) :
Tot state =
repeat_blocks rateInBytes input
(absorb_inner rateInBytes)
(absorb_last delimitedSuffix rateInBytes) s | {
"file_name": "specs/Spec.SHA3.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 45,
"end_line": 157,
"start_col": 0,
"start_line": 147
} | module Spec.SHA3
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open FStar.Mul
open Lib.LoopCombinators
open Spec.SHA3.Constants
#reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0"
unfold
type state = lseq uint64 25
unfold
type index = n:size_nat{n < 5}
let get (s:state) (x:index) (y:index) : Tot... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.Constants.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": false,
"full_module": "Spec.SHA3.Constants",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
s: Spec.SHA3.state ->
rateInBytes: Lib.IntTypes.size_nat{0 < rateInBytes /\ rateInBytes <= 200} ->
inputByteLen: Prims.nat ->
input: Lib.ByteSequence.bytes{Lib.Sequence.length input == inputByteLen} ->
delimitedSuffix: Lib.IntTypes.byte_t
-> Spec.SHA3.state | Prims.Tot | [
"total"
] | [] | [
"Spec.SHA3.state",
"Lib.IntTypes.size_nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.op_LessThanOrEqual",
"Prims.nat",
"Lib.ByteSequence.bytes",
"Prims.eq2",
"Lib.Sequence.length",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Lib.IntTypes.byte_t",
"Lib.Se... | [] | false | false | false | false | false | let absorb
(s: state)
(rateInBytes: size_nat{0 < rateInBytes /\ rateInBytes <= 200})
(inputByteLen: nat)
(input: bytes{length input == inputByteLen})
(delimitedSuffix: byte_t)
: Tot state =
| repeat_blocks rateInBytes
input
(absorb_inner rateInBytes)
(absorb_last delimitedSuffix rateInBytes)
s | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.grlexistsb | val grlexistsb
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(j: jumper p)
(f: (t -> Tot bool))
(f':
(#rrel: _ -> #rel: _ -> sl: slice rrel rel -> pos: U32.t
-> HST.Stack bool
(requires (fun h -> valid p h sl pos))
(ensures
... | val grlexistsb
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(j: jumper p)
(f: (t -> Tot bool))
(f':
(#rrel: _ -> #rel: _ -> sl: slice rrel rel -> pos: U32.t
-> HST.Stack bool
(requires (fun h -> valid p h sl pos))
(ensures
... | let grlexistsb
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(j: jumper p)
(f: (t -> Tot bool)) // should be GTot, but List.find requires Tot
(f' : (
(#rrel: _) ->
(#rel: _) ->
(sl: slice rrel rel) ->
(pos: U32.t) ->
HST.Stack bool
(requires (fun h ->
valid p h sl pos
))
... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 1148,
"start_col": 0,
"start_line": 1115
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 |
j: LowParse.Low.Base.jumper p ->
f: (_: t -> Prims.bool) ->
f':
(sl: LowParse.Slice.slice rrel rel -> pos: FStar.UInt32.t
-> FStar.HyperStack.ST.Stack Prims.bool) ->
sl: LowParse.Slice.slice rrel rel ->
pos: FStar.UInt32.t ->
pos': FStar.UInt32.t ->
sout:
LowParse.Slic... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Low.Base.jumper",
"Prims.bool",
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"FStar.Monotonic.HyperStack.mem",
"LowParse.Low.Base.Spec.valid",
"Prims.l_and",
"LowStar.Monotonic.B... | [] | false | false | false | false | false | let grlexistsb
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(j: jumper p)
(f: (t -> Tot bool))
(f':
(#rrel: _ -> #rel: _ -> sl: slice rrel rel -> pos: U32.t
-> HST.Stack bool
(requires (fun h -> valid p h sl pos))
(ensures
... | GReader (Ghost.hide (L.existsb f (contents_list p h0 sl pos pos')))
(fun _ -> list_existsb j f f' sl pos pos') | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.lwriter_list_map | val lwriter_list_map
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(j1: jumper p1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(s2: serializer p2 {k2.parser_kind_subkind == Some ParserStrong /\ k2.parser_kind_low > 0})
(f: (t1 -> Tot t2))
(#rrel #r... | val lwriter_list_map
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(j1: jumper p1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(s2: serializer p2 {k2.parser_kind_subkind == Some ParserStrong /\ k2.parser_kind_low > 0})
(f: (t1 -> Tot t2))
(#rrel #r... | let lwriter_list_map
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(j1: jumper p1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(s2: serializer p2 { k2.parser_kind_subkind == Some ParserStrong /\ k2.parser_kind_low > 0 } )
(f: t1 -> Tot t2)
(#rrel #rel: _)
(sin: slice rrel rel)
(pin_f... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 497,
"start_col": 0,
"start_line": 455
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 |
j1: LowParse.Low.Base.jumper p1 ->
s2:
LowParse.Spec.Base.serializer p2
{ Mkparser_kind'?.parser_kind_subkind k2 ==
FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong /\
Mkparser_kind'?.parser_kind_low k2 > 0 } ->
f: (_: t1 -> t2) ->
sin: LowParse.Slice.slice... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Low.Base.jumper",
"LowParse.Spec.Base.serializer",
"Prims.l_and",
"Prims.eq2",
"FStar.Pervasives.Native.option",
"LowParse.Spec.Base.parser_subkind",
"LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind",
"FS... | [] | false | false | false | false | false | let lwriter_list_map
(#k1: parser_kind)
(#t1: Type)
(#p1: parser k1 t1)
(j1: jumper p1)
(#k2: parser_kind)
(#t2: Type)
(#p2: parser k2 t2)
(s2: serializer p2 {k2.parser_kind_subkind == Some ParserStrong /\ k2.parser_kind_low > 0})
(f: (t1 -> Tot t2))
(#rrel #r... | LWriter (Ghost.hide (List.Tot.map f (contents_list p1 h0 sin pin_from pin_to)))
(fun pout_from ->
assert (k1.parser_kind_subkind == Some ParserStrong);
let h = HST.get () in
list_map j1 s2 f h sin pin_from pin_to sout pout_from
(fun pin_ pout_ ->
valid_pos_frame_strong p1
... | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.olwriter_append | val olwriter_append
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_pr... | val olwriter_append
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_pr... | let olwriter_append
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0 } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(w1 w2... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 821,
"start_col": 0,
"start_line": 793
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 |
w1: LowParse.Low.Writers.olwriter s h0 sout pout_from0 ->
w2: LowParse.Low.Writers.olwriter s h0 sout pout_from0
-> x:
LowParse.Low.Writers.olwriter s h0 sout pout_from0
{ LowParse.Low.Writers.olwvalue x ==
(match LowParse.Low.Writers.olwvalue w1, LowParse.Low.Writers.olwvalue w2 with
... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.l_and",
"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",
... | [] | false | false | false | false | false | let olwriter_append
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_pr... | OLWriter
(Ghost.hide (match olwvalue w1, olwvalue w2 with
| Some l1, Some l2 -> Some (l1 `List.Tot.append` l2)
| _ -> None))
(fun pout_from ->
let res1 = olwrite w1 pout_from in
Classical.forall_intro_2 (serialized_list_length_append s);
if (max_uint32 `U32.sub` 1ul) `U32.lte` res1... | false |
Spec.SHA3.fst | Spec.SHA3.state_theta1 | val state_theta1 (s: state) (_C: lseq uint64 5) : Tot state | val state_theta1 (s: state) (_C: lseq uint64 5) : Tot state | let state_theta1 (s:state) (_C:lseq uint64 5) : Tot state =
repeati 5 (state_theta_inner_s _C) s | {
"file_name": "specs/Spec.SHA3.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 38,
"end_line": 42,
"start_col": 0,
"start_line": 41
} | module Spec.SHA3
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open FStar.Mul
open Lib.LoopCombinators
open Spec.SHA3.Constants
#reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0"
unfold
type state = lseq uint64 25
unfold
type index = n:size_nat{n < 5}
let get (s:state) (x:index) (y:index) : Tot... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.Constants.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": false,
"full_module": "Spec.SHA3.Constants",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: Spec.SHA3.state -> _C: Lib.Sequence.lseq Lib.IntTypes.uint64 5 -> Spec.SHA3.state | Prims.Tot | [
"total"
] | [] | [
"Spec.SHA3.state",
"Lib.Sequence.lseq",
"Lib.IntTypes.uint64",
"Lib.LoopCombinators.repeati",
"Spec.SHA3.state_theta_inner_s"
] | [] | false | false | false | false | false | let state_theta1 (s: state) (_C: lseq uint64 5) : Tot state =
| repeati 5 (state_theta_inner_s _C) s | false |
Spec.SHA3.fst | Spec.SHA3.storeState | val storeState (rateInBytes: size_nat{rateInBytes <= 200}) (s: state) : Tot (lbytes rateInBytes) | val storeState (rateInBytes: size_nat{rateInBytes <= 200}) (s: state) : Tot (lbytes rateInBytes) | let storeState (rateInBytes:size_nat{rateInBytes <= 200}) (s:state) : Tot (lbytes rateInBytes) =
let block = create 200 (u8 0) in
let block = repeati 25 (storeState_inner s) block in
sub block 0 rateInBytes | {
"file_name": "specs/Spec.SHA3.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 25,
"end_line": 111,
"start_col": 0,
"start_line": 108
} | module Spec.SHA3
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open FStar.Mul
open Lib.LoopCombinators
open Spec.SHA3.Constants
#reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0"
unfold
type state = lseq uint64 25
unfold
type index = n:size_nat{n < 5}
let get (s:state) (x:index) (y:index) : Tot... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.Constants.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": false,
"full_module": "Spec.SHA3.Constants",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | rateInBytes: Lib.IntTypes.size_nat{rateInBytes <= 200} -> s: Spec.SHA3.state
-> Lib.ByteSequence.lbytes rateInBytes | Prims.Tot | [
"total"
] | [] | [
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThanOrEqual",
"Spec.SHA3.state",
"Lib.Sequence.sub",
"Lib.IntTypes.uint_t",
"Lib.IntTypes.U8",
"Lib.IntTypes.SEC",
"Lib.Sequence.lseq",
"Lib.IntTypes.int_t",
"Lib.LoopCombinators.repeati",
"Spec.SHA3.storeState_inner",
"Prims.l_and",
"Pri... | [] | false | false | false | false | false | let storeState (rateInBytes: size_nat{rateInBytes <= 200}) (s: state) : Tot (lbytes rateInBytes) =
| let block = create 200 (u8 0) in
let block = repeati 25 (storeState_inner s) block in
sub block 0 rateInBytes | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.olwbind | val olwbind
(#tr: Type)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.... | val olwbind
(#tr: Type)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.... | let olwbind
(#tr: Type)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0 } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 1049,
"start_col": 0,
"start_line": 1032
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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: LowParse.Low.Writers.greader h0 sout pout_from0 tr ->
w: (x: tr -> Prims.Pure (LowParse.Low.Writers.olwriter s h0 sout pout_from0))
-> Prims.Pure (LowParse.Low.Writers.olwriter s h0 sout pout_from0) | Prims.Pure | [] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.l_and",
"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",
... | [] | false | false | false | false | false | let olwbind
(#tr: Type)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.... | OLWriter (Ghost.hide (olwvalue (w (grvalue r))))
(fun pout_from ->
let v = gread r in
olwrite (w v) pout_from) | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.lwbind | val lwbind
(#tr: Type)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.t... | val lwbind
(#tr: Type)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.t... | let lwbind
(#tr: Type)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0 } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 1028,
"start_col": 0,
"start_line": 1013
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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: LowParse.Low.Writers.greader h0 sout pout_from0 tr ->
w: (x: tr -> Prims.Pure (LowParse.Low.Writers.lwriter s h0 sout pout_from0))
-> w':
LowParse.Low.Writers.lwriter s h0 sout pout_from0
{ LowParse.Low.Writers.lwvalue w' ==
LowParse.Low.Writers.lwvalue (w (LowParse.Low.Writers.grvalue r... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.l_and",
"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",
... | [] | false | false | false | false | false | let lwbind
(#tr: Type)
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.t... | LWriter (Ghost.hide (lwvalue (w (grvalue r))))
(fun pout_from ->
let v = gread r in
lwrite (w v) pout_from) | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.grifthenelse | val grifthenelse
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(#t: Type)
(cond: bool)
(grtrue: (squash (cond == true) -> Tot (greader h0 sout pout_from0 t)))
(gr... | val grifthenelse
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(#t: Type)
(cond: bool)
(grtrue: (squash (cond == true) -> Tot (greader h0 sout pout_from0 t)))
(gr... | let grifthenelse
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(#t: Type)
(cond: bool)
(grtrue: (squash (cond == true) -> Tot (greader h0 sout pout_from0 t)))
(grfalse: (squash (cond == false) -> Tot (greader h... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 1163,
"start_col": 0,
"start_line": 1152
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 |
cond: Prims.bool ->
grtrue: (_: Prims.squash (cond == true) -> LowParse.Low.Writers.greader h0 sout pout_from0 t) ->
grfalse: (_: Prims.squash (cond == false) -> LowParse.Low.Writers.greader h0 sout pout_from0 t)
-> r':
LowParse.Low.Writers.greader h0 sout pout_from0 t
{ LowParse.Low.Writers.gr... | Prims.Tot | [
"total"
] | [] | [
"FStar.Monotonic.HyperStack.mem",
"LowParse.Slice.slice",
"LowParse.Slice.srel_of_buffer_srel",
"LowParse.Bytes.byte",
"LowStar.Buffer.trivial_preorder",
"FStar.UInt32.t",
"Prims.bool",
"Prims.squash",
"Prims.eq2",
"LowParse.Low.Writers.greader",
"LowParse.Low.Writers.GReader",
"FStar.Ghost.hi... | [] | false | false | false | false | false | let grifthenelse
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(#t: Type)
(cond: bool)
(grtrue: (squash (cond == true) -> Tot (greader h0 sout pout_from0 t)))
(gr... | GReader (Ghost.hide (if cond then grvalue (grtrue ()) else grvalue (grfalse ())))
(fun _ -> if cond then gread (grtrue ()) else gread (grfalse ())) | false |
Spec.SHA3.fst | Spec.SHA3.squeeze_inner | val squeeze_inner
(rateInBytes: size_nat{0 < rateInBytes /\ rateInBytes <= 200})
(outputByteLen: size_nat)
(i: size_nat{i < outputByteLen / rateInBytes})
(s: state)
: Tot (state & lbytes rateInBytes) | val squeeze_inner
(rateInBytes: size_nat{0 < rateInBytes /\ rateInBytes <= 200})
(outputByteLen: size_nat)
(i: size_nat{i < outputByteLen / rateInBytes})
(s: state)
: Tot (state & lbytes rateInBytes) | let squeeze_inner
(rateInBytes:size_nat{0 < rateInBytes /\ rateInBytes <= 200})
(outputByteLen:size_nat)
(i:size_nat{i < outputByteLen / rateInBytes})
(s:state) :
Tot (state & lbytes rateInBytes) =
let block = storeState rateInBytes s in
let s = state_permute s in
s, block | {
"file_name": "specs/Spec.SHA3.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 10,
"end_line": 168,
"start_col": 0,
"start_line": 159
} | module Spec.SHA3
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open FStar.Mul
open Lib.LoopCombinators
open Spec.SHA3.Constants
#reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0"
unfold
type state = lseq uint64 25
unfold
type index = n:size_nat{n < 5}
let get (s:state) (x:index) (y:index) : Tot... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.Constants.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": false,
"full_module": "Spec.SHA3.Constants",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
rateInBytes: Lib.IntTypes.size_nat{0 < rateInBytes /\ rateInBytes <= 200} ->
outputByteLen: Lib.IntTypes.size_nat ->
i: Lib.IntTypes.size_nat{i < outputByteLen / rateInBytes} ->
s: Spec.SHA3.state
-> Spec.SHA3.state * Lib.ByteSequence.lbytes rateInBytes | Prims.Tot | [
"total"
] | [] | [
"Lib.IntTypes.size_nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_LessThan",
"Prims.op_LessThanOrEqual",
"Prims.op_Division",
"Spec.SHA3.state",
"FStar.Pervasives.Native.Mktuple2",
"Lib.ByteSequence.lbytes",
"Lib.Sequence.lseq",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"S... | [] | false | false | false | false | false | let squeeze_inner
(rateInBytes: size_nat{0 < rateInBytes /\ rateInBytes <= 200})
(outputByteLen: size_nat)
(i: size_nat{i < outputByteLen / rateInBytes})
(s: state)
: Tot (state & lbytes rateInBytes) =
| let block = storeState rateInBytes s in
let s = state_permute s in
s, block | false |
Spec.SHA3.fst | Spec.SHA3.state_pi_rho_inner | val state_pi_rho_inner : i: Lib.IntTypes.size_nat{i < 24} ->
_: (Lib.IntTypes.uint64 * Lib.Sequence.lseq Lib.IntTypes.uint64 25)
-> Lib.IntTypes.uint64 * Spec.SHA3.state | let state_pi_rho_inner (i:size_nat{i < 24}) (current, s) : (uint64 & state) =
let r = keccak_rotc.[i] in
let _Y = v keccak_piln.[i] in
let temp = s.[_Y] in
let s = s.[_Y] <- rotl current r in
let current = temp in
current, s | {
"file_name": "specs/Spec.SHA3.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 12,
"end_line": 55,
"start_col": 0,
"start_line": 49
} | module Spec.SHA3
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open FStar.Mul
open Lib.LoopCombinators
open Spec.SHA3.Constants
#reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0"
unfold
type state = lseq uint64 25
unfold
type index = n:size_nat{n < 5}
let get (s:state) (x:index) (y:index) : Tot... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.Constants.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": false,
"full_module": "Spec.SHA3.Constants",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
i: Lib.IntTypes.size_nat{i < 24} ->
_: (Lib.IntTypes.uint64 * Lib.Sequence.lseq Lib.IntTypes.uint64 25)
-> Lib.IntTypes.uint64 * Spec.SHA3.state | Prims.Tot | [
"total"
] | [] | [
"Lib.IntTypes.size_nat",
"Prims.b2t",
"Prims.op_LessThan",
"FStar.Pervasives.Native.tuple2",
"Lib.IntTypes.uint64",
"Lib.Sequence.lseq",
"FStar.Pervasives.Native.Mktuple2",
"Spec.SHA3.state",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Prims.eq2",
"FStar.Seq.Base.index",
... | [] | false | false | false | false | false | let state_pi_rho_inner (i: size_nat{i < 24}) (current, s) : (uint64 & state) =
| let r = keccak_rotc.[ i ] in
let _Y = v keccak_piln.[ i ] in
let temp = s.[ _Y ] in
let s = s.[ _Y ] <- rotl current r in
let current = temp in
current, s | false | |
Spec.SHA3.fst | Spec.SHA3.state_theta_inner_s | val state_theta_inner_s (_C: lseq uint64 5) (x: index) (s: state) : Tot state | val state_theta_inner_s (_C: lseq uint64 5) (x: index) (s: state) : Tot state | let state_theta_inner_s (_C:lseq uint64 5) (x:index) (s:state) : Tot state =
let _D = _C.[(x + 4) % 5] ^. (rotl _C.[(x + 1) % 5] (size 1)) in
repeati 5 (state_theta_inner_s_inner x _D) s | {
"file_name": "specs/Spec.SHA3.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 46,
"end_line": 39,
"start_col": 0,
"start_line": 37
} | module Spec.SHA3
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open FStar.Mul
open Lib.LoopCombinators
open Spec.SHA3.Constants
#reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0"
unfold
type state = lseq uint64 25
unfold
type index = n:size_nat{n < 5}
let get (s:state) (x:index) (y:index) : Tot... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.Constants.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": false,
"full_module": "Spec.SHA3.Constants",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | _C: Lib.Sequence.lseq Lib.IntTypes.uint64 5 -> x: Spec.SHA3.index -> s: Spec.SHA3.state
-> Spec.SHA3.state | Prims.Tot | [
"total"
] | [] | [
"Lib.Sequence.lseq",
"Lib.IntTypes.uint64",
"Spec.SHA3.index",
"Spec.SHA3.state",
"Lib.LoopCombinators.repeati",
"Spec.SHA3.state_theta_inner_s_inner",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Lib.IntTypes.op_Hat_Dot",
"Lib.Sequence.op_String_Access",
"Prims.op_Modulus",
... | [] | false | false | false | false | false | let state_theta_inner_s (_C: lseq uint64 5) (x: index) (s: state) : Tot state =
| let _D = _C.[ (x + 4) % 5 ] ^. (rotl _C.[ (x + 1) % 5 ] (size 1)) in
repeati 5 (state_theta_inner_s_inner x _D) s | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.read_leaf | val read_leaf
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(r: leaf_reader p)
(#rrel #rel: _)
(sin: slice rrel rel)
(pin: U32.t)
(sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(pout_from... | val read_leaf
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(r: leaf_reader p)
(#rrel #rel: _)
(sin: slice rrel rel)
(pin: U32.t)
(sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(pout_from... | let read_leaf
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(r: leaf_reader p)
(#rrel #rel: _)
(sin: slice rrel rel)
(pin: U32.t)
(sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(pout_from0: U32.t)
(h0: HS.mem {
k.parser_kind_subkind == Som... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 1111,
"start_col": 0,
"start_line": 1093
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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: LowParse.Low.Base.leaf_reader p ->
sin: LowParse.Slice.slice rrel rel ->
pin: FStar.UInt32.t ->
sout:
LowParse.Slice.slice (LowParse.Slice.srel_of_buffer_srel (LowStar.Buffer.trivial_preorder LowParse.Bytes.byte
))
(LowParse.Slice.srel_of_buffer_srel (LowStar.Buffer.trivi... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Low.Base.leaf_reader",
"LowParse.Slice.srel",
"LowParse.Bytes.byte",
"LowParse.Slice.slice",
"FStar.UInt32.t",
"LowParse.Slice.srel_of_buffer_srel",
"LowStar.Buffer.trivial_preorder",
"FStar.Monotonic.HyperStack.mem",
"Prim... | [] | false | false | false | false | false | let read_leaf
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(r: leaf_reader p)
(#rrel #rel: _)
(sin: slice rrel rel)
(pin: U32.t)
(sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial_preorder _)))
(pout_from... | GReader (Ghost.hide (contents p h0 sin pin)) (fun _ -> r sin pin) | false |
Spec.SHA3.fst | Spec.SHA3.absorb_next | val absorb_next (s: state) (rateInBytes: size_nat{rateInBytes > 0 /\ rateInBytes <= 200})
: Tot state | val absorb_next (s: state) (rateInBytes: size_nat{rateInBytes > 0 /\ rateInBytes <= 200})
: Tot state | let absorb_next (s:state) (rateInBytes:size_nat{rateInBytes > 0 /\ rateInBytes <= 200}) : Tot state =
let nextBlock = create rateInBytes (u8 0) in
let nextBlock = nextBlock.[rateInBytes - 1] <- u8 0x80 in
let s = loadState rateInBytes nextBlock s in
state_permute s | {
"file_name": "specs/Spec.SHA3.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 17,
"end_line": 117,
"start_col": 0,
"start_line": 113
} | module Spec.SHA3
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open FStar.Mul
open Lib.LoopCombinators
open Spec.SHA3.Constants
#reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0"
unfold
type state = lseq uint64 25
unfold
type index = n:size_nat{n < 5}
let get (s:state) (x:index) (y:index) : Tot... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.Constants.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": false,
"full_module": "Spec.SHA3.Constants",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false | s: Spec.SHA3.state -> rateInBytes: Lib.IntTypes.size_nat{rateInBytes > 0 /\ rateInBytes <= 200}
-> Spec.SHA3.state | Prims.Tot | [
"total"
] | [] | [
"Spec.SHA3.state",
"Lib.IntTypes.size_nat",
"Prims.l_and",
"Prims.b2t",
"Prims.op_GreaterThan",
"Prims.op_LessThanOrEqual",
"Spec.SHA3.state_permute",
"Lib.Sequence.lseq",
"Lib.IntTypes.int_t",
"Lib.IntTypes.U64",
"Lib.IntTypes.SEC",
"Spec.SHA3.loadState",
"Lib.IntTypes.U8",
"Prims.eq2",
... | [] | false | false | false | false | false | let absorb_next (s: state) (rateInBytes: size_nat{rateInBytes > 0 /\ rateInBytes <= 200})
: Tot state =
| let nextBlock = create rateInBytes (u8 0) in
let nextBlock = nextBlock.[ rateInBytes - 1 ] <- u8 0x80 in
let s = loadState rateInBytes nextBlock s in
state_permute s | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.olwriter_singleton | val olwriter_singleton
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial... | val olwriter_singleton
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial... | let olwriter_singleton
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p { k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0 } )
(#h0: HS.mem)
(#sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(#pout_from0: U32.t)
(w:... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 789,
"start_col": 0,
"start_line": 762
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"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 | w: LowParse.Low.Writers.owriter s h0 sout pout_from0
-> x:
LowParse.Low.Writers.olwriter s h0 sout pout_from0
{ LowParse.Low.Writers.olwvalue x ==
(match LowParse.Low.Writers.owvalue w with
| FStar.Pervasives.Native.None #_ -> FStar.Pervasives.Native.None
| FStar.Pervasives.Nativ... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"Prims.l_and",
"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",
... | [] | false | false | false | false | false | let olwriter_singleton
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(#s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0})
(#h0: HS.mem)
(#sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel (B.trivial... | OLWriter
(Ghost.hide (match owvalue w with
| None -> None
| Some x -> Some [x]))
(fun pout_from ->
let res = owrite w pout_from in
if res `U32.lt` (max_uint32 `U32.sub` 1ul)
then
let h = HST.get () in
valid_list_nil p h sout res;
valid_list_cons p h sout pou... | false |
LowParse.Low.Writers.fst | LowParse.Low.Writers.wjcopy | val wjcopy
(#k #t: _)
(#p: parser k t)
(s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(j: jumper p)
(#rrel #rel: _)
(sin: slice rrel rel)
(pin_from: U32.t)
(sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel... | val wjcopy
(#k #t: _)
(#p: parser k t)
(s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(j: jumper p)
(#rrel #rel: _)
(sin: slice rrel rel)
(pin_from: U32.t)
(sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel... | let wjcopy
(#k: _)
(#t: _)
(#p: parser k t)
(s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(j: jumper p)
(#rrel #rel: _)
(sin: slice rrel rel)
(pin_from: U32.t)
(sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _)))
(sout_from0: U32.t)... | {
"file_name": "src/lowparse/LowParse.Low.Writers.fst",
"git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa",
"git_url": "https://github.com/project-everest/everparse.git",
"project_name": "everparse"
} | {
"end_col": 3,
"end_line": 899,
"start_col": 0,
"start_line": 879
} | module LowParse.Low.Writers
include LowParse.Low.Base
module HS = FStar.HyperStack
module HST = FStar.HyperStack.ST
module B = LowStar.Buffer
module U32 = FStar.UInt32
module L = FStar.List.Tot
inline_for_extraction
noextract
let fswriter
(#k: parser_kind)
(#t: Type)
(#p: parser k t)
(s: serializer p { k.pars... | {
"checked_file": "/",
"dependencies": [
"prims.fst.checked",
"LowStar.Buffer.fst.checked",
"LowParse.Low.Base.fst.checked",
"FStar.UInt32.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fsti.checked",
"FStar.List.Tot.fst.checked",
"FStar.HyperStack.ST.fsti.ch... | [
{
"abbrev": true,
"full_module": "FStar.List.Tot",
"short_module": "L"
},
{
"abbrev": true,
"full_module": "FStar.UInt32",
"short_module": "U32"
},
{
"abbrev": true,
"full_module": "LowStar.Buffer",
"short_module": "B"
},
{
"abbrev": true,
"full_module": "FSta... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 8,
"max_ifuel": 2,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
s:
LowParse.Spec.Base.serializer p
{ Mkparser_kind'?.parser_kind_subkind k ==
FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong } ->
j: LowParse.Low.Base.jumper p ->
sin: LowParse.Slice.slice rrel rel ->
pin_from: FStar.UInt32.t ->
sout:
LowParse.Slice.slice... | Prims.Tot | [
"total"
] | [] | [
"LowParse.Spec.Base.parser_kind",
"LowParse.Spec.Base.parser",
"LowParse.Spec.Base.serializer",
"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.B... | [] | false | false | false | false | false | let wjcopy
(#k #t: _)
(#p: parser k t)
(s: serializer p {k.parser_kind_subkind == Some ParserStrong})
(j: jumper p)
(#rrel #rel: _)
(sin: slice rrel rel)
(pin_from: U32.t)
(sout:
slice (srel_of_buffer_srel (B.trivial_preorder _))
(srel_of_buffer_srel... | Writer (Ghost.hide (contents p h0 sin pin_from))
(fun sout_from -> copy_weak p j sin pin_from sout sout_from) | false |
Spec.SHA3.fst | Spec.SHA3.keccak | val keccak:
rate:size_nat{rate % 8 == 0 /\ rate / 8 > 0 /\ rate <= 1600}
-> capacity:size_nat{capacity + rate == 1600}
-> inputByteLen:nat
-> input:bytes{length input == inputByteLen}
-> delimitedSuffix:byte_t
-> outputByteLen:size_nat ->
Tot (lbytes outputByteLen) | val keccak:
rate:size_nat{rate % 8 == 0 /\ rate / 8 > 0 /\ rate <= 1600}
-> capacity:size_nat{capacity + rate == 1600}
-> inputByteLen:nat
-> input:bytes{length input == inputByteLen}
-> delimitedSuffix:byte_t
-> outputByteLen:size_nat ->
Tot (lbytes outputByteLen) | let keccak rate capacity inputByteLen input delimitedSuffix outputByteLen =
let rateInBytes = rate / 8 in
let s = create 25 (u64 0) in
let s = absorb s rateInBytes inputByteLen input delimitedSuffix in
squeeze s rateInBytes outputByteLen | {
"file_name": "specs/Spec.SHA3.fst",
"git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872",
"git_url": "https://github.com/project-everest/hacl-star.git",
"project_name": "hacl-star"
} | {
"end_col": 37,
"end_line": 200,
"start_col": 0,
"start_line": 196
} | module Spec.SHA3
open Lib.IntTypes
open Lib.Sequence
open Lib.ByteSequence
open FStar.Mul
open Lib.LoopCombinators
open Spec.SHA3.Constants
#reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0"
unfold
type state = lseq uint64 25
unfold
type index = n:size_nat{n < 5}
let get (s:state) (x:index) (y:index) : Tot... | {
"checked_file": "/",
"dependencies": [
"Spec.SHA3.Constants.fst.checked",
"prims.fst.checked",
"Lib.Sequence.fsti.checked",
"Lib.LoopCombinators.fsti.checked",
"Lib.IntTypes.fsti.checked",
"Lib.ByteSequence.fsti.checked",
"FStar.Pervasives.Native.fst.checked",
"FStar.Pervasives.fst... | [
{
"abbrev": false,
"full_module": "Spec.SHA3.Constants",
"short_module": null
},
{
"abbrev": false,
"full_module": "Lib.LoopCombinators",
"short_module": null
},
{
"abbrev": false,
"full_module": "FStar.Mul",
"short_module": null
},
{
"abbrev": false,
"full_mo... | {
"detail_errors": false,
"detail_hint_replay": false,
"initial_fuel": 2,
"initial_ifuel": 1,
"max_fuel": 0,
"max_ifuel": 0,
"no_plugins": false,
"no_smt": false,
"no_tactics": false,
"quake_hi": 1,
"quake_keep": false,
"quake_lo": 1,
"retry": false,
"reuse_hint_for": null,
"smtencoding_el... | false |
rate: Lib.IntTypes.size_nat{rate % 8 == 0 /\ rate / 8 > 0 /\ rate <= 1600} ->
capacity: Lib.IntTypes.size_nat{capacity + rate == 1600} ->
inputByteLen: Prims.nat ->
input: Lib.ByteSequence.bytes{Lib.Sequence.length input == inputByteLen} ->
delimitedSuffix: Lib.IntTypes.byte_t ->
outputByteLen:... | Prims.Tot | [
"total"
] | [] | [
"Lib.IntTypes.size_nat",
"Prims.l_and",
"Prims.eq2",
"Prims.int",
"Prims.op_Modulus",
"Prims.b2t",
"Prims.op_GreaterThan",
"Prims.op_Division",
"Prims.op_LessThanOrEqual",
"Prims.op_Addition",
"Prims.nat",
"Lib.ByteSequence.bytes",
"Lib.Sequence.length",
"Lib.IntTypes.uint_t",
"Lib.IntTy... | [] | false | false | false | false | false | let keccak rate capacity inputByteLen input delimitedSuffix outputByteLen =
| let rateInBytes = rate / 8 in
let s = create 25 (u64 0) in
let s = absorb s rateInBytes inputByteLen input delimitedSuffix in
squeeze s rateInBytes outputByteLen | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.