file_name
stringlengths
5
52
name
stringlengths
4
95
original_source_type
stringlengths
0
23k
source_type
stringlengths
9
23k
source_definition
stringlengths
9
57.9k
source
dict
source_range
dict
file_context
stringlengths
0
721k
dependencies
dict
opens_and_abbrevs
listlengths
2
94
vconfig
dict
interleaved
bool
1 class
verbose_type
stringlengths
1
7.42k
effect
stringclasses
118 values
effect_flags
listlengths
0
2
mutual_with
listlengths
0
11
ideal_premises
listlengths
0
236
proof_features
listlengths
0
1
is_simple_lemma
bool
2 classes
is_div
bool
2 classes
is_proof
bool
2 classes
is_simply_typed
bool
2 classes
is_type
bool
2 classes
partial_definition
stringlengths
5
3.99k
completed_definiton
stringlengths
1
1.63M
isa_cross_project_example
bool
1 class
Hacl.HPKE.Interface.DH.fst
Hacl.HPKE.Interface.DH.dh_p256
val dh_p256:dh_st (DH.DH_P256) True
val dh_p256:dh_st (DH.DH_P256) True
let dh_p256 : dh_st (DH.DH_P256) True = fun o k i -> push_frame(); let tmp = create (size 64) (u8 0) in (**) let h0 = HyperStack.ST.get() in (**) nat_from_bytes_le_zero_is_zero 32 (as_seq h0 (gsub tmp (size 0) (size 32))); (**) nat_from_bytes_le_zero_is_zero 32 (as_seq h0 (gsub tmp (size 32) (size 32))); le...
{ "file_name": "code/hpke/Hacl.HPKE.Interface.DH.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 26, "end_line": 138, "start_col": 0, "start_line": 128 }
module Hacl.HPKE.Interface.DH open FStar.HyperStack open FStar.HyperStack.All module HST = FStar.HyperStack.ST open Lib.Buffer open Lib.IntTypes open Lib.ByteBuffer module DH = Spec.Agile.DH module S = Spec.Agile.HPKE #reset-options "--z3rlimit 20 --fuel 0 --ifuel 1" unfold noextract let nsize_key (a:DH.algorithm)...
{ "checked_file": "/", "dependencies": [ "Vale.X64.CPU_Features_s.fst.checked", "Spec.Agile.HPKE.fsti.checked", "Spec.Agile.DH.fst.checked", "prims.fst.checked", "Meta.Attribute.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", ...
[ { "abbrev": true, "full_module": "Spec.Agile.HPKE", "short_module": "S" }, { "abbrev": true, "full_module": "Spec.Agile.DH", "short_module": "DH" }, { "abbrev": false, "full_module": "Lib.ByteBuffer", "short_module": null }, { "abbrev": false, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.HPKE.Interface.DH.dh_st Spec.Agile.DH.DH_P256 Prims.l_True
Prims.Tot
[ "total" ]
[]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "Hacl.HPKE.Interface.DH.nsize_public", "Spec.Agile.DH.DH_P256", "Hacl.HPKE.Interface.DH.nsize_key", "FStar.UInt32.__uint_to_t", "Prims.bool", "FStar.UInt32.t", "Prims.unit", "FStar.HyperStack.ST.pop_frame", "Lib.Buffer.copy", "Lib.Buffer.MUT", "Hac...
[]
false
false
false
true
false
let dh_p256:dh_st (DH.DH_P256) True =
fun o k i -> push_frame (); let tmp = create (size 64) (u8 0) in let h0 = HyperStack.ST.get () in nat_from_bytes_le_zero_is_zero 32 (as_seq h0 (gsub tmp (size 0) (size 32))); nat_from_bytes_le_zero_is_zero 32 (as_seq h0 (gsub tmp (size 32) (size 32))); let res = Hacl.Impl.P256.DH.ecp256dh_r tmp i k in cop...
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.mk_impl
val mk_impl (a: hash_alg) (m: m_spec a) : impl
val mk_impl (a: hash_alg) (m: m_spec a) : impl
let mk_impl (a:hash_alg) (m:m_spec a) : impl = (|a, m|)
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 55, "end_line": 52, "start_col": 0, "start_line": 52 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Hash.Definitions.hash_alg -> m: Hacl.Hash.Definitions.m_spec a -> Hacl.Hash.Definitions.impl
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Hacl.Hash.Definitions.m_spec", "Prims.Mkdtuple2", "Hacl.Hash.Definitions.impl" ]
[]
false
false
false
false
false
let mk_impl (a: hash_alg) (m: m_spec a) : impl =
(| a, m |)
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.get_alg
val get_alg (i: impl) : hash_alg
val get_alg (i: impl) : hash_alg
let get_alg (i:impl) : hash_alg = match i with (|a, m|) -> a
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 28, "end_line": 56, "start_col": 0, "start_line": 55 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: Hacl.Hash.Definitions.impl -> Spec.Hash.Definitions.hash_alg
Prims.Tot
[ "total" ]
[]
[ "Hacl.Hash.Definitions.impl", "Spec.Hash.Definitions.hash_alg", "Hacl.Hash.Definitions.m_spec" ]
[]
false
false
false
true
false
let get_alg (i: impl) : hash_alg =
match i with | (| a , m |) -> a
false
Hacl.Impl.Exponentiation.fst
Hacl.Impl.Exponentiation.lemma_bit_xor_is_sum_mod2
val lemma_bit_xor_is_sum_mod2: #a_t:inttype_a -> a:uint_t a_t SEC -> b:uint_t a_t SEC -> Lemma (requires v a <= 1 /\ v b <= 1) (ensures v (a ^. b) == (v a + v b) % 2)
val lemma_bit_xor_is_sum_mod2: #a_t:inttype_a -> a:uint_t a_t SEC -> b:uint_t a_t SEC -> Lemma (requires v a <= 1 /\ v b <= 1) (ensures v (a ^. b) == (v a + v b) % 2)
let lemma_bit_xor_is_sum_mod2 #a_t a b = match a_t with | U32 -> logxor_spec a b; assert_norm (UInt32.logxor 0ul 0ul == 0ul); assert_norm (UInt32.logxor 0ul 1ul == 1ul); assert_norm (UInt32.logxor 1ul 0ul == 1ul); assert_norm (UInt32.logxor 1ul 1ul == 0ul) | U64 -> logxor_spec a b; ass...
{ "file_name": "code/bignum/Hacl.Impl.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 46, "end_line": 98, "start_col": 0, "start_line": 85 }
module Hacl.Impl.Exponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module Loops = Lib.LoopCombinators module S = Lib.Exponentiation module BD = Hacl.Bignum.Definitions module BN = Hacl.Bignum mod...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.fsti.checked", "Ha...
[ { "abbrev": true, "full_module": "Hacl.Impl.PrecompTable", "short_module": "PT" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": true, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Lib.IntTypes.uint_t a_t Lib.IntTypes.SEC -> b: Lib.IntTypes.uint_t a_t Lib.IntTypes.SEC -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v a <= 1 /\ Lib.IntTypes.v b <= 1) (ensures Lib.IntTypes.v (a ^. b) == (Lib.IntTypes.v a + Lib.IntTypes.v b) % 2)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Impl.Exponentiation.Definitions.inttype_a", "Lib.IntTypes.uint_t", "Lib.IntTypes.SEC", "FStar.Pervasives.assert_norm", "Prims.eq2", "FStar.UInt32.t", "FStar.UInt32.logxor", "FStar.UInt32.__uint_to_t", "Prims.unit", "Lib.IntTypes.logxor_spec", "FStar.UInt64.t", "FStar.UInt64.logxor", "F...
[]
false
false
true
false
false
let lemma_bit_xor_is_sum_mod2 #a_t a b =
match a_t with | U32 -> logxor_spec a b; assert_norm (UInt32.logxor 0ul 0ul == 0ul); assert_norm (UInt32.logxor 0ul 1ul == 1ul); assert_norm (UInt32.logxor 1ul 0ul == 1ul); assert_norm (UInt32.logxor 1ul 1ul == 0ul) | U64 -> logxor_spec a b; assert_norm (UInt64.logxor 0uL 0uL == 0uL); assert_norm (UInt6...
false
Hacl.Impl.Exponentiation.fst
Hacl.Impl.Exponentiation.cswap2
val cswap2: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> bit:uint_t a_t SEC{v bit <= 1} -> p1:lbuffer (uint_t a_t SEC) len -> p2:lbuffer (uint_t a_t SEC) len -> Stack unit (requires fun h -> live h p1 /\ live h p2 /\ disjoint p1 p2 /\ k.to.li...
val cswap2: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> bit:uint_t a_t SEC{v bit <= 1} -> p1:lbuffer (uint_t a_t SEC) len -> p2:lbuffer (uint_t a_t SEC) len -> Stack unit (requires fun h -> live h p1 /\ live h p2 /\ disjoint p1 p2 /\ k.to.li...
let cswap2 #a_t len ctx_len k bit p1 p2 = let h0 = ST.get () in BN.cswap2 len bit p1 p2; SN.cswap2_lemma bit (as_seq h0 p1) (as_seq h0 p2)
{ "file_name": "code/bignum/Hacl.Impl.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 51, "end_line": 78, "start_col": 0, "start_line": 75 }
module Hacl.Impl.Exponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module Loops = Lib.LoopCombinators module S = Lib.Exponentiation module BD = Hacl.Bignum.Definitions module BN = Hacl.Bignum mod...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.fsti.checked", "Ha...
[ { "abbrev": true, "full_module": "Hacl.Impl.PrecompTable", "short_module": "PT" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": true, "full...
{ "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
len: Lib.IntTypes.size_t{Lib.IntTypes.v len > 0} -> ctx_len: Lib.IntTypes.size_t -> k: Hacl.Impl.Exponentiation.Definitions.concrete_ops a_t len ctx_len -> bit: Lib.IntTypes.uint_t a_t Lib.IntTypes.SEC {Lib.IntTypes.v bit <= 1} -> p1: Lib.Buffer.lbuffer (Lib.IntTypes.uint_t a_t Lib.IntTypes.SEC) le...
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Exponentiation.Definitions.inttype_a", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Exponentiation.Definitions.concrete_ops", "Lib.IntTypes.uint_t", "Lib.IntTypes.SEC", "Prims.op_LessThanOrEqual", "L...
[]
false
true
false
false
false
let cswap2 #a_t len ctx_len k bit p1 p2 =
let h0 = ST.get () in BN.cswap2 len bit p1 p2; SN.cswap2_lemma bit (as_seq h0 p1) (as_seq h0 p2)
false
Hacl.Impl.Exponentiation.fst
Hacl.Impl.Exponentiation.lexp_pow2
val lexp_pow2: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> ctx:lbuffer (uint_t a_t SEC) ctx_len -> a:lbuffer (uint_t a_t SEC) len -> b:size_t -> res:lbuffer (uint_t a_t SEC) len -> Stack unit (requires fun h -> live h res /\ live h ctx /\ live...
val lexp_pow2: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> ctx:lbuffer (uint_t a_t SEC) ctx_len -> a:lbuffer (uint_t a_t SEC) len -> b:size_t -> res:lbuffer (uint_t a_t SEC) len -> Stack unit (requires fun h -> live h res /\ live h ctx /\ live...
let lexp_pow2 #a_t len ctx_len k ctx a b res = copy res a; let h0 = ST.get () in [@ inline_let] let refl1 i : GTot k.to.a_spec = k.to.refl (as_seq h0 res) in [@ inline_let] let spec h0 = S.sqr k.to.comm_monoid in [@ inline_let] let inv h (i:nat{i <= v b}) = modifies (loc res) h0 h /\ k.to.linv ...
{ "file_name": "code/bignum/Hacl.Impl.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 23, "end_line": 166, "start_col": 0, "start_line": 148 }
module Hacl.Impl.Exponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module Loops = Lib.LoopCombinators module S = Lib.Exponentiation module BD = Hacl.Bignum.Definitions module BN = Hacl.Bignum mod...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.fsti.checked", "Ha...
[ { "abbrev": true, "full_module": "Hacl.Impl.PrecompTable", "short_module": "PT" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": true, "full...
{ "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
len: Lib.IntTypes.size_t{Lib.IntTypes.v len > 0} -> ctx_len: Lib.IntTypes.size_t -> k: Hacl.Impl.Exponentiation.Definitions.concrete_ops a_t len ctx_len -> ctx: Lib.Buffer.lbuffer (Lib.IntTypes.uint_t a_t Lib.IntTypes.SEC) ctx_len -> a: Lib.Buffer.lbuffer (Lib.IntTypes.uint_t a_t Lib.IntTypes.SEC) ...
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Exponentiation.Definitions.inttype_a", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Exponentiation.Definitions.concrete_ops", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint_t", "Lib.IntTypes.SEC", "Lib.Loo...
[]
false
true
false
false
false
let lexp_pow2 #a_t len ctx_len k ctx a b res =
copy res a; let h0 = ST.get () in [@@ inline_let ]let refl1 i : GTot k.to.a_spec = k.to.refl (as_seq h0 res) in [@@ inline_let ]let spec h0 = S.sqr k.to.comm_monoid in [@@ inline_let ]let inv h (i: nat{i <= v b}) = modifies (loc res) h0 h /\ k.to.linv (as_seq h res) /\ k.to.refl (as_seq h res) == Loops.repeat i (sp...
false
Hacl.Impl.Exponentiation.fst
Hacl.Impl.Exponentiation.bn_get_bits_c
val bn_get_bits_c: #b_t:inttype_a -> bLen:size_t -> bBits:size_t{(v bBits - 1) / bits b_t < v bLen} -> b:lbuffer (uint_t b_t SEC) bLen -> l:size_t{0 < v l /\ v l < bits b_t /\ 0 < v bBits % v l} -> Stack (uint_t b_t SEC) (requires fun h -> live h b /\ BD.bn_v h b < pow2 (v bBits)) (ensures fun h0...
val bn_get_bits_c: #b_t:inttype_a -> bLen:size_t -> bBits:size_t{(v bBits - 1) / bits b_t < v bLen} -> b:lbuffer (uint_t b_t SEC) bLen -> l:size_t{0 < v l /\ v l < bits b_t /\ 0 < v bBits % v l} -> Stack (uint_t b_t SEC) (requires fun h -> live h b /\ BD.bn_v h b < pow2 (v bBits)) (ensures fun h0...
let bn_get_bits_c #b_t bLen bBits b l = Math.Lemmas.euclidean_division_definition (v bBits) (v l); assert (v (bBits /. l *! l) == v bBits / v l * v l); let i = bBits /. l *! l in assert (v i == v bBits / v l * v l); assert (v i <= v bBits - 1); Math.Lemmas.lemma_div_le (v i) (v bBits - 1) (bits b_t); ass...
{ "file_name": "code/bignum/Hacl.Impl.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 27, "end_line": 253, "start_col": 0, "start_line": 241 }
module Hacl.Impl.Exponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module Loops = Lib.LoopCombinators module S = Lib.Exponentiation module BD = Hacl.Bignum.Definitions module BN = Hacl.Bignum mod...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.fsti.checked", "Ha...
[ { "abbrev": true, "full_module": "Hacl.Impl.PrecompTable", "short_module": "PT" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": true, "full...
{ "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
bLen: Lib.IntTypes.size_t -> bBits: Lib.IntTypes.size_t{(Lib.IntTypes.v bBits - 1) / Lib.IntTypes.bits b_t < Lib.IntTypes.v bLen} -> b: Lib.Buffer.lbuffer (Lib.IntTypes.uint_t b_t Lib.IntTypes.SEC) bLen -> l: Lib.IntTypes.size_t { 0 < Lib.IntTypes.v l /\ Lib.IntTypes.v l < Lib.IntTy...
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Exponentiation.Definitions.inttype_a", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_LessThan", "Prims.op_Division", "Prims.op_Subtraction", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Lib.IntTypes.bits", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint_t", "Lib.IntTypes.SE...
[]
false
true
false
false
false
let bn_get_bits_c #b_t bLen bBits b l =
Math.Lemmas.euclidean_division_definition (v bBits) (v l); assert (v (bBits /. l *! l) == (v bBits / v l) * v l); let i = bBits /. l *! l in assert (v i == (v bBits / v l) * v l); assert (v i <= v bBits - 1); Math.Lemmas.lemma_div_le (v i) (v bBits - 1) (bits b_t); assert (v i / bits b_t < v bLen); let h0 = ST.get () i...
false
Hacl.Impl.Exponentiation.fst
Hacl.Impl.Exponentiation.bn_get_bits_l
val bn_get_bits_l: #b_t:inttype_a -> bLen:size_t -> bBits:size_t{(v bBits - 1) / bits b_t < v bLen} -> b:lbuffer (uint_t b_t SEC) bLen -> l:size_t{0 < v l /\ v l < bits b_t} -> i:size_t{v i < v bBits / v l} -> Stack (uint_t b_t SEC) (requires fun h -> live h b /\ BD.bn_v h b < pow2 (v bBits)) (e...
val bn_get_bits_l: #b_t:inttype_a -> bLen:size_t -> bBits:size_t{(v bBits - 1) / bits b_t < v bLen} -> b:lbuffer (uint_t b_t SEC) bLen -> l:size_t{0 < v l /\ v l < bits b_t} -> i:size_t{v i < v bBits / v l} -> Stack (uint_t b_t SEC) (requires fun h -> live h b /\ BD.bn_v h b < pow2 (v bBits)) (e...
let bn_get_bits_l #b_t bLen bBits b l i = Math.Lemmas.euclidean_division_definition (v bBits) (v l); assert (v (bBits -! bBits %. l) = v bBits - v bBits % v l); [@inline_let] let bk = bBits -! bBits %. l in assert (v bk == v bBits - v bBits % v l); Math.Lemmas.lemma_mult_le_left (v l) (v i + 1) (v bBits / v ...
{ "file_name": "code/bignum/Hacl.Impl.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 27, "end_line": 225, "start_col": 0, "start_line": 206 }
module Hacl.Impl.Exponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module Loops = Lib.LoopCombinators module S = Lib.Exponentiation module BD = Hacl.Bignum.Definitions module BN = Hacl.Bignum mod...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.fsti.checked", "Ha...
[ { "abbrev": true, "full_module": "Hacl.Impl.PrecompTable", "short_module": "PT" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": true, "full...
{ "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
bLen: Lib.IntTypes.size_t -> bBits: Lib.IntTypes.size_t{(Lib.IntTypes.v bBits - 1) / Lib.IntTypes.bits b_t < Lib.IntTypes.v bLen} -> b: Lib.Buffer.lbuffer (Lib.IntTypes.uint_t b_t Lib.IntTypes.SEC) bLen -> l: Lib.IntTypes.size_t{0 < Lib.IntTypes.v l /\ Lib.IntTypes.v l < Lib.IntTypes.bits b_t} ->...
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Exponentiation.Definitions.inttype_a", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_LessThan", "Prims.op_Division", "Prims.op_Subtraction", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Lib.IntTypes.bits", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint_t", "Lib.IntTypes.SE...
[]
false
true
false
false
false
let bn_get_bits_l #b_t bLen bBits b l i =
Math.Lemmas.euclidean_division_definition (v bBits) (v l); assert (v (bBits -! bBits %. l) = v bBits - v bBits % v l); [@@ inline_let ]let bk = bBits -! bBits %. l in assert (v bk == v bBits - v bBits % v l); Math.Lemmas.lemma_mult_le_left (v l) (v i + 1) (v bBits / v l); assert (v l * (v i + 1) <= v l * (v bBits / v l...
false
Hacl.Impl.Exponentiation.fst
Hacl.Impl.Exponentiation.lprecomp_get_consttime
val lprecomp_get_consttime: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> l:size_window_t a_t len -> table_len:table_len_t len -> pow_a_to_small_b_st a_t len ctx_len k l table_len (table_inv_precomp len ctx_len k l table_len)
val lprecomp_get_consttime: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> l:size_window_t a_t len -> table_len:table_len_t len -> pow_a_to_small_b_st a_t len ctx_len k l table_len (table_inv_precomp len ctx_len k l table_len)
let lprecomp_get_consttime #a_t len ctx_len k l table_len ctx a table bits_l tmp = PT.lprecomp_get_consttime #a_t len ctx_len k a table_len table bits_l tmp
{ "file_name": "code/bignum/Hacl.Impl.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 75, "end_line": 505, "start_col": 0, "start_line": 504 }
module Hacl.Impl.Exponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module Loops = Lib.LoopCombinators module S = Lib.Exponentiation module BD = Hacl.Bignum.Definitions module BN = Hacl.Bignum mod...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.fsti.checked", "Ha...
[ { "abbrev": true, "full_module": "Hacl.Impl.PrecompTable", "short_module": "PT" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": true, "full...
{ "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
len: Lib.IntTypes.size_t{Lib.IntTypes.v len > 0} -> ctx_len: Lib.IntTypes.size_t -> k: Hacl.Impl.Exponentiation.Definitions.concrete_ops a_t len ctx_len -> l: Hacl.Impl.Exponentiation.size_window_t a_t len -> table_len: Hacl.Impl.Exponentiation.table_len_t len -> Hacl.Impl.Exponentiation.pow_a_to...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Exponentiation.Definitions.inttype_a", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Exponentiation.Definitions.concrete_ops", "Hacl.Impl.Exponentiation.size_window_t", "Hacl.Impl.Exponentiation.table_len...
[]
false
false
false
false
false
let lprecomp_get_consttime #a_t len ctx_len k l table_len ctx a table bits_l tmp =
PT.lprecomp_get_consttime #a_t len ctx_len k a table_len table bits_l tmp
false
Hacl.Impl.Exponentiation.fst
Hacl.Impl.Exponentiation.lexp_fw_f_st
val lexp_fw_f_st : a_t: Hacl.Impl.Exponentiation.Definitions.inttype_a -> len: Lib.IntTypes.size_t{Lib.IntTypes.v len > 0} -> ctx_len: Lib.IntTypes.size_t -> k: Hacl.Impl.Exponentiation.Definitions.concrete_ops a_t len ctx_len -> l: Hacl.Impl.Exponentiation.size_window_t a_t len -> table_len: Hacl.I...
let lexp_fw_f_st (a_t:inttype_a) (len:size_t{v len > 0}) (ctx_len:size_t) (k:concrete_ops a_t len ctx_len) (l:size_window_t a_t len) (table_len:table_len_t len) (table_inv:table_inv_t a_t len table_len) = ctx:lbuffer (uint_t a_t SEC) ctx_len -> a:lbuffer (uint_t a_t SEC) len -> bLen:size_t -> bB...
{ "file_name": "code/bignum/Hacl.Impl.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 71, "end_line": 350, "start_col": 0, "start_line": 318 }
module Hacl.Impl.Exponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module Loops = Lib.LoopCombinators module S = Lib.Exponentiation module BD = Hacl.Bignum.Definitions module BN = Hacl.Bignum mod...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.fsti.checked", "Ha...
[ { "abbrev": true, "full_module": "Hacl.Impl.PrecompTable", "short_module": "PT" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": true, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a_t: Hacl.Impl.Exponentiation.Definitions.inttype_a -> len: Lib.IntTypes.size_t{Lib.IntTypes.v len > 0} -> ctx_len: Lib.IntTypes.size_t -> k: Hacl.Impl.Exponentiation.Definitions.concrete_ops a_t len ctx_len -> l: Hacl.Impl.Exponentiation.size_window_t a_t len -> table_len: Hacl.Impl.Exponentia...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Exponentiation.Definitions.inttype_a", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Exponentiation.Definitions.concrete_ops", "Hacl.Impl.Exponentiation.size_window_t", "Hacl.Impl.Exponentiation.table_len...
[]
false
false
false
false
true
let lexp_fw_f_st (a_t: inttype_a) (len: size_t{v len > 0}) (ctx_len: size_t) (k: concrete_ops a_t len ctx_len) (l: size_window_t a_t len) (table_len: table_len_t len) (table_inv: table_inv_t a_t len table_len) =
ctx: lbuffer (uint_t a_t SEC) ctx_len -> a: lbuffer (uint_t a_t SEC) len -> bLen: size_t -> bBits: size_t{(v bBits - 1) / bits a_t < v bLen} -> b: lbuffer (uint_t a_t SEC) bLen -> table: clbuffer (uint_t a_t SEC) (table_len *! len) -> i: size_t{v i < v bBits / v l} -> acc: lbuffer (uint...
false
Hacl.Impl.Exponentiation.fst
Hacl.Impl.Exponentiation.lexp_fw_f
val lexp_fw_f: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> l:size_window_t a_t len -> table_len:table_len_t len -> table_inv:table_inv_t a_t len table_len -> pow_a_to_small_b:pow_a_to_small_b_st a_t len ctx_len k l table_len table_inv -> lexp_fw_f_s...
val lexp_fw_f: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> l:size_window_t a_t len -> table_len:table_len_t len -> table_inv:table_inv_t a_t len table_len -> pow_a_to_small_b:pow_a_to_small_b_st a_t len ctx_len k l table_len table_inv -> lexp_fw_f_s...
let lexp_fw_f #a_t len ctx_len k l table_len table_inv pow_a_to_small_b ctx a bLen bBits b table i acc tmp = lexp_pow2_in_place len ctx_len k ctx acc l; lmul_acc_pow_a_bits_l #a_t len ctx_len k l table_len table_inv pow_a_to_small_b ctx a bLen bBits b table i acc tmp
{ "file_name": "code/bignum/Hacl.Impl.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 116, "end_line": 368, "start_col": 0, "start_line": 366 }
module Hacl.Impl.Exponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module Loops = Lib.LoopCombinators module S = Lib.Exponentiation module BD = Hacl.Bignum.Definitions module BN = Hacl.Bignum mod...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.fsti.checked", "Ha...
[ { "abbrev": true, "full_module": "Hacl.Impl.PrecompTable", "short_module": "PT" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": true, "full...
{ "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
len: Lib.IntTypes.size_t{Lib.IntTypes.v len > 0} -> ctx_len: Lib.IntTypes.size_t -> k: Hacl.Impl.Exponentiation.Definitions.concrete_ops a_t len ctx_len -> l: Hacl.Impl.Exponentiation.size_window_t a_t len -> table_len: Hacl.Impl.Exponentiation.table_len_t len -> table_inv: Hacl.Impl.Exponentia...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Exponentiation.Definitions.inttype_a", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Exponentiation.Definitions.concrete_ops", "Hacl.Impl.Exponentiation.size_window_t", "Hacl.Impl.Exponentiation.table_len...
[]
false
false
false
false
false
let lexp_fw_f #a_t len ctx_len k l table_len table_inv pow_a_to_small_b ctx a bLen bBits b table i acc tmp =
lexp_pow2_in_place len ctx_len k ctx acc l; lmul_acc_pow_a_bits_l #a_t len ctx_len k l table_len table_inv pow_a_to_small_b ctx a bLen bBits b table i acc tmp
false
Hacl.Impl.Exponentiation.fst
Hacl.Impl.Exponentiation.lexp_pow2_in_place
val lexp_pow2_in_place: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> ctx:lbuffer (uint_t a_t SEC) ctx_len -> a:lbuffer (uint_t a_t SEC) len -> b:size_t -> Stack unit (requires fun h -> live h a /\ live h ctx /\ disjoint a ctx /\ k.to.linv (as...
val lexp_pow2_in_place: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> ctx:lbuffer (uint_t a_t SEC) ctx_len -> a:lbuffer (uint_t a_t SEC) len -> b:size_t -> Stack unit (requires fun h -> live h a /\ live h ctx /\ disjoint a ctx /\ k.to.linv (as...
let lexp_pow2_in_place #a_t len ctx_len k ctx acc b = let h0 = ST.get () in [@ inline_let] let refl1 i : GTot k.to.a_spec = k.to.refl (as_seq h0 acc) in [@ inline_let] let spec h0 = S.sqr k.to.comm_monoid in [@ inline_let] let inv h (i:nat{i <= v b}) = modifies (loc acc) h0 h /\ k.to.linv (as_seq...
{ "file_name": "code/bignum/Hacl.Impl.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 23, "end_line": 186, "start_col": 0, "start_line": 169 }
module Hacl.Impl.Exponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module Loops = Lib.LoopCombinators module S = Lib.Exponentiation module BD = Hacl.Bignum.Definitions module BN = Hacl.Bignum mod...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.fsti.checked", "Ha...
[ { "abbrev": true, "full_module": "Hacl.Impl.PrecompTable", "short_module": "PT" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": true, "full...
{ "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
len: Lib.IntTypes.size_t{Lib.IntTypes.v len > 0} -> ctx_len: Lib.IntTypes.size_t -> k: Hacl.Impl.Exponentiation.Definitions.concrete_ops a_t len ctx_len -> ctx: Lib.Buffer.lbuffer (Lib.IntTypes.uint_t a_t Lib.IntTypes.SEC) ctx_len -> a: Lib.Buffer.lbuffer (Lib.IntTypes.uint_t a_t Lib.IntTypes.SEC) ...
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Exponentiation.Definitions.inttype_a", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Exponentiation.Definitions.concrete_ops", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint_t", "Lib.IntTypes.SEC", "Lib.Loo...
[]
false
true
false
false
false
let lexp_pow2_in_place #a_t len ctx_len k ctx acc b =
let h0 = ST.get () in [@@ inline_let ]let refl1 i : GTot k.to.a_spec = k.to.refl (as_seq h0 acc) in [@@ inline_let ]let spec h0 = S.sqr k.to.comm_monoid in [@@ inline_let ]let inv h (i: nat{i <= v b}) = modifies (loc acc) h0 h /\ k.to.linv (as_seq h acc) /\ k.to.refl (as_seq h acc) == Loops.repeat i (spec h0) (refl...
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.extra_state
val extra_state (a: hash_alg) : Type0
val extra_state (a: hash_alg) : Type0
let extra_state (a:hash_alg) : Type0 = match a with | Blake2S -> s:uint_t U64 PUB{ v s % block_length a = 0 } | Blake2B -> s:uint_t U128 PUB{ v s % block_length a = 0 } | MD5 | SHA1 | SHA2_224 | SHA2_256 | SHA2_384 | SHA2_512 | SHA3_224 | SHA3_256 | SHA3_384 | SHA3_512 | Shake128 | Shake256 -> unit
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 75, "end_line": 36, "start_col": 0, "start_line": 29 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Hash.Definitions.hash_alg -> Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Lib.IntTypes.uint_t", "Lib.IntTypes.U64", "Lib.IntTypes.PUB", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "Lib.IntTypes.v", "Spec.Hash.Definitions.block_length", "Lib.IntTypes.U128", "Prims.unit" ]
[]
false
false
false
true
true
let extra_state (a: hash_alg) : Type0 =
match a with | Blake2S -> s: uint_t U64 PUB {v s % block_length a = 0} | Blake2B -> s: uint_t U128 PUB {v s % block_length a = 0} | MD5 | SHA1 | SHA2_224 | SHA2_256 | SHA2_384 | SHA2_512 | SHA3_224 | SHA3_256 | SHA3_384 | SHA3_512 | Shake128 | Shake256 -> unit
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.alloca_st
val alloca_st : i: Hacl.Hash.Definitions.impl -> Type0
let alloca_st (i:impl) = unit -> ST.StackInline (state i) (requires (fun h -> HS.is_stack_region (HS.get_tip h))) (ensures (fun h0 s h1 -> M.(modifies M.loc_none h0 h1) /\ B.frameOf s == HS.get_tip h0 /\ as_seq h1 s == Spec.Agile.Hash.init (get_alg i) /\ B.live h1 s /\ B.fresh_loc (M.loc_buf...
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 40, "end_line": 213, "start_col": 0, "start_line": 205 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: Hacl.Hash.Definitions.impl -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Hash.Definitions.impl", "Prims.unit", "Hacl.Hash.Definitions.state", "FStar.Monotonic.HyperStack.mem", "Prims.b2t", "FStar.Monotonic.HyperStack.is_stack_region", "FStar.Monotonic.HyperStack.get_tip", "Prims.l_and", "LowStar.Monotonic.Buffer.modifies", "LowStar.Monotonic.Buffer.loc_none", "...
[]
false
false
false
true
true
let alloca_st (i: impl) =
unit -> ST.StackInline (state i) (requires (fun h -> HS.is_stack_region (HS.get_tip h))) (ensures (fun h0 s h1 -> M.(modifies M.loc_none h0 h1) /\ B.frameOf s == HS.get_tip h0 /\ as_seq h1 s == Spec.Agile.Hash.init (get_alg i) /\ B.live h1 s /\ B.fresh_loc (M.lo...
false
Hacl.Impl.Exponentiation.fst
Hacl.Impl.Exponentiation.lprecomp_get_vartime
val lprecomp_get_vartime: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> l:size_window_t a_t len -> table_len:table_len_t len -> pow_a_to_small_b_st a_t len ctx_len k l table_len (table_inv_precomp len ctx_len k l table_len)
val lprecomp_get_vartime: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> l:size_window_t a_t len -> table_len:table_len_t len -> pow_a_to_small_b_st a_t len ctx_len k l table_len (table_inv_precomp len ctx_len k l table_len)
let lprecomp_get_vartime #a_t len ctx_len k l table_len ctx a table bits_l tmp = PT.lprecomp_get_vartime #a_t len ctx_len k a table_len table bits_l tmp
{ "file_name": "code/bignum/Hacl.Impl.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 73, "end_line": 501, "start_col": 0, "start_line": 500 }
module Hacl.Impl.Exponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module Loops = Lib.LoopCombinators module S = Lib.Exponentiation module BD = Hacl.Bignum.Definitions module BN = Hacl.Bignum mod...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.fsti.checked", "Ha...
[ { "abbrev": true, "full_module": "Hacl.Impl.PrecompTable", "short_module": "PT" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": true, "full...
{ "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
len: Lib.IntTypes.size_t{Lib.IntTypes.v len > 0} -> ctx_len: Lib.IntTypes.size_t -> k: Hacl.Impl.Exponentiation.Definitions.concrete_ops a_t len ctx_len -> l: Hacl.Impl.Exponentiation.size_window_t a_t len -> table_len: Hacl.Impl.Exponentiation.table_len_t len -> Hacl.Impl.Exponentiation.pow_a_to...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Exponentiation.Definitions.inttype_a", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Exponentiation.Definitions.concrete_ops", "Hacl.Impl.Exponentiation.size_window_t", "Hacl.Impl.Exponentiation.table_len...
[]
false
false
false
false
false
let lprecomp_get_vartime #a_t len ctx_len k l table_len ctx a table bits_l tmp =
PT.lprecomp_get_vartime #a_t len ctx_len k a table_len table bits_l tmp
false
Hacl.Impl.Exponentiation.fst
Hacl.Impl.Exponentiation.lmul_acc_pow_a_bits_l
val lmul_acc_pow_a_bits_l: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> l:size_window_t a_t len -> table_len:table_len_t len -> table_inv:table_inv_t a_t len table_len -> pow_a_to_small_b:pow_a_to_small_b_st a_t len ctx_len k l table_len table_inv -> ...
val lmul_acc_pow_a_bits_l: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> l:size_window_t a_t len -> table_len:table_len_t len -> table_inv:table_inv_t a_t len table_len -> pow_a_to_small_b:pow_a_to_small_b_st a_t len ctx_len k l table_len table_inv -> ...
let lmul_acc_pow_a_bits_l #a_t len ctx_len k l table_len table_inv pow_a_to_small_b ctx a bLen bBits b table i acc tmp = let h0 = ST.get () in push_frame (); let bits_l = bn_get_bits_l bLen bBits b l i in assert (v bits_l < pow2 (v l)); pow_a_to_small_b ctx (as_seq h0 a) table bits_l tmp; k.lmul ctx acc tm...
{ "file_name": "code/bignum/Hacl.Impl.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 314, "start_col": 0, "start_line": 306 }
module Hacl.Impl.Exponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module Loops = Lib.LoopCombinators module S = Lib.Exponentiation module BD = Hacl.Bignum.Definitions module BN = Hacl.Bignum mod...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.fsti.checked", "Ha...
[ { "abbrev": true, "full_module": "Hacl.Impl.PrecompTable", "short_module": "PT" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": true, "full...
{ "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
len: Lib.IntTypes.size_t{Lib.IntTypes.v len > 0} -> ctx_len: Lib.IntTypes.size_t -> k: Hacl.Impl.Exponentiation.Definitions.concrete_ops a_t len ctx_len -> l: Hacl.Impl.Exponentiation.size_window_t a_t len -> table_len: Hacl.Impl.Exponentiation.table_len_t len -> table_inv: Hacl.Impl.Exponentia...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Exponentiation.Definitions.inttype_a", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Exponentiation.Definitions.concrete_ops", "Hacl.Impl.Exponentiation.size_window_t", "Hacl.Impl.Exponentiation.table_len...
[]
false
false
false
false
false
let lmul_acc_pow_a_bits_l #a_t len ctx_len k l table_len table_inv pow_a_to_small_b ctx a bLen bBits b table i acc tmp =
let h0 = ST.get () in push_frame (); let bits_l = bn_get_bits_l bLen bBits b l i in assert (v bits_l < pow2 (v l)); pow_a_to_small_b ctx (as_seq h0 a) table bits_l tmp; k.lmul ctx acc tmp acc; pop_frame ()
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.blocks_t
val blocks_t : a: Spec.Hash.Definitions.hash_alg -> Type0
let blocks_t (a: hash_alg) = b:B.buffer uint8 { B.length b % block_length a = 0 }
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 54, "end_line": 198, "start_col": 0, "start_line": 197 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Hash.Definitions.hash_alg -> Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "LowStar.Buffer.buffer", "Lib.IntTypes.uint8", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "LowStar.Monotonic.Buffer.length", "LowStar.Buffer.trivial_preorder", "Spec.Hash.Definitions.block_length" ]
[]
false
false
false
true
true
let blocks_t (a: hash_alg) =
b: B.buffer uint8 {B.length b % block_length a = 0}
false
Hacl.Impl.Exponentiation.fst
Hacl.Impl.Exponentiation.lexp_fw_acc0_st
val lexp_fw_acc0_st : a_t: Hacl.Impl.Exponentiation.Definitions.inttype_a -> len: Lib.IntTypes.size_t{Lib.IntTypes.v len > 0} -> ctx_len: Lib.IntTypes.size_t -> k: Hacl.Impl.Exponentiation.Definitions.concrete_ops a_t len ctx_len -> l: Hacl.Impl.Exponentiation.size_window_t a_t len -> table_len: Hac...
let lexp_fw_acc0_st (a_t:inttype_a) (len:size_t{v len > 0}) (ctx_len:size_t) (k:concrete_ops a_t len ctx_len) (l:size_window_t a_t len) (table_len:table_len_t len) (table_inv:table_inv_t a_t len table_len) = ctx:lbuffer (uint_t a_t SEC) ctx_len -> a:lbuffer (uint_t a_t SEC) len -> bLen:size_t ->...
{ "file_name": "code/bignum/Hacl.Impl.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 92, "end_line": 469, "start_col": 0, "start_line": 443 }
module Hacl.Impl.Exponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module Loops = Lib.LoopCombinators module S = Lib.Exponentiation module BD = Hacl.Bignum.Definitions module BN = Hacl.Bignum mod...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.fsti.checked", "Ha...
[ { "abbrev": true, "full_module": "Hacl.Impl.PrecompTable", "short_module": "PT" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": true, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a_t: Hacl.Impl.Exponentiation.Definitions.inttype_a -> len: Lib.IntTypes.size_t{Lib.IntTypes.v len > 0} -> ctx_len: Lib.IntTypes.size_t -> k: Hacl.Impl.Exponentiation.Definitions.concrete_ops a_t len ctx_len -> l: Hacl.Impl.Exponentiation.size_window_t a_t len -> table_len: Hacl.Impl.Exponentia...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Exponentiation.Definitions.inttype_a", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Exponentiation.Definitions.concrete_ops", "Hacl.Impl.Exponentiation.size_window_t", "Hacl.Impl.Exponentiation.table_len...
[]
false
false
false
false
true
let lexp_fw_acc0_st (a_t: inttype_a) (len: size_t{v len > 0}) (ctx_len: size_t) (k: concrete_ops a_t len ctx_len) (l: size_window_t a_t len) (table_len: table_len_t len) (table_inv: table_inv_t a_t len table_len) =
ctx: lbuffer (uint_t a_t SEC) ctx_len -> a: lbuffer (uint_t a_t SEC) len -> bLen: size_t -> bBits: size_t{(v bBits - 1) / bits a_t < v bLen} -> b: lbuffer (uint_t a_t SEC) bLen -> table: clbuffer (uint_t a_t SEC) (table_len *! len) -> acc: lbuffer (uint_t a_t SEC) len -> Stack unit ...
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.malloc_st
val malloc_st : i: Hacl.Hash.Definitions.impl -> Type0
let malloc_st (i:impl) = r:HS.rid -> ST.ST (state i) (requires (fun h -> ST.is_eternal_region r)) (ensures (fun h0 s h1 -> B.live h1 s /\ M.(modifies M.loc_none h0 h1) /\ B.fresh_loc (M.loc_addr_of_buffer s) h0 h1 /\ M.(loc_includes (loc_region_only true r) (loc_addr_of_buffer s)) /\ B.freea...
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 18, "end_line": 224, "start_col": 0, "start_line": 216 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: Hacl.Hash.Definitions.impl -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Hash.Definitions.impl", "FStar.Monotonic.HyperHeap.rid", "Hacl.Hash.Definitions.state", "FStar.Monotonic.HyperStack.mem", "FStar.HyperStack.ST.is_eternal_region", "Prims.l_and", "LowStar.Monotonic.Buffer.live", "Hacl.Hash.Definitions.impl_word", "LowStar.Buffer.trivial_preorder", "LowStar.Mo...
[]
false
false
false
true
true
let malloc_st (i: impl) =
r: HS.rid -> ST.ST (state i) (requires (fun h -> ST.is_eternal_region r)) (ensures (fun h0 s h1 -> B.live h1 s /\ M.(modifies M.loc_none h0 h1) /\ B.fresh_loc (M.loc_addr_of_buffer s) h0 h1 /\ M.(loc_includes (loc_region_only true r) (loc_addr_of_buffer s)) /\ B...
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.init_st
val init_st : i: Hacl.Hash.Definitions.impl -> Type0
let init_st (i:impl) = s:state i -> ST.Stack unit (requires (fun h -> B.live h s)) (ensures (fun h0 _ h1 -> M.(modifies (loc_buffer s) h0 h1) /\ as_seq h1 s == Spec.Agile.Hash.init (get_alg i)))
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 53, "end_line": 232, "start_col": 0, "start_line": 227 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: Hacl.Hash.Definitions.impl -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Hash.Definitions.impl", "Hacl.Hash.Definitions.state", "Prims.unit", "FStar.Monotonic.HyperStack.mem", "LowStar.Monotonic.Buffer.live", "Hacl.Hash.Definitions.impl_word", "LowStar.Buffer.trivial_preorder", "Prims.l_and", "LowStar.Monotonic.Buffer.modifies", "LowStar.Monotonic.Buffer.loc_buff...
[]
false
false
false
true
true
let init_st (i: impl) =
s: state i -> ST.Stack unit (requires (fun h -> B.live h s)) (ensures (fun h0 _ h1 -> M.(modifies (loc_buffer s) h0 h1) /\ as_seq h1 s == Spec.Agile.Hash.init (get_alg i)))
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.m_spec
val m_spec (a: hash_alg) : Type0
val m_spec (a: hash_alg) : Type0
let m_spec (a:hash_alg) : Type0 = match a with | Blake2S | Blake2B -> Blake2.m_spec | MD5 | SHA1 | SHA2_224 | SHA2_256 | SHA2_384 | SHA2_512 | SHA3_224 | SHA3_256 | SHA3_384 | SHA3_512 | Shake128 | Shake256 -> unit
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 75, "end_line": 26, "start_col": 0, "start_line": 20 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Hash.Definitions.hash_alg -> Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Hacl.Impl.Blake2.Core.m_spec", "Prims.unit" ]
[]
false
false
false
true
true
let m_spec (a: hash_alg) : Type0 =
match a with | Blake2S | Blake2B -> Blake2.m_spec | MD5 | SHA1 | SHA2_224 | SHA2_256 | SHA2_384 | SHA2_512 | SHA3_224 | SHA3_256 | SHA3_384 | SHA3_512 | Shake128 | Shake256 -> unit
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.impl_state_length
val impl_state_length : i: Hacl.Hash.Definitions.impl -> Prims.int
let impl_state_length (i:impl) = [@inline_let] let a = get_alg i in match a with | Blake2S | Blake2B -> UInt32.v (4ul *. Blake2.row_len (to_blake_alg a) (get_spec i)) | MD5 | SHA1 | SHA2_224 | SHA2_256 | SHA2_384 | SHA2_512 | SHA3_224 | SHA3_256 | SHA3_384 | SHA3_512 | Shake128 | Shake256 -> state_word_le...
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 90, "end_line": 80, "start_col": 0, "start_line": 73 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: Hacl.Hash.Definitions.impl -> Prims.int
Prims.Tot
[ "total" ]
[]
[ "Hacl.Hash.Definitions.impl", "FStar.UInt32.v", "Lib.IntTypes.op_Star_Dot", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "FStar.UInt32.__uint_to_t", "Hacl.Impl.Blake2.Core.row_len", "Spec.Hash.Definitions.to_blake_alg", "Hacl.Hash.Definitions.get_spec", "Spec.Hash.Definitions.state_word_length", "Pri...
[]
false
false
false
true
false
let impl_state_length (i: impl) =
[@@ inline_let ]let a = get_alg i in match a with | Blake2S | Blake2B -> UInt32.v (4ul *. Blake2.row_len (to_blake_alg a) (get_spec i)) | MD5 | SHA1 | SHA2_224 | SHA2_256 | SHA2_384 | SHA2_512 | SHA3_224 | SHA3_256 | SHA3_384 | SHA3_512 | Shake128 | Shake256 -> state_word_length a
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.impl_word
val impl_word : i: Hacl.Hash.Definitions.impl -> Type0
let impl_word (i:impl) = [@inline_let] let a = get_alg i in match a with | Blake2S | Blake2B -> Blake2.element_t (to_blake_alg a) (get_spec i) | MD5 | SHA1 | SHA2_224 | SHA2_256 | SHA2_384 | SHA2_512 | SHA3_224 | SHA3_256 | SHA3_384 | SHA3_512 | Shake128 | Shake256 -> word a
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 77, "end_line": 70, "start_col": 0, "start_line": 63 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: Hacl.Hash.Definitions.impl -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Hash.Definitions.impl", "Hacl.Impl.Blake2.Core.element_t", "Spec.Hash.Definitions.to_blake_alg", "Hacl.Hash.Definitions.get_spec", "Spec.Hash.Definitions.word", "Spec.Hash.Definitions.hash_alg", "Hacl.Hash.Definitions.get_alg" ]
[]
false
false
false
true
true
let impl_word (i: impl) =
[@@ inline_let ]let a = get_alg i in match a with | Blake2S | Blake2B -> Blake2.element_t (to_blake_alg a) (get_spec i) | MD5 | SHA1 | SHA2_224 | SHA2_256 | SHA2_384 | SHA2_512 | SHA3_224 | SHA3_256 | SHA3_384 | SHA3_512 | Shake128 | Shake256 -> word a
false
Hacl.Impl.Exponentiation.fst
Hacl.Impl.Exponentiation.lemma_pow2_is_divisible_by_2
val lemma_pow2_is_divisible_by_2: l:pos -> Lemma (pow2 l % 2 = 0)
val lemma_pow2_is_divisible_by_2: l:pos -> Lemma (pow2 l % 2 = 0)
let lemma_pow2_is_divisible_by_2 l = Math.Lemmas.pow2_plus 1 (l - 1); assert_norm (pow2 1 = 2); assert (pow2 l = 2 * pow2 (l - 1)); Math.Lemmas.lemma_mod_mul_distr_l 2 (pow2 (l - 1)) 2
{ "file_name": "code/bignum/Hacl.Impl.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 54, "end_line": 513, "start_col": 0, "start_line": 509 }
module Hacl.Impl.Exponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module Loops = Lib.LoopCombinators module S = Lib.Exponentiation module BD = Hacl.Bignum.Definitions module BN = Hacl.Bignum mod...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.fsti.checked", "Ha...
[ { "abbrev": true, "full_module": "Hacl.Impl.PrecompTable", "short_module": "PT" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": true, "full...
{ "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
l: Prims.pos -> FStar.Pervasives.Lemma (ensures Prims.pow2 l % 2 = 0)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.Math.Lemmas.lemma_mod_mul_distr_l", "Prims.pow2", "Prims.op_Subtraction", "Prims.unit", "Prims._assert", "Prims.b2t", "Prims.op_Equality", "Prims.int", "FStar.Mul.op_Star", "FStar.Pervasives.assert_norm", "FStar.Math.Lemmas.pow2_plus" ]
[]
true
false
true
false
false
let lemma_pow2_is_divisible_by_2 l =
Math.Lemmas.pow2_plus 1 (l - 1); assert_norm (pow2 1 = 2); assert (pow2 l = 2 * pow2 (l - 1)); Math.Lemmas.lemma_mod_mul_distr_l 2 (pow2 (l - 1)) 2
false
Hacl.Impl.Exponentiation.fst
Hacl.Impl.Exponentiation.lexp_fw_loop_st
val lexp_fw_loop_st : a_t: Hacl.Impl.Exponentiation.Definitions.inttype_a -> len: Lib.IntTypes.size_t{Lib.IntTypes.v len > 0} -> ctx_len: Lib.IntTypes.size_t -> k: Hacl.Impl.Exponentiation.Definitions.concrete_ops a_t len ctx_len -> l: Hacl.Impl.Exponentiation.size_window_t a_t len -> table_len: Hac...
let lexp_fw_loop_st (a_t:inttype_a) (len:size_t{v len > 0}) (ctx_len:size_t) (k:concrete_ops a_t len ctx_len) (l:size_window_t a_t len) (table_len:table_len_t len) (table_inv:table_inv_t a_t len table_len) = ctx:lbuffer (uint_t a_t SEC) ctx_len -> a:lbuffer (uint_t a_t SEC) len -> bLen:size_t ->...
{ "file_name": "code/bignum/Hacl.Impl.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 66, "end_line": 399, "start_col": 0, "start_line": 372 }
module Hacl.Impl.Exponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module Loops = Lib.LoopCombinators module S = Lib.Exponentiation module BD = Hacl.Bignum.Definitions module BN = Hacl.Bignum mod...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.fsti.checked", "Ha...
[ { "abbrev": true, "full_module": "Hacl.Impl.PrecompTable", "short_module": "PT" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": true, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a_t: Hacl.Impl.Exponentiation.Definitions.inttype_a -> len: Lib.IntTypes.size_t{Lib.IntTypes.v len > 0} -> ctx_len: Lib.IntTypes.size_t -> k: Hacl.Impl.Exponentiation.Definitions.concrete_ops a_t len ctx_len -> l: Hacl.Impl.Exponentiation.size_window_t a_t len -> table_len: Hacl.Impl.Exponentia...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Exponentiation.Definitions.inttype_a", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Exponentiation.Definitions.concrete_ops", "Hacl.Impl.Exponentiation.size_window_t", "Hacl.Impl.Exponentiation.table_len...
[]
false
false
false
false
true
let lexp_fw_loop_st (a_t: inttype_a) (len: size_t{v len > 0}) (ctx_len: size_t) (k: concrete_ops a_t len ctx_len) (l: size_window_t a_t len) (table_len: table_len_t len) (table_inv: table_inv_t a_t len table_len) =
ctx: lbuffer (uint_t a_t SEC) ctx_len -> a: lbuffer (uint_t a_t SEC) len -> bLen: size_t -> bBits: size_t{(v bBits - 1) / bits a_t < v bLen} -> b: lbuffer (uint_t a_t SEC) bLen -> table: clbuffer (uint_t a_t SEC) (table_len *! len) -> acc: lbuffer (uint_t a_t SEC) len -> Stack unit ...
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.fixed_len_impl
val fixed_len_impl : Type0
let fixed_len_impl = i:impl { not (is_shake (dfst i)) }
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 55, "end_line": 317, "start_col": 0, "start_line": 317 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Hash.Definitions.impl", "Prims.b2t", "Prims.op_Negation", "Spec.Hash.Definitions.is_shake", "FStar.Pervasives.dfst", "Spec.Hash.Definitions.hash_alg", "Hacl.Hash.Definitions.m_spec" ]
[]
false
false
false
true
true
let fixed_len_impl =
i: impl{not (is_shake (dfst i))}
false
Hacl.Impl.Exponentiation.fst
Hacl.Impl.Exponentiation.lmul_acc_pow_a_bits_l_st
val lmul_acc_pow_a_bits_l_st : a_t: Hacl.Impl.Exponentiation.Definitions.inttype_a -> len: Lib.IntTypes.size_t{Lib.IntTypes.v len > 0} -> ctx_len: Lib.IntTypes.size_t -> k: Hacl.Impl.Exponentiation.Definitions.concrete_ops a_t len ctx_len -> l: Hacl.Impl.Exponentiation.size_window_t a_t len -> table...
let lmul_acc_pow_a_bits_l_st (a_t:inttype_a) (len:size_t{v len > 0}) (ctx_len:size_t) (k:concrete_ops a_t len ctx_len) (l:size_window_t a_t len) (table_len:table_len_t len) (table_inv:table_inv_t a_t len table_len) = ctx:lbuffer (uint_t a_t SEC) ctx_len -> a:lbuffer (uint_t a_t SEC) len -> bLen:si...
{ "file_name": "code/bignum/Hacl.Impl.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 71, "end_line": 290, "start_col": 0, "start_line": 258 }
module Hacl.Impl.Exponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module Loops = Lib.LoopCombinators module S = Lib.Exponentiation module BD = Hacl.Bignum.Definitions module BN = Hacl.Bignum mod...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.fsti.checked", "Ha...
[ { "abbrev": true, "full_module": "Hacl.Impl.PrecompTable", "short_module": "PT" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": true, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a_t: Hacl.Impl.Exponentiation.Definitions.inttype_a -> len: Lib.IntTypes.size_t{Lib.IntTypes.v len > 0} -> ctx_len: Lib.IntTypes.size_t -> k: Hacl.Impl.Exponentiation.Definitions.concrete_ops a_t len ctx_len -> l: Hacl.Impl.Exponentiation.size_window_t a_t len -> table_len: Hacl.Impl.Exponentia...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Exponentiation.Definitions.inttype_a", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Exponentiation.Definitions.concrete_ops", "Hacl.Impl.Exponentiation.size_window_t", "Hacl.Impl.Exponentiation.table_len...
[]
false
false
false
false
true
let lmul_acc_pow_a_bits_l_st (a_t: inttype_a) (len: size_t{v len > 0}) (ctx_len: size_t) (k: concrete_ops a_t len ctx_len) (l: size_window_t a_t len) (table_len: table_len_t len) (table_inv: table_inv_t a_t len table_len) =
ctx: lbuffer (uint_t a_t SEC) ctx_len -> a: lbuffer (uint_t a_t SEC) len -> bLen: size_t -> bBits: size_t{(v bBits - 1) / bits a_t < v bLen} -> b: lbuffer (uint_t a_t SEC) bLen -> table: clbuffer (uint_t a_t SEC) (table_len *! len) -> i: size_t{v i < v bBits / v l} -> acc: lbuffer (uint...
false
Hacl.Impl.Exponentiation.fst
Hacl.Impl.Exponentiation.lexp_fw_vartime
val lexp_fw_vartime: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> l:size_window_t a_t len -> lexp_fw_st a_t len ctx_len k l
val lexp_fw_vartime: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> l:size_window_t a_t len -> lexp_fw_st a_t len ctx_len k l
let lexp_fw_vartime #a_t len ctx_len k l ctx a bLen bBits b acc = [@inline_let] let table_len = 1ul <<. l in assert (v table_len == pow2 (v l)); Math.Lemmas.pow2_le_compat (v l) 1; assert (1 < v table_len /\ v table_len * v len <= max_size_t); lexp_fw_gen #a_t len ctx_len k l table_len (lprecomp_get_va...
{ "file_name": "code/bignum/Hacl.Impl.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 26, "end_line": 557, "start_col": 0, "start_line": 548 }
module Hacl.Impl.Exponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module Loops = Lib.LoopCombinators module S = Lib.Exponentiation module BD = Hacl.Bignum.Definitions module BN = Hacl.Bignum mod...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.fsti.checked", "Ha...
[ { "abbrev": true, "full_module": "Hacl.Impl.PrecompTable", "short_module": "PT" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": true, "full...
{ "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
len: Lib.IntTypes.size_t{Lib.IntTypes.v len > 0} -> ctx_len: Lib.IntTypes.size_t -> k: Hacl.Impl.Exponentiation.Definitions.concrete_ops a_t len ctx_len -> l: Hacl.Impl.Exponentiation.size_window_t a_t len -> Hacl.Impl.Exponentiation.lexp_fw_st a_t len ctx_len k l
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Exponentiation.Definitions.inttype_a", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Exponentiation.Definitions.concrete_ops", "Hacl.Impl.Exponentiation.size_window_t", "Lib.Buffer.lbuffer", "Lib.IntTyp...
[]
false
false
false
false
false
let lexp_fw_vartime #a_t len ctx_len k l ctx a bLen bBits b acc =
[@@ inline_let ]let table_len = 1ul <<. l in assert (v table_len == pow2 (v l)); Math.Lemmas.pow2_le_compat (v l) 1; assert (1 < v table_len /\ v table_len * v len <= max_size_t); lexp_fw_gen #a_t len ctx_len k l table_len (lprecomp_get_vartime len ctx_len k l table_len) ctx a bLen bBits b acc
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.word_len
val word_len (a: md_alg) : n: size_t{v n = word_length a}
val word_len (a: md_alg) : n: size_t{v n = word_length a}
let word_len (a: md_alg) : n:size_t { v n = word_length a } = match a with | MD5 | SHA1 | SHA2_224 | SHA2_256 -> 4ul | SHA2_384 | SHA2_512 -> 8ul
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 30, "end_line": 117, "start_col": 0, "start_line": 114 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Hash.Definitions.md_alg -> n: Lib.IntTypes.size_t{Lib.IntTypes.v n = Spec.Hash.Definitions.word_length a}
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.md_alg", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.l_or", "Lib.IntTypes.range", "Lib.IntTypes.U32", "Prims.op_GreaterThanOrEqual", "Lib.IntTypes.v", "Lib.IntTypes.PUB", "Spec.Hash.Definitions.word_length" ]
[]
false
false
false
false
false
let word_len (a: md_alg) : n: size_t{v n = word_length a} =
match a with | MD5 | SHA1 | SHA2_224 | SHA2_256 -> 4ul | SHA2_384 | SHA2_512 -> 8ul
false
Hacl.Impl.Exponentiation.fst
Hacl.Impl.Exponentiation.lexp_fw_acc0
val lexp_fw_acc0: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> l:size_window_t a_t len -> table_len:table_len_t len -> table_inv:table_inv_t a_t len table_len -> pow_a_to_small_b:pow_a_to_small_b_st a_t len ctx_len k l table_len table_inv -> lexp_fw_...
val lexp_fw_acc0: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> l:size_window_t a_t len -> table_len:table_len_t len -> table_inv:table_inv_t a_t len table_len -> pow_a_to_small_b:pow_a_to_small_b_st a_t len ctx_len k l table_len table_inv -> lexp_fw_...
let lexp_fw_acc0 #a_t len ctx_len k l table_len table_inv pow_a_to_small_b ctx a bLen bBits b table acc = let h0 = ST.get () in assert (v (bBits %. l) == v bBits % v l); let bits_c = bn_get_bits_c bLen bBits b l in pow_a_to_small_b ctx (as_seq h0 a) table bits_c acc
{ "file_name": "code/bignum/Hacl.Impl.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 53, "end_line": 488, "start_col": 0, "start_line": 484 }
module Hacl.Impl.Exponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module Loops = Lib.LoopCombinators module S = Lib.Exponentiation module BD = Hacl.Bignum.Definitions module BN = Hacl.Bignum mod...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.fsti.checked", "Ha...
[ { "abbrev": true, "full_module": "Hacl.Impl.PrecompTable", "short_module": "PT" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": true, "full...
{ "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
len: Lib.IntTypes.size_t{Lib.IntTypes.v len > 0} -> ctx_len: Lib.IntTypes.size_t -> k: Hacl.Impl.Exponentiation.Definitions.concrete_ops a_t len ctx_len -> l: Hacl.Impl.Exponentiation.size_window_t a_t len -> table_len: Hacl.Impl.Exponentiation.table_len_t len -> table_inv: Hacl.Impl.Exponentia...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Exponentiation.Definitions.inttype_a", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Exponentiation.Definitions.concrete_ops", "Hacl.Impl.Exponentiation.size_window_t", "Hacl.Impl.Exponentiation.table_len...
[]
false
false
false
false
false
let lexp_fw_acc0 #a_t len ctx_len k l table_len table_inv pow_a_to_small_b ctx a bLen bBits b table acc =
let h0 = ST.get () in assert (v (bBits %. l) == v bBits % v l); let bits_c = bn_get_bits_c bLen bBits b l in pow_a_to_small_b ctx (as_seq h0 a) table bits_c acc
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.get_spec
val get_spec (i: impl) : m_spec (get_alg i)
val get_spec (i: impl) : m_spec (get_alg i)
let get_spec (i:impl) : m_spec (get_alg i) = match i with (|a, m|) -> m
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 28, "end_line": 60, "start_col": 0, "start_line": 59 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: Hacl.Hash.Definitions.impl -> Hacl.Hash.Definitions.m_spec (Hacl.Hash.Definitions.get_alg i)
Prims.Tot
[ "total" ]
[]
[ "Hacl.Hash.Definitions.impl", "Spec.Hash.Definitions.hash_alg", "Hacl.Hash.Definitions.m_spec", "Hacl.Hash.Definitions.get_alg" ]
[]
false
false
false
false
false
let get_spec (i: impl) : m_spec (get_alg i) =
match i with | (| a , m |) -> m
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.hash_len
val hash_len (a: fixed_len_alg) : n: size_t{v n = hash_length a}
val hash_len (a: fixed_len_alg) : n: size_t{v n = hash_length a}
let hash_len (a: fixed_len_alg): n:size_t { v n = hash_length a } = match a with | MD5 -> 16ul | SHA1 -> 20ul | SHA2_224 -> 28ul | SHA2_256 -> 32ul | SHA2_384 -> 48ul | SHA2_512 -> 64ul | Blake2S -> 32ul | Blake2B -> 64ul | SHA3_224 -> 28ul | SHA3_256 -> 32ul | SHA3_384 -> 48ul | SHA3_512 -> 6...
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 20, "end_line": 157, "start_col": 0, "start_line": 144 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Hash.Definitions.fixed_len_alg -> n: Lib.IntTypes.size_t{Lib.IntTypes.v n = Spec.Hash.Definitions.hash_length a}
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.fixed_len_alg", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.l_or", "Lib.IntTypes.range", "Lib.IntTypes.U32", "Prims.l_and", "Prims.op_GreaterThanOrEqual", "Prims.op_LessThanOrEqual", "Lib.IntTypes.max_size_t"...
[]
false
false
false
false
false
let hash_len (a: fixed_len_alg) : n: size_t{v n = hash_length a} =
match a with | MD5 -> 16ul | SHA1 -> 20ul | SHA2_224 -> 28ul | SHA2_256 -> 32ul | SHA2_384 -> 48ul | SHA2_512 -> 64ul | Blake2S -> 32ul | Blake2B -> 64ul | SHA3_224 -> 28ul | SHA3_256 -> 32ul | SHA3_384 -> 48ul | SHA3_512 -> 64ul
false
Hacl.Impl.Exponentiation.fst
Hacl.Impl.Exponentiation.lexp_fw_consttime
val lexp_fw_consttime: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> l:size_window_t a_t len -> lexp_fw_st a_t len ctx_len k l
val lexp_fw_consttime: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> l:size_window_t a_t len -> lexp_fw_st a_t len ctx_len k l
let lexp_fw_consttime #a_t len ctx_len k l ctx a bLen bBits b acc = [@inline_let] let table_len = 1ul <<. l in assert (v table_len == pow2 (v l)); Math.Lemmas.pow2_le_compat (v l) 1; assert (1 < v table_len /\ v table_len * v len <= max_size_t); lexp_fw_gen #a_t len ctx_len k l table_len (lprecomp_get_...
{ "file_name": "code/bignum/Hacl.Impl.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 26, "end_line": 569, "start_col": 0, "start_line": 560 }
module Hacl.Impl.Exponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module Loops = Lib.LoopCombinators module S = Lib.Exponentiation module BD = Hacl.Bignum.Definitions module BN = Hacl.Bignum mod...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.fsti.checked", "Ha...
[ { "abbrev": true, "full_module": "Hacl.Impl.PrecompTable", "short_module": "PT" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": true, "full...
{ "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
len: Lib.IntTypes.size_t{Lib.IntTypes.v len > 0} -> ctx_len: Lib.IntTypes.size_t -> k: Hacl.Impl.Exponentiation.Definitions.concrete_ops a_t len ctx_len -> l: Hacl.Impl.Exponentiation.size_window_t a_t len -> Hacl.Impl.Exponentiation.lexp_fw_st a_t len ctx_len k l
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Exponentiation.Definitions.inttype_a", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Exponentiation.Definitions.concrete_ops", "Hacl.Impl.Exponentiation.size_window_t", "Lib.Buffer.lbuffer", "Lib.IntTyp...
[]
false
false
false
false
false
let lexp_fw_consttime #a_t len ctx_len k l ctx a bLen bBits b acc =
[@@ inline_let ]let table_len = 1ul <<. l in assert (v table_len == pow2 (v l)); Math.Lemmas.pow2_le_compat (v l) 1; assert (1 < v table_len /\ v table_len * v len <= max_size_t); lexp_fw_gen #a_t len ctx_len k l table_len (lprecomp_get_consttime len ctx_len k l table_len) ctx a bLen bBits b acc
false
Hacl.Impl.Exponentiation.fst
Hacl.Impl.Exponentiation.lexp_rl_vartime
val lexp_rl_vartime: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> ctx:lbuffer (uint_t a_t SEC) ctx_len -> a:lbuffer (uint_t a_t SEC) len -> bLen:size_t -> bBits:size_t{(v bBits - 1) / bits a_t < v bLen} -> b:lbuffer (uint_t a_t SEC) bLen -> res:lbu...
val lexp_rl_vartime: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> ctx:lbuffer (uint_t a_t SEC) ctx_len -> a:lbuffer (uint_t a_t SEC) len -> bLen:size_t -> bBits:size_t{(v bBits - 1) / bits a_t < v bLen} -> b:lbuffer (uint_t a_t SEC) bLen -> res:lbu...
let lexp_rl_vartime #a_t len ctx_len k ctx a bLen bBits b acc = k.lone ctx acc; let h0 = ST.get () in [@inline_let] let refl1 i : GTot (k.to.a_spec & k.to.a_spec) = (refl (as_seq h0 acc), refl (as_seq h0 a)) in [@inline_let] let spec (h:mem) = S.exp_rl_f k.to.comm_monoid (v bBits) (BD.bn_v h0 b) in ...
{ "file_name": "code/bignum/Hacl.Impl.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 54, "start_col": 0, "start_line": 24 }
module Hacl.Impl.Exponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module Loops = Lib.LoopCombinators module S = Lib.Exponentiation module BD = Hacl.Bignum.Definitions module BN = Hacl.Bignum mod...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.fsti.checked", "Ha...
[ { "abbrev": true, "full_module": "Hacl.Impl.PrecompTable", "short_module": "PT" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": true, "full...
{ "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
len: Lib.IntTypes.size_t{Lib.IntTypes.v len > 0} -> ctx_len: Lib.IntTypes.size_t -> k: Hacl.Impl.Exponentiation.Definitions.concrete_ops a_t len ctx_len -> ctx: Lib.Buffer.lbuffer (Lib.IntTypes.uint_t a_t Lib.IntTypes.SEC) ctx_len -> a: Lib.Buffer.lbuffer (Lib.IntTypes.uint_t a_t Lib.IntTypes.SEC) ...
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Exponentiation.Definitions.inttype_a", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Exponentiation.Definitions.concrete_ops", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint_t", "Lib.IntTypes.SEC", "Prims.o...
[]
false
true
false
false
false
let lexp_rl_vartime #a_t len ctx_len k ctx a bLen bBits b acc =
k.lone ctx acc; let h0 = ST.get () in [@@ inline_let ]let refl1 i : GTot (k.to.a_spec & k.to.a_spec) = (refl (as_seq h0 acc), refl (as_seq h0 a)) in [@@ inline_let ]let spec (h: mem) = S.exp_rl_f k.to.comm_monoid (v bBits) (BD.bn_v h0 b) in [@@ inline_let ]let inv h (i: nat{i <= v bBits}) = modifies (loc a |+| loc ...
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.ev_v
val ev_v (#a: hash_alg) (ev: extra_state a) : Spec.Hash.Definitions.extra_state a
val ev_v (#a: hash_alg) (ev: extra_state a) : Spec.Hash.Definitions.extra_state a
let ev_v (#a:hash_alg) (ev:extra_state a) : Spec.Hash.Definitions.extra_state a = match a with | Blake2S -> v #U64 #PUB ev | Blake2B -> v #U128 #PUB ev | MD5 | SHA1 | SHA2_224 | SHA2_256 | SHA2_384 | SHA2_512 | SHA3_224 | SHA3_256 | SHA3_384 | SHA3_512 | Shake128 | Shake256 -> ()
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 73, "end_line": 46, "start_col": 0, "start_line": 39 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ev: Hacl.Hash.Definitions.extra_state a -> Spec.Hash.Definitions.extra_state a
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Hacl.Hash.Definitions.extra_state", "Lib.IntTypes.v", "Lib.IntTypes.U64", "Lib.IntTypes.PUB", "Lib.IntTypes.U128", "Spec.Hash.Definitions.extra_state" ]
[]
false
false
false
false
false
let ev_v (#a: hash_alg) (ev: extra_state a) : Spec.Hash.Definitions.extra_state a =
match a with | Blake2S -> v #U64 #PUB ev | Blake2B -> v #U128 #PUB ev | MD5 | SHA1 | SHA2_224 | SHA2_256 | SHA2_384 | SHA2_512 | SHA3_224 | SHA3_256 | SHA3_384 | SHA3_512 | Shake128 | Shake256 -> ()
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.block_len
val block_len (a: hash_alg) : n: size_t{v n = block_length a}
val block_len (a: hash_alg) : n: size_t{v n = block_length a}
let block_len (a: hash_alg): n:size_t { v n = block_length a } = match a with | MD5 | SHA1 | SHA2_224 | SHA2_256 -> 64ul | SHA2_384 | SHA2_512 -> 128ul | SHA3_224 -> assert_norm (rate SHA3_224/8/8*8 = 144); 144ul | SHA3_256 -> assert_norm (rate SHA3_256/8/8*8 = 136); 136ul | SHA3_384 -> assert_norm (rate SH...
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 20, "end_line": 131, "start_col": 0, "start_line": 120 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Hash.Definitions.hash_alg -> n: Lib.IntTypes.size_t{Lib.IntTypes.v n = Spec.Hash.Definitions.block_length a}
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "FStar.UInt32.__uint_to_t", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.b2t", "Prims.op_Equality", "Prims.int", "FStar.Mul.op_Star", "Prims.op_Division", "Spec.Hash.Definitions.rate", "Spec.Hash.Definitions.SHA3_224", "Spec.Hash.Definitions.SHA3_256",...
[]
false
false
false
false
false
let block_len (a: hash_alg) : n: size_t{v n = block_length a} =
match a with | MD5 | SHA1 | SHA2_224 | SHA2_256 -> 64ul | SHA2_384 | SHA2_512 -> 128ul | SHA3_224 -> assert_norm ((rate SHA3_224 / 8 / 8) * 8 = 144); 144ul | SHA3_256 -> assert_norm ((rate SHA3_256 / 8 / 8) * 8 = 136); 136ul | SHA3_384 -> assert_norm ((rate SHA3_384 / 8 / 8) * 8 = 104); 104ul | SHA3_512 -> ...
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.pad_st
val pad_st : a: Spec.Hash.Definitions.md_alg -> Type0
let pad_st (a: md_alg) = len:len_t a -> dst:B.buffer uint8 -> ST.Stack unit (requires (fun h -> len_v a len `less_than_max_input_length` a /\ B.live h dst /\ B.length dst = pad_length a (len_v a len))) (ensures (fun h0 _ h1 -> M.(modifies (loc_buffer dst) h0 h1) /\ Seq.equal (B.a...
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 70, "end_line": 255, "start_col": 0, "start_line": 247 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Hash.Definitions.md_alg -> Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.md_alg", "Spec.Hash.Definitions.len_t", "LowStar.Buffer.buffer", "Lib.IntTypes.uint8", "Prims.unit", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "Prims.b2t", "Spec.Hash.Definitions.less_than_max_input_length", "Spec.Hash.Definitions.len_v", "LowStar.Monotonic.Buffer.l...
[]
false
false
false
true
true
let pad_st (a: md_alg) =
len: len_t a -> dst: B.buffer uint8 -> ST.Stack unit (requires (fun h -> (len_v a len) `less_than_max_input_length` a /\ B.live h dst /\ B.length dst = pad_length a (len_v a len))) (ensures (fun h0 _ h1 -> M.(modifies (loc_buffer dst) h0 h1) /\ ...
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.hash_word_len
val hash_word_len (a: md_alg) : n: size_t{v n = hash_word_length a}
val hash_word_len (a: md_alg) : n: size_t{v n = hash_word_length a}
let hash_word_len (a: md_alg): n:size_t { v n = hash_word_length a } = match a with | MD5 -> 4ul | SHA1 -> 5ul | SHA2_224 -> 7ul | SHA2_256 -> 8ul | SHA2_384 -> 6ul | SHA2_512 -> 8ul
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 19, "end_line": 141, "start_col": 0, "start_line": 134 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Hash.Definitions.md_alg -> n: Lib.IntTypes.size_t{Lib.IntTypes.v n = Spec.Hash.Definitions.hash_word_length a}
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.md_alg", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.l_or", "Lib.IntTypes.range", "Lib.IntTypes.U32", "Prims.op_GreaterThanOrEqual", "Lib.IntTypes.v", "Lib.IntTypes.PUB", "Spec.Hash.Definitions.hash_word_leng...
[]
false
false
false
false
false
let hash_word_len (a: md_alg) : n: size_t{v n = hash_word_length a} =
match a with | MD5 -> 4ul | SHA1 -> 5ul | SHA2_224 -> 7ul | SHA2_256 -> 8ul | SHA2_384 -> 6ul | SHA2_512 -> 8ul
false
Hacl.Impl.Exponentiation.fst
Hacl.Impl.Exponentiation.mk_lexp_fw_table
val mk_lexp_fw_table: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> l:size_window_t a_t len -> table_len:table_len_t len -> table_inv:table_inv_t a_t len table_len -> pow_a_to_small_b:pow_a_to_small_b_st a_t len ctx_len k l table_len table_inv -> lexp...
val mk_lexp_fw_table: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> l:size_window_t a_t len -> table_len:table_len_t len -> table_inv:table_inv_t a_t len table_len -> pow_a_to_small_b:pow_a_to_small_b_st a_t len ctx_len k l table_len table_inv -> lexp...
let mk_lexp_fw_table #a_t len ctx_len k l table_len table_inv pow_a_to_small_b ctx a bLen bBits b table res = assert (v (bBits %. l) = v bBits % v l); if bBits %. l <> 0ul then lexp_fw_acc0 len ctx_len k l table_len table_inv pow_a_to_small_b ctx a bLen bBits b table res else k.lone ctx res; lexp_fw_loop le...
{ "file_name": "code/bignum/Hacl.Impl.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 96, "end_line": 496, "start_col": 0, "start_line": 491 }
module Hacl.Impl.Exponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module Loops = Lib.LoopCombinators module S = Lib.Exponentiation module BD = Hacl.Bignum.Definitions module BN = Hacl.Bignum mod...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.fsti.checked", "Ha...
[ { "abbrev": true, "full_module": "Hacl.Impl.PrecompTable", "short_module": "PT" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": true, "full...
{ "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
len: Lib.IntTypes.size_t{Lib.IntTypes.v len > 0} -> ctx_len: Lib.IntTypes.size_t -> k: Hacl.Impl.Exponentiation.Definitions.concrete_ops a_t len ctx_len -> l: Hacl.Impl.Exponentiation.size_window_t a_t len -> table_len: Hacl.Impl.Exponentiation.table_len_t len -> table_inv: Hacl.Impl.Exponentia...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Exponentiation.Definitions.inttype_a", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Exponentiation.Definitions.concrete_ops", "Hacl.Impl.Exponentiation.size_window_t", "Hacl.Impl.Exponentiation.table_len...
[]
false
false
false
false
false
let mk_lexp_fw_table #a_t len ctx_len k l table_len table_inv pow_a_to_small_b ctx a bLen bBits b table res =
assert (v (bBits %. l) = v bBits % v l); if bBits %. l <> 0ul then lexp_fw_acc0 len ctx_len k l table_len table_inv pow_a_to_small_b ctx a bLen bBits b table res else k.lone ctx res; lexp_fw_loop len ctx_len k l table_len table_inv pow_a_to_small_b ctx a bLen bBits b table res
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.impl_state_len
val impl_state_len (i: impl) : s: size_t{size_v s == impl_state_length i}
val impl_state_len (i: impl) : s: size_t{size_v s == impl_state_length i}
let impl_state_len (i:impl) : s:size_t{size_v s == impl_state_length i} = [@inline_let] let a = get_alg i in [@inline_let] let m = get_spec i in match a with | MD5 -> 4ul | SHA1 -> 5ul | SHA2_224 | SHA2_256 | SHA2_384 | SHA2_512 -> 8ul | SHA3_224 | SHA3_256 | SHA3_384 | SHA3_512 | Shake128 | Shake256 -> 2...
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 33, "end_line": 97, "start_col": 0, "start_line": 83 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: Hacl.Hash.Definitions.impl -> s: Lib.IntTypes.size_t{Lib.IntTypes.size_v s == Hacl.Hash.Definitions.impl_state_length i}
Prims.Tot
[ "total" ]
[]
[ "Hacl.Hash.Definitions.impl", "FStar.UInt32.__uint_to_t", "Spec.Hash.Definitions.hash_alg", "FStar.Pervasives.Native.Mktuple2", "Hacl.Impl.Blake2.Core.m_spec", "Lib.IntTypes.size_t", "Prims.eq2", "Prims.int", "Lib.IntTypes.size_v", "Hacl.Hash.Definitions.impl_state_length", "Prims.unit", "Lib....
[]
false
false
false
false
false
let impl_state_len (i: impl) : s: size_t{size_v s == impl_state_length i} =
[@@ inline_let ]let a = get_alg i in [@@ inline_let ]let m = get_spec i in match a with | MD5 -> 4ul | SHA1 -> 5ul | SHA2_224 | SHA2_256 | SHA2_384 | SHA2_512 -> 8ul | SHA3_224 | SHA3_256 | SHA3_384 | SHA3_512 | Shake128 | Shake256 -> 25ul | _ -> mul_mod_lemma 4ul (Blake2.row_len (to_blake_alg a) (get_spec i)); mat...
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.as_seq
val as_seq (#i: impl) (h: HS.mem) (s: state i) : GTot (words_state (get_alg i))
val as_seq (#i: impl) (h: HS.mem) (s: state i) : GTot (words_state (get_alg i))
let as_seq (#i:impl) (h:HS.mem) (s:state i) : GTot (words_state (get_alg i)) = match get_alg i with | Blake2S -> Blake2.state_v #Spec.Blake2.Blake2S #(get_spec i) h s | Blake2B -> Blake2.state_v #Spec.Blake2.Blake2B #(get_spec i) h s | MD5 | SHA1 | SHA2_224 | SHA2_256 | SHA2_384 | SHA2_512 | SHA3_224 | SH...
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 83, "end_line": 111, "start_col": 0, "start_line": 104 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: FStar.Monotonic.HyperStack.mem -> s: Hacl.Hash.Definitions.state i -> Prims.GTot (Spec.Hash.Definitions.words_state (Hacl.Hash.Definitions.get_alg i))
Prims.GTot
[ "sometrivial" ]
[]
[ "Hacl.Hash.Definitions.impl", "FStar.Monotonic.HyperStack.mem", "Hacl.Hash.Definitions.state", "Hacl.Hash.Definitions.get_alg", "Hacl.Impl.Blake2.Core.state_v", "Spec.Blake2.Definitions.Blake2S", "Hacl.Hash.Definitions.get_spec", "Spec.Blake2.Definitions.Blake2B", "LowStar.Monotonic.Buffer.as_seq", ...
[]
false
false
false
false
false
let as_seq (#i: impl) (h: HS.mem) (s: state i) : GTot (words_state (get_alg i)) =
match get_alg i with | Blake2S -> Blake2.state_v #Spec.Blake2.Blake2S #(get_spec i) h s | Blake2B -> Blake2.state_v #Spec.Blake2.Blake2B #(get_spec i) h s | MD5 | SHA1 | SHA2_224 | SHA2_256 | SHA2_384 | SHA2_512 | SHA3_224 | SHA3_256 | SHA3_384 | SHA3_512 | Shake128 | Shake256 -> B.as_seq h s
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.update_multi_st
val update_multi_st : i: Hacl.Hash.Definitions.impl -> Type0
let update_multi_st (i:impl) = s:state i -> ev:extra_state (get_alg i) -> blocks:blocks_t (get_alg i) -> n:size_t { B.length blocks = block_length (get_alg i) * v n } -> ST.Stack unit (requires (fun h -> Spec.Agile.Hash.update_multi_pre (get_alg i) (ev_v ev) (B.as_seq h blocks) /\ B.live h s /...
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 95, "end_line": 272, "start_col": 0, "start_line": 260 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: Hacl.Hash.Definitions.impl -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Hash.Definitions.impl", "Hacl.Hash.Definitions.state", "Hacl.Hash.Definitions.extra_state", "Hacl.Hash.Definitions.get_alg", "Hacl.Hash.Definitions.blocks_t", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_Equality", "Prims.int", "LowStar.Monotonic.Buffer.length", "Lib.IntTypes.uint8", "L...
[]
false
false
false
true
true
let update_multi_st (i: impl) =
s: state i -> ev: extra_state (get_alg i) -> blocks: blocks_t (get_alg i) -> n: size_t{B.length blocks = block_length (get_alg i) * v n} -> ST.Stack unit (requires (fun h -> Spec.Agile.Hash.update_multi_pre (get_alg i) (ev_v ev) (B.as_seq h blocks) /\ B.live h s /\ ...
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.hash_t
val hash_t : a: Spec.Hash.Definitions.fixed_len_alg -> Type0
let hash_t (a: fixed_len_alg) = b:B.buffer uint8 { B.length b = hash_length a }
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 79, "end_line": 200, "start_col": 0, "start_line": 200 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Hash.Definitions.fixed_len_alg -> Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.fixed_len_alg", "LowStar.Buffer.buffer", "Lib.IntTypes.uint8", "Prims.b2t", "Prims.op_Equality", "Prims.nat", "LowStar.Monotonic.Buffer.length", "LowStar.Buffer.trivial_preorder", "Spec.Hash.Definitions.hash_length" ]
[]
false
false
false
true
true
let hash_t (a: fixed_len_alg) =
b: B.buffer uint8 {B.length b = hash_length a}
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.prev_len_t
val prev_len_t : a: Spec.Hash.Definitions.hash_alg -> Type0
let prev_len_t (a: hash_alg) = if is_keccak a then unit else prev_len:len_t a { len_v a prev_len % block_length a = 0 }
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 62, "end_line": 279, "start_col": 0, "start_line": 275 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Hash.Definitions.hash_alg -> Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Spec.Hash.Definitions.is_keccak", "Prims.unit", "Prims.bool", "Spec.Hash.Definitions.len_t", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "Spec.Hash.Definitions.len_v", "Spec.Hash.Definitions.block_length" ]
[]
false
false
false
true
true
let prev_len_t (a: hash_alg) =
if is_keccak a then unit else prev_len: len_t a {len_v a prev_len % block_length a = 0}
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.update_st
val update_st : i: Hacl.Hash.Definitions.impl{Spec.Hash.Definitions.is_md (Hacl.Hash.Definitions.get_alg i)} -> Type0
let update_st (i:impl{is_md (get_alg i)}) = s:state i -> block:B.buffer uint8 { B.length block = block_length (get_alg i) } -> ST.Stack unit (requires (fun h -> B.live h s /\ B.live h block /\ B.disjoint s block)) (ensures (fun h0 _ h1 -> M.(modifies (loc_buffer s) h0 h1) /\ as_seq h1 s ...
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 78, "end_line": 244, "start_col": 0, "start_line": 235 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: Hacl.Hash.Definitions.impl{Spec.Hash.Definitions.is_md (Hacl.Hash.Definitions.get_alg i)} -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Hash.Definitions.impl", "Prims.b2t", "Spec.Hash.Definitions.is_md", "Hacl.Hash.Definitions.get_alg", "Hacl.Hash.Definitions.state", "LowStar.Buffer.buffer", "Lib.IntTypes.uint8", "Prims.op_Equality", "Prims.int", "Prims.l_or", "Prims.op_GreaterThanOrEqual", "Prims.op_disEquality", "Low...
[]
false
false
false
false
true
let update_st (i: impl{is_md (get_alg i)}) =
s: state i -> block: B.buffer uint8 {B.length block = block_length (get_alg i)} -> ST.Stack unit (requires (fun h -> B.live h s /\ B.live h block /\ B.disjoint s block)) (ensures (fun h0 _ h1 -> M.(modifies (loc_buffer s) h0 h1) /\ as_seq h1 s == Spec.Agile.Hash.update (get...
false
Hacl.Impl.Exponentiation.fst
Hacl.Impl.Exponentiation.lexp_fw_gen
val lexp_fw_gen: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> l:size_window_t a_t len -> table_len:table_len_t len{1 < v table_len /\ v table_len == pow2 (v l)} -> lprecomp_get:pow_a_to_small_b_st a_t len ctx_len k l table_len (table_i...
val lexp_fw_gen: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> l:size_window_t a_t len -> table_len:table_len_t len{1 < v table_len /\ v table_len == pow2 (v l)} -> lprecomp_get:pow_a_to_small_b_st a_t len ctx_len k l table_len (table_i...
let lexp_fw_gen #a_t len ctx_len k l table_len lprecomp_get ctx a bLen bBits b res = push_frame (); Math.Lemmas.pow2_lt_compat 32 (v l); lemma_pow2_is_divisible_by_2 (v l); let table = create (table_len *! len) (uint #a_t #SEC 0) in PT.lprecomp_table #a_t len ctx_len k ctx a table_len table; [@inline_let]...
{ "file_name": "code/bignum/Hacl.Impl.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 545, "start_col": 0, "start_line": 528 }
module Hacl.Impl.Exponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module Loops = Lib.LoopCombinators module S = Lib.Exponentiation module BD = Hacl.Bignum.Definitions module BN = Hacl.Bignum mod...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.fsti.checked", "Ha...
[ { "abbrev": true, "full_module": "Hacl.Impl.PrecompTable", "short_module": "PT" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": true, "full...
{ "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
len: Lib.IntTypes.size_t{Lib.IntTypes.v len > 0} -> ctx_len: Lib.IntTypes.size_t -> k: Hacl.Impl.Exponentiation.Definitions.concrete_ops a_t len ctx_len -> l: Hacl.Impl.Exponentiation.size_window_t a_t len -> table_len: Hacl.Impl.Exponentiation.table_len_t len {1 < Lib.IntTypes.v tabl...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Exponentiation.Definitions.inttype_a", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Exponentiation.Definitions.concrete_ops", "Hacl.Impl.Exponentiation.size_window_t", "Hacl.Impl.Exponentiation.table_len...
[]
false
false
false
false
false
let lexp_fw_gen #a_t len ctx_len k l table_len lprecomp_get ctx a bLen bBits b res =
push_frame (); Math.Lemmas.pow2_lt_compat 32 (v l); lemma_pow2_is_divisible_by_2 (v l); let table = create (table_len *! len) (uint #a_t #SEC 0) in PT.lprecomp_table #a_t len ctx_len k ctx a table_len table; [@@ inline_let ]let table_inv:table_inv_t a_t len table_len = table_inv_precomp len ctx_len k l table_len in l...
false
FStar.Tactics.V1.SyntaxHelpers.fst
FStar.Tactics.V1.SyntaxHelpers.collect_arr'
val collect_arr' (bs: list binder) (c: comp) : Tac (list binder * comp)
val collect_arr' (bs: list binder) (c: comp) : Tac (list binder * comp)
let rec collect_arr' (bs : list binder) (c : comp) : Tac (list binder * comp) = begin match inspect_comp c with | C_Total t -> begin match inspect t with | Tv_Arrow b c -> collect_arr' (b::bs) c | _ -> (bs, c) end | _ -> (bs, c) end
{ "file_name": "ulib/FStar.Tactics.V1.SyntaxHelpers.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 7, "end_line": 21, "start_col": 0, "start_line": 11 }
module FStar.Tactics.V1.SyntaxHelpers open FStar.Reflection.V1 open FStar.Tactics.Effect open FStar.Stubs.Tactics.Types open FStar.Stubs.Tactics.V1.Builtins (* These are fully-named variants of functions found in FStar.Reflection *)
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V1.Builtins.fsti.checked", "FStar.Stubs.Tactics.Types.fsti.checked", "FStar.Reflection.V1.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.ch...
[ { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V1.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
bs: Prims.list FStar.Stubs.Reflection.Types.binder -> c: FStar.Stubs.Reflection.Types.comp -> FStar.Tactics.Effect.Tac (Prims.list FStar.Stubs.Reflection.Types.binder * FStar.Stubs.Reflection.Types.comp)
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.list", "FStar.Stubs.Reflection.Types.binder", "FStar.Stubs.Reflection.Types.comp", "FStar.Stubs.Reflection.V1.Builtins.inspect_comp", "FStar.Stubs.Reflection.Types.typ", "FStar.Tactics.V1.SyntaxHelpers.collect_arr'", "Prims.Cons", "FStar.Pervasives.Native.tuple2", "FStar.Stubs.Reflection.V1.D...
[ "recursion" ]
false
true
false
false
false
let rec collect_arr' (bs: list binder) (c: comp) : Tac (list binder * comp) =
match inspect_comp c with | C_Total t -> (match inspect t with | Tv_Arrow b c -> collect_arr' (b :: bs) c | _ -> (bs, c)) | _ -> (bs, c)
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.hash_st
val hash_st : a: Spec.Hash.Definitions.fixed_len_alg -> Type0
let hash_st (a: fixed_len_alg) = output:hash_t a-> input:B.buffer uint8 -> input_len:size_t { B.length input = v input_len } -> ST.Stack unit (requires (fun h -> B.live h input /\ B.live h output /\ B.disjoint input output /\ B.length input `less_than_max_input_length` a)) (ensur...
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 83, "end_line": 341, "start_col": 0, "start_line": 329 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Hash.Definitions.fixed_len_alg -> Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.fixed_len_alg", "Hacl.Hash.Definitions.hash_t", "LowStar.Buffer.buffer", "Lib.IntTypes.uint8", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.l_or", "Prims.op_GreaterThanOrEqual", "Lib.IntTypes.range", "Lib.IntTypes.U32", "LowStar.Monotoni...
[]
false
false
false
true
true
let hash_st (a: fixed_len_alg) =
output: hash_t a -> input: B.buffer uint8 -> input_len: size_t{B.length input = v input_len} -> ST.Stack unit (requires (fun h -> B.live h input /\ B.live h output /\ B.disjoint input output /\ (B.length input) `less_than_max_input_length` a)) (ensures (fun h0 _ h1 ...
false
FStar.Tactics.V1.SyntaxHelpers.fst
FStar.Tactics.V1.SyntaxHelpers.collect_arr_bs
val collect_arr_bs : typ -> Tac (list binder * comp)
val collect_arr_bs : typ -> Tac (list binder * comp)
let collect_arr_bs t = let (bs, c) = collect_arr' [] (pack_comp (C_Total t)) in (List.Tot.Base.rev bs, c)
{ "file_name": "ulib/FStar.Tactics.V1.SyntaxHelpers.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 29, "end_line": 26, "start_col": 0, "start_line": 24 }
module FStar.Tactics.V1.SyntaxHelpers open FStar.Reflection.V1 open FStar.Tactics.Effect open FStar.Stubs.Tactics.Types open FStar.Stubs.Tactics.V1.Builtins (* These are fully-named variants of functions found in FStar.Reflection *) private let rec collect_arr' (bs : list binder) (c : comp) : Tac (list binder * comp...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V1.Builtins.fsti.checked", "FStar.Stubs.Tactics.Types.fsti.checked", "FStar.Reflection.V1.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.ch...
[ { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V1.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: FStar.Stubs.Reflection.Types.typ -> FStar.Tactics.Effect.Tac (Prims.list FStar.Stubs.Reflection.Types.binder * FStar.Stubs.Reflection.Types.comp)
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Stubs.Reflection.Types.typ", "Prims.list", "FStar.Stubs.Reflection.Types.binder", "FStar.Stubs.Reflection.Types.comp", "FStar.Pervasives.Native.Mktuple2", "FStar.List.Tot.Base.rev", "FStar.Pervasives.Native.tuple2", "FStar.Tactics.V1.SyntaxHelpers.collect_arr'", "Prims.Nil", "FStar.Stubs.Re...
[]
false
true
false
false
false
let collect_arr_bs t =
let bs, c = collect_arr' [] (pack_comp (C_Total t)) in (List.Tot.Base.rev bs, c)
false
FStar.Tactics.V1.SyntaxHelpers.fst
FStar.Tactics.V1.SyntaxHelpers.collect_arr
val collect_arr : typ -> Tac (list typ * comp)
val collect_arr : typ -> Tac (list typ * comp)
let collect_arr t = let (bs, c) = collect_arr' [] (pack_comp (C_Total t)) in let ts = List.Tot.Base.map type_of_binder bs in (List.Tot.Base.rev ts, c)
{ "file_name": "ulib/FStar.Tactics.V1.SyntaxHelpers.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 29, "end_line": 32, "start_col": 0, "start_line": 29 }
module FStar.Tactics.V1.SyntaxHelpers open FStar.Reflection.V1 open FStar.Tactics.Effect open FStar.Stubs.Tactics.Types open FStar.Stubs.Tactics.V1.Builtins (* These are fully-named variants of functions found in FStar.Reflection *) private let rec collect_arr' (bs : list binder) (c : comp) : Tac (list binder * comp...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V1.Builtins.fsti.checked", "FStar.Stubs.Tactics.Types.fsti.checked", "FStar.Reflection.V1.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.ch...
[ { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V1.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: FStar.Stubs.Reflection.Types.typ -> FStar.Tactics.Effect.Tac (Prims.list FStar.Stubs.Reflection.Types.typ * FStar.Stubs.Reflection.Types.comp)
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Stubs.Reflection.Types.typ", "Prims.list", "FStar.Stubs.Reflection.Types.binder", "FStar.Stubs.Reflection.Types.comp", "FStar.Pervasives.Native.Mktuple2", "FStar.List.Tot.Base.rev", "FStar.List.Tot.Base.map", "FStar.Reflection.V1.Derived.type_of_binder", "FStar.Pervasives.Native.tuple2", "F...
[]
false
true
false
false
false
let collect_arr t =
let bs, c = collect_arr' [] (pack_comp (C_Total t)) in let ts = List.Tot.Base.map type_of_binder bs in (List.Tot.Base.rev ts, c)
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.prev_len_v
val prev_len_v (#a: _) (prev_len: prev_len_t a) : Spec.Hash.Incremental.Definitions.prev_length_t a
val prev_len_v (#a: _) (prev_len: prev_len_t a) : Spec.Hash.Incremental.Definitions.prev_length_t a
let prev_len_v #a (prev_len: prev_len_t a): Spec.Hash.Incremental.Definitions.prev_length_t a = if is_keccak a then () else len_v a prev_len
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 20, "end_line": 287, "start_col": 0, "start_line": 282 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
prev_len: Hacl.Hash.Definitions.prev_len_t a -> Spec.Hash.Incremental.Definitions.prev_length_t a
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Hacl.Hash.Definitions.prev_len_t", "Spec.Hash.Definitions.is_keccak", "Prims.bool", "Spec.Hash.Definitions.len_v", "Spec.Hash.Incremental.Definitions.prev_length_t" ]
[]
false
false
false
false
false
let prev_len_v #a (prev_len: prev_len_t a) : Spec.Hash.Incremental.Definitions.prev_length_t a =
if is_keccak a then () else len_v a prev_len
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.extra_state_of_prev_length
val extra_state_of_prev_length (#a: _) (x: Spec.Hash.Incremental.Definitions.prev_length_t a) : Spec.Agile.Hash.extra_state a
val extra_state_of_prev_length (#a: _) (x: Spec.Hash.Incremental.Definitions.prev_length_t a) : Spec.Agile.Hash.extra_state a
let extra_state_of_prev_length #a (x: Spec.Hash.Incremental.Definitions.prev_length_t a): Spec.Agile.Hash.extra_state a = match a with | Blake2B | Blake2S -> x | _ -> ()
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 293, "start_col": 0, "start_line": 290 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Spec.Hash.Incremental.Definitions.prev_length_t a -> Spec.Hash.Definitions.extra_state a
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Spec.Hash.Incremental.Definitions.prev_length_t", "Spec.Hash.Definitions.extra_state" ]
[]
false
false
false
false
false
let extra_state_of_prev_length #a (x: Spec.Hash.Incremental.Definitions.prev_length_t a) : Spec.Agile.Hash.extra_state a =
match a with | Blake2B | Blake2S -> x | _ -> ()
false
FStar.Tactics.V1.SyntaxHelpers.fst
FStar.Tactics.V1.SyntaxHelpers.collect_abs'
val collect_abs' (bs: list binder) (t: term) : Tac (list binder * term) (decreases t)
val collect_abs' (bs: list binder) (t: term) : Tac (list binder * term) (decreases t)
let rec collect_abs' (bs : list binder) (t : term) : Tac (list binder * term) (decreases t) = match inspect t with | Tv_Abs b t' -> collect_abs' (b::bs) t' | _ -> (bs, t)
{ "file_name": "ulib/FStar.Tactics.V1.SyntaxHelpers.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 18, "end_line": 39, "start_col": 0, "start_line": 35 }
module FStar.Tactics.V1.SyntaxHelpers open FStar.Reflection.V1 open FStar.Tactics.Effect open FStar.Stubs.Tactics.Types open FStar.Stubs.Tactics.V1.Builtins (* These are fully-named variants of functions found in FStar.Reflection *) private let rec collect_arr' (bs : list binder) (c : comp) : Tac (list binder * comp...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V1.Builtins.fsti.checked", "FStar.Stubs.Tactics.Types.fsti.checked", "FStar.Reflection.V1.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.ch...
[ { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V1.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
bs: Prims.list FStar.Stubs.Reflection.Types.binder -> t: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac (Prims.list FStar.Stubs.Reflection.Types.binder * FStar.Stubs.Reflection.Types.term)
FStar.Tactics.Effect.Tac
[ "" ]
[]
[ "Prims.list", "FStar.Stubs.Reflection.Types.binder", "FStar.Stubs.Reflection.Types.term", "FStar.Tactics.V1.SyntaxHelpers.collect_abs'", "Prims.Cons", "FStar.Pervasives.Native.tuple2", "FStar.Stubs.Reflection.V1.Data.term_view", "FStar.Pervasives.Native.Mktuple2", "FStar.Stubs.Tactics.V1.Builtins.in...
[ "recursion" ]
false
true
false
false
false
let rec collect_abs' (bs: list binder) (t: term) : Tac (list binder * term) (decreases t) =
match inspect t with | Tv_Abs b t' -> collect_abs' (b :: bs) t' | _ -> (bs, t)
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.max_input_len64
val max_input_len64 (a: _) : U64.(x: t{0 < v x /\ (v x) `less_than_max_input_length` a})
val max_input_len64 (a: _) : U64.(x: t{0 < v x /\ (v x) `less_than_max_input_length` a})
let max_input_len64 a: U64.(x:t { 0 < v x /\ v x `less_than_max_input_length` a }) = let _ = allow_inversion hash_alg in match a with | MD5 | SHA1 | SHA2_224 | SHA2_256 -> assert_norm (0 < pow2 61 - 1 && pow2 61 < pow2 64); normalize_term_spec (pow2 61 - 1); U64.uint_to_t (normalize_term (pow2...
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 50, "end_line": 194, "start_col": 0, "start_line": 171 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Hash.Definitions.hash_alg -> x: FStar.UInt64.t { 0 < FStar.UInt64.v x /\ Spec.Hash.Definitions.less_than_max_input_length (FStar.UInt64.v x) a }
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "FStar.UInt64.uint_to_t", "FStar.Pervasives.normalize_term", "FStar.UInt.uint_t", "FStar.UInt64.n", "Prims.op_Subtraction", "Prims.pow2", "Prims.unit", "FStar.Pervasives.normalize_term_spec", "Prims.int", "FStar.Pervasives.assert_norm", "Prims.b2t", "Prims.o...
[]
false
false
false
false
false
let max_input_len64 a : U64.(x: t{0 < v x /\ (v x) `less_than_max_input_length` a}) =
let _ = allow_inversion hash_alg in match a with | MD5 | SHA1 | SHA2_224 | SHA2_256 -> assert_norm (0 < pow2 61 - 1 && pow2 61 < pow2 64); normalize_term_spec (pow2 61 - 1); U64.uint_to_t (normalize_term (pow2 61 - 1)) | SHA2_384 | SHA2_512 -> assert_norm (pow2 64 < pow2 125 - 1); normalize_term_spec (pow2 64...
false
FStar.Tactics.V1.SyntaxHelpers.fst
FStar.Tactics.V1.SyntaxHelpers.collect_abs
val collect_abs : term -> Tac (list binder * term)
val collect_abs : term -> Tac (list binder * term)
let collect_abs t = let (bs, t') = collect_abs' [] t in (List.Tot.Base.rev bs, t')
{ "file_name": "ulib/FStar.Tactics.V1.SyntaxHelpers.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 30, "end_line": 44, "start_col": 0, "start_line": 42 }
module FStar.Tactics.V1.SyntaxHelpers open FStar.Reflection.V1 open FStar.Tactics.Effect open FStar.Stubs.Tactics.Types open FStar.Stubs.Tactics.V1.Builtins (* These are fully-named variants of functions found in FStar.Reflection *) private let rec collect_arr' (bs : list binder) (c : comp) : Tac (list binder * comp...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V1.Builtins.fsti.checked", "FStar.Stubs.Tactics.Types.fsti.checked", "FStar.Reflection.V1.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.ch...
[ { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V1.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac (Prims.list FStar.Stubs.Reflection.Types.binder * FStar.Stubs.Reflection.Types.term)
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Stubs.Reflection.Types.term", "Prims.list", "FStar.Stubs.Reflection.Types.binder", "FStar.Pervasives.Native.Mktuple2", "FStar.List.Tot.Base.rev", "FStar.Pervasives.Native.tuple2", "FStar.Tactics.V1.SyntaxHelpers.collect_abs'", "Prims.Nil" ]
[]
false
true
false
false
false
let collect_abs t =
let bs, t' = collect_abs' [] t in (List.Tot.Base.rev bs, t')
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.finish_st
val finish_st : i: Hacl.Hash.Definitions.fixed_len_impl -> Type0
let finish_st (i:fixed_len_impl) = s:state i -> dst:hash_t (get_alg i) -> ST.Stack unit (requires (fun h -> B.live h s /\ B.live h dst /\ B.disjoint s dst)) (ensures (fun h0 _ h1 -> M.(modifies (loc_buffer dst `loc_union` loc_buffer s) h0 h1) /\ Seq.equal (B.as_seq h1 dst) (Spec.Agile.Hash.finish (get...
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 87, "end_line": 326, "start_col": 0, "start_line": 320 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: Hacl.Hash.Definitions.fixed_len_impl -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Hash.Definitions.fixed_len_impl", "Hacl.Hash.Definitions.state", "Hacl.Hash.Definitions.hash_t", "Hacl.Hash.Definitions.get_alg", "Prims.unit", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "LowStar.Monotonic.Buffer.live", "Hacl.Hash.Definitions.impl_word", "LowStar.Buffer.trivial_preorde...
[]
false
false
false
true
true
let finish_st (i: fixed_len_impl) =
s: state i -> dst: hash_t (get_alg i) -> ST.Stack unit (requires (fun h -> B.live h s /\ B.live h dst /\ B.disjoint s dst)) (ensures (fun h0 _ h1 -> M.(modifies ((loc_buffer dst) `loc_union` (loc_buffer s)) h0 h1) /\ Seq.equal (B.as_seq h1 dst) (Spec.Agile.Hash.finish (get_...
false
Hacl.Impl.Exponentiation.fst
Hacl.Impl.Exponentiation.lexp_fw_loop
val lexp_fw_loop: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> l:size_window_t a_t len -> table_len:table_len_t len -> table_inv:table_inv_t a_t len table_len -> pow_a_to_small_b:pow_a_to_small_b_st a_t len ctx_len k l table_len table_inv -> lexp_fw_...
val lexp_fw_loop: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> l:size_window_t a_t len -> table_len:table_len_t len -> table_inv:table_inv_t a_t len table_len -> pow_a_to_small_b:pow_a_to_small_b_st a_t len ctx_len k l table_len table_inv -> lexp_fw_...
let lexp_fw_loop #a_t len ctx_len k l table_len table_inv pow_a_to_small_b ctx a bLen bBits b table acc = push_frame (); let tmp = create len (uint #a_t #SEC 0) in let h0 = ST.get () in [@ inline_let] let refl1 i : GTot k.to.a_spec = k.to.refl (as_seq h0 acc) in [@inline_let] let spec (h:mem) = S.exp_fw_...
{ "file_name": "code/bignum/Hacl.Impl.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 439, "start_col": 0, "start_line": 414 }
module Hacl.Impl.Exponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module Loops = Lib.LoopCombinators module S = Lib.Exponentiation module BD = Hacl.Bignum.Definitions module BN = Hacl.Bignum mod...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.fsti.checked", "Ha...
[ { "abbrev": true, "full_module": "Hacl.Impl.PrecompTable", "short_module": "PT" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": true, "full...
{ "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
len: Lib.IntTypes.size_t{Lib.IntTypes.v len > 0} -> ctx_len: Lib.IntTypes.size_t -> k: Hacl.Impl.Exponentiation.Definitions.concrete_ops a_t len ctx_len -> l: Hacl.Impl.Exponentiation.size_window_t a_t len -> table_len: Hacl.Impl.Exponentiation.table_len_t len -> table_inv: Hacl.Impl.Exponentia...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Exponentiation.Definitions.inttype_a", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Exponentiation.Definitions.concrete_ops", "Hacl.Impl.Exponentiation.size_window_t", "Hacl.Impl.Exponentiation.table_len...
[]
false
false
false
false
false
let lexp_fw_loop #a_t len ctx_len k l table_len table_inv pow_a_to_small_b ctx a bLen bBits b table acc =
push_frame (); let tmp = create len (uint #a_t #SEC 0) in let h0 = ST.get () in [@@ inline_let ]let refl1 i : GTot k.to.a_spec = k.to.refl (as_seq h0 acc) in [@@ inline_let ]let spec (h: mem) = S.exp_fw_f k.to.comm_monoid (k.to.refl (as_seq h0 a)) (v bBits) (BD.bn_v h0 b) (v l) in [@@ inline_let ]let inv h (i: nat{i ...
false
FStar.Tactics.V1.SyntaxHelpers.fst
FStar.Tactics.V1.SyntaxHelpers.fail
val fail : m: Prims.string -> FStar.Tactics.Effect.Tac a
let fail (#a:Type) (m:string) = raise #a (TacticFailure m)
{ "file_name": "ulib/FStar.Tactics.V1.SyntaxHelpers.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 58, "end_line": 48, "start_col": 0, "start_line": 48 }
module FStar.Tactics.V1.SyntaxHelpers open FStar.Reflection.V1 open FStar.Tactics.Effect open FStar.Stubs.Tactics.Types open FStar.Stubs.Tactics.V1.Builtins (* These are fully-named variants of functions found in FStar.Reflection *) private let rec collect_arr' (bs : list binder) (c : comp) : Tac (list binder * comp...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V1.Builtins.fsti.checked", "FStar.Stubs.Tactics.Types.fsti.checked", "FStar.Reflection.V1.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.ch...
[ { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V1.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
m: Prims.string -> FStar.Tactics.Effect.Tac a
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.string", "FStar.Tactics.Effect.raise", "FStar.Stubs.Tactics.Common.TacticFailure" ]
[]
false
true
false
false
false
let fail (#a: Type) (m: string) =
raise #a (TacticFailure m)
false
FStar.Tactics.V1.SyntaxHelpers.fst
FStar.Tactics.V1.SyntaxHelpers.collect_app'
val collect_app' (args: list argv) (t: term) : Tac (term * list argv)
val collect_app' (args: list argv) (t: term) : Tac (term * list argv)
let rec collect_app' (args : list argv) (t : term) : Tac (term * list argv) = match inspect_unascribe t with | Tv_App l r -> collect_app' (r::args) l | _ -> (t, args)
{ "file_name": "ulib/FStar.Tactics.V1.SyntaxHelpers.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 20, "end_line": 93, "start_col": 0, "start_line": 88 }
module FStar.Tactics.V1.SyntaxHelpers open FStar.Reflection.V1 open FStar.Tactics.Effect open FStar.Stubs.Tactics.Types open FStar.Stubs.Tactics.V1.Builtins (* These are fully-named variants of functions found in FStar.Reflection *) private let rec collect_arr' (bs : list binder) (c : comp) : Tac (list binder * comp...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V1.Builtins.fsti.checked", "FStar.Stubs.Tactics.Types.fsti.checked", "FStar.Reflection.V1.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.ch...
[ { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V1.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
args: Prims.list FStar.Stubs.Reflection.V1.Data.argv -> t: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac (FStar.Stubs.Reflection.Types.term * Prims.list FStar.Stubs.Reflection.V1.Data.argv)
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.list", "FStar.Stubs.Reflection.V1.Data.argv", "FStar.Stubs.Reflection.Types.term", "FStar.Tactics.V1.SyntaxHelpers.collect_app'", "Prims.Cons", "FStar.Pervasives.Native.tuple2", "FStar.Stubs.Reflection.V1.Data.term_view", "FStar.Pervasives.Native.Mktuple2", "Prims.b2t", "FStar.Stubs.Reflect...
[ "recursion" ]
false
true
false
false
false
let rec collect_app' (args: list argv) (t: term) : Tac (term * list argv) =
match inspect_unascribe t with | Tv_App l r -> collect_app' (r :: args) l | _ -> (t, args)
false
FStar.Tactics.V1.SyntaxHelpers.fst
FStar.Tactics.V1.SyntaxHelpers.collect_app
val collect_app : t: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac (FStar.Stubs.Reflection.Types.term * Prims.list FStar.Stubs.Reflection.V1.Data.argv)
let collect_app = collect_app' []
{ "file_name": "ulib/FStar.Tactics.V1.SyntaxHelpers.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 33, "end_line": 95, "start_col": 0, "start_line": 95 }
module FStar.Tactics.V1.SyntaxHelpers open FStar.Reflection.V1 open FStar.Tactics.Effect open FStar.Stubs.Tactics.Types open FStar.Stubs.Tactics.V1.Builtins (* These are fully-named variants of functions found in FStar.Reflection *) private let rec collect_arr' (bs : list binder) (c : comp) : Tac (list binder * comp...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V1.Builtins.fsti.checked", "FStar.Stubs.Tactics.Types.fsti.checked", "FStar.Reflection.V1.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.ch...
[ { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V1.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac (FStar.Stubs.Reflection.Types.term * Prims.list FStar.Stubs.Reflection.V1.Data.argv)
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Tactics.V1.SyntaxHelpers.collect_app'", "Prims.Nil", "FStar.Stubs.Reflection.V1.Data.argv" ]
[]
false
true
false
false
false
let collect_app =
collect_app' []
false
Hacl.Hash.Definitions.fst
Hacl.Hash.Definitions.update_last_st
val update_last_st : i: Hacl.Hash.Definitions.impl -> Type0
let update_last_st (i:impl) = let a = get_alg i in s:state i -> prev_len:prev_len_t a -> input:B.buffer uint8 { (if is_keccak a then True else (B.length input + len_v a prev_len) `less_than_max_input_length` a) /\ B.length input <= block_length a } -> input_len:size_t { B.length input = v input_len ...
{ "file_name": "code/hash/Hacl.Hash.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 63, "end_line": 314, "start_col": 0, "start_line": 296 }
module Hacl.Hash.Definitions module HS = FStar.HyperStack module ST = FStar.HyperStack.ST module M = LowStar.Modifies module B = LowStar.Buffer module Blake2 = Hacl.Impl.Blake2.Core open Lib.IntTypes open Spec.Hash.Definitions open FStar.Mul #set-options "--z3rlimit 25 --fuel 0 --ifuel 1" (** The low-level types t...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.MD.fst.checked", "Spec.Hash.Incremental.Definitions.fst.checked", "Spec.Hash.Incremental.fsti.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "LowStar.Mo...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: Hacl.Hash.Definitions.impl -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Hash.Definitions.impl", "Hacl.Hash.Definitions.state", "Hacl.Hash.Definitions.prev_len_t", "LowStar.Buffer.buffer", "Lib.IntTypes.uint8", "Prims.l_and", "Spec.Hash.Definitions.is_keccak", "Prims.l_True", "Prims.bool", "Prims.b2t", "Spec.Hash.Definitions.less_than_max_input_length", "Prim...
[]
false
false
false
true
true
let update_last_st (i: impl) =
let a = get_alg i in s: state i -> prev_len: prev_len_t a -> input: B.buffer uint8 { (if is_keccak a then True else (B.length input + len_v a prev_len) `less_than_max_input_length` a) /\ B.length input <= block_length a } -> input_len: size_t{B.length inp...
false
LowParse.BitFields.fsti
LowParse.BitFields.uint_t_uint_to_t_v
val uint_t_uint_to_t_v (#tot #t: _) (cl: uint_t tot t) (x: t) : Lemma (cl.uint_to_t (cl.v x) == x) [SMTPat (cl.uint_to_t (cl.v x))]
val uint_t_uint_to_t_v (#tot #t: _) (cl: uint_t tot t) (x: t) : Lemma (cl.uint_to_t (cl.v x) == x) [SMTPat (cl.uint_to_t (cl.v x))]
let uint_t_uint_to_t_v #tot #t (cl: uint_t tot t) (x: t) : Lemma (cl.uint_to_t (cl.v x) == x) [SMTPat (cl.uint_to_t (cl.v x))] = cl.uint_to_t_v x
{ "file_name": "src/lowparse/LowParse.BitFields.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 18, "end_line": 289, "start_col": 0, "start_line": 286 }
module LowParse.BitFields module U = FStar.UInt type ubitfield (tot: nat) (sz: nat) = (x: U.uint_t tot { x < pow2 sz }) // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. val get_bitfield (#tot: pos) (x: U.uint_t tot) (lo: nat) (hi: nat {lo <= hi /\ hi <= tot}) :...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Lo...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": false, "full_module": "LowParse", "short_module": null }, { "abbrev": false, "full_module": "LowParse", ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
cl: LowParse.BitFields.uint_t tot t -> x: t -> FStar.Pervasives.Lemma (ensures Mkuint_t?.uint_to_t cl (Mkuint_t?.v cl x) == x) [SMTPat (Mkuint_t?.uint_to_t cl (Mkuint_t?.v cl x))]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "LowParse.BitFields.uint_t", "LowParse.BitFields.__proj__Mkuint_t__item__uint_to_t_v", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.eq2", "LowParse.BitFields.__proj__Mkuint_t__item__uint_to_t", "LowParse.BitFields.__proj__Mkuint_t__item__v", "Prims.Cons", "FStar.Pervasives.p...
[]
true
false
true
false
false
let uint_t_uint_to_t_v #tot #t (cl: uint_t tot t) (x: t) : Lemma (cl.uint_to_t (cl.v x) == x) [SMTPat (cl.uint_to_t (cl.v x))] =
cl.uint_to_t_v x
false
FStar.Tactics.V1.SyntaxHelpers.fst
FStar.Tactics.V1.SyntaxHelpers.lookup_lb_view
val lookup_lb_view (lbs: list letbinding) (nm: name) : Tac lb_view
val lookup_lb_view (lbs: list letbinding) (nm: name) : Tac lb_view
let lookup_lb_view (lbs:list letbinding) (nm:name) : Tac lb_view = let o = FStar.List.Tot.Base.find (fun lb -> let lbv = inspect_lb lb in (inspect_fv lbv.lb_fv) = nm) lbs in match o with | Some lb -> inspect_lb lb | None -> fail "lookup_lb_view: Name not i...
{ "file_name": "ulib/FStar.Tactics.V1.SyntaxHelpers.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 56, "end_line": 78, "start_col": 0, "start_line": 69 }
module FStar.Tactics.V1.SyntaxHelpers open FStar.Reflection.V1 open FStar.Tactics.Effect open FStar.Stubs.Tactics.Types open FStar.Stubs.Tactics.V1.Builtins (* These are fully-named variants of functions found in FStar.Reflection *) private let rec collect_arr' (bs : list binder) (c : comp) : Tac (list binder * comp...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V1.Builtins.fsti.checked", "FStar.Stubs.Tactics.Types.fsti.checked", "FStar.Reflection.V1.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.ch...
[ { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V1.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
lbs: Prims.list FStar.Stubs.Reflection.Types.letbinding -> nm: FStar.Stubs.Reflection.Types.name -> FStar.Tactics.Effect.Tac FStar.Stubs.Reflection.V1.Data.lb_view
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.list", "FStar.Stubs.Reflection.Types.letbinding", "FStar.Stubs.Reflection.Types.name", "Prims.b2t", "Prims.op_Equality", "FStar.Stubs.Reflection.V1.Builtins.inspect_fv", "FStar.Stubs.Reflection.V1.Data.__proj__Mklb_view__item__lb_fv", "FStar.Stubs.Reflection.V1.Builtins.inspect_lb", "FStar.St...
[]
false
true
false
false
false
let lookup_lb_view (lbs: list letbinding) (nm: name) : Tac lb_view =
let o = FStar.List.Tot.Base.find (fun lb -> let lbv = inspect_lb lb in (inspect_fv lbv.lb_fv) = nm) lbs in match o with | Some lb -> inspect_lb lb | None -> fail "lookup_lb_view: Name not in let group"
false
FStar.Tactics.V1.SyntaxHelpers.fst
FStar.Tactics.V1.SyntaxHelpers.mk_arr
val mk_arr (bs: list binder) (cod: comp) : Tac term
val mk_arr (bs: list binder) (cod: comp) : Tac term
let rec mk_arr (bs: list binder) (cod : comp) : Tac term = match bs with | [] -> fail "mk_arr, empty binders" | [b] -> pack (Tv_Arrow b cod) | (b::bs) -> pack (Tv_Arrow b (pack_comp (C_Total (mk_arr bs cod))))
{ "file_name": "ulib/FStar.Tactics.V1.SyntaxHelpers.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 61, "end_line": 55, "start_col": 0, "start_line": 50 }
module FStar.Tactics.V1.SyntaxHelpers open FStar.Reflection.V1 open FStar.Tactics.Effect open FStar.Stubs.Tactics.Types open FStar.Stubs.Tactics.V1.Builtins (* These are fully-named variants of functions found in FStar.Reflection *) private let rec collect_arr' (bs : list binder) (c : comp) : Tac (list binder * comp...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V1.Builtins.fsti.checked", "FStar.Stubs.Tactics.Types.fsti.checked", "FStar.Reflection.V1.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.ch...
[ { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V1.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
bs: Prims.list FStar.Stubs.Reflection.Types.binder -> cod: FStar.Stubs.Reflection.Types.comp -> FStar.Tactics.Effect.Tac FStar.Stubs.Reflection.Types.term
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.list", "FStar.Stubs.Reflection.Types.binder", "FStar.Stubs.Reflection.Types.comp", "FStar.Tactics.V1.SyntaxHelpers.fail", "FStar.Stubs.Reflection.Types.term", "FStar.Stubs.Tactics.V1.Builtins.pack", "FStar.Stubs.Reflection.V1.Data.Tv_Arrow", "FStar.Stubs.Reflection.V1.Data.term_view", "FStar....
[ "recursion" ]
false
true
false
false
false
let rec mk_arr (bs: list binder) (cod: comp) : Tac term =
match bs with | [] -> fail "mk_arr, empty binders" | [b] -> pack (Tv_Arrow b cod) | b :: bs -> pack (Tv_Arrow b (pack_comp (C_Total (mk_arr bs cod))))
false
Hacl.Impl.Exponentiation.fst
Hacl.Impl.Exponentiation.lexp_mont_ladder_swap_consttime
val lexp_mont_ladder_swap_consttime: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> ctx:lbuffer (uint_t a_t SEC) ctx_len -> a:lbuffer (uint_t a_t SEC) len -> bLen:size_t -> bBits:size_t{(v bBits - 1) / bits a_t < v bLen} -> b:lbuffer (uint_t a_t SEC) b...
val lexp_mont_ladder_swap_consttime: #a_t:inttype_a -> len:size_t{v len > 0} -> ctx_len:size_t -> k:concrete_ops a_t len ctx_len -> ctx:lbuffer (uint_t a_t SEC) ctx_len -> a:lbuffer (uint_t a_t SEC) len -> bLen:size_t -> bBits:size_t{(v bBits - 1) / bits a_t < v bLen} -> b:lbuffer (uint_t a_t SEC) b...
let lexp_mont_ladder_swap_consttime #a_t len ctx_len k ctx a bLen bBits b acc = push_frame (); let sw = create 1ul (uint #a_t #SEC 0) in k.lone ctx acc; let h0 = ST.get () in [@inline_let] let refl1 i : GTot (k.to.a_spec & k.to.a_spec & nat) = (k.to.refl (as_seq h0 acc), k.to.refl (as_seq h0 a), v (LS...
{ "file_name": "code/bignum/Hacl.Impl.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 145, "start_col": 0, "start_line": 102 }
module Hacl.Impl.Exponentiation open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module Loops = Lib.LoopCombinators module S = Lib.Exponentiation module BD = Hacl.Bignum.Definitions module BN = Hacl.Bignum mod...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.fsti.checked", "Ha...
[ { "abbrev": true, "full_module": "Hacl.Impl.PrecompTable", "short_module": "PT" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": true, "full...
{ "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
len: Lib.IntTypes.size_t{Lib.IntTypes.v len > 0} -> ctx_len: Lib.IntTypes.size_t -> k: Hacl.Impl.Exponentiation.Definitions.concrete_ops a_t len ctx_len -> ctx: Lib.Buffer.lbuffer (Lib.IntTypes.uint_t a_t Lib.IntTypes.SEC) ctx_len -> a: Lib.Buffer.lbuffer (Lib.IntTypes.uint_t a_t Lib.IntTypes.SEC) ...
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Exponentiation.Definitions.inttype_a", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Impl.Exponentiation.Definitions.concrete_ops", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint_t", "Lib.IntTypes.SEC", "Prims.o...
[]
false
true
false
false
false
let lexp_mont_ladder_swap_consttime #a_t len ctx_len k ctx a bLen bBits b acc =
push_frame (); let sw = create 1ul (uint #a_t #SEC 0) in k.lone ctx acc; let h0 = ST.get () in [@@ inline_let ]let refl1 i : GTot (k.to.a_spec & k.to.a_spec & nat) = (k.to.refl (as_seq h0 acc), k.to.refl (as_seq h0 a), v (LSeq.index (as_seq h0 sw) 0)) in [@@ inline_let ]let spec (h: mem) = S.exp_mont_ladder_swap_f ...
false
Vale.AsLowStar.MemoryHelpers.fst
Vale.AsLowStar.MemoryHelpers.as_vale_buffer_len
val as_vale_buffer_len (#src #t:base_typ) (x:buf_t src t) : Lemma (V.buffer_length (as_vale_buffer x) == (B.length x * view_n src) / view_n t) [SMTPat (V.buffer_length (as_vale_buffer x))]
val as_vale_buffer_len (#src #t:base_typ) (x:buf_t src t) : Lemma (V.buffer_length (as_vale_buffer x) == (B.length x * view_n src) / view_n t) [SMTPat (V.buffer_length (as_vale_buffer x))]
let as_vale_buffer_len (#src #t:base_typ) (x:buf_t src t) = let db = get_downview x in DV.length_eq db; UV.length_eq (UV.mk_buffer db (ME.uint_view t))
{ "file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.MemoryHelpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 50, "end_line": 24, "start_col": 0, "start_line": 21 }
module Vale.AsLowStar.MemoryHelpers open FStar.Mul open Vale.Arch.HeapImpl open Vale.X64.MemoryAdapters open Vale.Interop.Base module B = LowStar.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView.Down module ME = Vale.X64.Memory module VSig = Vale.AsLowStar.ValeSig module IX64 = Vale.Interop.X64 ...
{ "checked_file": "/", "dependencies": [ "Vale.X64.StateLemmas.fst.checked", "Vale.X64.Stack_Sems.fst.checked", "Vale.X64.Stack_i.fst.checked", "Vale.X64.MemoryAdapters.fst.checked", "Vale.X64.MemoryAdapters.fst.checked", "Vale.X64.Memory_Sems.fst.checked", "Vale.X64.Memory.fst.checked",...
[ { "abbrev": true, "full_module": "Vale.Interop.X64", "short_module": "IX64" }, { "abbrev": true, "full_module": "Vale.AsLowStar.ValeSig", "short_module": "VSig" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "ME" }, { "abbrev": true, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Vale.Interop.Base.buf_t src t -> FStar.Pervasives.Lemma (ensures Vale.X64.Decls.buffer_length (Vale.X64.MemoryAdapters.as_vale_buffer x) == LowStar.Monotonic.Buffer.length x * Vale.Interop.Types.view_n src / Vale.Interop.Types.view_n t) [SMTPat (Vale.X64.Decls.buffer_length (Val...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Vale.Interop.Base.buf_t", "LowStar.BufferView.Up.length_eq", "Vale.Interop.Types.base_typ_as_type", "LowStar.BufferView.Up.mk_buffer", "FStar.UInt8.t", "Vale.X64.Memory.uint_view", "Prims.unit", "LowStar.BufferView.Down.length_eq", "LowStar.BufferView.Down.buffer...
[]
true
false
true
false
false
let as_vale_buffer_len (#src #t: base_typ) (x: buf_t src t) =
let db = get_downview x in DV.length_eq db; UV.length_eq (UV.mk_buffer db (ME.uint_view t))
false
LowParse.BitFields.fsti
LowParse.BitFields.set_bitfield_set_bitfield_same
val set_bitfield_set_bitfield_same (#tot: pos) (x: U.uint_t tot) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (v v': ubitfield tot (hi - lo)) : Lemma (ensures (set_bitfield (set_bitfield x lo hi v) lo hi v' == set_bitfield x lo hi v'))
val set_bitfield_set_bitfield_same (#tot: pos) (x: U.uint_t tot) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (v v': ubitfield tot (hi - lo)) : Lemma (ensures (set_bitfield (set_bitfield x lo hi v) lo hi v' == set_bitfield x lo hi v'))
let set_bitfield_set_bitfield_same (#tot: pos) (x: U.uint_t tot) (lo: nat) (hi: nat { lo <= hi /\ hi <= tot }) (v: ubitfield tot (hi - lo)) (v' : ubitfield tot (hi - lo)) : Lemma (ensures (set_bitfield (set_bitfield x lo hi v) lo hi v' == set_bitfield x lo hi v')) = set_bitfield_set_bitfield_same_gen x lo hi v ...
{ "file_name": "src/lowparse/LowParse.BitFields.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 55, "end_line": 56, "start_col": 0, "start_line": 50 }
module LowParse.BitFields module U = FStar.UInt type ubitfield (tot: nat) (sz: nat) = (x: U.uint_t tot { x < pow2 sz }) // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. val get_bitfield (#tot: pos) (x: U.uint_t tot) (lo: nat) (hi: nat {lo <= hi /\ hi <= tot}) :...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Lo...
[ { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": false, "full_module": "LowParse", "short_module": null }, { "abbrev": false, "full_module": "LowParse", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasive...
{ "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: FStar.UInt.uint_t tot -> lo: Prims.nat -> hi: Prims.nat{lo <= hi /\ hi <= tot} -> v: LowParse.BitFields.ubitfield tot (hi - lo) -> v': LowParse.BitFields.ubitfield tot (hi - lo) -> FStar.Pervasives.Lemma (ensures LowParse.BitFields.set_bitfield (LowParse.BitFields.set_bitfield x lo h...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "LowParse.BitFields.ubitfield", "Prims.op_Subtraction", "LowParse.BitFields.set_bitfield_set_bitfield_same_gen", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.eq2", "LowParse.BitFi...
[]
true
false
true
false
false
let set_bitfield_set_bitfield_same (#tot: pos) (x: U.uint_t tot) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (v v': ubitfield tot (hi - lo)) : Lemma (ensures (set_bitfield (set_bitfield x lo hi v) lo hi v' == set_bitfield x lo hi v')) =
set_bitfield_set_bitfield_same_gen x lo hi v lo hi v'
false
FStar.Tactics.V1.SyntaxHelpers.fst
FStar.Tactics.V1.SyntaxHelpers.mk_arr_curried
val mk_arr_curried (bs: list binder) (cod: comp) : Tac term
val mk_arr_curried (bs: list binder) (cod: comp) : Tac term
let rec mk_arr_curried (bs: list binder) (cod : comp) : Tac term = match bs with | [] -> fail "mk_arr, empty binders" | [b] -> pack_curried (Tv_Arrow b cod) | (b::bs) -> pack_curried (Tv_Arrow b (pack_comp (C_Total (mk_arr_curried bs cod))))
{ "file_name": "ulib/FStar.Tactics.V1.SyntaxHelpers.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 88, "end_line": 61, "start_col": 0, "start_line": 57 }
module FStar.Tactics.V1.SyntaxHelpers open FStar.Reflection.V1 open FStar.Tactics.Effect open FStar.Stubs.Tactics.Types open FStar.Stubs.Tactics.V1.Builtins (* These are fully-named variants of functions found in FStar.Reflection *) private let rec collect_arr' (bs : list binder) (c : comp) : Tac (list binder * comp...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V1.Builtins.fsti.checked", "FStar.Stubs.Tactics.Types.fsti.checked", "FStar.Reflection.V1.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.ch...
[ { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V1.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
bs: Prims.list FStar.Stubs.Reflection.Types.binder -> cod: FStar.Stubs.Reflection.Types.comp -> FStar.Tactics.Effect.Tac FStar.Stubs.Reflection.Types.term
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.list", "FStar.Stubs.Reflection.Types.binder", "FStar.Stubs.Reflection.Types.comp", "FStar.Tactics.V1.SyntaxHelpers.fail", "FStar.Stubs.Reflection.Types.term", "FStar.Stubs.Tactics.V1.Builtins.pack_curried", "FStar.Stubs.Reflection.V1.Data.Tv_Arrow", "FStar.Stubs.Reflection.V1.Data.term_view", ...
[ "recursion" ]
false
true
false
false
false
let rec mk_arr_curried (bs: list binder) (cod: comp) : Tac term =
match bs with | [] -> fail "mk_arr, empty binders" | [b] -> pack_curried (Tv_Arrow b cod) | b :: bs -> pack_curried (Tv_Arrow b (pack_comp (C_Total (mk_arr_curried bs cod))))
false
Steel.FractionalPermission.fst
Steel.FractionalPermission.writeable
val writeable (p: perm) : GTot bool
val writeable (p: perm) : GTot bool
let writeable (p: perm) : GTot bool = MkPerm?.v p = one
{ "file_name": "lib/steel/Steel.FractionalPermission.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 19, "end_line": 33, "start_col": 0, "start_line": 32 }
(* 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": [ "prims.fst.checked", "FStar.Real.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Steel.FractionalPermission.fst" }
[ { "abbrev": false, "full_module": "FStar.Real", "short_module": null }, { "abbrev": false, "full_module": "Steel", "short_module": null }, { "abbrev": false, "full_module": "Steel", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", ...
{ "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.FractionalPermission.perm -> Prims.GTot Prims.bool
Prims.GTot
[ "sometrivial" ]
[]
[ "Steel.FractionalPermission.perm", "Prims.op_Equality", "FStar.Real.real", "Steel.FractionalPermission.__proj__MkPerm__item__v", "FStar.Real.one", "Prims.bool" ]
[]
false
false
false
false
false
let writeable (p: perm) : GTot bool =
MkPerm?.v p = one
false
MerkleTree.Low.VectorExtras.fst
MerkleTree.Low.VectorExtras.shrink
val shrink: #a:Type -> vec:vector a -> new_size:uint32_t{new_size <= size_of vec} -> HST.ST (vector a) (requires (fun h0 -> live h0 vec /\ freeable vec)) (ensures (fun h0 r h1 -> live h1 vec /\ live h1 r /\ size_of r = new_size /\ frameOf r = frameOf vec /\ hmap...
val shrink: #a:Type -> vec:vector a -> new_size:uint32_t{new_size <= size_of vec} -> HST.ST (vector a) (requires (fun h0 -> live h0 vec /\ freeable vec)) (ensures (fun h0 r h1 -> live h1 vec /\ live h1 r /\ size_of r = new_size /\ frameOf r = frameOf vec /\ hmap...
let shrink #a vec new_size = Vec new_size (Vec?.cap vec) (Vec?.vs vec)
{ "file_name": "src/MerkleTree.Low.VectorExtras.fst", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 43, "end_line": 127, "start_col": 0, "start_line": 126 }
module MerkleTree.Low.VectorExtras module B = LowStar.Buffer module S = FStar.Seq module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module U32 = FStar.UInt32 open LowStar.BufferOps open Hacl.Hash.Lemmas open FStar.Integers open LowStar.Modifies open LowStar.Regional open LowStar.Vector open LowStar.RVect...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Vector.fst.checked", "LowStar.RVector.fst.checked", "LowStar.Regional.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Hacl.Hash.Lemmas.fst.checked", ...
[ { "abbrev": true, "full_module": "LowStar.RVector", "short_module": "RV" }, { "abbrev": true, "full_module": "LowStar.Vector", "short_module": "V" }, { "abbrev": false, "full_module": "LowStar.RVector", "short_module": null }, { "abbrev": false, "full_module":...
{ "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
vec: LowStar.Vector.vector a -> new_size: LowStar.Vector.uint32_t{new_size <= LowStar.Vector.size_of vec} -> FStar.HyperStack.ST.ST (LowStar.Vector.vector a)
FStar.HyperStack.ST.ST
[]
[]
[ "LowStar.Vector.vector", "LowStar.Vector.uint32_t", "Prims.b2t", "FStar.Integers.op_Less_Equals", "FStar.Integers.Unsigned", "FStar.Integers.W32", "LowStar.Vector.size_of", "LowStar.Vector.Vec", "LowStar.Vector.__proj__Vec__item__cap", "LowStar.Vector.__proj__Vec__item__vs" ]
[]
false
true
false
false
false
let shrink #a vec new_size =
Vec new_size (Vec?.cap vec) (Vec?.vs vec)
false
FStar.Tactics.V1.SyntaxHelpers.fst
FStar.Tactics.V1.SyntaxHelpers.inspect_unascribe
val inspect_unascribe (t: term) : Tac (tv: term_view{notAscription tv})
val inspect_unascribe (t: term) : Tac (tv: term_view{notAscription tv})
let rec inspect_unascribe (t:term) : Tac (tv:term_view{notAscription tv}) = match inspect t with | Tv_AscribedT t _ _ _ | Tv_AscribedC t _ _ _ -> inspect_unascribe t | tv -> tv
{ "file_name": "ulib/FStar.Tactics.V1.SyntaxHelpers.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 12, "end_line": 85, "start_col": 0, "start_line": 80 }
module FStar.Tactics.V1.SyntaxHelpers open FStar.Reflection.V1 open FStar.Tactics.Effect open FStar.Stubs.Tactics.Types open FStar.Stubs.Tactics.V1.Builtins (* These are fully-named variants of functions found in FStar.Reflection *) private let rec collect_arr' (bs : list binder) (c : comp) : Tac (list binder * comp...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V1.Builtins.fsti.checked", "FStar.Stubs.Tactics.Types.fsti.checked", "FStar.Reflection.V1.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.ch...
[ { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V1.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac (tv: FStar.Stubs.Reflection.V1.Data.term_view{FStar.Stubs.Reflection.V1.Data.notAscription tv})
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Stubs.Reflection.Types.term", "FStar.Pervasives.Native.option", "Prims.bool", "FStar.Tactics.V1.SyntaxHelpers.inspect_unascribe", "FStar.Stubs.Reflection.V1.Data.term_view", "Prims.b2t", "FStar.Stubs.Reflection.V1.Data.notAscription", "FStar.Stubs.Reflection.Types.comp", "FStar.Stubs.Tactics....
[ "recursion" ]
false
true
false
false
false
let rec inspect_unascribe (t: term) : Tac (tv: term_view{notAscription tv}) =
match inspect t with | Tv_AscribedT t _ _ _ | Tv_AscribedC t _ _ _ -> inspect_unascribe t | tv -> tv
false
LowParse.BitFields.fsti
LowParse.BitFields.get_bitfield_partition_prop
val get_bitfield_partition_prop (#tot: pos) (x y: U.uint_t tot) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat) : Tot bool (decreases l)
val get_bitfield_partition_prop (#tot: pos) (x y: U.uint_t tot) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat) : Tot bool (decreases l)
let rec get_bitfield_partition_prop (#tot: pos) (x y: U.uint_t tot) (lo: nat) (hi: nat { lo <= hi /\ hi <= tot }) (l: list nat) : Tot bool (decreases l) = match l with | [] -> get_bitfield x lo hi = get_bitfield y lo hi | mi :: q -> lo <= mi && mi <= hi && get_bitfield_partition_prop x y mi ...
{ "file_name": "src/lowparse/LowParse.BitFields.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 47, "end_line": 176, "start_col": 0, "start_line": 162 }
module LowParse.BitFields module U = FStar.UInt type ubitfield (tot: nat) (sz: nat) = (x: U.uint_t tot { x < pow2 sz }) // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. val get_bitfield (#tot: pos) (x: U.uint_t tot) (lo: nat) (hi: nat {lo <= hi /\ hi <= tot}) :...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Lo...
[ { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": false, "full_module": "LowParse", "short_module": null }, { "abbrev": false, "full_module": "LowParse", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasive...
{ "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: FStar.UInt.uint_t tot -> y: FStar.UInt.uint_t tot -> lo: Prims.nat -> hi: Prims.nat{lo <= hi /\ hi <= tot} -> l: Prims.list Prims.nat -> Prims.Tot Prims.bool
Prims.Tot
[ "total", "" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.list", "Prims.op_Equality", "LowParse.BitFields.ubitfield", "Prims.op_Subtraction", "LowParse.BitFields.get_bitfield", "Prims.op_AmpAmp", "LowParse.BitFields.get_bitfield_partition_p...
[ "recursion" ]
false
false
false
false
false
let rec get_bitfield_partition_prop (#tot: pos) (x y: U.uint_t tot) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (l: list nat) : Tot bool (decreases l) =
match l with | [] -> get_bitfield x lo hi = get_bitfield y lo hi | mi :: q -> lo <= mi && mi <= hi && get_bitfield_partition_prop x y mi hi q && get_bitfield x lo mi = get_bitfield y lo mi
false
Steel.FractionalPermission.fst
Steel.FractionalPermission.lesser_equal_perm
val lesser_equal_perm (p1 p2: perm) : GTot bool
val lesser_equal_perm (p1 p2: perm) : GTot bool
let lesser_equal_perm (p1 p2:perm) : GTot bool = MkPerm?.v p1 <=. MkPerm?.v p2
{ "file_name": "lib/steel/Steel.FractionalPermission.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 32, "end_line": 45, "start_col": 0, "start_line": 44 }
(* 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": [ "prims.fst.checked", "FStar.Real.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Steel.FractionalPermission.fst" }
[ { "abbrev": false, "full_module": "FStar.Real", "short_module": null }, { "abbrev": false, "full_module": "Steel", "short_module": null }, { "abbrev": false, "full_module": "Steel", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", ...
{ "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.FractionalPermission.perm -> p2: Steel.FractionalPermission.perm -> Prims.GTot Prims.bool
Prims.GTot
[ "sometrivial" ]
[]
[ "Steel.FractionalPermission.perm", "FStar.Real.op_Less_Equals_Dot", "Steel.FractionalPermission.__proj__MkPerm__item__v", "Prims.bool" ]
[]
false
false
false
false
false
let lesser_equal_perm (p1 p2: perm) : GTot bool =
MkPerm?.v p1 <=. MkPerm?.v p2
false
Steel.FractionalPermission.fst
Steel.FractionalPermission.lesser_perm
val lesser_perm (p1 p2: perm) : GTot bool
val lesser_perm (p1 p2: perm) : GTot bool
let lesser_perm (p1 p2:perm) : GTot bool = MkPerm?.v p1 <. MkPerm?.v p2
{ "file_name": "lib/steel/Steel.FractionalPermission.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 31, "end_line": 48, "start_col": 0, "start_line": 47 }
(* 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": [ "prims.fst.checked", "FStar.Real.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Steel.FractionalPermission.fst" }
[ { "abbrev": false, "full_module": "FStar.Real", "short_module": null }, { "abbrev": false, "full_module": "Steel", "short_module": null }, { "abbrev": false, "full_module": "Steel", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", ...
{ "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.FractionalPermission.perm -> p2: Steel.FractionalPermission.perm -> Prims.GTot Prims.bool
Prims.GTot
[ "sometrivial" ]
[]
[ "Steel.FractionalPermission.perm", "FStar.Real.op_Less_Dot", "Steel.FractionalPermission.__proj__MkPerm__item__v", "Prims.bool" ]
[]
false
false
false
false
false
let lesser_perm (p1 p2: perm) : GTot bool =
MkPerm?.v p1 <. MkPerm?.v p2
false
Vale.AsLowStar.MemoryHelpers.fst
Vale.AsLowStar.MemoryHelpers.buffer_readable_reveal
val buffer_readable_reveal (#max_arity:nat) (src bt:base_typ) (x:buf_t src bt) (args:IX64.arity_ok max_arity arg) (h0:HS.mem{mem_roots_p h0 args}) : Lemma ( let mem = mk_mem args h0 in ME.buffer_readable (create_initial_vale_heap mem) (as_vale_buffer x) <==> List.memP (mut_to_b8 src x) (ptrs_of_...
val buffer_readable_reveal (#max_arity:nat) (src bt:base_typ) (x:buf_t src bt) (args:IX64.arity_ok max_arity arg) (h0:HS.mem{mem_roots_p h0 args}) : Lemma ( let mem = mk_mem args h0 in ME.buffer_readable (create_initial_vale_heap mem) (as_vale_buffer x) <==> List.memP (mut_to_b8 src x) (ptrs_of_...
let buffer_readable_reveal #max_arity src bt x args h0 = FStar.Pervasives.reveal_opaque (`%ME.get_vale_heap) ME.get_vale_heap
{ "file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.MemoryHelpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 125, "end_line": 44, "start_col": 0, "start_line": 44 }
module Vale.AsLowStar.MemoryHelpers open FStar.Mul open Vale.Arch.HeapImpl open Vale.X64.MemoryAdapters open Vale.Interop.Base module B = LowStar.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView.Down module ME = Vale.X64.Memory module VSig = Vale.AsLowStar.ValeSig module IX64 = Vale.Interop.X64 ...
{ "checked_file": "/", "dependencies": [ "Vale.X64.StateLemmas.fst.checked", "Vale.X64.Stack_Sems.fst.checked", "Vale.X64.Stack_i.fst.checked", "Vale.X64.MemoryAdapters.fst.checked", "Vale.X64.MemoryAdapters.fst.checked", "Vale.X64.Memory_Sems.fst.checked", "Vale.X64.Memory.fst.checked",...
[ { "abbrev": true, "full_module": "Vale.Interop.X64", "short_module": "IX64" }, { "abbrev": true, "full_module": "Vale.AsLowStar.ValeSig", "short_module": "VSig" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "ME" }, { "abbrev": true, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
src: Vale.Arch.HeapTypes_s.base_typ -> bt: Vale.Arch.HeapTypes_s.base_typ -> x: Vale.Interop.Base.buf_t src bt -> args: Vale.Interop.X64.arity_ok max_arity Vale.Interop.Base.arg -> h0: FStar.Monotonic.HyperStack.mem{Vale.Interop.Base.mem_roots_p h0 args} -> FStar.Pervasives.Lemma (ensures ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Vale.Arch.HeapTypes_s.base_typ", "Vale.Interop.Base.buf_t", "Vale.Interop.X64.arity_ok", "Vale.Interop.Base.arg", "FStar.Monotonic.HyperStack.mem", "Vale.Interop.Base.mem_roots_p", "FStar.Pervasives.reveal_opaque", "Vale.X64.Memory.vale_full_heap", "Vale.X64.Memory.vale_heap", "Val...
[]
true
false
true
false
false
let buffer_readable_reveal #max_arity src bt x args h0 =
FStar.Pervasives.reveal_opaque (`%ME.get_vale_heap) ME.get_vale_heap
false
Vale.AsLowStar.MemoryHelpers.fst
Vale.AsLowStar.MemoryHelpers.lemma_as_mem_as_vale_mem
val lemma_as_mem_as_vale_mem (h:interop_heap) : Lemma (ensures as_mem (create_initial_vale_heap h) == h) [SMTPat (as_mem (create_initial_vale_heap h))]
val lemma_as_mem_as_vale_mem (h:interop_heap) : Lemma (ensures as_mem (create_initial_vale_heap h) == h) [SMTPat (as_mem (create_initial_vale_heap h))]
let lemma_as_mem_as_vale_mem h = FStar.Pervasives.reveal_opaque (`%ME.get_vale_heap) ME.get_vale_heap
{ "file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.MemoryHelpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 101, "end_line": 46, "start_col": 0, "start_line": 46 }
module Vale.AsLowStar.MemoryHelpers open FStar.Mul open Vale.Arch.HeapImpl open Vale.X64.MemoryAdapters open Vale.Interop.Base module B = LowStar.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView.Down module ME = Vale.X64.Memory module VSig = Vale.AsLowStar.ValeSig module IX64 = Vale.Interop.X64 ...
{ "checked_file": "/", "dependencies": [ "Vale.X64.StateLemmas.fst.checked", "Vale.X64.Stack_Sems.fst.checked", "Vale.X64.Stack_i.fst.checked", "Vale.X64.MemoryAdapters.fst.checked", "Vale.X64.MemoryAdapters.fst.checked", "Vale.X64.Memory_Sems.fst.checked", "Vale.X64.Memory.fst.checked",...
[ { "abbrev": true, "full_module": "Vale.Interop.X64", "short_module": "IX64" }, { "abbrev": true, "full_module": "Vale.AsLowStar.ValeSig", "short_module": "VSig" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "ME" }, { "abbrev": true, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: Vale.Interop.Heap_s.interop_heap -> FStar.Pervasives.Lemma (ensures Vale.X64.MemoryAdapters.as_mem (Vale.X64.MemoryAdapters.create_initial_vale_heap h) == h) [SMTPat (Vale.X64.MemoryAdapters.as_mem (Vale.X64.MemoryAdapters.create_initial_vale_heap h))]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Interop.Heap_s.interop_heap", "FStar.Pervasives.reveal_opaque", "Vale.X64.Memory.vale_full_heap", "Vale.X64.Memory.vale_heap", "Vale.X64.Memory.get_vale_heap", "Prims.unit" ]
[]
true
false
true
false
false
let lemma_as_mem_as_vale_mem h =
FStar.Pervasives.reveal_opaque (`%ME.get_vale_heap) ME.get_vale_heap
false
LowParse.BitFields.fsti
LowParse.BitFields.uint_t_v_uint_to_t
val uint_t_v_uint_to_t (#tot #t: _) (cl: uint_t tot t) (x: U.uint_t tot) : Lemma (cl.v (cl.uint_to_t x) == x) [SMTPat (cl.v (cl.uint_to_t x))]
val uint_t_v_uint_to_t (#tot #t: _) (cl: uint_t tot t) (x: U.uint_t tot) : Lemma (cl.v (cl.uint_to_t x) == x) [SMTPat (cl.v (cl.uint_to_t x))]
let uint_t_v_uint_to_t #tot #t (cl: uint_t tot t) (x: U.uint_t tot) : Lemma (cl.v (cl.uint_to_t x) == x) [SMTPat (cl.v (cl.uint_to_t x))] = cl.v_uint_to_t x
{ "file_name": "src/lowparse/LowParse.BitFields.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 18, "end_line": 284, "start_col": 0, "start_line": 281 }
module LowParse.BitFields module U = FStar.UInt type ubitfield (tot: nat) (sz: nat) = (x: U.uint_t tot { x < pow2 sz }) // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. val get_bitfield (#tot: pos) (x: U.uint_t tot) (lo: nat) (hi: nat {lo <= hi /\ hi <= tot}) :...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Lo...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": false, "full_module": "LowParse", "short_module": null }, { "abbrev": false, "full_module": "LowParse", ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
cl: LowParse.BitFields.uint_t tot t -> x: FStar.UInt.uint_t tot -> FStar.Pervasives.Lemma (ensures Mkuint_t?.v cl (Mkuint_t?.uint_to_t cl x) == x) [SMTPat (Mkuint_t?.v cl (Mkuint_t?.uint_to_t cl x))]
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "LowParse.BitFields.uint_t", "FStar.UInt.uint_t", "LowParse.BitFields.__proj__Mkuint_t__item__v_uint_to_t", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.eq2", "LowParse.BitFields.__proj__Mkuint_t__item__v", "LowParse.BitFields.__proj__Mkuint_t__item__uint_to_t", "Prims.Cons"...
[]
true
false
true
false
false
let uint_t_v_uint_to_t #tot #t (cl: uint_t tot t) (x: U.uint_t tot) : Lemma (cl.v (cl.uint_to_t x) == x) [SMTPat (cl.v (cl.uint_to_t x))] =
cl.v_uint_to_t x
false
Vale.AsLowStar.MemoryHelpers.fst
Vale.AsLowStar.MemoryHelpers.as_vale_immbuffer_len
val as_vale_immbuffer_len (#src #t:base_typ) (x:ibuf_t src t) : Lemma (V.buffer_length (as_vale_immbuffer x) == (B.length x * view_n src) / view_n t) [SMTPat (V.buffer_length (as_vale_immbuffer x))]
val as_vale_immbuffer_len (#src #t:base_typ) (x:ibuf_t src t) : Lemma (V.buffer_length (as_vale_immbuffer x) == (B.length x * view_n src) / view_n t) [SMTPat (V.buffer_length (as_vale_immbuffer x))]
let as_vale_immbuffer_len (#src #t:base_typ) (x:ibuf_t src t) = let db = get_downview x in DV.length_eq db; UV.length_eq (UV.mk_buffer db (ME.uint_view t))
{ "file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.MemoryHelpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 50, "end_line": 29, "start_col": 0, "start_line": 26 }
module Vale.AsLowStar.MemoryHelpers open FStar.Mul open Vale.Arch.HeapImpl open Vale.X64.MemoryAdapters open Vale.Interop.Base module B = LowStar.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView.Down module ME = Vale.X64.Memory module VSig = Vale.AsLowStar.ValeSig module IX64 = Vale.Interop.X64 ...
{ "checked_file": "/", "dependencies": [ "Vale.X64.StateLemmas.fst.checked", "Vale.X64.Stack_Sems.fst.checked", "Vale.X64.Stack_i.fst.checked", "Vale.X64.MemoryAdapters.fst.checked", "Vale.X64.MemoryAdapters.fst.checked", "Vale.X64.Memory_Sems.fst.checked", "Vale.X64.Memory.fst.checked",...
[ { "abbrev": true, "full_module": "Vale.Interop.X64", "short_module": "IX64" }, { "abbrev": true, "full_module": "Vale.AsLowStar.ValeSig", "short_module": "VSig" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "ME" }, { "abbrev": true, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Vale.Interop.Base.ibuf_t src t -> FStar.Pervasives.Lemma (ensures Vale.X64.Decls.buffer_length (Vale.X64.MemoryAdapters.as_vale_immbuffer x) == LowStar.Monotonic.Buffer.length x * Vale.Interop.Types.view_n src / Vale.Interop.Types.view_n t) [SMTPat (Vale.X64.Decls.buffer_length ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Vale.Interop.Base.ibuf_t", "LowStar.BufferView.Up.length_eq", "Vale.Interop.Types.base_typ_as_type", "LowStar.BufferView.Up.mk_buffer", "FStar.UInt8.t", "Vale.X64.Memory.uint_view", "Prims.unit", "LowStar.BufferView.Down.length_eq", "LowStar.BufferView.Down.buffe...
[]
true
false
true
false
false
let as_vale_immbuffer_len (#src #t: base_typ) (x: ibuf_t src t) =
let db = get_downview x in DV.length_eq db; UV.length_eq (UV.mk_buffer db (ME.uint_view t))
false
LowParse.BitFields.fsti
LowParse.BitFields.get_bitfield_partition_3
val get_bitfield_partition_3 (#tot: pos) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (x y: U.uint_t tot) : Lemma (requires (get_bitfield x 0 lo == get_bitfield y 0 lo /\ get_bitfield x lo hi == get_bitfield y lo hi /\ get_bitfield x hi tot == get_bitfield y hi tot)) (e...
val get_bitfield_partition_3 (#tot: pos) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (x y: U.uint_t tot) : Lemma (requires (get_bitfield x 0 lo == get_bitfield y 0 lo /\ get_bitfield x lo hi == get_bitfield y lo hi /\ get_bitfield x hi tot == get_bitfield y hi tot)) (e...
let get_bitfield_partition_3 (#tot: pos) (lo: nat) (hi: nat { lo <= hi /\ hi <= tot }) (x y: U.uint_t tot) : Lemma (requires ( get_bitfield x 0 lo == get_bitfield y 0 lo /\ get_bitfield x lo hi == get_bitfield y lo hi /\ get_bitfield x hi tot == get_bitfield y hi tot )) (ensures (x == y)) = ...
{ "file_name": "src/lowparse/LowParse.BitFields.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 21, "end_line": 203, "start_col": 0, "start_line": 188 }
module LowParse.BitFields module U = FStar.UInt type ubitfield (tot: nat) (sz: nat) = (x: U.uint_t tot { x < pow2 sz }) // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. val get_bitfield (#tot: pos) (x: U.uint_t tot) (lo: nat) (hi: nat {lo <= hi /\ hi <= tot}) :...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Lo...
[ { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": false, "full_module": "LowParse", "short_module": null }, { "abbrev": false, "full_module": "LowParse", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasive...
{ "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
lo: Prims.nat -> hi: Prims.nat{lo <= hi /\ hi <= tot} -> x: FStar.UInt.uint_t tot -> y: FStar.UInt.uint_t tot -> FStar.Pervasives.Lemma (requires LowParse.BitFields.get_bitfield x 0 lo == LowParse.BitFields.get_bitfield y 0 lo /\ LowParse.BitFields.get_bitfield x lo hi == LowPar...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.UInt.uint_t", "LowParse.BitFields.get_bitfield_full", "Prims.unit", "LowParse.BitFields.get_bitfield_partition", "Prims.Cons", "Prims.Nil", "FStar.Pervasives.assert_norm", "LowParse.BitFields.get_bitfiel...
[]
true
false
true
false
false
let get_bitfield_partition_3 (#tot: pos) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (x y: U.uint_t tot) : Lemma (requires (get_bitfield x 0 lo == get_bitfield y 0 lo /\ get_bitfield x lo hi == get_bitfield y lo hi /\ get_bitfield x hi tot == get_bitfield y hi tot)) (e...
assert_norm (get_bitfield_partition_prop x y 0 tot [lo; hi]); get_bitfield_partition x y 0 tot [lo; hi]; get_bitfield_full x; get_bitfield_full y
false
LowParse.BitFields.fsti
LowParse.BitFields.uint_get_bitfield_set_bitfield_same
val uint_get_bitfield_set_bitfield_same (#tot #t: _) (cl: uint_t tot t) (x: t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (z: bitfield cl (hi - lo)) : Lemma (cl.get_bitfield (cl.set_bitfield x lo hi z) lo hi == z) [SMTPat (cl.get_bitfield (cl.set_bitfield x lo hi z) lo hi)]
val uint_get_bitfield_set_bitfield_same (#tot #t: _) (cl: uint_t tot t) (x: t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (z: bitfield cl (hi - lo)) : Lemma (cl.get_bitfield (cl.set_bitfield x lo hi z) lo hi == z) [SMTPat (cl.get_bitfield (cl.set_bitfield x lo hi z) lo hi)]
let uint_get_bitfield_set_bitfield_same #tot #t (cl: uint_t tot t) (x: t) (lo: nat) (hi: nat { lo <= hi /\ hi <= tot }) (z: bitfield cl (hi - lo)) : Lemma (cl.get_bitfield (cl.set_bitfield x lo hi z) lo hi == z) [SMTPat (cl.get_bitfield (cl.set_bitfield x lo hi z) lo hi)] = get_bitfield_set_bitfield_same (cl.v ...
{ "file_name": "src/lowparse/LowParse.BitFields.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 107, "end_line": 298, "start_col": 0, "start_line": 291 }
module LowParse.BitFields module U = FStar.UInt type ubitfield (tot: nat) (sz: nat) = (x: U.uint_t tot { x < pow2 sz }) // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. val get_bitfield (#tot: pos) (x: U.uint_t tot) (lo: nat) (hi: nat {lo <= hi /\ hi <= tot}) :...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Lo...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": false, "full_module": "LowParse", "short_module": null }, { "abbrev": false, "full_module": "LowParse", ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
cl: LowParse.BitFields.uint_t tot t -> x: t -> lo: Prims.nat -> hi: Prims.nat{lo <= hi /\ hi <= tot} -> z: LowParse.BitFields.bitfield cl (hi - lo) -> FStar.Pervasives.Lemma (ensures Mkuint_t?.get_bitfield cl (Mkuint_t?.set_bitfield cl x lo hi z) lo hi == z) [SMTPat (Mkuint_t?.get_bit...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "LowParse.BitFields.uint_t", "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "LowParse.BitFields.bitfield", "Prims.op_Subtraction", "Prims._assert", "Prims.eq2", "LowParse.BitFields.__proj__Mkuint_t__item__uint_to_t", "LowParse.BitFields.__proj__Mkuint_t__item...
[]
true
false
true
false
false
let uint_get_bitfield_set_bitfield_same #tot #t (cl: uint_t tot t) (x: t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (z: bitfield cl (hi - lo)) : Lemma (cl.get_bitfield (cl.set_bitfield x lo hi z) lo hi == z) [SMTPat (cl.get_bitfield (cl.set_bitfield x lo hi z) lo hi)...
get_bitfield_set_bitfield_same (cl.v x) lo hi (cl.v z); assert (cl.uint_to_t (cl.v (cl.get_bitfield (cl.set_bitfield x lo hi z) lo hi)) == cl.uint_to_t (cl.v z))
false
Steel.FractionalPermission.fst
Steel.FractionalPermission.sum_perm
val sum_perm (p1 p2: perm) : Tot perm
val sum_perm (p1 p2: perm) : Tot perm
let sum_perm (p1 p2: perm) : Tot perm = MkPerm (MkPerm?.v p1 +. MkPerm?.v p2)
{ "file_name": "lib/steel/Steel.FractionalPermission.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 40, "end_line": 41, "start_col": 0, "start_line": 40 }
(* 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": [ "prims.fst.checked", "FStar.Real.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Steel.FractionalPermission.fst" }
[ { "abbrev": false, "full_module": "FStar.Real", "short_module": null }, { "abbrev": false, "full_module": "Steel", "short_module": null }, { "abbrev": false, "full_module": "Steel", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", ...
{ "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.FractionalPermission.perm -> p2: Steel.FractionalPermission.perm -> Steel.FractionalPermission.perm
Prims.Tot
[ "total" ]
[]
[ "Steel.FractionalPermission.perm", "Steel.FractionalPermission.MkPerm", "FStar.Real.op_Plus_Dot", "Steel.FractionalPermission.__proj__MkPerm__item__v" ]
[]
false
false
false
true
false
let sum_perm (p1 p2: perm) : Tot perm =
MkPerm (MkPerm?.v p1 +. MkPerm?.v p2)
false
Vale.AsLowStar.MemoryHelpers.fst
Vale.AsLowStar.MemoryHelpers.relate_modifies
val relate_modifies (args:list arg) (m0 m1:ME.vale_full_heap) : Lemma (requires ME.modifies (VSig.mloc_modified_args args) (ME.get_vale_heap m0) (ME.get_vale_heap m1)) (ensures B.modifies (loc_modified_args args) (hs_of_mem (as_mem m0.vf_heap)) (hs_of_...
val relate_modifies (args:list arg) (m0 m1:ME.vale_full_heap) : Lemma (requires ME.modifies (VSig.mloc_modified_args args) (ME.get_vale_heap m0) (ME.get_vale_heap m1)) (ensures B.modifies (loc_modified_args args) (hs_of_mem (as_mem m0.vf_heap)) (hs_of_...
let relate_modifies args m0 m1 = loc_eq args
{ "file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.MemoryHelpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 44, "end_line": 39, "start_col": 0, "start_line": 39 }
module Vale.AsLowStar.MemoryHelpers open FStar.Mul open Vale.Arch.HeapImpl open Vale.X64.MemoryAdapters open Vale.Interop.Base module B = LowStar.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView.Down module ME = Vale.X64.Memory module VSig = Vale.AsLowStar.ValeSig module IX64 = Vale.Interop.X64 ...
{ "checked_file": "/", "dependencies": [ "Vale.X64.StateLemmas.fst.checked", "Vale.X64.Stack_Sems.fst.checked", "Vale.X64.Stack_i.fst.checked", "Vale.X64.MemoryAdapters.fst.checked", "Vale.X64.MemoryAdapters.fst.checked", "Vale.X64.Memory_Sems.fst.checked", "Vale.X64.Memory.fst.checked",...
[ { "abbrev": true, "full_module": "Vale.Interop.X64", "short_module": "IX64" }, { "abbrev": true, "full_module": "Vale.AsLowStar.ValeSig", "short_module": "VSig" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "ME" }, { "abbrev": true, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
args: Prims.list Vale.Interop.Base.arg -> m0: Vale.X64.Memory.vale_full_heap -> m1: Vale.X64.Memory.vale_full_heap -> FStar.Pervasives.Lemma (requires Vale.X64.Memory.modifies (Vale.AsLowStar.ValeSig.mloc_modified_args args) (Vale.X64.Memory.get_vale_heap m0) (Vale.X64.M...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "Vale.Interop.Base.arg", "Vale.X64.Memory.vale_full_heap", "Vale.AsLowStar.MemoryHelpers.loc_eq", "Prims.unit" ]
[]
true
false
true
false
false
let relate_modifies args m0 m1 =
loc_eq args
false
LowParse.BitFields.fsti
LowParse.BitFields.uint_set_bitfield_set_bitfield_same_gen
val uint_set_bitfield_set_bitfield_same_gen (#tot #t: _) (cl: uint_t tot t) (x: t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (z: bitfield cl (hi - lo)) (lo': nat) (hi': nat{lo' <= lo /\ hi <= hi' /\ hi' <= tot}) (z': bitfield cl (hi' - lo')) : Lemma (cl.set_bit...
val uint_set_bitfield_set_bitfield_same_gen (#tot #t: _) (cl: uint_t tot t) (x: t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (z: bitfield cl (hi - lo)) (lo': nat) (hi': nat{lo' <= lo /\ hi <= hi' /\ hi' <= tot}) (z': bitfield cl (hi' - lo')) : Lemma (cl.set_bit...
let uint_set_bitfield_set_bitfield_same_gen #tot #t (cl: uint_t tot t) (x: t) (lo: nat) (hi: nat { lo <= hi /\ hi <= tot }) (z: bitfield cl (hi - lo)) (lo': nat) (hi': nat { lo' <= lo /\ hi <= hi' /\ hi' <= tot }) (z' : bitfield cl (hi' - lo')) : Lemma (cl.set_bitfield (cl.set_bitfield x lo hi z) lo' hi' z' == ...
{ "file_name": "src/lowparse/LowParse.BitFields.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 141, "end_line": 317, "start_col": 0, "start_line": 310 }
module LowParse.BitFields module U = FStar.UInt type ubitfield (tot: nat) (sz: nat) = (x: U.uint_t tot { x < pow2 sz }) // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. val get_bitfield (#tot: pos) (x: U.uint_t tot) (lo: nat) (hi: nat {lo <= hi /\ hi <= tot}) :...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Lo...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": false, "full_module": "LowParse", "short_module": null }, { "abbrev": false, "full_module": "LowParse", ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
cl: LowParse.BitFields.uint_t tot t -> x: t -> lo: Prims.nat -> hi: Prims.nat{lo <= hi /\ hi <= tot} -> z: LowParse.BitFields.bitfield cl (hi - lo) -> lo': Prims.nat -> hi': Prims.nat{lo' <= lo /\ hi <= hi' /\ hi' <= tot} -> z': LowParse.BitFields.bitfield cl (hi' - lo') -> FStar.Perv...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "LowParse.BitFields.uint_t", "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "LowParse.BitFields.bitfield", "Prims.op_Subtraction", "Prims._assert", "Prims.eq2", "LowParse.BitFields.__proj__Mkuint_t__item__uint_to_t", "LowParse.BitFields.__proj__Mkuint_t__item...
[]
true
false
true
false
false
let uint_set_bitfield_set_bitfield_same_gen #tot #t (cl: uint_t tot t) (x: t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (z: bitfield cl (hi - lo)) (lo': nat) (hi': nat{lo' <= lo /\ hi <= hi' /\ hi' <= tot}) (z': bitfield cl (hi' - lo')) : Lemma (cl.set_bi...
set_bitfield_set_bitfield_same_gen (cl.v x) lo hi (cl.v z) lo' hi' (cl.v z'); assert (cl.uint_to_t (cl.v (cl.set_bitfield (cl.set_bitfield x lo hi z) lo' hi' z')) == cl.uint_to_t (cl.v (cl.set_bitfield x lo' hi' z')))
false
FStar.Tactics.V1.SyntaxHelpers.fst
FStar.Tactics.V1.SyntaxHelpers.mk_tot_arr
val mk_tot_arr (bs: list binder) (cod: term) : Tac term
val mk_tot_arr (bs: list binder) (cod: term) : Tac term
let rec mk_tot_arr (bs: list binder) (cod : term) : Tac term = match bs with | [] -> cod | (b::bs) -> pack (Tv_Arrow b (pack_comp (C_Total (mk_tot_arr bs cod))))
{ "file_name": "ulib/FStar.Tactics.V1.SyntaxHelpers.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 65, "end_line": 67, "start_col": 0, "start_line": 63 }
module FStar.Tactics.V1.SyntaxHelpers open FStar.Reflection.V1 open FStar.Tactics.Effect open FStar.Stubs.Tactics.Types open FStar.Stubs.Tactics.V1.Builtins (* These are fully-named variants of functions found in FStar.Reflection *) private let rec collect_arr' (bs : list binder) (c : comp) : Tac (list binder * comp...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V1.Builtins.fsti.checked", "FStar.Stubs.Tactics.Types.fsti.checked", "FStar.Reflection.V1.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.ch...
[ { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V1.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.Types", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
bs: Prims.list FStar.Stubs.Reflection.Types.binder -> cod: FStar.Stubs.Reflection.Types.term -> FStar.Tactics.Effect.Tac FStar.Stubs.Reflection.Types.term
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.list", "FStar.Stubs.Reflection.Types.binder", "FStar.Stubs.Reflection.Types.term", "FStar.Stubs.Tactics.V1.Builtins.pack", "FStar.Stubs.Reflection.V1.Data.term_view", "FStar.Stubs.Reflection.V1.Data.Tv_Arrow", "FStar.Stubs.Reflection.Types.comp", "FStar.Stubs.Reflection.V1.Builtins.pack_comp", ...
[ "recursion" ]
false
true
false
false
false
let rec mk_tot_arr (bs: list binder) (cod: term) : Tac term =
match bs with | [] -> cod | b :: bs -> pack (Tv_Arrow b (pack_comp (C_Total (mk_tot_arr bs cod))))
false
Steel.FractionalPermission.fst
Steel.FractionalPermission.comp_perm
val comp_perm (p: perm{p `lesser_perm` full_perm}) : GTot perm
val comp_perm (p: perm{p `lesser_perm` full_perm}) : GTot perm
let comp_perm (p:perm{p `lesser_perm` full_perm}) : GTot perm = MkPerm (1.0R -. MkPerm?.v p)
{ "file_name": "lib/steel/Steel.FractionalPermission.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 30, "end_line": 55, "start_col": 0, "start_line": 54 }
(* 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": [ "prims.fst.checked", "FStar.Real.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Steel.FractionalPermission.fst" }
[ { "abbrev": false, "full_module": "FStar.Real", "short_module": null }, { "abbrev": false, "full_module": "Steel", "short_module": null }, { "abbrev": false, "full_module": "Steel", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", ...
{ "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.FractionalPermission.perm {Steel.FractionalPermission.lesser_perm p Steel.FractionalPermission.full_perm} -> Prims.GTot Steel.FractionalPermission.perm
Prims.GTot
[ "sometrivial" ]
[]
[ "Steel.FractionalPermission.perm", "Prims.b2t", "Steel.FractionalPermission.lesser_perm", "Steel.FractionalPermission.full_perm", "Steel.FractionalPermission.MkPerm", "FStar.Real.op_Subtraction_Dot", "Steel.FractionalPermission.__proj__MkPerm__item__v" ]
[]
false
false
false
false
false
let comp_perm (p: perm{p `lesser_perm` full_perm}) : GTot perm =
MkPerm (1.0R -. MkPerm?.v p)
false
Steel.FractionalPermission.fst
Steel.FractionalPermission.full_perm
val full_perm:perm
val full_perm:perm
let full_perm : perm = MkPerm one
{ "file_name": "lib/steel/Steel.FractionalPermission.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 33, "end_line": 51, "start_col": 0, "start_line": 51 }
(* 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": [ "prims.fst.checked", "FStar.Real.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Steel.FractionalPermission.fst" }
[ { "abbrev": false, "full_module": "FStar.Real", "short_module": null }, { "abbrev": false, "full_module": "Steel", "short_module": null }, { "abbrev": false, "full_module": "Steel", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", ...
{ "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
Steel.FractionalPermission.perm
Prims.Tot
[ "total" ]
[]
[ "Steel.FractionalPermission.MkPerm", "FStar.Real.one" ]
[]
false
false
false
true
false
let full_perm:perm =
MkPerm one
false
Vale.AsLowStar.MemoryHelpers.fst
Vale.AsLowStar.MemoryHelpers.buffer_as_seq_reveal
val buffer_as_seq_reveal (src t:ME.base_typ) (x:buf_t src t) (args:IX64.arg_list) (h0:HS.mem{mem_roots_p h0 args}) : Lemma (let y = as_vale_buffer x in let db = get_downview x in DV.length_eq db; let mem = mk_mem args h0 in Seq.equal (LSig.nat_to_uint_seq_t t (ME.buffer_as_seq (create_initial_...
val buffer_as_seq_reveal (src t:ME.base_typ) (x:buf_t src t) (args:IX64.arg_list) (h0:HS.mem{mem_roots_p h0 args}) : Lemma (let y = as_vale_buffer x in let db = get_downview x in DV.length_eq db; let mem = mk_mem args h0 in Seq.equal (LSig.nat_to_uint_seq_t t (ME.buffer_as_seq (create_initial_...
let buffer_as_seq_reveal src t x args h0 = FStar.Pervasives.reveal_opaque (`%ME.get_vale_heap) ME.get_vale_heap
{ "file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.MemoryHelpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 111, "end_line": 48, "start_col": 0, "start_line": 48 }
module Vale.AsLowStar.MemoryHelpers open FStar.Mul open Vale.Arch.HeapImpl open Vale.X64.MemoryAdapters open Vale.Interop.Base module B = LowStar.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView.Down module ME = Vale.X64.Memory module VSig = Vale.AsLowStar.ValeSig module IX64 = Vale.Interop.X64 ...
{ "checked_file": "/", "dependencies": [ "Vale.X64.StateLemmas.fst.checked", "Vale.X64.Stack_Sems.fst.checked", "Vale.X64.Stack_i.fst.checked", "Vale.X64.MemoryAdapters.fst.checked", "Vale.X64.MemoryAdapters.fst.checked", "Vale.X64.Memory_Sems.fst.checked", "Vale.X64.Memory.fst.checked",...
[ { "abbrev": true, "full_module": "Vale.Interop.X64", "short_module": "IX64" }, { "abbrev": true, "full_module": "Vale.AsLowStar.ValeSig", "short_module": "VSig" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "ME" }, { "abbrev": true, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
src: Vale.Arch.HeapTypes_s.base_typ -> t: Vale.Arch.HeapTypes_s.base_typ -> x: Vale.Interop.Base.buf_t src t -> args: Vale.Interop.X64.arg_list -> h0: FStar.Monotonic.HyperStack.mem{Vale.Interop.Base.mem_roots_p h0 args} -> FStar.Pervasives.Lemma (ensures (let y = Vale.X64.MemoryAdapter...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Vale.Interop.Base.buf_t", "Vale.Interop.X64.arg_list", "FStar.Monotonic.HyperStack.mem", "Vale.Interop.Base.mem_roots_p", "FStar.Pervasives.reveal_opaque", "Vale.X64.Memory.vale_full_heap", "Vale.X64.Memory.vale_heap", "Vale.X64.Memory.get_vale_heap", "Prims.unit...
[]
true
false
true
false
false
let buffer_as_seq_reveal src t x args h0 =
FStar.Pervasives.reveal_opaque (`%ME.get_vale_heap) ME.get_vale_heap
false
Steel.FractionalPermission.fst
Steel.FractionalPermission.half_perm
val half_perm (p: perm) : Tot perm
val half_perm (p: perm) : Tot perm
let half_perm (p: perm) : Tot perm = MkPerm ((MkPerm?.v p) /. two)
{ "file_name": "lib/steel/Steel.FractionalPermission.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": 36 }
(* 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": [ "prims.fst.checked", "FStar.Real.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Steel.FractionalPermission.fst" }
[ { "abbrev": false, "full_module": "FStar.Real", "short_module": null }, { "abbrev": false, "full_module": "Steel", "short_module": null }, { "abbrev": false, "full_module": "Steel", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", ...
{ "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.FractionalPermission.perm -> Steel.FractionalPermission.perm
Prims.Tot
[ "total" ]
[]
[ "Steel.FractionalPermission.perm", "Steel.FractionalPermission.MkPerm", "FStar.Real.op_Slash_Dot", "Steel.FractionalPermission.__proj__MkPerm__item__v", "FStar.Real.two" ]
[]
false
false
false
true
false
let half_perm (p: perm) : Tot perm =
MkPerm ((MkPerm?.v p) /. two)
false
LowParse.BitFields.fsti
LowParse.BitFields.uint_get_bitfield_set_bitfield_other
val uint_get_bitfield_set_bitfield_other (#tot #t: _) (cl: uint_t tot t) (x: t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (z: bitfield cl (hi - lo)) (lo': nat) (hi': nat{lo' <= hi' /\ hi' <= tot /\ (hi' <= lo \/ hi <= lo')}) : Lemma (cl.get_bitfield (cl.set_bitfield ...
val uint_get_bitfield_set_bitfield_other (#tot #t: _) (cl: uint_t tot t) (x: t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (z: bitfield cl (hi - lo)) (lo': nat) (hi': nat{lo' <= hi' /\ hi' <= tot /\ (hi' <= lo \/ hi <= lo')}) : Lemma (cl.get_bitfield (cl.set_bitfield ...
let uint_get_bitfield_set_bitfield_other #tot #t (cl: uint_t tot t) (x: t) (lo: nat) (hi: nat { lo <= hi /\ hi <= tot }) (z: bitfield cl (hi - lo)) (lo' : nat) (hi' : nat { lo' <= hi' /\ hi' <= tot /\ (hi' <= lo \/ hi <= lo') }) : Lemma (cl.get_bitfield (cl.set_bitfield x lo hi z) lo' hi' == cl.get_bitfield x l...
{ "file_name": "src/lowparse/LowParse.BitFields.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 135, "end_line": 308, "start_col": 0, "start_line": 300 }
module LowParse.BitFields module U = FStar.UInt type ubitfield (tot: nat) (sz: nat) = (x: U.uint_t tot { x < pow2 sz }) // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. val get_bitfield (#tot: pos) (x: U.uint_t tot) (lo: nat) (hi: nat {lo <= hi /\ hi <= tot}) :...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Lo...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": false, "full_module": "LowParse", "short_module": null }, { "abbrev": false, "full_module": "LowParse", ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
cl: LowParse.BitFields.uint_t tot t -> x: t -> lo: Prims.nat -> hi: Prims.nat{lo <= hi /\ hi <= tot} -> z: LowParse.BitFields.bitfield cl (hi - lo) -> lo': Prims.nat -> hi': Prims.nat{lo' <= hi' /\ hi' <= tot /\ (hi' <= lo \/ hi <= lo')} -> FStar.Pervasives.Lemma (ensures Mk...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "LowParse.BitFields.uint_t", "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "LowParse.BitFields.bitfield", "Prims.op_Subtraction", "Prims.l_or", "Prims._assert", "Prims.eq2", "LowParse.BitFields.__proj__Mkuint_t__item__uint_to_t", "LowParse.BitFields.__proj...
[]
true
false
true
false
false
let uint_get_bitfield_set_bitfield_other #tot #t (cl: uint_t tot t) (x: t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (z: bitfield cl (hi - lo)) (lo': nat) (hi': nat{lo' <= hi' /\ hi' <= tot /\ (hi' <= lo \/ hi <= lo')}) : Lemma (cl.get_bitfield (cl.set_bitfield...
get_bitfield_set_bitfield_other (cl.v x) lo hi (cl.v z) lo' hi'; assert (cl.uint_to_t (cl.v (cl.get_bitfield (cl.set_bitfield x lo hi z) lo' hi')) == cl.uint_to_t (cl.v (cl.get_bitfield x lo' hi')))
false
Vale.AsLowStar.MemoryHelpers.fst
Vale.AsLowStar.MemoryHelpers.loc_eq
val loc_eq (args: list arg) : Lemma (VSig.mloc_modified_args args == loc_modified_args args)
val loc_eq (args: list arg) : Lemma (VSig.mloc_modified_args args == loc_modified_args args)
let rec loc_eq (args:list arg) : Lemma (VSig.mloc_modified_args args == loc_modified_args args) = match args with | [] -> () | hd :: tl -> loc_eq tl
{ "file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.MemoryHelpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 27, "end_line": 37, "start_col": 0, "start_line": 33 }
module Vale.AsLowStar.MemoryHelpers open FStar.Mul open Vale.Arch.HeapImpl open Vale.X64.MemoryAdapters open Vale.Interop.Base module B = LowStar.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView.Down module ME = Vale.X64.Memory module VSig = Vale.AsLowStar.ValeSig module IX64 = Vale.Interop.X64 ...
{ "checked_file": "/", "dependencies": [ "Vale.X64.StateLemmas.fst.checked", "Vale.X64.Stack_Sems.fst.checked", "Vale.X64.Stack_i.fst.checked", "Vale.X64.MemoryAdapters.fst.checked", "Vale.X64.MemoryAdapters.fst.checked", "Vale.X64.Memory_Sems.fst.checked", "Vale.X64.Memory.fst.checked",...
[ { "abbrev": true, "full_module": "Vale.Interop.X64", "short_module": "IX64" }, { "abbrev": true, "full_module": "Vale.AsLowStar.ValeSig", "short_module": "VSig" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "ME" }, { "abbrev": true, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
args: Prims.list Vale.Interop.Base.arg -> FStar.Pervasives.Lemma (ensures Vale.AsLowStar.ValeSig.mloc_modified_args args == Vale.Interop.Base.loc_modified_args args)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "Vale.Interop.Base.arg", "Vale.AsLowStar.MemoryHelpers.loc_eq", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.eq2", "LowStar.Monotonic.Buffer.loc", "Vale.AsLowStar.ValeSig.mloc_modified_args", "Vale.Interop.Base.loc_modified_args", "Prims.Nil", "FStar.Pervasives.pattern" ]
[ "recursion" ]
false
false
true
false
false
let rec loc_eq (args: list arg) : Lemma (VSig.mloc_modified_args args == loc_modified_args args) =
match args with | [] -> () | hd :: tl -> loc_eq tl
false
Steel.FractionalPermission.fst
Steel.FractionalPermission.sum_halves
val sum_halves (p: perm) : Lemma (sum_perm (half_perm p) (half_perm p) == p) [SMTPat (sum_perm (half_perm p) (half_perm p))]
val sum_halves (p: perm) : Lemma (sum_perm (half_perm p) (half_perm p) == p) [SMTPat (sum_perm (half_perm p) (half_perm p))]
let sum_halves (p:perm) : Lemma (sum_perm (half_perm p) (half_perm p) == p) [SMTPat (sum_perm (half_perm p) (half_perm p))] = assert (forall (r:real). r /. 2.0R +. r /. 2.0R == r)
{ "file_name": "lib/steel/Steel.FractionalPermission.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 57, "end_line": 61, "start_col": 0, "start_line": 58 }
(* 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": [ "prims.fst.checked", "FStar.Real.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Steel.FractionalPermission.fst" }
[ { "abbrev": false, "full_module": "FStar.Real", "short_module": null }, { "abbrev": false, "full_module": "Steel", "short_module": null }, { "abbrev": false, "full_module": "Steel", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", ...
{ "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.FractionalPermission.perm -> FStar.Pervasives.Lemma (ensures Steel.FractionalPermission.sum_perm (Steel.FractionalPermission.half_perm p) (Steel.FractionalPermission.half_perm p) == p) [ SMTPat (Steel.FractionalPermission.sum_perm (Steel.FractionalPermission.half...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Steel.FractionalPermission.perm", "Prims._assert", "Prims.l_Forall", "FStar.Real.real", "Prims.eq2", "FStar.Real.op_Plus_Dot", "FStar.Real.op_Slash_Dot", "Prims.unit", "Prims.l_True", "Prims.squash", "Steel.FractionalPermission.sum_perm", "Steel.FractionalPermission.half_perm", "Prims.Cons"...
[]
false
false
true
false
false
let sum_halves (p: perm) : Lemma (sum_perm (half_perm p) (half_perm p) == p) [SMTPat (sum_perm (half_perm p) (half_perm p))] =
assert (forall (r: real). r /. 2.0R +. r /. 2.0R == r)
false
LowParse.BitFields.fsti
LowParse.BitFields.uint_set_bitfield_set_bitfield_same
val uint_set_bitfield_set_bitfield_same (#tot #t: _) (cl: uint_t tot t) (x: t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (z z': bitfield cl (hi - lo)) : Lemma (cl.set_bitfield (cl.set_bitfield x lo hi z) lo hi z' == cl.set_bitfield x lo hi z')
val uint_set_bitfield_set_bitfield_same (#tot #t: _) (cl: uint_t tot t) (x: t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (z z': bitfield cl (hi - lo)) : Lemma (cl.set_bitfield (cl.set_bitfield x lo hi z) lo hi z' == cl.set_bitfield x lo hi z')
let uint_set_bitfield_set_bitfield_same #tot #t (cl: uint_t tot t) (x: t) (lo: nat) (hi: nat { lo <= hi /\ hi <= tot }) (z: bitfield cl (hi - lo)) (z' : bitfield cl (hi - lo)) : Lemma (cl.set_bitfield (cl.set_bitfield x lo hi z) lo hi z' == cl.set_bitfield x lo hi z') = set_bitfield_set_bitfield_same (cl.v x) l...
{ "file_name": "src/lowparse/LowParse.BitFields.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 137, "end_line": 326, "start_col": 0, "start_line": 319 }
module LowParse.BitFields module U = FStar.UInt type ubitfield (tot: nat) (sz: nat) = (x: U.uint_t tot { x < pow2 sz }) // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. val get_bitfield (#tot: pos) (x: U.uint_t tot) (lo: nat) (hi: nat {lo <= hi /\ hi <= tot}) :...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Lo...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": false, "full_module": "LowParse", "short_module": null }, { "abbrev": false, "full_module": "LowParse", ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
cl: LowParse.BitFields.uint_t tot t -> x: t -> lo: Prims.nat -> hi: Prims.nat{lo <= hi /\ hi <= tot} -> z: LowParse.BitFields.bitfield cl (hi - lo) -> z': LowParse.BitFields.bitfield cl (hi - lo) -> FStar.Pervasives.Lemma (ensures Mkuint_t?.set_bitfield cl (Mkuint_t?.set_bitfield cl...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "LowParse.BitFields.uint_t", "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "LowParse.BitFields.bitfield", "Prims.op_Subtraction", "Prims._assert", "Prims.eq2", "LowParse.BitFields.__proj__Mkuint_t__item__uint_to_t", "LowParse.BitFields.__proj__Mkuint_t__item...
[]
true
false
true
false
false
let uint_set_bitfield_set_bitfield_same #tot #t (cl: uint_t tot t) (x: t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (z: bitfield cl (hi - lo)) (z': bitfield cl (hi - lo)) : Lemma (cl.set_bitfield (cl.set_bitfield x lo hi z) lo hi z' == cl.set_bitfield x lo hi z') = ...
set_bitfield_set_bitfield_same (cl.v x) lo hi (cl.v z) (cl.v z'); assert (cl.uint_to_t (cl.v (cl.set_bitfield (cl.set_bitfield x lo hi z) lo hi z')) == cl.uint_to_t (cl.v (cl.set_bitfield x lo hi z')))
false
LowParse.BitFields.fsti
LowParse.BitFields.uint_set_bitfield_set_bitfield_other
val uint_set_bitfield_set_bitfield_other (#tot #t: _) (cl: uint_t tot t) (x: t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (z: bitfield cl (hi - lo)) (lo': nat) (hi': nat{lo' <= hi' /\ hi' <= tot /\ (hi' <= lo \/ hi <= lo')}) (z': bitfield cl (hi' - lo')) : Lemm...
val uint_set_bitfield_set_bitfield_other (#tot #t: _) (cl: uint_t tot t) (x: t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (z: bitfield cl (hi - lo)) (lo': nat) (hi': nat{lo' <= hi' /\ hi' <= tot /\ (hi' <= lo \/ hi <= lo')}) (z': bitfield cl (hi' - lo')) : Lemm...
let uint_set_bitfield_set_bitfield_other #tot #t (cl: uint_t tot t) (x: t) (lo: nat) (hi: nat { lo <= hi /\ hi <= tot }) (z: bitfield cl (hi - lo)) (lo' : nat) (hi' : nat { lo' <= hi' /\ hi' <= tot /\ (hi' <= lo \/ hi <= lo') }) (z' : bitfield cl (hi' - lo')) : Lemma (cl.set_bitfield (cl.set_bitfield x lo hi ...
{ "file_name": "src/lowparse/LowParse.BitFields.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 167, "end_line": 336, "start_col": 0, "start_line": 328 }
module LowParse.BitFields module U = FStar.UInt type ubitfield (tot: nat) (sz: nat) = (x: U.uint_t tot { x < pow2 sz }) // IMPORTANT: these bitfield operators are defined in a least // significant bit (LSB) first fashion. val get_bitfield (#tot: pos) (x: U.uint_t tot) (lo: nat) (hi: nat {lo <= hi /\ hi <= tot}) :...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Lo...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.UInt", "short_module": "U" }, { "abbrev": false, "full_module": "LowParse", "short_module": null }, { "abbrev": false, "full_module": "LowParse", ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
cl: LowParse.BitFields.uint_t tot t -> x: t -> lo: Prims.nat -> hi: Prims.nat{lo <= hi /\ hi <= tot} -> z: LowParse.BitFields.bitfield cl (hi - lo) -> lo': Prims.nat -> hi': Prims.nat{lo' <= hi' /\ hi' <= tot /\ (hi' <= lo \/ hi <= lo')} -> z': LowParse.BitFields.bitfield cl (hi' - lo')...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "LowParse.BitFields.uint_t", "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "LowParse.BitFields.bitfield", "Prims.op_Subtraction", "Prims.l_or", "Prims._assert", "Prims.eq2", "LowParse.BitFields.__proj__Mkuint_t__item__uint_to_t", "LowParse.BitFields.__proj...
[]
true
false
true
false
false
let uint_set_bitfield_set_bitfield_other #tot #t (cl: uint_t tot t) (x: t) (lo: nat) (hi: nat{lo <= hi /\ hi <= tot}) (z: bitfield cl (hi - lo)) (lo': nat) (hi': nat{lo' <= hi' /\ hi' <= tot /\ (hi' <= lo \/ hi <= lo')}) (z': bitfield cl (hi' - lo')) : Lem...
set_bitfield_set_bitfield_other (cl.v x) lo hi (cl.v z) lo' hi' (cl.v z'); assert (cl.uint_to_t (cl.v (cl.set_bitfield (cl.set_bitfield x lo hi z) lo' hi' z')) == cl.uint_to_t (cl.v (cl.set_bitfield (cl.set_bitfield x lo' hi' z') lo hi z)))
false
Vale.AsLowStar.MemoryHelpers.fst
Vale.AsLowStar.MemoryHelpers.bounded_buffer_addrs_all
val bounded_buffer_addrs_all (src t:base_typ) (m:HS.mem) (b:buf_t src t{B.live m b}) : Lemma (forall (h:ME.vale_heap) (vb:ME.buffer t).{:pattern ME.buffer_addr #t vb h} vb == as_vale_buffer b ==> ME.buffer_addr #t vb h + DV.length (get_downview b) < Vale.Def.Words_s.pow2_64)
val bounded_buffer_addrs_all (src t:base_typ) (m:HS.mem) (b:buf_t src t{B.live m b}) : Lemma (forall (h:ME.vale_heap) (vb:ME.buffer t).{:pattern ME.buffer_addr #t vb h} vb == as_vale_buffer b ==> ME.buffer_addr #t vb h + DV.length (get_downview b) < Vale.Def.Words_s.pow2_64)
let bounded_buffer_addrs_all src t h b = FStar.Pervasives.reveal_opaque (`%addr_map_pred) addr_map_pred
{ "file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.MemoryHelpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 103, "end_line": 119, "start_col": 0, "start_line": 119 }
module Vale.AsLowStar.MemoryHelpers open FStar.Mul open Vale.Arch.HeapImpl open Vale.X64.MemoryAdapters open Vale.Interop.Base module B = LowStar.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView.Down module ME = Vale.X64.Memory module VSig = Vale.AsLowStar.ValeSig module IX64 = Vale.Interop.X64 ...
{ "checked_file": "/", "dependencies": [ "Vale.X64.StateLemmas.fst.checked", "Vale.X64.Stack_Sems.fst.checked", "Vale.X64.Stack_i.fst.checked", "Vale.X64.MemoryAdapters.fst.checked", "Vale.X64.MemoryAdapters.fst.checked", "Vale.X64.Memory_Sems.fst.checked", "Vale.X64.Memory.fst.checked",...
[ { "abbrev": true, "full_module": "Vale.Interop.X64", "short_module": "IX64" }, { "abbrev": true, "full_module": "Vale.AsLowStar.ValeSig", "short_module": "VSig" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "ME" }, { "abbrev": true, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
src: Vale.Arch.HeapTypes_s.base_typ -> t: Vale.Arch.HeapTypes_s.base_typ -> m: FStar.Monotonic.HyperStack.mem -> b: Vale.Interop.Base.buf_t src t {LowStar.Monotonic.Buffer.live m b} -> FStar.Pervasives.Lemma (ensures forall (h: Vale.X64.Memory.vale_heap) (vb: Vale.X64.Memory.buffer t). ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "FStar.Monotonic.HyperStack.mem", "Vale.Interop.Base.buf_t", "LowStar.Monotonic.Buffer.live", "Vale.Interop.Types.base_typ_as_type", "LowStar.Buffer.trivial_preorder", "FStar.Pervasives.reveal_opaque", "Vale.Interop.Types.b8", "Vale.Def.Words_s.nat64", "Prims.logi...
[]
true
false
true
false
false
let bounded_buffer_addrs_all src t h b =
FStar.Pervasives.reveal_opaque (`%addr_map_pred) addr_map_pred
false
Vale.AsLowStar.MemoryHelpers.fst
Vale.AsLowStar.MemoryHelpers.lemma_valid_layout_buffer_id
val lemma_valid_layout_buffer_id (t:base_typ) (b:ME.buffer t) (layout:vale_heap_layout) (write:bool) : Lemma (requires True) (ensures ME.valid_layout_buffer_id t b layout None write) [SMTPat (ME.valid_layout_buffer_id t b layout None write)]
val lemma_valid_layout_buffer_id (t:base_typ) (b:ME.buffer t) (layout:vale_heap_layout) (write:bool) : Lemma (requires True) (ensures ME.valid_layout_buffer_id t b layout None write) [SMTPat (ME.valid_layout_buffer_id t b layout None write)]
let lemma_valid_layout_buffer_id t b layout write = reveal_opaque (`%ME.valid_layout_buffer_id) ME.valid_layout_buffer_id
{ "file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.MemoryHelpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 71, "end_line": 175, "start_col": 0, "start_line": 174 }
module Vale.AsLowStar.MemoryHelpers open FStar.Mul open Vale.Arch.HeapImpl open Vale.X64.MemoryAdapters open Vale.Interop.Base module B = LowStar.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView.Down module ME = Vale.X64.Memory module VSig = Vale.AsLowStar.ValeSig module IX64 = Vale.Interop.X64 ...
{ "checked_file": "/", "dependencies": [ "Vale.X64.StateLemmas.fst.checked", "Vale.X64.Stack_Sems.fst.checked", "Vale.X64.Stack_i.fst.checked", "Vale.X64.MemoryAdapters.fst.checked", "Vale.X64.MemoryAdapters.fst.checked", "Vale.X64.Memory_Sems.fst.checked", "Vale.X64.Memory.fst.checked",...
[ { "abbrev": true, "full_module": "Vale.Interop.X64", "short_module": "IX64" }, { "abbrev": true, "full_module": "Vale.AsLowStar.ValeSig", "short_module": "VSig" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "ME" }, { "abbrev": true, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Vale.Arch.HeapTypes_s.base_typ -> b: Vale.X64.Memory.buffer t -> layout: Vale.Arch.HeapImpl.vale_heap_layout -> write: Prims.bool -> FStar.Pervasives.Lemma (ensures Vale.X64.Memory.valid_layout_buffer_id t b layout FStar.Pervasives.Native.None write) [ SMTPat (Vale.X64.Memory.v...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Vale.X64.Memory.buffer", "Vale.Arch.HeapImpl.vale_heap_layout", "Prims.bool", "FStar.Pervasives.reveal_opaque", "FStar.Pervasives.Native.option", "Vale.Arch.HeapImpl.heaplet_id", "Vale.Def.Prop_s.prop0", "Vale.X64.Memory.valid_layout_buffer_id", "Prims.unit" ]
[]
true
false
true
false
false
let lemma_valid_layout_buffer_id t b layout write =
reveal_opaque (`%ME.valid_layout_buffer_id) ME.valid_layout_buffer_id
false
Vale.AsLowStar.MemoryHelpers.fst
Vale.AsLowStar.MemoryHelpers.immbuffer_as_seq_reveal
val immbuffer_as_seq_reveal (src t:ME.base_typ) (x:ibuf_t src t) (args:IX64.arg_list) (h0:HS.mem{mem_roots_p h0 args}) : Lemma (let y = as_vale_immbuffer x in let db = get_downview x in DV.length_eq db; let mem = mk_mem args h0 in Seq.equal (LSig.nat_to_uint_seq_t t (ME.buffer_as_seq (create_i...
val immbuffer_as_seq_reveal (src t:ME.base_typ) (x:ibuf_t src t) (args:IX64.arg_list) (h0:HS.mem{mem_roots_p h0 args}) : Lemma (let y = as_vale_immbuffer x in let db = get_downview x in DV.length_eq db; let mem = mk_mem args h0 in Seq.equal (LSig.nat_to_uint_seq_t t (ME.buffer_as_seq (create_i...
let immbuffer_as_seq_reveal src t x args h0 = FStar.Pervasives.reveal_opaque (`%ME.get_vale_heap) ME.get_vale_heap
{ "file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.MemoryHelpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 114, "end_line": 49, "start_col": 0, "start_line": 49 }
module Vale.AsLowStar.MemoryHelpers open FStar.Mul open Vale.Arch.HeapImpl open Vale.X64.MemoryAdapters open Vale.Interop.Base module B = LowStar.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView.Down module ME = Vale.X64.Memory module VSig = Vale.AsLowStar.ValeSig module IX64 = Vale.Interop.X64 ...
{ "checked_file": "/", "dependencies": [ "Vale.X64.StateLemmas.fst.checked", "Vale.X64.Stack_Sems.fst.checked", "Vale.X64.Stack_i.fst.checked", "Vale.X64.MemoryAdapters.fst.checked", "Vale.X64.MemoryAdapters.fst.checked", "Vale.X64.Memory_Sems.fst.checked", "Vale.X64.Memory.fst.checked",...
[ { "abbrev": true, "full_module": "Vale.Interop.X64", "short_module": "IX64" }, { "abbrev": true, "full_module": "Vale.AsLowStar.ValeSig", "short_module": "VSig" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "ME" }, { "abbrev": true, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
src: Vale.Arch.HeapTypes_s.base_typ -> t: Vale.Arch.HeapTypes_s.base_typ -> x: Vale.Interop.Base.ibuf_t src t -> args: Vale.Interop.X64.arg_list -> h0: FStar.Monotonic.HyperStack.mem{Vale.Interop.Base.mem_roots_p h0 args} -> FStar.Pervasives.Lemma (ensures (let y = Vale.X64.MemoryAdapte...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Vale.Interop.Base.ibuf_t", "Vale.Interop.X64.arg_list", "FStar.Monotonic.HyperStack.mem", "Vale.Interop.Base.mem_roots_p", "FStar.Pervasives.reveal_opaque", "Vale.X64.Memory.vale_full_heap", "Vale.X64.Memory.vale_heap", "Vale.X64.Memory.get_vale_heap", "Prims.uni...
[]
true
false
true
false
false
let immbuffer_as_seq_reveal src t x args h0 =
FStar.Pervasives.reveal_opaque (`%ME.get_vale_heap) ME.get_vale_heap
false
Vale.AsLowStar.MemoryHelpers.fst
Vale.AsLowStar.MemoryHelpers.same_down_up_buffer_length
val same_down_up_buffer_length (src:base_typ) (b:buf_t src src) : Lemma (B.length b == DV.length (get_downview b) / view_n src)
val same_down_up_buffer_length (src:base_typ) (b:buf_t src src) : Lemma (B.length b == DV.length (get_downview b) / view_n src)
let same_down_up_buffer_length src b = let db = get_downview b in DV.length_eq db; FStar.Math.Lemmas.cancel_mul_div (B.length b) (view_n src)
{ "file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.MemoryHelpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 60, "end_line": 124, "start_col": 0, "start_line": 121 }
module Vale.AsLowStar.MemoryHelpers open FStar.Mul open Vale.Arch.HeapImpl open Vale.X64.MemoryAdapters open Vale.Interop.Base module B = LowStar.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView.Down module ME = Vale.X64.Memory module VSig = Vale.AsLowStar.ValeSig module IX64 = Vale.Interop.X64 ...
{ "checked_file": "/", "dependencies": [ "Vale.X64.StateLemmas.fst.checked", "Vale.X64.Stack_Sems.fst.checked", "Vale.X64.Stack_i.fst.checked", "Vale.X64.MemoryAdapters.fst.checked", "Vale.X64.MemoryAdapters.fst.checked", "Vale.X64.Memory_Sems.fst.checked", "Vale.X64.Memory.fst.checked",...
[ { "abbrev": true, "full_module": "Vale.Interop.X64", "short_module": "IX64" }, { "abbrev": true, "full_module": "Vale.AsLowStar.ValeSig", "short_module": "VSig" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "ME" }, { "abbrev": true, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
src: Vale.Arch.HeapTypes_s.base_typ -> b: Vale.Interop.Base.buf_t src src -> FStar.Pervasives.Lemma (ensures LowStar.Monotonic.Buffer.length b == LowStar.BufferView.Down.length (Vale.Interop.Types.get_downview b) / Vale.Interop.Types.view_n src)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Vale.Interop.Base.buf_t", "FStar.Math.Lemmas.cancel_mul_div", "LowStar.Monotonic.Buffer.length", "Vale.Interop.Types.base_typ_as_type", "LowStar.Buffer.trivial_preorder", "Vale.Interop.Types.view_n", "Prims.unit", "LowStar.BufferView.Down.length_eq", "FStar.UInt8...
[]
true
false
true
false
false
let same_down_up_buffer_length src b =
let db = get_downview b in DV.length_eq db; FStar.Math.Lemmas.cancel_mul_div (B.length b) (view_n src)
false
MerkleTree.Low.VectorExtras.fst
MerkleTree.Low.VectorExtras.rv_flush_inplace
val rv_flush_inplace: #a:Type0 -> #rst:Type -> #rg:regional rst a -> rv:rvector rg -> i:uint32_t{i <= size_of rv} -> HST.ST (rvector rg) (requires (fun h0 -> rv_inv h0 rv)) (ensures (fun h0 frv h1 -> V.size_of frv = V.size_of rv - i /\ V.frameOf rv = V.frameOf frv /\ modifies (loc_rvect...
val rv_flush_inplace: #a:Type0 -> #rst:Type -> #rg:regional rst a -> rv:rvector rg -> i:uint32_t{i <= size_of rv} -> HST.ST (rvector rg) (requires (fun h0 -> rv_inv h0 rv)) (ensures (fun h0 frv h1 -> V.size_of frv = V.size_of rv - i /\ V.frameOf rv = V.frameOf frv /\ modifies (loc_rvect...
let rv_flush_inplace #a #rst #rg rv i = let hh0 = HST.get () in (if i = 0ul then () else free_elems rv (i - 1ul)); rv_loc_elems_included hh0 rv 0ul i; let hh1 = HST.get () in assert (modifies (rs_loc_elems rg (V.as_seq hh0 rv) 0 (U32.v i)) hh0 hh1); let frv = flush_inplace rv i in let hh2 = HST.get () i...
{ "file_name": "src/MerkleTree.Low.VectorExtras.fst", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 5, "end_line": 220, "start_col": 0, "start_line": 173 }
module MerkleTree.Low.VectorExtras module B = LowStar.Buffer module S = FStar.Seq module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module U32 = FStar.UInt32 open LowStar.BufferOps open Hacl.Hash.Lemmas open FStar.Integers open LowStar.Modifies open LowStar.Regional open LowStar.Vector open LowStar.RVect...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Vector.fst.checked", "LowStar.RVector.fst.checked", "LowStar.Regional.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Hacl.Hash.Lemmas.fst.checked", ...
[ { "abbrev": true, "full_module": "LowStar.RVector", "short_module": "RV" }, { "abbrev": true, "full_module": "LowStar.Vector", "short_module": "V" }, { "abbrev": false, "full_module": "LowStar.RVector", "short_module": null }, { "abbrev": false, "full_module":...
{ "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
rv: LowStar.RVector.rvector rg -> i: LowStar.Vector.uint32_t{i <= LowStar.Vector.size_of rv} -> FStar.HyperStack.ST.ST (LowStar.RVector.rvector rg)
FStar.HyperStack.ST.ST
[]
[]
[ "LowStar.Regional.regional", "LowStar.RVector.rvector", "LowStar.Vector.uint32_t", "Prims.b2t", "FStar.Integers.op_Less_Equals", "FStar.Integers.Unsigned", "FStar.Integers.W32", "LowStar.Vector.size_of", "Prims.unit", "Prims._assert", "FStar.Seq.Base.equal", "LowStar.Regional.__proj__Rgl__item...
[]
false
true
false
false
false
let rv_flush_inplace #a #rst #rg rv i =
let hh0 = HST.get () in (if i = 0ul then () else free_elems rv (i - 1ul)); rv_loc_elems_included hh0 rv 0ul i; let hh1 = HST.get () in assert (modifies (rs_loc_elems rg (V.as_seq hh0 rv) 0 (U32.v i)) hh0 hh1); let frv = flush_inplace rv i in let hh2 = HST.get () in assert (modifies (loc_region_only false (V.frameOf rv)...
false
MerkleTree.Low.VectorExtras.fst
MerkleTree.Low.VectorExtras.flush_inplace
val flush_inplace: #a:Type -> vec:vector a -> i:uint32_t{i <= size_of vec} -> HST.ST (vector a) (requires (fun h0 -> live h0 vec /\ freeable vec /\ HST.is_eternal_region (frameOf vec))) (ensures (fun h0 fvec h1 -> frameOf vec = frameOf fvec /\ hmap_dom_eq h0 h1 /\ live h1 fv...
val flush_inplace: #a:Type -> vec:vector a -> i:uint32_t{i <= size_of vec} -> HST.ST (vector a) (requires (fun h0 -> live h0 vec /\ freeable vec /\ HST.is_eternal_region (frameOf vec))) (ensures (fun h0 fvec h1 -> frameOf vec = frameOf fvec /\ hmap_dom_eq h0 h1 /\ live h1 fv...
let flush_inplace #a vec i = let h0 = HST.get() in if i >= size_of vec then shrink vec 0ul else if i = 0ul then vec else begin let n_shifted = size_of vec - i in move_left (Vec?.vs vec) 0ul i n_shifted; shrink vec n_shifted end
{ "file_name": "src/MerkleTree.Low.VectorExtras.fst", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 5, "end_line": 157, "start_col": 0, "start_line": 147 }
module MerkleTree.Low.VectorExtras module B = LowStar.Buffer module S = FStar.Seq module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module U32 = FStar.UInt32 open LowStar.BufferOps open Hacl.Hash.Lemmas open FStar.Integers open LowStar.Modifies open LowStar.Regional open LowStar.Vector open LowStar.RVect...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Vector.fst.checked", "LowStar.RVector.fst.checked", "LowStar.Regional.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Hacl.Hash.Lemmas.fst.checked", ...
[ { "abbrev": true, "full_module": "LowStar.RVector", "short_module": "RV" }, { "abbrev": true, "full_module": "LowStar.Vector", "short_module": "V" }, { "abbrev": false, "full_module": "LowStar.RVector", "short_module": null }, { "abbrev": false, "full_module":...
{ "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
vec: LowStar.Vector.vector a -> i: LowStar.Vector.uint32_t{i <= LowStar.Vector.size_of vec} -> FStar.HyperStack.ST.ST (LowStar.Vector.vector a)
FStar.HyperStack.ST.ST
[]
[]
[ "LowStar.Vector.vector", "LowStar.Vector.uint32_t", "Prims.b2t", "FStar.Integers.op_Less_Equals", "FStar.Integers.Unsigned", "FStar.Integers.W32", "LowStar.Vector.size_of", "FStar.Integers.op_Greater_Equals", "MerkleTree.Low.VectorExtras.shrink", "FStar.UInt32.__uint_to_t", "Prims.bool", "Prim...
[]
false
true
false
false
false
let flush_inplace #a vec i =
let h0 = HST.get () in if i >= size_of vec then shrink vec 0ul else if i = 0ul then vec else let n_shifted = size_of vec - i in move_left (Vec?.vs vec) 0ul i n_shifted; shrink vec n_shifted
false
Vale.AsLowStar.MemoryHelpers.fst
Vale.AsLowStar.MemoryHelpers.same_buffer_same_upviews
val same_buffer_same_upviews (#src #bt:base_typ) (b:buf_t src bt) (h0 h1:HS.mem) : Lemma (requires Seq.equal (B.as_seq h0 b) (B.as_seq h1 b)) (ensures ( let db = get_downview b in DV.length_eq db; let ub = UV.mk_buffer db (LSig.view_of_base_typ bt) in Seq.equal (UV.as_seq h0 ub) (UV.as_seq h1 ub)))
val same_buffer_same_upviews (#src #bt:base_typ) (b:buf_t src bt) (h0 h1:HS.mem) : Lemma (requires Seq.equal (B.as_seq h0 b) (B.as_seq h1 b)) (ensures ( let db = get_downview b in DV.length_eq db; let ub = UV.mk_buffer db (LSig.view_of_base_typ bt) in Seq.equal (UV.as_seq h0 ub) (UV.as_seq h1 ub)))
let same_buffer_same_upviews #src #bt b h0 h1 = let dv = get_downview b in let s0 = DV.as_seq h0 dv in let s1 = DV.as_seq h1 dv in let aux (i:nat{i < DV.length dv}) : Lemma (Seq.index s0 i == Seq.index s1 i) = DV.as_seq_sel h0 dv i; DV.as_seq_sel h1 dv i; DV.get_sel h0 dv i; DV.g...
{ "file_name": "vale/code/arch/x64/interop/Vale.AsLowStar.MemoryHelpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 81, "end_line": 158, "start_col": 0, "start_line": 146 }
module Vale.AsLowStar.MemoryHelpers open FStar.Mul open Vale.Arch.HeapImpl open Vale.X64.MemoryAdapters open Vale.Interop.Base module B = LowStar.Buffer module UV = LowStar.BufferView.Up module DV = LowStar.BufferView.Down module ME = Vale.X64.Memory module VSig = Vale.AsLowStar.ValeSig module IX64 = Vale.Interop.X64 ...
{ "checked_file": "/", "dependencies": [ "Vale.X64.StateLemmas.fst.checked", "Vale.X64.Stack_Sems.fst.checked", "Vale.X64.Stack_i.fst.checked", "Vale.X64.MemoryAdapters.fst.checked", "Vale.X64.MemoryAdapters.fst.checked", "Vale.X64.Memory_Sems.fst.checked", "Vale.X64.Memory.fst.checked",...
[ { "abbrev": true, "full_module": "Vale.Interop.X64", "short_module": "IX64" }, { "abbrev": true, "full_module": "Vale.AsLowStar.ValeSig", "short_module": "VSig" }, { "abbrev": true, "full_module": "Vale.X64.Memory", "short_module": "ME" }, { "abbrev": true, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Vale.Interop.Base.buf_t src bt -> h0: FStar.Monotonic.HyperStack.mem -> h1: FStar.Monotonic.HyperStack.mem -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.equal (LowStar.Monotonic.Buffer.as_seq h0 b) (LowStar.Monotonic.Buffer.as_seq h1 b)) (ensures (let db = Va...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Vale.Interop.Base.buf_t", "FStar.Monotonic.HyperStack.mem", "Vale.Lib.BufferViewHelpers.lemma_uv_equal", "FStar.UInt8.t", "Vale.Interop.Types.base_typ_as_type", "Vale.AsLowStar.LowStarSig.view_of_base_typ", "Prims.unit", "LowStar.BufferView.Down.length_eq", "FSta...
[]
false
false
true
false
false
let same_buffer_same_upviews #src #bt b h0 h1 =
let dv = get_downview b in let s0 = DV.as_seq h0 dv in let s1 = DV.as_seq h1 dv in let aux (i: nat{i < DV.length dv}) : Lemma (Seq.index s0 i == Seq.index s1 i) = DV.as_seq_sel h0 dv i; DV.as_seq_sel h1 dv i; DV.get_sel h0 dv i; DV.get_sel h1 dv i in Classical.forall_intro aux; Seq.lemma_eq_intro s0 s1; DV.leng...
false