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
LowParse.Low.Writers.fst
LowParse.Low.Writers.olwriter_nil
val olwriter_nil (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0}) (h0: HS.mem) (sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder...
val olwriter_nil (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0}) (h0: HS.mem) (sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder...
let olwriter_nil (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p { k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0 } ) (h0: HS.mem) (sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _))) (pout_from0: U32.t) : Tot (x: olwri...
{ "file_name": "src/lowparse/LowParse.Low.Writers.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 3, "end_line": 758, "start_col": 0, "start_line": 744 }
module LowParse.Low.Writers include LowParse.Low.Base module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module U32 = FStar.UInt32 module L = FStar.List.Tot inline_for_extraction noextract let fswriter (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p { k.pars...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Low.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.ST.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: LowParse.Spec.Base.serializer p { Mkparser_kind'?.parser_kind_subkind k == FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong /\ Mkparser_kind'?.parser_kind_low k > 0 } -> h0: FStar.Monotonic.HyperStack.mem -> sout: LowParse.Slice.slice (LowParse.Slice.s...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.l_and", "Prims.eq2", "FStar.Pervasives.Native.option", "LowParse.Spec.Base.parser_subkind", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind", "FStar.Pervasives.Native.Some", ...
[]
false
false
false
false
false
let olwriter_nil (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p {k.parser_kind_subkind == Some ParserStrong /\ k.parser_kind_low > 0}) (h0: HS.mem) (sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder...
OLWriter (Ghost.hide (Some [])) (fun pout_from -> let h = HST.get () in valid_list_nil p h sout pout_from; pout_from)
false
Spec.SHA3.fst
Spec.SHA3.shake128
val shake128 (inputByteLen: nat) (input: bytes{length input == inputByteLen}) (outputByteLen: size_nat) : Tot (lbytes outputByteLen)
val shake128 (inputByteLen: nat) (input: bytes{length input == inputByteLen}) (outputByteLen: size_nat) : Tot (lbytes outputByteLen)
let shake128 (inputByteLen:nat) (input:bytes{length input == inputByteLen}) (outputByteLen:size_nat) : Tot (lbytes outputByteLen) = keccak 1344 256 inputByteLen input (byte 0x1F) outputByteLen
{ "file_name": "specs/Spec.SHA3.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 62, "end_line": 208, "start_col": 0, "start_line": 202 }
module Spec.SHA3 open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open FStar.Mul open Lib.LoopCombinators open Spec.SHA3.Constants #reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" unfold type state = lseq uint64 25 unfold type index = n:size_nat{n < 5} let get (s:state) (x:index) (y:index) : Tot...
{ "checked_file": "/", "dependencies": [ "Spec.SHA3.Constants.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fst...
[ { "abbrev": false, "full_module": "Spec.SHA3.Constants", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
inputByteLen: Prims.nat -> input: Lib.ByteSequence.bytes{Lib.Sequence.length input == inputByteLen} -> outputByteLen: Lib.IntTypes.size_nat -> Lib.ByteSequence.lbytes outputByteLen
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Lib.ByteSequence.bytes", "Prims.eq2", "Lib.Sequence.length", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Lib.IntTypes.size_nat", "Spec.SHA3.keccak", "Lib.IntTypes.byte", "Lib.ByteSequence.lbytes" ]
[]
false
false
false
false
false
let shake128 (inputByteLen: nat) (input: bytes{length input == inputByteLen}) (outputByteLen: size_nat) : Tot (lbytes outputByteLen) =
keccak 1344 256 inputByteLen input (byte 0x1F) outputByteLen
false
Spec.SHA3.fst
Spec.SHA3.shake256
val shake256 (inputByteLen: nat) (input: bytes{length input == inputByteLen}) (outputByteLen: size_nat) : Tot (lbytes outputByteLen)
val shake256 (inputByteLen: nat) (input: bytes{length input == inputByteLen}) (outputByteLen: size_nat) : Tot (lbytes outputByteLen)
let shake256 (inputByteLen:nat) (input:bytes{length input == inputByteLen}) (outputByteLen:size_nat) : Tot (lbytes outputByteLen) = keccak 1088 512 inputByteLen input (byte 0x1F) outputByteLen
{ "file_name": "specs/Spec.SHA3.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 62, "end_line": 216, "start_col": 0, "start_line": 210 }
module Spec.SHA3 open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open FStar.Mul open Lib.LoopCombinators open Spec.SHA3.Constants #reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" unfold type state = lseq uint64 25 unfold type index = n:size_nat{n < 5} let get (s:state) (x:index) (y:index) : Tot...
{ "checked_file": "/", "dependencies": [ "Spec.SHA3.Constants.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fst...
[ { "abbrev": false, "full_module": "Spec.SHA3.Constants", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
inputByteLen: Prims.nat -> input: Lib.ByteSequence.bytes{Lib.Sequence.length input == inputByteLen} -> outputByteLen: Lib.IntTypes.size_nat -> Lib.ByteSequence.lbytes outputByteLen
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Lib.ByteSequence.bytes", "Prims.eq2", "Lib.Sequence.length", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Lib.IntTypes.size_nat", "Spec.SHA3.keccak", "Lib.IntTypes.byte", "Lib.ByteSequence.lbytes" ]
[]
false
false
false
false
false
let shake256 (inputByteLen: nat) (input: bytes{length input == inputByteLen}) (outputByteLen: size_nat) : Tot (lbytes outputByteLen) =
keccak 1088 512 inputByteLen input (byte 0x1F) outputByteLen
false
Spec.SHA3.fst
Spec.SHA3.squeeze
val squeeze (s: state) (rateInBytes: size_nat{0 < rateInBytes /\ rateInBytes <= 200}) (outputByteLen: size_nat) : Tot (lbytes outputByteLen)
val squeeze (s: state) (rateInBytes: size_nat{0 < rateInBytes /\ rateInBytes <= 200}) (outputByteLen: size_nat) : Tot (lbytes outputByteLen)
let squeeze (s:state) (rateInBytes:size_nat{0 < rateInBytes /\ rateInBytes <= 200}) (outputByteLen:size_nat): Tot (lbytes outputByteLen) = let outBlocks = outputByteLen / rateInBytes in let a (i:nat{i <= outBlocks}) = state in let s, output = generate_blocks rateInBytes outBlocks outBlocks a (s...
{ "file_name": "specs/Spec.SHA3.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 27, "end_line": 184, "start_col": 0, "start_line": 170 }
module Spec.SHA3 open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open FStar.Mul open Lib.LoopCombinators open Spec.SHA3.Constants #reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" unfold type state = lseq uint64 25 unfold type index = n:size_nat{n < 5} let get (s:state) (x:index) (y:index) : Tot...
{ "checked_file": "/", "dependencies": [ "Spec.SHA3.Constants.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fst...
[ { "abbrev": false, "full_module": "Spec.SHA3.Constants", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Spec.SHA3.state -> rateInBytes: Lib.IntTypes.size_nat{0 < rateInBytes /\ rateInBytes <= 200} -> outputByteLen: Lib.IntTypes.size_nat -> Lib.ByteSequence.lbytes outputByteLen
Prims.Tot
[ "total" ]
[]
[ "Spec.SHA3.state", "Lib.IntTypes.size_nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThan", "Prims.op_LessThanOrEqual", "Lib.Sequence.seq", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Prims.eq2", "Prims.int", "Lib.Sequence.length", "FStar.Mul.op_Star", "Lib.Sequence.o...
[]
false
false
false
false
false
let squeeze (s: state) (rateInBytes: size_nat{0 < rateInBytes /\ rateInBytes <= 200}) (outputByteLen: size_nat) : Tot (lbytes outputByteLen) =
let outBlocks = outputByteLen / rateInBytes in let a (i: nat{i <= outBlocks}) = state in let s, output = generate_blocks rateInBytes outBlocks outBlocks a (squeeze_inner rateInBytes outputByteLen) s in let remOut = outputByteLen % rateInBytes in let block = storeState remOut s in (to_lseq output) @| block
false
Spec.SHA3.fst
Spec.SHA3.storeState_inner
val storeState_inner (s: state) (j: size_nat{j < 25}) (block: lbytes 200) : Tot (lbytes 200)
val storeState_inner (s: state) (j: size_nat{j < 25}) (block: lbytes 200) : Tot (lbytes 200)
let storeState_inner (s:state) (j:size_nat{j < 25}) (block:lbytes 200) : Tot (lbytes 200) = update_sub block (j * 8) 8 (uint_to_bytes_le #U64 s.[j])
{ "file_name": "specs/Spec.SHA3.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 58, "end_line": 106, "start_col": 0, "start_line": 105 }
module Spec.SHA3 open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open FStar.Mul open Lib.LoopCombinators open Spec.SHA3.Constants #reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" unfold type state = lseq uint64 25 unfold type index = n:size_nat{n < 5} let get (s:state) (x:index) (y:index) : Tot...
{ "checked_file": "/", "dependencies": [ "Spec.SHA3.Constants.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fst...
[ { "abbrev": false, "full_module": "Spec.SHA3.Constants", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Spec.SHA3.state -> j: Lib.IntTypes.size_nat{j < 25} -> block: Lib.ByteSequence.lbytes 200 -> Lib.ByteSequence.lbytes 200
Prims.Tot
[ "total" ]
[]
[ "Spec.SHA3.state", "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThan", "Lib.ByteSequence.lbytes", "Lib.Sequence.update_sub", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "FStar.Mul.op_Star", "Lib.ByteSequence.uint_to_bytes_le", "Lib.IntTypes.U64", "Lib.Sequence.op_Str...
[]
false
false
false
false
false
let storeState_inner (s: state) (j: size_nat{j < 25}) (block: lbytes 200) : Tot (lbytes 200) =
update_sub block (j * 8) 8 (uint_to_bytes_le #U64 s.[ j ])
false
Spec.SHA3.fst
Spec.SHA3.loadState
val loadState (rateInBytes: size_nat{rateInBytes <= 200}) (input: lbytes rateInBytes) (s: state) : Tot state
val loadState (rateInBytes: size_nat{rateInBytes <= 200}) (input: lbytes rateInBytes) (s: state) : Tot state
let loadState (rateInBytes:size_nat{rateInBytes <= 200}) (input:lbytes rateInBytes) (s:state) : Tot state = let block = create 200 (u8 0) in let block = update_sub block 0 rateInBytes input in repeati 25 (loadState_inner block) s
{ "file_name": "specs/Spec.SHA3.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 103, "start_col": 0, "start_line": 95 }
module Spec.SHA3 open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open FStar.Mul open Lib.LoopCombinators open Spec.SHA3.Constants #reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" unfold type state = lseq uint64 25 unfold type index = n:size_nat{n < 5} let get (s:state) (x:index) (y:index) : Tot...
{ "checked_file": "/", "dependencies": [ "Spec.SHA3.Constants.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fst...
[ { "abbrev": false, "full_module": "Spec.SHA3.Constants", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
rateInBytes: Lib.IntTypes.size_nat{rateInBytes <= 200} -> input: Lib.ByteSequence.lbytes rateInBytes -> s: Spec.SHA3.state -> Spec.SHA3.state
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Lib.ByteSequence.lbytes", "Spec.SHA3.state", "Lib.LoopCombinators.repeati", "Spec.SHA3.loadState_inner", "Lib.Sequence.lseq", "Lib.IntTypes.int_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Prims.l_and", "Prims.eq2", "Lib.Seq...
[]
false
false
false
false
false
let loadState (rateInBytes: size_nat{rateInBytes <= 200}) (input: lbytes rateInBytes) (s: state) : Tot state =
let block = create 200 (u8 0) in let block = update_sub block 0 rateInBytes input in repeati 25 (loadState_inner block) s
false
LowParse.Low.Writers.fst
LowParse.Low.Writers.wcopy
val wcopy (#k #t: _) (#p: parser k t) (s: serializer p {k.parser_kind_subkind == Some ParserStrong}) (#rrel #rel: _) (sin: slice rrel rel) (pin_from pin_to: U32.t) (sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_pr...
val wcopy (#k #t: _) (#p: parser k t) (s: serializer p {k.parser_kind_subkind == Some ParserStrong}) (#rrel #rel: _) (sin: slice rrel rel) (pin_from pin_to: U32.t) (sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_pr...
let wcopy (#k: _) (#t: _) (#p: parser k t) (s: serializer p {k.parser_kind_subkind == Some ParserStrong}) (#rrel #rel: _) (sin: slice rrel rel) (pin_from pin_to: U32.t) (sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_preorder _))) (sout_from0: U32.t) (h0: HS...
{ "file_name": "src/lowparse/LowParse.Low.Writers.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 3, "end_line": 875, "start_col": 0, "start_line": 856 }
module LowParse.Low.Writers include LowParse.Low.Base module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module U32 = FStar.UInt32 module L = FStar.List.Tot inline_for_extraction noextract let fswriter (#k: parser_kind) (#t: Type) (#p: parser k t) (s: serializer p { k.pars...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Low.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.ST.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: LowParse.Spec.Base.serializer p { Mkparser_kind'?.parser_kind_subkind k == FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong } -> sin: LowParse.Slice.slice rrel rel -> pin_from: FStar.UInt32.t -> pin_to: FStar.UInt32.t -> sout: LowParse.Slice.slice (LowPa...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "Prims.eq2", "FStar.Pervasives.Native.option", "LowParse.Spec.Base.parser_subkind", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind", "FStar.Pervasives.Native.Some", "LowParse.Spec.B...
[]
false
false
false
false
false
let wcopy (#k #t: _) (#p: parser k t) (s: serializer p {k.parser_kind_subkind == Some ParserStrong}) (#rrel #rel: _) (sin: slice rrel rel) (pin_from pin_to: U32.t) (sout: slice (srel_of_buffer_srel (B.trivial_preorder _)) (srel_of_buffer_srel (B.trivial_pr...
Writer (Ghost.hide (contents p h0 sin pin_from)) (fun sout_from -> copy_weak_with_length p sin pin_from pin_to sout sout_from)
false
Spec.SHA3.fst
Spec.SHA3.absorb_last
val absorb_last: delimitedSuffix:byte_t -> rateInBytes:size_nat{0 < rateInBytes /\ rateInBytes <= 200} -> rem:size_nat{rem < rateInBytes} -> input:lbytes rem -> s:state -> Tot state
val absorb_last: delimitedSuffix:byte_t -> rateInBytes:size_nat{0 < rateInBytes /\ rateInBytes <= 200} -> rem:size_nat{rem < rateInBytes} -> input:lbytes rem -> s:state -> Tot state
let absorb_last delimitedSuffix rateInBytes rem input s = let lastBlock = create rateInBytes (u8 0) in let lastBlock = update_sub lastBlock 0 rem input in let lastBlock = lastBlock.[rem] <- byte_to_uint8 delimitedSuffix in let s = loadState rateInBytes lastBlock s in let s = if not ((delimitedSuffix &. by...
{ "file_name": "specs/Spec.SHA3.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 27, "end_line": 136, "start_col": 0, "start_line": 127 }
module Spec.SHA3 open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open FStar.Mul open Lib.LoopCombinators open Spec.SHA3.Constants #reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" unfold type state = lseq uint64 25 unfold type index = n:size_nat{n < 5} let get (s:state) (x:index) (y:index) : Tot...
{ "checked_file": "/", "dependencies": [ "Spec.SHA3.Constants.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fst...
[ { "abbrev": false, "full_module": "Spec.SHA3.Constants", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
delimitedSuffix: Lib.IntTypes.byte_t -> rateInBytes: Lib.IntTypes.size_nat{0 < rateInBytes /\ rateInBytes <= 200} -> rem: Lib.IntTypes.size_nat{rem < rateInBytes} -> input: Lib.ByteSequence.lbytes rem -> s: Spec.SHA3.state -> Spec.SHA3.state
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.byte_t", "Lib.IntTypes.size_nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThan", "Prims.op_LessThanOrEqual", "Lib.ByteSequence.lbytes", "Spec.SHA3.state", "Spec.SHA3.absorb_next", "Lib.Sequence.lseq", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Prims.op_A...
[]
false
false
false
false
false
let absorb_last delimitedSuffix rateInBytes rem input s =
let lastBlock = create rateInBytes (u8 0) in let lastBlock = update_sub lastBlock 0 rem input in let lastBlock = lastBlock.[ rem ] <- byte_to_uint8 delimitedSuffix in let s = loadState rateInBytes lastBlock s in let s = if not ((delimitedSuffix &. byte 0x80) =. byte 0) && (rem = rateInBytes - 1) then state_permute ...
false
Spec.SHA3.fst
Spec.SHA3.loadState_inner
val loadState_inner (block: lbytes 200) (j: size_nat{j < 25}) (s: state) : Tot state
val loadState_inner (block: lbytes 200) (j: size_nat{j < 25}) (s: state) : Tot state
let loadState_inner (block:lbytes 200) (j:size_nat{j < 25}) (s:state) : Tot state = s.[j] <- s.[j] ^. uint_from_bytes_le #U64 (sub block (j * 8) 8)
{ "file_name": "specs/Spec.SHA3.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 65, "end_line": 93, "start_col": 0, "start_line": 92 }
module Spec.SHA3 open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open FStar.Mul open Lib.LoopCombinators open Spec.SHA3.Constants #reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" unfold type state = lseq uint64 25 unfold type index = n:size_nat{n < 5} let get (s:state) (x:index) (y:index) : Tot...
{ "checked_file": "/", "dependencies": [ "Spec.SHA3.Constants.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fst...
[ { "abbrev": false, "full_module": "Spec.SHA3.Constants", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
block: Lib.ByteSequence.lbytes 200 -> j: Lib.IntTypes.size_nat{j < 25} -> s: Spec.SHA3.state -> Spec.SHA3.state
Prims.Tot
[ "total" ]
[]
[ "Lib.ByteSequence.lbytes", "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThan", "Spec.SHA3.state", "Lib.Sequence.op_String_Assignment", "Lib.IntTypes.uint64", "Lib.IntTypes.op_Hat_Dot", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Lib.Sequence.op_String_Access", "Lib.ByteSequence.uint_from_b...
[]
false
false
false
false
false
let loadState_inner (block: lbytes 200) (j: size_nat{j < 25}) (s: state) : Tot state =
s.[ j ] <- s.[ j ] ^. uint_from_bytes_le #U64 (sub block (j * 8) 8)
false
Spec.SHA3.fst
Spec.SHA3.sha3_256
val sha3_256 (inputByteLen: nat) (input: bytes{length input == inputByteLen}) : lbytes 32
val sha3_256 (inputByteLen: nat) (input: bytes{length input == inputByteLen}) : lbytes 32
let sha3_256 (inputByteLen:nat) (input:bytes{length input == inputByteLen}) : lbytes 32 = keccak 1088 512 inputByteLen input (byte 0x06) 32
{ "file_name": "specs/Spec.SHA3.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 51, "end_line": 222, "start_col": 0, "start_line": 221 }
module Spec.SHA3 open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open FStar.Mul open Lib.LoopCombinators open Spec.SHA3.Constants #reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" unfold type state = lseq uint64 25 unfold type index = n:size_nat{n < 5} let get (s:state) (x:index) (y:index) : Tot...
{ "checked_file": "/", "dependencies": [ "Spec.SHA3.Constants.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fst...
[ { "abbrev": false, "full_module": "Spec.SHA3.Constants", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
inputByteLen: Prims.nat -> input: Lib.ByteSequence.bytes{Lib.Sequence.length input == inputByteLen} -> Lib.ByteSequence.lbytes 32
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Lib.ByteSequence.bytes", "Prims.eq2", "Lib.Sequence.length", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Spec.SHA3.keccak", "Lib.IntTypes.byte", "Lib.ByteSequence.lbytes" ]
[]
false
false
false
false
false
let sha3_256 (inputByteLen: nat) (input: bytes{length input == inputByteLen}) : lbytes 32 =
keccak 1088 512 inputByteLen input (byte 0x06) 32
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.add
val add: BN.bn_add_eq_len_st t_limbs n_limbs
val add: BN.bn_add_eq_len_st t_limbs n_limbs
let add: BN.bn_add_eq_len_st t_limbs n_limbs = BN.bn_add_eq_len n_limbs
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 26, "end_line": 15, "start_col": 0, "start_line": 14 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.bn_add_eq_len_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.bn_add_eq_len", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.n_limbs", "Hacl.Bignum.bn_add_eq_len_st" ]
[]
false
false
false
true
false
let add:BN.bn_add_eq_len_st t_limbs n_limbs =
BN.bn_add_eq_len n_limbs
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.sub
val sub: BN.bn_sub_eq_len_st t_limbs n_limbs
val sub: BN.bn_sub_eq_len_st t_limbs n_limbs
let sub: BN.bn_sub_eq_len_st t_limbs n_limbs = BN.bn_sub_eq_len n_limbs
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 26, "end_line": 18, "start_col": 0, "start_line": 17 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.bn_sub_eq_len_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.bn_sub_eq_len", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.n_limbs", "Hacl.Bignum.bn_sub_eq_len_st" ]
[]
false
false
false
true
false
let sub:BN.bn_sub_eq_len_st t_limbs n_limbs =
BN.bn_sub_eq_len n_limbs
false
Spec.SHA3.fst
Spec.SHA3.sha3_224
val sha3_224 (inputByteLen: nat) (input: bytes{length input == inputByteLen}) : lbytes 28
val sha3_224 (inputByteLen: nat) (input: bytes{length input == inputByteLen}) : lbytes 28
let sha3_224 (inputByteLen:nat) (input:bytes{length input == inputByteLen}) : lbytes 28 = keccak 1152 448 inputByteLen input (byte 0x06) 28
{ "file_name": "specs/Spec.SHA3.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 51, "end_line": 219, "start_col": 0, "start_line": 218 }
module Spec.SHA3 open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open FStar.Mul open Lib.LoopCombinators open Spec.SHA3.Constants #reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" unfold type state = lseq uint64 25 unfold type index = n:size_nat{n < 5} let get (s:state) (x:index) (y:index) : Tot...
{ "checked_file": "/", "dependencies": [ "Spec.SHA3.Constants.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fst...
[ { "abbrev": false, "full_module": "Spec.SHA3.Constants", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
inputByteLen: Prims.nat -> input: Lib.ByteSequence.bytes{Lib.Sequence.length input == inputByteLen} -> Lib.ByteSequence.lbytes 28
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Lib.ByteSequence.bytes", "Prims.eq2", "Lib.Sequence.length", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Spec.SHA3.keccak", "Lib.IntTypes.byte", "Lib.ByteSequence.lbytes" ]
[]
false
false
false
false
false
let sha3_224 (inputByteLen: nat) (input: bytes{length input == inputByteLen}) : lbytes 28 =
keccak 1152 448 inputByteLen input (byte 0x06) 28
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.precompr2
val precompr2:BM.bn_precomp_r2_mod_n_st t_limbs n_limbs
val precompr2:BM.bn_precomp_r2_mod_n_st t_limbs n_limbs
let precompr2: BM.bn_precomp_r2_mod_n_st t_limbs n_limbs = BM.bn_precomp_r2_mod_n bn_inst
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 32, "end_line": 50, "start_col": 0, "start_line": 49 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.Montgomery.bn_precomp_r2_mod_n_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Montgomery.bn_precomp_r2_mod_n", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.bn_inst" ]
[]
false
false
false
true
false
let precompr2:BM.bn_precomp_r2_mod_n_st t_limbs n_limbs =
BM.bn_precomp_r2_mod_n bn_inst
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.mont_check
val mont_check:BM.bn_check_modulus_st t_limbs n_limbs
val mont_check:BM.bn_check_modulus_st t_limbs n_limbs
let mont_check: BM.bn_check_modulus_st t_limbs n_limbs = BM.bn_check_modulus
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 46, "start_col": 0, "start_line": 45 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.Montgomery.bn_check_modulus_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Montgomery.bn_check_modulus", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.n_limbs" ]
[]
false
false
false
true
false
let mont_check:BM.bn_check_modulus_st t_limbs n_limbs =
BM.bn_check_modulus
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.bn_inst
[@@ FStar.Tactics.Typeclasses.tcinstance] val bn_inst:BN.bn t_limbs
[@@ FStar.Tactics.Typeclasses.tcinstance] val bn_inst:BN.bn t_limbs
instance bn_inst: BN.bn t_limbs = { BN.len = n_limbs; BN.add; BN.sub; BN.add_mod_n = add_mod; BN.sub_mod_n = sub_mod; BN.mul; BN.sqr }
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 1, "end_line": 42, "start_col": 0, "start_line": 34 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.bn Hacl.Bignum256_32.t_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Mkbn", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.n_limbs", "Hacl.Bignum256_32.add", "Hacl.Bignum256_32.sub", "Hacl.Bignum256_32.add_mod", "Hacl.Bignum256_32.sub_mod", "Hacl.Bignum256_32.mul", "Hacl.Bignum256_32.sqr" ]
[]
false
false
false
true
false
[@@ FStar.Tactics.Typeclasses.tcinstance] let bn_inst:BN.bn t_limbs =
{ BN.len = n_limbs; BN.add = add; BN.sub = sub; BN.add_mod_n = add_mod; BN.sub_mod_n = sub_mod; BN.mul = mul; BN.sqr = sqr }
false
Spec.SHA3.fst
Spec.SHA3.sha3_512
val sha3_512 (inputByteLen: nat) (input: bytes{length input == inputByteLen}) : lbytes 64
val sha3_512 (inputByteLen: nat) (input: bytes{length input == inputByteLen}) : lbytes 64
let sha3_512 (inputByteLen:nat) (input:bytes{length input == inputByteLen}) : lbytes 64 = keccak 576 1024 inputByteLen input (byte 0x06) 64
{ "file_name": "specs/Spec.SHA3.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 51, "end_line": 228, "start_col": 0, "start_line": 227 }
module Spec.SHA3 open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open FStar.Mul open Lib.LoopCombinators open Spec.SHA3.Constants #reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" unfold type state = lseq uint64 25 unfold type index = n:size_nat{n < 5} let get (s:state) (x:index) (y:index) : Tot...
{ "checked_file": "/", "dependencies": [ "Spec.SHA3.Constants.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fst...
[ { "abbrev": false, "full_module": "Spec.SHA3.Constants", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
inputByteLen: Prims.nat -> input: Lib.ByteSequence.bytes{Lib.Sequence.length input == inputByteLen} -> Lib.ByteSequence.lbytes 64
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Lib.ByteSequence.bytes", "Prims.eq2", "Lib.Sequence.length", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Spec.SHA3.keccak", "Lib.IntTypes.byte", "Lib.ByteSequence.lbytes" ]
[]
false
false
false
false
false
let sha3_512 (inputByteLen: nat) (input: bytes{length input == inputByteLen}) : lbytes 64 =
keccak 576 1024 inputByteLen input (byte 0x06) 64
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.almost_mont_inst
[@@ FStar.Tactics.Typeclasses.tcinstance] val almost_mont_inst:AM.almost_mont t_limbs
[@@ FStar.Tactics.Typeclasses.tcinstance] val almost_mont_inst:AM.almost_mont t_limbs
instance almost_mont_inst: AM.almost_mont t_limbs = { AM.bn = bn_inst; AM.mont_check; AM.precomp = precompr2; AM.reduction = areduction; AM.to; AM.from; AM.mul = amont_mul; AM.sqr = amont_sqr; }
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 1, "end_line": 106, "start_col": 0, "start_line": 97 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.AlmostMontgomery.almost_mont Hacl.Bignum256_32.t_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.AlmostMontgomery.Mkalmost_mont", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.bn_inst", "Hacl.Bignum256_32.mont_check", "Hacl.Bignum256_32.precompr2", "Hacl.Bignum256_32.areduction", "Hacl.Bignum256_32.to", "Hacl.Bignum256_32.from", "Hacl.Bignum256_32.amont_mul", "Hacl.Bignum256_32...
[]
false
false
false
true
false
[@@ FStar.Tactics.Typeclasses.tcinstance] let almost_mont_inst:AM.almost_mont t_limbs =
{ AM.bn = bn_inst; AM.mont_check = mont_check; AM.precomp = precompr2; AM.reduction = areduction; AM.to = to; AM.from = from; AM.mul = amont_mul; AM.sqr = amont_sqr }
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.from
val from:BM.bn_from_mont_st t_limbs n_limbs
val from:BM.bn_from_mont_st t_limbs n_limbs
let from: BM.bn_from_mont_st t_limbs n_limbs = BM.bn_from_mont bn_inst reduction
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 35, "end_line": 62, "start_col": 0, "start_line": 61 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.Montgomery.bn_from_mont_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Montgomery.bn_from_mont", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.bn_inst", "Hacl.Bignum256_32.reduction" ]
[]
false
false
false
true
false
let from:BM.bn_from_mont_st t_limbs n_limbs =
BM.bn_from_mont bn_inst reduction
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.to
val to:BM.bn_to_mont_st t_limbs n_limbs
val to:BM.bn_to_mont_st t_limbs n_limbs
let to: BM.bn_to_mont_st t_limbs n_limbs = BM.bn_to_mont bn_inst reduction
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 33, "end_line": 58, "start_col": 0, "start_line": 57 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.Montgomery.bn_to_mont_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Montgomery.bn_to_mont", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.bn_inst", "Hacl.Bignum256_32.reduction" ]
[]
false
false
false
true
false
let to:BM.bn_to_mont_st t_limbs n_limbs =
BM.bn_to_mont bn_inst reduction
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.bn_slow_precomp
val bn_slow_precomp:BR.bn_mod_slow_precomp_st t_limbs n_limbs
val bn_slow_precomp:BR.bn_mod_slow_precomp_st t_limbs n_limbs
let bn_slow_precomp : BR.bn_mod_slow_precomp_st t_limbs n_limbs = BR.bn_mod_slow_precomp almost_mont_inst
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 41, "end_line": 110, "start_col": 0, "start_line": 109 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.ModReduction.bn_mod_slow_precomp_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.ModReduction.bn_mod_slow_precomp", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.almost_mont_inst" ]
[]
false
false
false
true
false
let bn_slow_precomp:BR.bn_mod_slow_precomp_st t_limbs n_limbs =
BR.bn_mod_slow_precomp almost_mont_inst
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.amont_mul
val amont_mul:AM.bn_almost_mont_mul_st t_limbs n_limbs
val amont_mul:AM.bn_almost_mont_mul_st t_limbs n_limbs
let amont_mul: AM.bn_almost_mont_mul_st t_limbs n_limbs = AM.bn_almost_mont_mul bn_inst areduction
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 42, "end_line": 90, "start_col": 0, "start_line": 89 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.AlmostMontgomery.bn_almost_mont_mul_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.AlmostMontgomery.bn_almost_mont_mul", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.bn_inst", "Hacl.Bignum256_32.areduction" ]
[]
false
false
false
true
false
let amont_mul:AM.bn_almost_mont_mul_st t_limbs n_limbs =
AM.bn_almost_mont_mul bn_inst areduction
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.exp_check
val exp_check:BE.bn_check_mod_exp_st t_limbs n_limbs
val exp_check:BE.bn_check_mod_exp_st t_limbs n_limbs
let exp_check: BE.bn_check_mod_exp_st t_limbs n_limbs = BE.bn_check_mod_exp n_limbs
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 116, "start_col": 0, "start_line": 115 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.Exponentiation.bn_check_mod_exp_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Exponentiation.bn_check_mod_exp", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.n_limbs" ]
[]
false
false
false
true
false
let exp_check:BE.bn_check_mod_exp_st t_limbs n_limbs =
BE.bn_check_mod_exp n_limbs
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.exp_vartime
val exp_vartime:BE.bn_mod_exp_st t_limbs n_limbs
val exp_vartime:BE.bn_mod_exp_st t_limbs n_limbs
let exp_vartime: BE.bn_mod_exp_st t_limbs n_limbs = BE.mk_bn_mod_exp n_limbs precompr2 exp_vartime_precomp
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 56, "end_line": 132, "start_col": 0, "start_line": 131 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.Exponentiation.bn_mod_exp_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Exponentiation.mk_bn_mod_exp", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.n_limbs", "Hacl.Bignum256_32.precompr2", "Hacl.Bignum256_32.exp_vartime_precomp" ]
[]
false
false
false
true
false
let exp_vartime:BE.bn_mod_exp_st t_limbs n_limbs =
BE.mk_bn_mod_exp n_limbs precompr2 exp_vartime_precomp
false
Spec.SHA3.fst
Spec.SHA3.sha3_384
val sha3_384 (inputByteLen: nat) (input: bytes{length input == inputByteLen}) : lbytes 48
val sha3_384 (inputByteLen: nat) (input: bytes{length input == inputByteLen}) : lbytes 48
let sha3_384 (inputByteLen:nat) (input:bytes{length input == inputByteLen}) : lbytes 48 = keccak 832 768 inputByteLen input (byte 0x06) 48
{ "file_name": "specs/Spec.SHA3.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 50, "end_line": 225, "start_col": 0, "start_line": 224 }
module Spec.SHA3 open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence open FStar.Mul open Lib.LoopCombinators open Spec.SHA3.Constants #reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" unfold type state = lseq uint64 25 unfold type index = n:size_nat{n < 5} let get (s:state) (x:index) (y:index) : Tot...
{ "checked_file": "/", "dependencies": [ "Spec.SHA3.Constants.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fst...
[ { "abbrev": false, "full_module": "Spec.SHA3.Constants", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
inputByteLen: Prims.nat -> input: Lib.ByteSequence.bytes{Lib.Sequence.length input == inputByteLen} -> Lib.ByteSequence.lbytes 48
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Lib.ByteSequence.bytes", "Prims.eq2", "Lib.Sequence.length", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Spec.SHA3.keccak", "Lib.IntTypes.byte", "Lib.ByteSequence.lbytes" ]
[]
false
false
false
false
false
let sha3_384 (inputByteLen: nat) (input: bytes{length input == inputByteLen}) : lbytes 48 =
keccak 832 768 inputByteLen input (byte 0x06) 48
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.mod_exp_consttime
val mod_exp_consttime: BS.bn_mod_exp_safe_st t_limbs n_limbs
val mod_exp_consttime: BS.bn_mod_exp_safe_st t_limbs n_limbs
let mod_exp_consttime = BS.mk_bn_mod_exp_safe n_limbs exp_check exp_consttime
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 77, "end_line": 140, "start_col": 0, "start_line": 140 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.SafeAPI.bn_mod_exp_safe_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.SafeAPI.mk_bn_mod_exp_safe", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.n_limbs", "Hacl.Bignum256_32.exp_check", "Hacl.Bignum256_32.exp_consttime" ]
[]
false
false
false
true
false
let mod_exp_consttime =
BS.mk_bn_mod_exp_safe n_limbs exp_check exp_consttime
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.exp_consttime
val exp_consttime:BE.bn_mod_exp_st t_limbs n_limbs
val exp_consttime:BE.bn_mod_exp_st t_limbs n_limbs
let exp_consttime: BE.bn_mod_exp_st t_limbs n_limbs = BE.mk_bn_mod_exp n_limbs precompr2 exp_consttime_precomp
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 58, "end_line": 136, "start_col": 0, "start_line": 135 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.Exponentiation.bn_mod_exp_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Exponentiation.mk_bn_mod_exp", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.n_limbs", "Hacl.Bignum256_32.precompr2", "Hacl.Bignum256_32.exp_consttime_precomp" ]
[]
false
false
false
true
false
let exp_consttime:BE.bn_mod_exp_st t_limbs n_limbs =
BE.mk_bn_mod_exp n_limbs precompr2 exp_consttime_precomp
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.mod_exp_vartime
val mod_exp_vartime: BS.bn_mod_exp_safe_st t_limbs n_limbs
val mod_exp_vartime: BS.bn_mod_exp_safe_st t_limbs n_limbs
let mod_exp_vartime = BS.mk_bn_mod_exp_safe n_limbs exp_check exp_vartime
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 73, "end_line": 138, "start_col": 0, "start_line": 138 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.SafeAPI.bn_mod_exp_safe_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.SafeAPI.mk_bn_mod_exp_safe", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.n_limbs", "Hacl.Bignum256_32.exp_check", "Hacl.Bignum256_32.exp_vartime" ]
[]
false
false
false
true
false
let mod_exp_vartime =
BS.mk_bn_mod_exp_safe n_limbs exp_check exp_vartime
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.mont_ctx_init
val mont_ctx_init: MA.bn_field_init_st t_limbs n_limbs
val mont_ctx_init: MA.bn_field_init_st t_limbs n_limbs
let mont_ctx_init r n = MA.bn_field_init n_limbs precompr2 r n
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 40, "end_line": 145, "start_col": 0, "start_line": 144 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.MontArithmetic.bn_field_init_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "FStar.Monotonic.HyperHeap.rid", "Hacl.Bignum.Definitions.lbignum", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.n_limbs", "Hacl.Bignum.MontArithmetic.bn_field_init", "Hacl.Bignum256_32.precompr2", "Hacl.Bignum.MontArithmetic.pbn_mont_ctx" ]
[]
false
false
false
true
false
let mont_ctx_init r n =
MA.bn_field_init n_limbs precompr2 r n
false
Steel.ST.Array.Util.fst
Steel.ST.Array.Util.forall2_cond
val forall2_cond: #a: Type0 -> #b: Type0 -> n: US.t -> a0: A.array a -> a1: A.array b -> p: (a -> b -> bool) -> r: R.ref US.t -> p0: perm -> p1: perm -> s0: G.erased (Seq.seq a) -> s1: G.erased (Seq.seq b) -> squash (Seq.length s0 == US.v n /\ Seq.length s0 == Seq.length ...
val forall2_cond: #a: Type0 -> #b: Type0 -> n: US.t -> a0: A.array a -> a1: A.array b -> p: (a -> b -> bool) -> r: R.ref US.t -> p0: perm -> p1: perm -> s0: G.erased (Seq.seq a) -> s1: G.erased (Seq.seq b) -> squash (Seq.length s0 == US.v n /\ Seq.length s0 == Seq.length ...
let forall2_cond (#a #b:Type0) (n:US.t) (a0:A.array a) (a1:A.array b) (p:a -> b -> bool) (r:R.ref US.t) (p0 p1:perm) (s0:G.erased (Seq.seq a)) (s1:G.erased (Seq.seq b)) (_:squash (Seq.length s0 == US.v n /\ Seq.length s0 == Seq.length s1)) : unit -> STT bool (exists_ (forall2_inv n a0 ...
{ "file_name": "lib/steel/Steel.ST.Array.Util.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 14, "end_line": 364, "start_col": 0, "start_line": 332 }
(* Copyright 2021 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.Reference.fsti.checked", "Steel.ST.Loops.fsti.checked", "Steel.ST.Effect.fsti.checked", "Steel.ST.Array.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.SizeT.fsti.che...
[ { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST.Effect", "short_module": null }, { "abbrev": false, "full_module": "Steel.FractionalPermission", "short_module": null }, { "abbrev": true, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: FStar.SizeT.t -> a0: Steel.ST.Array.array a -> a1: Steel.ST.Array.array b -> p: (_: a -> _: b -> Prims.bool) -> r: Steel.ST.Reference.ref FStar.SizeT.t -> p0: Steel.FractionalPermission.perm -> p1: Steel.FractionalPermission.perm -> s0: FStar.Ghost.erased (FStar.Seq.Base.seq a) -> ...
Steel.ST.Effect.STT
[]
[]
[ "FStar.SizeT.t", "Steel.ST.Array.array", "Prims.bool", "Steel.ST.Reference.ref", "Steel.FractionalPermission.perm", "FStar.Ghost.erased", "FStar.Seq.Base.seq", "Prims.squash", "Prims.l_and", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "FStar.Ghost.reveal", "FStar.SizeT.v", "Prims....
[]
false
true
false
false
false
let forall2_cond (#a: Type0) (#b: Type0) (n: US.t) (a0: A.array a) (a1: A.array b) (p: (a -> b -> bool)) (r: R.ref US.t) (p0: perm) (p1: perm) (s0: G.erased (Seq.seq a)) (s1: G.erased (Seq.seq b)) (_: squash (Seq.length s0 == US.v n /\ Seq.length s...
fun _ -> let _ = elim_exists () in let _ = elim_exists () in elim_pure _; elim_pure _; let i = R.read r in let b = i = n in let res = if b then return false else let elt0 = A.read a0 i in let elt1 = A.read a1 i in return (p elt0 elt1) in intro_pure (forall2_pure_inv n p s...
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.amont_sqr
val amont_sqr:AM.bn_almost_mont_sqr_st t_limbs n_limbs
val amont_sqr:AM.bn_almost_mont_sqr_st t_limbs n_limbs
let amont_sqr: AM.bn_almost_mont_sqr_st t_limbs n_limbs = AM.bn_almost_mont_sqr bn_inst areduction
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 42, "end_line": 94, "start_col": 0, "start_line": 93 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.AlmostMontgomery.bn_almost_mont_sqr_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.AlmostMontgomery.bn_almost_mont_sqr", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.bn_inst", "Hacl.Bignum256_32.areduction" ]
[]
false
false
false
true
false
let amont_sqr:AM.bn_almost_mont_sqr_st t_limbs n_limbs =
AM.bn_almost_mont_sqr bn_inst areduction
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.new_bn_from_bytes_be
val new_bn_from_bytes_be: BS.new_bn_from_bytes_be_st t_limbs
val new_bn_from_bytes_be: BS.new_bn_from_bytes_be_st t_limbs
let new_bn_from_bytes_be = BS.new_bn_from_bytes_be
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 50, "end_line": 163, "start_col": 0, "start_line": 163 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.SafeAPI.new_bn_from_bytes_be_st Hacl.Bignum256_32.t_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.SafeAPI.new_bn_from_bytes_be", "Hacl.Bignum256_32.t_limbs" ]
[]
false
false
false
true
false
let new_bn_from_bytes_be =
BS.new_bn_from_bytes_be
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.mod_inv_prime_vartime
val mod_inv_prime_vartime: BS.bn_mod_inv_prime_safe_st t_limbs n_limbs
val mod_inv_prime_vartime: BS.bn_mod_inv_prime_safe_st t_limbs n_limbs
let mod_inv_prime_vartime = BS.mk_bn_mod_inv_prime_safe n_limbs exp_vartime
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 75, "end_line": 142, "start_col": 0, "start_line": 142 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.SafeAPI.bn_mod_inv_prime_safe_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.SafeAPI.mk_bn_mod_inv_prime_safe", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.n_limbs", "Hacl.Bignum256_32.exp_vartime" ]
[]
false
false
false
true
false
let mod_inv_prime_vartime =
BS.mk_bn_mod_inv_prime_safe n_limbs exp_vartime
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.mont_ctx_free
val mont_ctx_free: MA.bn_field_free_st t_limbs
val mont_ctx_free: MA.bn_field_free_st t_limbs
let mont_ctx_free k = MA.bn_field_free k
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 20, "end_line": 148, "start_col": 0, "start_line": 147 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.MontArithmetic.bn_field_free_st Hacl.Bignum256_32.t_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.MontArithmetic.pbn_mont_ctx", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum.MontArithmetic.bn_field_free", "Prims.unit" ]
[]
false
false
false
true
false
let mont_ctx_free k =
MA.bn_field_free k
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.lt_mask
val lt_mask: BN.bn_lt_mask_st t_limbs n_limbs
val lt_mask: BN.bn_lt_mask_st t_limbs n_limbs
let lt_mask = BN.bn_lt_mask n_limbs
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 35, "end_line": 171, "start_col": 0, "start_line": 171 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.bn_lt_mask_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.bn_lt_mask", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.n_limbs" ]
[]
false
false
false
true
false
let lt_mask =
BN.bn_lt_mask n_limbs
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.new_bn_from_bytes_le
val new_bn_from_bytes_le: BS.new_bn_from_bytes_le_st t_limbs
val new_bn_from_bytes_le: BS.new_bn_from_bytes_le_st t_limbs
let new_bn_from_bytes_le = BS.new_bn_from_bytes_le
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 50, "end_line": 165, "start_col": 0, "start_line": 165 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.SafeAPI.new_bn_from_bytes_le_st Hacl.Bignum256_32.t_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.SafeAPI.new_bn_from_bytes_le", "Hacl.Bignum256_32.t_limbs" ]
[]
false
false
false
true
false
let new_bn_from_bytes_le =
BS.new_bn_from_bytes_le
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.mod_inv_prime_vartime_precomp
val mod_inv_prime_vartime_precomp: BS.bn_mod_inv_prime_ctx_st t_limbs n_limbs
val mod_inv_prime_vartime_precomp: BS.bn_mod_inv_prime_ctx_st t_limbs n_limbs
let mod_inv_prime_vartime_precomp k a res = BS.mk_bn_mod_inv_prime_ctx n_limbs (BI.mk_bn_mod_inv_prime_precomp n_limbs exp_vartime_precomp) k a res
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 72, "end_line": 161, "start_col": 0, "start_line": 159 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.SafeAPI.bn_mod_inv_prime_ctx_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.MontArithmetic.pbn_mont_ctx", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum.Definitions.lbignum", "Hacl.Bignum256_32.n_limbs", "Hacl.Bignum.SafeAPI.mk_bn_mod_inv_prime_ctx", "FStar.Ghost.hide", "Hacl.Bignum.meta_len", "Hacl.Bignum.ModInv.mk_bn_mod_inv_prime_precomp", "Hacl.Bignum256_32.exp_...
[]
false
false
false
true
false
let mod_inv_prime_vartime_precomp k a res =
BS.mk_bn_mod_inv_prime_ctx n_limbs (BI.mk_bn_mod_inv_prime_precomp n_limbs exp_vartime_precomp) k a res
false
Hacl.Spec.K256.Field52.fst
Hacl.Spec.K256.Field52.is_felem_eq_vartime5
val is_felem_eq_vartime5 : _: Hacl.Spec.K256.Field52.Definitions.felem5 -> _: Hacl.Spec.K256.Field52.Definitions.felem5 -> Prims.bool
let is_felem_eq_vartime5 ((a0,a1,a2,a3,a4): felem5) ((b0,b1,b2,b3,b4): felem5) : bool = let open Lib.RawIntTypes in u64_to_UInt64 a0 =. u64_to_UInt64 b0 && u64_to_UInt64 a1 =. u64_to_UInt64 b1 && u64_to_UInt64 a2 =. u64_to_UInt64 b2 && u64_to_UInt64 a3 =. u64_to_UInt64 b3 && u64_to_UInt64 a4 =. u64_to_UInt6...
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 111, "start_col": 0, "start_line": 105 }
module Hacl.Spec.K256.Field52 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let load_felem5 ((s0,s1,s2,s3): felem4) : felem5 = let f0 = s0 &. mask52 in let f1 = (s0 >>. 52ul) |. ((...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52.Definitions", "short_module": null }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Hacl.Spec.K256.Field52.Definitions.felem5 -> _: Hacl.Spec.K256.Field52.Definitions.felem5 -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.K256.Field52.Definitions.felem5", "FStar.Pervasives.Native.Mktuple2", "FStar.Pervasives.Native.tuple5", "Lib.IntTypes.uint64", "Prims.op_AmpAmp", "Lib.IntTypes.op_Equals_Dot", "Lib.IntTypes.U64", "Lib.RawIntTypes.u64_to_UInt64", "Prims.bool" ]
[]
false
false
false
true
false
let is_felem_eq_vartime5 (a0, a1, a2, a3, a4: felem5) (b0, b1, b2, b3, b4: felem5) : bool =
let open Lib.RawIntTypes in u64_to_UInt64 a0 =. u64_to_UInt64 b0 && u64_to_UInt64 a1 =. u64_to_UInt64 b1 && u64_to_UInt64 a2 =. u64_to_UInt64 b2 && u64_to_UInt64 a3 =. u64_to_UInt64 b3 && u64_to_UInt64 a4 =. u64_to_UInt64 b4
false
Hacl.Spec.K256.Field52.fst
Hacl.Spec.K256.Field52.is_felem_ge_prime_vartime5
val is_felem_ge_prime_vartime5 : _: Hacl.Spec.K256.Field52.Definitions.felem5 -> Prims.bool
let is_felem_ge_prime_vartime5 ((f0,f1,f2,f3,f4): felem5) : bool = let open Lib.RawIntTypes in u64_to_UInt64 f0 >=. 0xffffefffffc2fuL && u64_to_UInt64 f1 =. 0xfffffffffffffuL && u64_to_UInt64 f2 =. 0xfffffffffffffuL && u64_to_UInt64 f3 =. 0xfffffffffffffuL && u64_to_UInt64 f4 =. 0xffffffffffffuL
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 68, "start_col": 0, "start_line": 62 }
module Hacl.Spec.K256.Field52 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let load_felem5 ((s0,s1,s2,s3): felem4) : felem5 = let f0 = s0 &. mask52 in let f1 = (s0 >>. 52ul) |. ((...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52.Definitions", "short_module": null }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Hacl.Spec.K256.Field52.Definitions.felem5 -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.K256.Field52.Definitions.felem5", "Lib.IntTypes.uint64", "Prims.op_AmpAmp", "Lib.IntTypes.op_Greater_Equals_Dot", "Lib.IntTypes.U64", "Lib.RawIntTypes.u64_to_UInt64", "FStar.UInt64.__uint_to_t", "Lib.IntTypes.op_Equals_Dot", "Prims.bool" ]
[]
false
false
false
true
false
let is_felem_ge_prime_vartime5 (f0, f1, f2, f3, f4: felem5) : bool =
let open Lib.RawIntTypes in u64_to_UInt64 f0 >=. 0xffffefffffc2fuL && u64_to_UInt64 f1 =. 0xfffffffffffffuL && u64_to_UInt64 f2 =. 0xfffffffffffffuL && u64_to_UInt64 f3 =. 0xfffffffffffffuL && u64_to_UInt64 f4 =. 0xffffffffffffuL
false
Hacl.Spec.K256.Field52.fst
Hacl.Spec.K256.Field52.add5
val add5 : _: Hacl.Spec.K256.Field52.Definitions.felem5 -> _: Hacl.Spec.K256.Field52.Definitions.felem5 -> Hacl.Spec.K256.Field52.Definitions.felem5
let add5 ((a0,a1,a2,a3,a4): felem5) ((b0,b1,b2,b3,b4): felem5) : felem5 = let o0 = a0 +. b0 in let o1 = a1 +. b1 in let o2 = a2 +. b2 in let o3 = a3 +. b3 in let o4 = a4 +. b4 in (o0,o1,o2,o3,o4)
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 18, "end_line": 38, "start_col": 0, "start_line": 32 }
module Hacl.Spec.K256.Field52 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let load_felem5 ((s0,s1,s2,s3): felem4) : felem5 = let f0 = s0 &. mask52 in let f1 = (s0 >>. 52ul) |. ((...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52.Definitions", "short_module": null }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Hacl.Spec.K256.Field52.Definitions.felem5 -> _: Hacl.Spec.K256.Field52.Definitions.felem5 -> Hacl.Spec.K256.Field52.Definitions.felem5
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.K256.Field52.Definitions.felem5", "FStar.Pervasives.Native.Mktuple2", "FStar.Pervasives.Native.tuple5", "Lib.IntTypes.uint64", "FStar.Pervasives.Native.Mktuple5", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Lib.IntTypes.op_Plus_Dot" ]
[]
false
false
false
true
false
let add5 (a0, a1, a2, a3, a4: felem5) (b0, b1, b2, b3, b4: felem5) : felem5 =
let o0 = a0 +. b0 in let o1 = a1 +. b1 in let o2 = a2 +. b2 in let o3 = a3 +. b3 in let o4 = a4 +. b4 in (o0, o1, o2, o3, o4)
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.eq_mask
val eq_mask: BN.bn_eq_mask_st t_limbs n_limbs
val eq_mask: BN.bn_eq_mask_st t_limbs n_limbs
let eq_mask = BN.bn_eq_mask n_limbs
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 35, "end_line": 173, "start_col": 0, "start_line": 173 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.bn_eq_mask_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.bn_eq_mask", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.n_limbs" ]
[]
false
false
false
true
false
let eq_mask =
BN.bn_eq_mask n_limbs
false
Hacl.Spec.K256.Field52.fst
Hacl.Spec.K256.Field52.is_felem_zero_vartime5
val is_felem_zero_vartime5 : _: Hacl.Spec.K256.Field52.Definitions.felem5 -> Prims.bool
let is_felem_zero_vartime5 ((f0,f1,f2,f3,f4): felem5) : bool = let open Lib.RawIntTypes in u64_to_UInt64 f0 =. 0uL && u64_to_UInt64 f1 =. 0uL && u64_to_UInt64 f2 =. 0uL && u64_to_UInt64 f3 =. 0uL && u64_to_UInt64 f4 =. 0uL
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 58, "start_col": 0, "start_line": 52 }
module Hacl.Spec.K256.Field52 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let load_felem5 ((s0,s1,s2,s3): felem4) : felem5 = let f0 = s0 &. mask52 in let f1 = (s0 >>. 52ul) |. ((...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52.Definitions", "short_module": null }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Hacl.Spec.K256.Field52.Definitions.felem5 -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.K256.Field52.Definitions.felem5", "Lib.IntTypes.uint64", "Prims.op_AmpAmp", "Lib.IntTypes.op_Equals_Dot", "Lib.IntTypes.U64", "Lib.RawIntTypes.u64_to_UInt64", "FStar.UInt64.__uint_to_t", "Prims.bool" ]
[]
false
false
false
true
false
let is_felem_zero_vartime5 (f0, f1, f2, f3, f4: felem5) : bool =
let open Lib.RawIntTypes in u64_to_UInt64 f0 =. 0uL && u64_to_UInt64 f1 =. 0uL && u64_to_UInt64 f2 =. 0uL && u64_to_UInt64 f3 =. 0uL && u64_to_UInt64 f4 =. 0uL
false
Hacl.Spec.K256.Field52.fst
Hacl.Spec.K256.Field52.is_felem_lt_prime_minus_order_vartime5
val is_felem_lt_prime_minus_order_vartime5 : _: Hacl.Spec.K256.Field52.Definitions.felem5 -> Prims.bool
let is_felem_lt_prime_minus_order_vartime5 ((f0,f1,f2,f3,f4): felem5) : bool = let open Lib.RawIntTypes in if u64_to_UInt64 f4 >. 0uL then false else begin if u64_to_UInt64 f3 >. 0uL then false else begin if u64_to_UInt64 f2 <. 0x1455123uL then true else begin if u64_to_UInt64 f2 >. 0x...
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 101, "start_col": 0, "start_line": 83 }
module Hacl.Spec.K256.Field52 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let load_felem5 ((s0,s1,s2,s3): felem4) : felem5 = let f0 = s0 &. mask52 in let f1 = (s0 >>. 52ul) |. ((...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52.Definitions", "short_module": null }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Hacl.Spec.K256.Field52.Definitions.felem5 -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.K256.Field52.Definitions.felem5", "Lib.IntTypes.uint64", "Lib.IntTypes.op_Greater_Dot", "Lib.IntTypes.U64", "Lib.RawIntTypes.u64_to_UInt64", "FStar.UInt64.__uint_to_t", "Prims.bool", "Lib.IntTypes.op_Less_Dot" ]
[]
false
false
false
true
false
let is_felem_lt_prime_minus_order_vartime5 (f0, f1, f2, f3, f4: felem5) : bool =
let open Lib.RawIntTypes in if u64_to_UInt64 f4 >. 0uL then false else if u64_to_UInt64 f3 >. 0uL then false else if u64_to_UInt64 f2 <. 0x1455123uL then true else if u64_to_UInt64 f2 >. 0x1455123uL then false else if u64_to_UInt64 f1 <. 0x1950b75fc4402uL then true ...
false
Hacl.Spec.K256.Field52.fst
Hacl.Spec.K256.Field52.normalize_weak5
val normalize_weak5 : _: Hacl.Spec.K256.Field52.Definitions.felem5 -> Hacl.Spec.K256.Field52.Definitions.felem5
let normalize_weak5 ((t0,t1,t2,t3,t4):felem5) : felem5 = let x, (t0,t1,t2,t3,t4) = minus_x_mul_pow2_256 (t0,t1,t2,t3,t4) in plus_x_mul_pow2_256_minus_prime x (t0,t1,t2,t3,t4)
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 52, "end_line": 138, "start_col": 0, "start_line": 136 }
module Hacl.Spec.K256.Field52 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let load_felem5 ((s0,s1,s2,s3): felem4) : felem5 = let f0 = s0 &. mask52 in let f1 = (s0 >>. 52ul) |. ((...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52.Definitions", "short_module": null }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Hacl.Spec.K256.Field52.Definitions.felem5 -> Hacl.Spec.K256.Field52.Definitions.felem5
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.K256.Field52.Definitions.felem5", "Lib.IntTypes.uint64", "Hacl.Spec.K256.Field52.plus_x_mul_pow2_256_minus_prime", "FStar.Pervasives.Native.Mktuple5", "FStar.Pervasives.Native.tuple2", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Hacl.Spec.K256.Field52.minus_x_mul_pow2_2...
[]
false
false
false
true
false
let normalize_weak5 (t0, t1, t2, t3, t4: felem5) : felem5 =
let x, (t0, t1, t2, t3, t4) = minus_x_mul_pow2_256 (t0, t1, t2, t3, t4) in plus_x_mul_pow2_256_minus_prime x (t0, t1, t2, t3, t4)
false
Steel.Primitive.ForkJoin.Unix.fst
Steel.Primitive.ForkJoin.Unix.alloc_pt
val alloc_pt (#a: Type) (x: a) : SteelT (ref a) emp (fun r -> pts_to r full_perm x)
val alloc_pt (#a: Type) (x: a) : SteelT (ref a) emp (fun r -> pts_to r full_perm x)
let alloc_pt (#a:Type) (x:a) : SteelT (ref a) emp (fun r -> pts_to r full_perm x) = alloc_pt x
{ "file_name": "lib/steel/Steel.Primitive.ForkJoin.Unix.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 14, "end_line": 259, "start_col": 0, "start_line": 257 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.Reference.fsti.checked", "Steel.Primitive.ForkJoin.fsti.checked", "Steel.Memory.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.Tactic...
[ { "abbrev": false, "full_module": "Steel.FractionalPermission", "short_module": null }, { "abbrev": false, "full_module": "Steel.Primitive.ForkJoin", "short_module": null }, { "abbrev": false, "full_module": "Steel.Reference", "short_module": null }, { "abbrev": f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: a -> Steel.Effect.SteelT (Steel.Reference.ref a)
Steel.Effect.SteelT
[]
[]
[ "Steel.Reference.alloc_pt", "Steel.Reference.ref", "Steel.Effect.Common.emp", "Steel.Reference.pts_to", "Steel.FractionalPermission.full_perm", "Steel.Effect.Common.vprop" ]
[]
false
true
false
false
false
let alloc_pt (#a: Type) (x: a) : SteelT (ref a) emp (fun r -> pts_to r full_perm x) =
alloc_pt x
false
Hacl.Spec.K256.Field52.fst
Hacl.Spec.K256.Field52.fsub5
val fsub5 : _: Hacl.Spec.K256.Field52.Definitions.felem5 -> _: Hacl.Spec.K256.Field52.Definitions.felem5 -> x: Lib.IntTypes.uint64 -> Hacl.Spec.K256.Field52.Definitions.felem5
let fsub5 ((a0,a1,a2,a3,a4):felem5) ((b0,b1,b2,b3,b4):felem5) (x:uint64) : felem5 = let (r0,r1,r2,r3,r4) = fnegate5 (b0,b1,b2,b3,b4) x in add5 (a0,a1,a2,a3,a4) (r0,r1,r2,r3,r4)
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 40, "end_line": 266, "start_col": 0, "start_line": 264 }
module Hacl.Spec.K256.Field52 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let load_felem5 ((s0,s1,s2,s3): felem4) : felem5 = let f0 = s0 &. mask52 in let f1 = (s0 >>. 52ul) |. ((...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52.Definitions", "short_module": null }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Hacl.Spec.K256.Field52.Definitions.felem5 -> _: Hacl.Spec.K256.Field52.Definitions.felem5 -> x: Lib.IntTypes.uint64 -> Hacl.Spec.K256.Field52.Definitions.felem5
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.K256.Field52.Definitions.felem5", "Lib.IntTypes.uint64", "FStar.Pervasives.Native.Mktuple2", "FStar.Pervasives.Native.tuple5", "Hacl.Spec.K256.Field52.add5", "FStar.Pervasives.Native.Mktuple5", "Hacl.Spec.K256.Field52.fnegate5" ]
[]
false
false
false
true
false
let fsub5 (a0, a1, a2, a3, a4: felem5) (b0, b1, b2, b3, b4: felem5) (x: uint64) : felem5 =
let r0, r1, r2, r3, r4 = fnegate5 (b0, b1, b2, b3, b4) x in add5 (a0, a1, a2, a3, a4) (r0, r1, r2, r3, r4)
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.sub_mod
val sub_mod: BN.bn_sub_mod_n_st t_limbs n_limbs
val sub_mod: BN.bn_sub_mod_n_st t_limbs n_limbs
let sub_mod: BN.bn_sub_mod_n_st t_limbs n_limbs = BN.bn_sub_mod_n n_limbs
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 24, "start_col": 0, "start_line": 23 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.bn_sub_mod_n_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.bn_sub_mod_n", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.n_limbs", "Hacl.Bignum.bn_sub_mod_n_st" ]
[]
false
false
false
true
false
let sub_mod:BN.bn_sub_mod_n_st t_limbs n_limbs =
BN.bn_sub_mod_n n_limbs
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.add_mod
val add_mod: BN.bn_add_mod_n_st t_limbs n_limbs
val add_mod: BN.bn_add_mod_n_st t_limbs n_limbs
let add_mod: BN.bn_add_mod_n_st t_limbs n_limbs = BN.bn_add_mod_n n_limbs
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 21, "start_col": 0, "start_line": 20 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.bn_add_mod_n_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.bn_add_mod_n", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.n_limbs", "Hacl.Bignum.bn_add_mod_n_st" ]
[]
false
false
false
true
false
let add_mod:BN.bn_add_mod_n_st t_limbs n_limbs =
BN.bn_add_mod_n n_limbs
false
Steel.Primitive.ForkJoin.Unix.fst
Steel.Primitive.ForkJoin.Unix.change_slprop_equiv
val change_slprop_equiv (p q: vprop) (proof: squash (p `equiv` q)) : SteelT unit p (fun _ -> q)
val change_slprop_equiv (p q: vprop) (proof: squash (p `equiv` q)) : SteelT unit p (fun _ -> q)
let change_slprop_equiv (p q : vprop) (proof : squash (p `equiv` q)) : SteelT unit p (fun _ -> q) = rewrite_slprop p q (fun _ -> proof; reveal_equiv p q)
{ "file_name": "lib/steel/Steel.Primitive.ForkJoin.Unix.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 58, "end_line": 37, "start_col": 0, "start_line": 34 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.Reference.fsti.checked", "Steel.Primitive.ForkJoin.fsti.checked", "Steel.Memory.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.Tactic...
[ { "abbrev": false, "full_module": "Steel.Primitive.ForkJoin", "short_module": null }, { "abbrev": false, "full_module": "Steel.Reference", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "ful...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Steel.Effect.Common.vprop -> q: Steel.Effect.Common.vprop -> proof: Prims.squash (Steel.Effect.Common.equiv p q) -> Steel.Effect.SteelT Prims.unit
Steel.Effect.SteelT
[]
[]
[ "Steel.Effect.Common.vprop", "Prims.squash", "Steel.Effect.Common.equiv", "Steel.Effect.Atomic.rewrite_slprop", "FStar.Ghost.hide", "FStar.Set.set", "Steel.Memory.iname", "FStar.Set.empty", "Steel.Memory.mem", "Steel.Effect.Common.reveal_equiv", "Prims.unit" ]
[]
false
true
false
false
false
let change_slprop_equiv (p q: vprop) (proof: squash (p `equiv` q)) : SteelT unit p (fun _ -> q) =
rewrite_slprop p q (fun _ -> proof; reveal_equiv p q)
false
Steel.Primitive.ForkJoin.Unix.fst
Steel.Primitive.ForkJoin.Unix.change_slprop_imp
val change_slprop_imp (p q: vprop) (proof: squash (p `can_be_split` q)) : SteelT unit p (fun _ -> q)
val change_slprop_imp (p q: vprop) (proof: squash (p `can_be_split` q)) : SteelT unit p (fun _ -> q)
let change_slprop_imp (p q : vprop) (proof : squash (p `can_be_split` q)) : SteelT unit p (fun _ -> q) = rewrite_slprop p q (fun _ -> proof; reveal_can_be_split ())
{ "file_name": "lib/steel/Steel.Primitive.ForkJoin.Unix.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 64, "end_line": 42, "start_col": 0, "start_line": 39 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.Reference.fsti.checked", "Steel.Primitive.ForkJoin.fsti.checked", "Steel.Memory.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.Tactic...
[ { "abbrev": false, "full_module": "Steel.Primitive.ForkJoin", "short_module": null }, { "abbrev": false, "full_module": "Steel.Reference", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "ful...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Steel.Effect.Common.vprop -> q: Steel.Effect.Common.vprop -> proof: Prims.squash (Steel.Effect.Common.can_be_split p q) -> Steel.Effect.SteelT Prims.unit
Steel.Effect.SteelT
[]
[]
[ "Steel.Effect.Common.vprop", "Prims.squash", "Steel.Effect.Common.can_be_split", "Steel.Effect.Atomic.rewrite_slprop", "FStar.Ghost.hide", "FStar.Set.set", "Steel.Memory.iname", "FStar.Set.empty", "Steel.Memory.mem", "Steel.Effect.Common.reveal_can_be_split", "Prims.unit" ]
[]
false
true
false
false
false
let change_slprop_imp (p q: vprop) (proof: squash (p `can_be_split` q)) : SteelT unit p (fun _ -> q) =
rewrite_slprop p q (fun _ -> proof; reveal_can_be_split ())
false
Steel.Primitive.ForkJoin.Unix.fst
Steel.Primitive.ForkJoin.Unix.bind_tot_steelK_
val bind_tot_steelK_ (a b: Type) (#framed: eqtype_as_type bool) (#[@@@ framing_implicit]pre: pre_t) (#[@@@ framing_implicit]post: post_t b) (f: (eqtype_as_type unit -> Tot a)) (g: (x: a -> steelK b framed pre post)) : steelK b framed pre post
val bind_tot_steelK_ (a b: Type) (#framed: eqtype_as_type bool) (#[@@@ framing_implicit]pre: pre_t) (#[@@@ framing_implicit]post: post_t b) (f: (eqtype_as_type unit -> Tot a)) (g: (x: a -> steelK b framed pre post)) : steelK b framed pre post
let bind_tot_steelK_ (a:Type) (b:Type) (#framed:eqtype_as_type bool) (#[@@@ framing_implicit] pre:pre_t) (#[@@@ framing_implicit] post:post_t b) (f:eqtype_as_type unit -> Tot a) (g:(x:a -> steelK b framed pre post)) : steelK b framed pre post = fun #frame #postf (k:(x:b -> SteelT unit (frame `star` ...
{ "file_name": "lib/steel/Steel.Primitive.ForkJoin.Unix.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 25, "end_line": 175, "start_col": 0, "start_line": 165 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.Reference.fsti.checked", "Steel.Primitive.ForkJoin.fsti.checked", "Steel.Memory.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.Tactic...
[ { "abbrev": false, "full_module": "Steel.Primitive.ForkJoin", "short_module": null }, { "abbrev": false, "full_module": "Steel.Reference", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "ful...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> b: Type -> f: (_: FStar.Pervasives.eqtype_as_type Prims.unit -> a) -> g: (x: a -> Steel.Primitive.ForkJoin.Unix.steelK b framed pre post) -> Steel.Primitive.ForkJoin.Unix.steelK b framed pre post
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.eqtype_as_type", "Prims.bool", "Steel.Effect.Common.pre_t", "Steel.Effect.Common.post_t", "Prims.unit", "Steel.Primitive.ForkJoin.Unix.steelK", "Steel.Effect.Common.vprop", "Steel.Effect.Common.star" ]
[]
false
false
false
false
false
let bind_tot_steelK_ (a b: Type) (#framed: eqtype_as_type bool) (#[@@@ framing_implicit]pre: pre_t) (#[@@@ framing_implicit]post: post_t b) (f: (eqtype_as_type unit -> Tot a)) (g: (x: a -> steelK b framed pre post)) : steelK b framed pre post =
fun #frame #postf (k: (x: b -> SteelT unit (frame `star` (post x)) (fun _ -> postf))) -> let x = f () in g x #frame #postf k
false
Steel.Primitive.ForkJoin.Unix.fst
Steel.Primitive.ForkJoin.Unix.as_steelk_repr'
val as_steelk_repr' (a: Type) (pre: pre_t) (post: post_t a) (f: (unit -> SteelT a pre post)) : steelK a false pre post
val as_steelk_repr' (a: Type) (pre: pre_t) (post: post_t a) (f: (unit -> SteelT a pre post)) : steelK a false pre post
let as_steelk_repr' (a:Type) (pre:pre_t) (post:post_t a) (f:unit -> SteelT a pre post) : steelK a false pre post = fun #frame #postf (k:(x:a -> SteelT unit (frame `star` post x) (fun _ -> postf))) -> let x = f () in k x
{ "file_name": "lib/steel/Steel.Primitive.ForkJoin.Unix.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 9, "end_line": 228, "start_col": 0, "start_line": 224 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.Reference.fsti.checked", "Steel.Primitive.ForkJoin.fsti.checked", "Steel.Memory.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.Tactic...
[ { "abbrev": false, "full_module": "Steel.Primitive.ForkJoin", "short_module": null }, { "abbrev": false, "full_module": "Steel.Reference", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "ful...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> pre: Steel.Effect.Common.pre_t -> post: Steel.Effect.Common.post_t a -> f: (_: Prims.unit -> Steel.Effect.SteelT a) -> Steel.Primitive.ForkJoin.Unix.steelK a false pre post
Prims.Tot
[ "total" ]
[]
[ "Steel.Effect.Common.pre_t", "Steel.Effect.Common.post_t", "Prims.unit", "Steel.Effect.Common.vprop", "Steel.Effect.Common.star", "Steel.Primitive.ForkJoin.Unix.steelK" ]
[]
false
false
false
false
false
let as_steelk_repr' (a: Type) (pre: pre_t) (post: post_t a) (f: (unit -> SteelT a pre post)) : steelK a false pre post =
fun #frame #postf (k: (x: a -> SteelT unit (frame `star` (post x)) (fun _ -> postf))) -> let x = f () in k x
false
Hacl.Spec.K256.Field52.fst
Hacl.Spec.K256.Field52.mul15
val mul15 : _: Hacl.Spec.K256.Field52.Definitions.felem5 -> c: Lib.IntTypes.uint64 -> Hacl.Spec.K256.Field52.Definitions.felem5
let mul15 ((f0,f1,f2,f3,f4): felem5) (c:uint64) : felem5 = let o0 = f0 *. c in let o1 = f1 *. c in let o2 = f2 *. c in let o3 = f3 *. c in let o4 = f4 *. c in (o0,o1,o2,o3,o4)
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 18, "end_line": 48, "start_col": 0, "start_line": 42 }
module Hacl.Spec.K256.Field52 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let load_felem5 ((s0,s1,s2,s3): felem4) : felem5 = let f0 = s0 &. mask52 in let f1 = (s0 >>. 52ul) |. ((...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52.Definitions", "short_module": null }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Hacl.Spec.K256.Field52.Definitions.felem5 -> c: Lib.IntTypes.uint64 -> Hacl.Spec.K256.Field52.Definitions.felem5
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.K256.Field52.Definitions.felem5", "Lib.IntTypes.uint64", "FStar.Pervasives.Native.Mktuple5", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Lib.IntTypes.op_Star_Dot" ]
[]
false
false
false
true
false
let mul15 (f0, f1, f2, f3, f4: felem5) (c: uint64) : felem5 =
let o0 = f0 *. c in let o1 = f1 *. c in let o2 = f2 *. c in let o3 = f3 *. c in let o4 = f4 *. c in (o0, o1, o2, o3, o4)
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.exp_consttime_precomp
val exp_consttime_precomp:BE.bn_mod_exp_precomp_st t_limbs n_limbs
val exp_consttime_precomp:BE.bn_mod_exp_precomp_st t_limbs n_limbs
let exp_consttime_precomp: BE.bn_mod_exp_precomp_st t_limbs n_limbs = BE.bn_mod_exp_consttime_precomp n_limbs (BE.bn_mod_exp_amm_bm_consttime_precomp almost_mont_inst) (BE.bn_mod_exp_amm_fw_consttime_precomp almost_mont_inst 4ul)
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 65, "end_line": 128, "start_col": 0, "start_line": 125 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.Exponentiation.bn_mod_exp_precomp_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Exponentiation.bn_mod_exp_consttime_precomp", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.n_limbs", "Hacl.Bignum.Exponentiation.bn_mod_exp_amm_bm_consttime_precomp", "Hacl.Bignum256_32.almost_mont_inst", "Hacl.Bignum.Exponentiation.bn_mod_exp_amm_fw_consttime_precomp", "FStar.UInt32.__u...
[]
false
false
false
true
false
let exp_consttime_precomp:BE.bn_mod_exp_precomp_st t_limbs n_limbs =
BE.bn_mod_exp_consttime_precomp n_limbs (BE.bn_mod_exp_amm_bm_consttime_precomp almost_mont_inst) (BE.bn_mod_exp_amm_fw_consttime_precomp almost_mont_inst 4ul)
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.mod_precomp
val mod_precomp: BS.bn_mod_slow_ctx_st t_limbs n_limbs
val mod_precomp: BS.bn_mod_slow_ctx_st t_limbs n_limbs
let mod_precomp k a res = BS.bn_mod_ctx n_limbs bn_slow_precomp k a res
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 151, "start_col": 0, "start_line": 150 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.SafeAPI.bn_mod_slow_ctx_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.MontArithmetic.pbn_mont_ctx", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum.Definitions.lbignum", "Lib.IntTypes.op_Plus_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Bignum256_32.n_limbs", "Hacl.Bignum.SafeAPI.bn_mod_ctx", "FStar.Ghost.hide", "Hacl.Bignum.meta_len", "Hacl.Bignum2...
[]
false
false
false
true
false
let mod_precomp k a res =
BS.bn_mod_ctx n_limbs bn_slow_precomp k a res
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.reduction
val reduction:BM.bn_mont_reduction_st t_limbs n_limbs
val reduction:BM.bn_mont_reduction_st t_limbs n_limbs
let reduction: BM.bn_mont_reduction_st t_limbs n_limbs = BM.bn_mont_reduction bn_inst
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 30, "end_line": 54, "start_col": 0, "start_line": 53 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.Montgomery.bn_mont_reduction_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Montgomery.bn_mont_reduction", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.bn_inst" ]
[]
false
false
false
true
false
let reduction:BM.bn_mont_reduction_st t_limbs n_limbs =
BM.bn_mont_reduction bn_inst
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.areduction
val areduction:AM.bn_almost_mont_reduction_st t_limbs n_limbs
val areduction:AM.bn_almost_mont_reduction_st t_limbs n_limbs
let areduction: AM.bn_almost_mont_reduction_st t_limbs n_limbs = AM.bn_almost_mont_reduction bn_inst
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 37, "end_line": 86, "start_col": 0, "start_line": 85 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.AlmostMontgomery.bn_almost_mont_reduction_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.AlmostMontgomery.bn_almost_mont_reduction", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.bn_inst" ]
[]
false
false
false
true
false
let areduction:AM.bn_almost_mont_reduction_st t_limbs n_limbs =
AM.bn_almost_mont_reduction bn_inst
false
Hacl.Spec.K256.Field52.fst
Hacl.Spec.K256.Field52.carry_round5
val carry_round5 : _: Hacl.Spec.K256.Field52.Definitions.felem5 -> Hacl.Spec.K256.Field52.Definitions.felem5
let carry_round5 ((t0,t1,t2,t3,t4):felem5) : felem5 = let t1 = t1 +. (t0 >>. 52ul) in let t0 = t0 &. mask52 in let t2 = t2 +. (t1 >>. 52ul) in let t1 = t1 &. mask52 in let t3 = t3 +. (t2 >>. 52ul) in let t2 = t2 &. mask52 in let t4 = t4 +. (t3 >>. 52ul) in let t3 = t3 &. mask52 in (t0,t1,t2,t3,t4)
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 18, "end_line": 126, "start_col": 0, "start_line": 121 }
module Hacl.Spec.K256.Field52 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let load_felem5 ((s0,s1,s2,s3): felem4) : felem5 = let f0 = s0 &. mask52 in let f1 = (s0 >>. 52ul) |. ((...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52.Definitions", "short_module": null }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Hacl.Spec.K256.Field52.Definitions.felem5 -> Hacl.Spec.K256.Field52.Definitions.felem5
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.K256.Field52.Definitions.felem5", "Lib.IntTypes.uint64", "FStar.Pervasives.Native.Mktuple5", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Lib.IntTypes.op_Amp_Dot", "Hacl.Spec.K256.Field52.Definitions.mask52", "Lib.IntTypes.op_Plus_Dot", "Lib.IntTypes.op_Greater_Greater...
[]
false
false
false
true
false
let carry_round5 (t0, t1, t2, t3, t4: felem5) : felem5 =
let t1 = t1 +. (t0 >>. 52ul) in let t0 = t0 &. mask52 in let t2 = t2 +. (t1 >>. 52ul) in let t1 = t1 &. mask52 in let t3 = t3 +. (t2 >>. 52ul) in let t2 = t2 &. mask52 in let t4 = t4 +. (t3 >>. 52ul) in let t3 = t3 &. mask52 in (t0, t1, t2, t3, t4)
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.exp_vartime_precomp
val exp_vartime_precomp:BE.bn_mod_exp_precomp_st t_limbs n_limbs
val exp_vartime_precomp:BE.bn_mod_exp_precomp_st t_limbs n_limbs
let exp_vartime_precomp: BE.bn_mod_exp_precomp_st t_limbs n_limbs = BE.bn_mod_exp_vartime_precomp n_limbs (BE.bn_mod_exp_amm_bm_vartime_precomp almost_mont_inst) (BE.bn_mod_exp_amm_fw_vartime_precomp almost_mont_inst 4ul)
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 63, "end_line": 122, "start_col": 0, "start_line": 119 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.Exponentiation.bn_mod_exp_precomp_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Exponentiation.bn_mod_exp_vartime_precomp", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.n_limbs", "Hacl.Bignum.Exponentiation.bn_mod_exp_amm_bm_vartime_precomp", "Hacl.Bignum256_32.almost_mont_inst", "Hacl.Bignum.Exponentiation.bn_mod_exp_amm_fw_vartime_precomp", "FStar.UInt32.__uint_to...
[]
false
false
false
true
false
let exp_vartime_precomp:BE.bn_mod_exp_precomp_st t_limbs n_limbs =
BE.bn_mod_exp_vartime_precomp n_limbs (BE.bn_mod_exp_amm_bm_vartime_precomp almost_mont_inst) (BE.bn_mod_exp_amm_fw_vartime_precomp almost_mont_inst 4ul)
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.mod_exp_vartime_precomp
val mod_exp_vartime_precomp: BS.bn_mod_exp_ctx_st t_limbs n_limbs
val mod_exp_vartime_precomp: BS.bn_mod_exp_ctx_st t_limbs n_limbs
let mod_exp_vartime_precomp k a bBits b res = BS.mk_bn_mod_exp_ctx n_limbs exp_vartime_precomp k a bBits b res
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 66, "end_line": 154, "start_col": 0, "start_line": 153 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.SafeAPI.bn_mod_exp_ctx_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.MontArithmetic.pbn_mont_ctx", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum.Definitions.lbignum", "Hacl.Bignum256_32.n_limbs", "Lib.IntTypes.size_t", "Hacl.Bignum.Definitions.blocks0", "Lib.IntTypes.size", "Lib.IntTypes.bits", "Hacl.Bignum.SafeAPI.mk_bn_mod_exp_ctx", "FStar.Ghost.hide", ...
[]
false
false
false
true
false
let mod_exp_vartime_precomp k a bBits b res =
BS.mk_bn_mod_exp_ctx n_limbs exp_vartime_precomp k a bBits b res
false
SfLists.fst
SfLists.app
val app : ilist -> ilist -> Tot ilist
val app : ilist -> ilist -> Tot ilist
let rec app l1 l2 = match l1 with | Nil -> l2 | Cons h t -> Cons h (app t l2)
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 33, "end_line": 45, "start_col": 0, "start_line": 42 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l1: SfLists.ilist -> l2: SfLists.ilist -> SfLists.ilist
Prims.Tot
[ "total" ]
[]
[ "SfLists.ilist", "Prims.int", "SfLists.Cons", "SfLists.app" ]
[ "recursion" ]
false
false
false
true
false
let rec app l1 l2 =
match l1 with | Nil -> l2 | Cons h t -> Cons h (app t l2)
false
SfLists.fst
SfLists.length
val length : ilist -> Tot nat
val length : ilist -> Tot nat
let rec length l = match l with | Nil -> 0 | Cons h t -> length t + 1
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 28, "end_line": 33, "start_col": 0, "start_line": 30 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: SfLists.ilist -> Prims.nat
Prims.Tot
[ "total" ]
[]
[ "SfLists.ilist", "Prims.int", "Prims.op_Addition", "SfLists.length", "Prims.nat" ]
[ "recursion" ]
false
false
false
true
false
let rec length l =
match l with | Nil -> 0 | Cons h t -> length t + 1
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.mul
val mul: a:lbignum t_limbs n_limbs -> BN.bn_karatsuba_mul_st t_limbs n_limbs a
val mul: a:lbignum t_limbs n_limbs -> BN.bn_karatsuba_mul_st t_limbs n_limbs a
let mul (a:lbignum t_limbs n_limbs) : BN.bn_karatsuba_mul_st t_limbs n_limbs a = BN.bn_mul n_limbs n_limbs a
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 27, "start_col": 0, "start_line": 26 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "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: Hacl.Bignum256_32.lbignum Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs -> Hacl.Bignum.bn_karatsuba_mul_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs a
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum256_32.lbignum", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.n_limbs", "Hacl.Bignum.bn_mul", "Hacl.Bignum.bn_karatsuba_mul_st" ]
[]
false
false
false
false
false
let mul (a: lbignum t_limbs n_limbs) : BN.bn_karatsuba_mul_st t_limbs n_limbs a =
BN.bn_mul n_limbs n_limbs a
false
Hacl.Spec.K256.Field52.fst
Hacl.Spec.K256.Field52.is_felem_ge_prime5
val is_felem_ge_prime5 : _: Hacl.Spec.K256.Field52.Definitions.felem5 -> Lib.IntTypes.uint64
let is_felem_ge_prime5 ((t0,t1,t2,t3,t4): felem5) : uint64 = let m4 = eq_mask t4 mask48 in let m3 = eq_mask t3 mask52 in let m2 = eq_mask t2 mask52 in let m1 = eq_mask t1 mask52 in let m0 = gte_mask t0 (u64 0xffffefffffc2f) in let m = m0 &. m1 &. m2 &. m3 &. m4 in m
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 79, "start_col": 0, "start_line": 72 }
module Hacl.Spec.K256.Field52 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let load_felem5 ((s0,s1,s2,s3): felem4) : felem5 = let f0 = s0 &. mask52 in let f1 = (s0 >>. 52ul) |. ((...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52.Definitions", "short_module": null }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Hacl.Spec.K256.Field52.Definitions.felem5 -> Lib.IntTypes.uint64
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.K256.Field52.Definitions.felem5", "Lib.IntTypes.uint64", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Lib.IntTypes.op_Amp_Dot", "Lib.IntTypes.gte_mask", "Lib.IntTypes.u64", "Lib.IntTypes.eq_mask", "Hacl.Spec.K256.Field52.Definitions.mask52", "Hacl.Spec.K256.Field52.D...
[]
false
false
false
true
false
let is_felem_ge_prime5 (t0, t1, t2, t3, t4: felem5) : uint64 =
let m4 = eq_mask t4 mask48 in let m3 = eq_mask t3 mask52 in let m2 = eq_mask t2 mask52 in let m1 = eq_mask t1 mask52 in let m0 = gte_mask t0 (u64 0xffffefffffc2f) in let m = m0 &. m1 &. m2 &. m3 &. m4 in m
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.sqr
val sqr: a:lbignum t_limbs n_limbs -> BN.bn_karatsuba_sqr_st t_limbs n_limbs a
val sqr: a:lbignum t_limbs n_limbs -> BN.bn_karatsuba_sqr_st t_limbs n_limbs a
let sqr (a:lbignum t_limbs n_limbs) : BN.bn_karatsuba_sqr_st t_limbs n_limbs a = BN.bn_sqr n_limbs a
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 30, "start_col": 0, "start_line": 29 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "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: Hacl.Bignum256_32.lbignum Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs -> Hacl.Bignum.bn_karatsuba_sqr_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs a
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum256_32.lbignum", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.n_limbs", "Hacl.Bignum.bn_sqr", "Hacl.Bignum.bn_karatsuba_sqr_st" ]
[]
false
false
false
false
false
let sqr (a: lbignum t_limbs n_limbs) : BN.bn_karatsuba_sqr_st t_limbs n_limbs a =
BN.bn_sqr n_limbs a
false
Hacl.Spec.K256.Field52.fst
Hacl.Spec.K256.Field52.load_felem5
val load_felem5 : _: Hacl.Spec.K256.Field52.Definitions.felem4 -> Hacl.Spec.K256.Field52.Definitions.felem5
let load_felem5 ((s0,s1,s2,s3): felem4) : felem5 = let f0 = s0 &. mask52 in let f1 = (s0 >>. 52ul) |. ((s1 &. u64 0xffffffffff) <<. 12ul) in let f2 = (s1 >>. 40ul) |. ((s2 &. u64 0xfffffff) <<. 24ul) in let f3 = (s2 >>. 28ul) |. ((s3 &. u64 0xffff) <<. 36ul) in let f4 = s3 >>. 16ul in (f0,f1,f2,f3,f4)
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 18, "end_line": 19, "start_col": 0, "start_line": 13 }
module Hacl.Spec.K256.Field52 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions #set-options "--z3rlimit 50 --fuel 0 --ifuel 0"
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52.Definitions", "short_module": null }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Hacl.Spec.K256.Field52.Definitions.felem4 -> Hacl.Spec.K256.Field52.Definitions.felem5
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.K256.Field52.Definitions.felem4", "Lib.IntTypes.uint64", "FStar.Pervasives.Native.Mktuple5", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Lib.IntTypes.op_Greater_Greater_Dot", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.op_Bar_Dot", "Lib.IntTypes.op_Less_Less_Dot", "Li...
[]
false
false
false
true
false
let load_felem5 (s0, s1, s2, s3: felem4) : felem5 =
let f0 = s0 &. mask52 in let f1 = (s0 >>. 52ul) |. ((s1 &. u64 0xffffffffff) <<. 12ul) in let f2 = (s1 >>. 40ul) |. ((s2 &. u64 0xfffffff) <<. 24ul) in let f3 = (s2 >>. 28ul) |. ((s3 &. u64 0xffff) <<. 36ul) in let f4 = s3 >>. 16ul in (f0, f1, f2, f3, f4)
false
Hacl.Spec.K256.Field52.fst
Hacl.Spec.K256.Field52.store_felem5
val store_felem5 : _: Hacl.Spec.K256.Field52.Definitions.felem5 -> Hacl.Spec.K256.Field52.Definitions.felem4
let store_felem5 ((f0,f1,f2,f3,f4): felem5) : felem4 = let o0 = f0 |. (f1 <<. 52ul) in let o1 = (f1 >>. 12ul) |. (f2 <<. 40ul) in let o2 = (f2 >>. 24ul) |. (f3 <<. 28ul) in let o3 = (f3 >>. 36ul) |. (f4 <<. 16ul) in (o0,o1,o2,o3)
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 15, "end_line": 28, "start_col": 0, "start_line": 23 }
module Hacl.Spec.K256.Field52 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let load_felem5 ((s0,s1,s2,s3): felem4) : felem5 = let f0 = s0 &. mask52 in let f1 = (s0 >>. 52ul) |. ((...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52.Definitions", "short_module": null }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Hacl.Spec.K256.Field52.Definitions.felem5 -> Hacl.Spec.K256.Field52.Definitions.felem4
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.K256.Field52.Definitions.felem5", "Lib.IntTypes.uint64", "FStar.Pervasives.Native.Mktuple4", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Lib.IntTypes.op_Bar_Dot", "Lib.IntTypes.op_Greater_Greater_Dot", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.op_Less_Less_Dot", "Ha...
[]
false
false
false
true
false
let store_felem5 (f0, f1, f2, f3, f4: felem5) : felem4 =
let o0 = f0 |. (f1 <<. 52ul) in let o1 = (f1 >>. 12ul) |. (f2 <<. 40ul) in let o2 = (f2 >>. 24ul) |. (f3 <<. 28ul) in let o3 = (f3 >>. 36ul) |. (f4 <<. 16ul) in (o0, o1, o2, o3)
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.mod
val mod: BS.bn_mod_slow_safe_st t_limbs n_limbs
val mod: BS.bn_mod_slow_safe_st t_limbs n_limbs
let mod n a res = BS.mk_bn_mod_slow_safe n_limbs (BR.mk_bn_mod_slow n_limbs precompr2 bn_slow_precomp) n a res
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 94, "end_line": 113, "start_col": 0, "start_line": 112 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.SafeAPI.bn_mod_slow_safe_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.lbignum", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.n_limbs", "Lib.IntTypes.op_Plus_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Bignum.SafeAPI.mk_bn_mod_slow_safe", "Hacl.Bignum.ModReduction.mk_bn_mod_slow", "Hacl.Bignum256_32.precompr2", "Hacl.Bignum256_32....
[]
false
false
false
true
false
let mod n a res =
BS.mk_bn_mod_slow_safe n_limbs (BR.mk_bn_mod_slow n_limbs precompr2 bn_slow_precomp) n a res
false
SfLists.fst
SfLists.repeat
val repeat : int -> count:nat -> Tot ilist
val repeat : int -> count:nat -> Tot ilist
let rec repeat n count = match count with | 0 -> Nil | _ -> Cons n (repeat n (count - 1))
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 38, "end_line": 39, "start_col": 0, "start_line": 36 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Prims.int -> count: Prims.nat -> SfLists.ilist
Prims.Tot
[ "total" ]
[]
[ "Prims.int", "Prims.nat", "SfLists.Nil", "SfLists.Cons", "SfLists.repeat", "Prims.op_Subtraction", "SfLists.ilist" ]
[ "recursion" ]
false
false
false
true
false
let rec repeat n count =
match count with | 0 -> Nil | _ -> Cons n (repeat n (count - 1))
false
SfLists.fst
SfLists.hd
val hd : l:ilist{l =!= Nil} -> Tot int
val hd : l:ilist{l =!= Nil} -> Tot int
let hd l = match l with | Cons h t -> h
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 17, "end_line": 76, "start_col": 0, "start_line": 74 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: SfLists.ilist{~(l == SfLists.Nil)} -> Prims.int
Prims.Tot
[ "total" ]
[]
[ "SfLists.ilist", "Prims.l_not", "Prims.eq2", "SfLists.Nil", "Prims.int" ]
[]
false
false
false
false
false
let hd l =
match l with | Cons h t -> h
false
SfLists.fst
SfLists.snoc
val snoc : ilist -> int -> Tot ilist
val snoc : ilist -> int -> Tot ilist
let rec snoc l v = match l with | Nil -> Cons v Nil | Cons h t -> Cons h (snoc t v)
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 33, "end_line": 121, "start_col": 0, "start_line": 118 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: SfLists.ilist -> v: Prims.int -> SfLists.ilist
Prims.Tot
[ "total" ]
[]
[ "SfLists.ilist", "Prims.int", "SfLists.Cons", "SfLists.Nil", "SfLists.snoc" ]
[ "recursion" ]
false
false
false
true
false
let rec snoc l v =
match l with | Nil -> Cons v Nil | Cons h t -> Cons h (snoc t v)
false
SfLists.fst
SfLists.app_length
val app_length : l1 : ilist -> l2 : ilist -> Lemma (ensures (length (app l1 l2) = (length l1) + (length l2)))
val app_length : l1 : ilist -> l2 : ilist -> Lemma (ensures (length (app l1 l2) = (length l1) + (length l2)))
let rec app_length l1 l2 = match l1 with | Nil -> () | Cons x1 l1' -> app_length l1' l2
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 36, "end_line": 115, "start_col": 0, "start_line": 112 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l1: SfLists.ilist -> l2: SfLists.ilist -> FStar.Pervasives.Lemma (ensures SfLists.length (SfLists.app l1 l2) = SfLists.length l1 + SfLists.length l2)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "SfLists.ilist", "Prims.int", "SfLists.app_length", "Prims.unit" ]
[ "recursion" ]
false
false
true
false
false
let rec app_length l1 l2 =
match l1 with | Nil -> () | Cons x1 l1' -> app_length l1' l2
false
SfLists.fst
SfLists.existsb'
val existsb': l:ilist -> f:(int -> Tot bool) -> Tot bool
val existsb': l:ilist -> f:(int -> Tot bool) -> Tot bool
let existsb' l f = let g x = not (f x) in let b = forallb l g in not b
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 7, "end_line": 259, "start_col": 0, "start_line": 256 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: SfLists.ilist -> f: (_: Prims.int -> Prims.bool) -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "SfLists.ilist", "Prims.int", "Prims.bool", "Prims.op_Negation", "SfLists.forallb" ]
[]
false
false
false
true
false
let existsb' l f =
let g x = not (f x) in let b = forallb l g in not b
false
SfLists.fst
SfLists.tl
val tl : l:ilist{l =!= Nil} -> Tot ilist
val tl : l:ilist{l =!= Nil} -> Tot ilist
let tl l = match l with | Cons h t -> t
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 17, "end_line": 97, "start_col": 0, "start_line": 95 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: SfLists.ilist{~(l == SfLists.Nil)} -> SfLists.ilist
Prims.Tot
[ "total" ]
[]
[ "SfLists.ilist", "Prims.l_not", "Prims.eq2", "SfLists.Nil", "Prims.int" ]
[]
false
false
false
false
false
let tl l =
match l with | Cons h t -> t
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.mod_exp_consttime_precomp
val mod_exp_consttime_precomp: BS.bn_mod_exp_ctx_st t_limbs n_limbs
val mod_exp_consttime_precomp: BS.bn_mod_exp_ctx_st t_limbs n_limbs
let mod_exp_consttime_precomp k a bBits b res = BS.mk_bn_mod_exp_ctx n_limbs exp_consttime_precomp k a bBits b res
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 68, "end_line": 157, "start_col": 0, "start_line": 156 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.SafeAPI.bn_mod_exp_ctx_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_limbs
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.MontArithmetic.pbn_mont_ctx", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum.Definitions.lbignum", "Hacl.Bignum256_32.n_limbs", "Lib.IntTypes.size_t", "Hacl.Bignum.Definitions.blocks0", "Lib.IntTypes.size", "Lib.IntTypes.bits", "Hacl.Bignum.SafeAPI.mk_bn_mod_exp_ctx", "FStar.Ghost.hide", ...
[]
false
false
false
true
false
let mod_exp_consttime_precomp k a bBits b res =
BS.mk_bn_mod_exp_ctx n_limbs exp_consttime_precomp k a bBits b res
false
Hacl.Spec.K256.Field52.fst
Hacl.Spec.K256.Field52.minus_x_mul_pow2_256
val minus_x_mul_pow2_256 : _: Hacl.Spec.K256.Field52.Definitions.felem5 -> Lib.IntTypes.uint64 * Hacl.Spec.K256.Field52.Definitions.felem5
let minus_x_mul_pow2_256 ((t0,t1,t2,t3,t4):felem5) : uint64 & felem5 = let x = t4 >>. 48ul in let t4 = t4 &. mask48 in x, (t0,t1,t2,t3,t4)
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 117, "start_col": 0, "start_line": 115 }
module Hacl.Spec.K256.Field52 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let load_felem5 ((s0,s1,s2,s3): felem4) : felem5 = let f0 = s0 &. mask52 in let f1 = (s0 >>. 52ul) |. ((...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52.Definitions", "short_module": null }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Hacl.Spec.K256.Field52.Definitions.felem5 -> Lib.IntTypes.uint64 * Hacl.Spec.K256.Field52.Definitions.felem5
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.K256.Field52.Definitions.felem5", "Lib.IntTypes.uint64", "FStar.Pervasives.Native.Mktuple2", "FStar.Pervasives.Native.Mktuple5", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Lib.IntTypes.op_Amp_Dot", "Hacl.Spec.K256.Field52.Definitions.mask48", "Lib.IntTypes.op_Greater...
[]
false
false
false
true
false
let minus_x_mul_pow2_256 (t0, t1, t2, t3, t4: felem5) : uint64 & felem5 =
let x = t4 >>. 48ul in let t4 = t4 &. mask48 in x, (t0, t1, t2, t3, t4)
false
SfLists.fst
SfLists.length_snoc
val length_snoc : n : int -> l : ilist -> Lemma (ensures (length (snoc l n) = length l + 1))
val length_snoc : n : int -> l : ilist -> Lemma (ensures (length (snoc l n) = length l + 1))
let rec length_snoc n l = match l with | Nil -> () | Cons h t -> length_snoc n t
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 31, "end_line": 134, "start_col": 0, "start_line": 131 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Prims.int -> l: SfLists.ilist -> FStar.Pervasives.Lemma (ensures SfLists.length (SfLists.snoc l n) = SfLists.length l + 1)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "SfLists.ilist", "SfLists.length_snoc", "Prims.unit" ]
[ "recursion" ]
false
false
true
false
false
let rec length_snoc n l =
match l with | Nil -> () | Cons h t -> length_snoc n t
false
Hacl.Spec.K256.Field52.fst
Hacl.Spec.K256.Field52.plus_x_mul_pow2_256_minus_prime
val plus_x_mul_pow2_256_minus_prime : x: Lib.IntTypes.uint64 -> _: Hacl.Spec.K256.Field52.Definitions.felem5 -> Hacl.Spec.K256.Field52.Definitions.felem5
let plus_x_mul_pow2_256_minus_prime (x:uint64) ((t0,t1,t2,t3,t4):felem5) : felem5 = let t0 = t0 +. x *. u64 0x1000003D1 in carry_round5 (t0,t1,t2,t3,t4)
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 31, "end_line": 132, "start_col": 0, "start_line": 130 }
module Hacl.Spec.K256.Field52 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let load_felem5 ((s0,s1,s2,s3): felem4) : felem5 = let f0 = s0 &. mask52 in let f1 = (s0 >>. 52ul) |. ((...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52.Definitions", "short_module": null }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "f...
{ "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
x: Lib.IntTypes.uint64 -> _: Hacl.Spec.K256.Field52.Definitions.felem5 -> Hacl.Spec.K256.Field52.Definitions.felem5
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.uint64", "Hacl.Spec.K256.Field52.Definitions.felem5", "Hacl.Spec.K256.Field52.carry_round5", "FStar.Pervasives.Native.Mktuple5", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Lib.IntTypes.op_Plus_Dot", "Lib.IntTypes.op_Star_Dot", "Lib.IntTypes.u64" ]
[]
false
false
false
true
false
let plus_x_mul_pow2_256_minus_prime (x: uint64) (t0, t1, t2, t3, t4: felem5) : felem5 =
let t0 = t0 +. x *. u64 0x1000003D1 in carry_round5 (t0, t1, t2, t3, t4)
false
SfLists.fst
SfLists.rev_length
val rev_length : l : ilist -> Lemma (ensures (length (rev l) = length l))
val rev_length : l : ilist -> Lemma (ensures (length (rev l) = length l))
let rec rev_length l = match l with | Nil -> () | Cons h t -> length_snoc h (rev t); rev_length t
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 51, "end_line": 141, "start_col": 0, "start_line": 138 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: SfLists.ilist -> FStar.Pervasives.Lemma (ensures SfLists.length (SfLists.rev l) = SfLists.length l)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "SfLists.ilist", "Prims.int", "SfLists.rev_length", "Prims.unit", "SfLists.length_snoc", "SfLists.rev" ]
[ "recursion" ]
false
false
true
false
false
let rec rev_length l =
match l with | Nil -> () | Cons h t -> length_snoc h (rev t); rev_length t
false
SfLists.fst
SfLists.app_nil
val app_nil : l:ilist -> Lemma (ensures (app l Nil = l))
val app_nil : l:ilist -> Lemma (ensures (app l Nil = l))
let rec app_nil l = match l with | Nil -> () | Cons h t -> app_nil t
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 25, "end_line": 71, "start_col": 0, "start_line": 68 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: SfLists.ilist -> FStar.Pervasives.Lemma (ensures SfLists.app l SfLists.Nil = l)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "SfLists.ilist", "Prims.int", "SfLists.app_nil", "Prims.unit" ]
[ "recursion" ]
false
false
true
false
false
let rec app_nil l =
match l with | Nil -> () | Cons h t -> app_nil t
false
Hacl.Spec.K256.Field52.fst
Hacl.Spec.K256.Field52.normalize5
val normalize5 : _: Hacl.Spec.K256.Field52.Definitions.felem5 -> Hacl.Spec.K256.Field52.Definitions.felem5
let normalize5 ((f0,f1,f2,f3,f4):felem5) : felem5 = let (t0,t1,t2,t3,t4) = normalize_weak5 (f0,f1,f2,f3,f4) in let x, (r0,r1,r2,r3,r4) = minus_x_mul_pow2_256 (t0,t1,t2,t3,t4) in let is_ge_p_m = is_felem_ge_prime5 (r0,r1,r2,r3,r4) in // as_nat r >= S.prime let m_to_one = is_ge_p_m &. u64 1 in let x1 = m_to_one...
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 18, "end_line": 150, "start_col": 0, "start_line": 142 }
module Hacl.Spec.K256.Field52 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let load_felem5 ((s0,s1,s2,s3): felem4) : felem5 = let f0 = s0 &. mask52 in let f1 = (s0 >>. 52ul) |. ((...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52.Definitions", "short_module": null }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Hacl.Spec.K256.Field52.Definitions.felem5 -> Hacl.Spec.K256.Field52.Definitions.felem5
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.K256.Field52.Definitions.felem5", "Lib.IntTypes.uint64", "FStar.Pervasives.Native.Mktuple5", "FStar.Pervasives.Native.tuple2", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Hacl.Spec.K256.Field52.minus_x_mul_pow2_256", "Hacl.Spec.K256.Field52.plus_x_mul_pow2_256_minus_pri...
[]
false
false
false
true
false
let normalize5 (f0, f1, f2, f3, f4: felem5) : felem5 =
let t0, t1, t2, t3, t4 = normalize_weak5 (f0, f1, f2, f3, f4) in let x, (r0, r1, r2, r3, r4) = minus_x_mul_pow2_256 (t0, t1, t2, t3, t4) in let is_ge_p_m = is_felem_ge_prime5 (r0, r1, r2, r3, r4) in let m_to_one = is_ge_p_m &. u64 1 in let x1 = m_to_one |. x in let s0, s1, s2, s3, s4 = plus_x_mul_pow2_256_minus_prime x...
false
SfLists.fst
SfLists.snoc_cons
val snoc_cons: l:ilist -> h:int -> Lemma (rev (snoc l h) = Cons h (rev l))
val snoc_cons: l:ilist -> h:int -> Lemma (rev (snoc l h) = Cons h (rev l))
let rec snoc_cons l h = match l with | Nil -> () | Cons hd tl -> let ih = snoc_cons tl h in ()
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 6, "end_line": 177, "start_col": 0, "start_line": 173 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: SfLists.ilist -> h: Prims.int -> FStar.Pervasives.Lemma (ensures SfLists.rev (SfLists.snoc l h) = SfLists.Cons h (SfLists.rev l))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "SfLists.ilist", "Prims.int", "Prims.unit", "SfLists.snoc_cons" ]
[ "recursion" ]
false
false
true
false
false
let rec snoc_cons l h =
match l with | Nil -> () | Cons hd tl -> let ih = snoc_cons tl h in ()
false
SfLists.fst
SfLists.foo3
val foo3 : l : ilist -> n : int -> m : nat -> Pure unit (requires (b2t (length l = m))) (ensures (fun r -> (length (snoc l n) = m+1)))
val foo3 : l : ilist -> n : int -> m : nat -> Pure unit (requires (b2t (length l = m))) (ensures (fun r -> (length (snoc l n) = m+1)))
let rec foo3 l n m = match l with | Nil -> () | Cons h t -> foo3 t n (length t)
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 35, "end_line": 162, "start_col": 0, "start_line": 159 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: SfLists.ilist -> n: Prims.int -> m: Prims.nat -> Prims.Pure Prims.unit
Prims.Pure
[]
[]
[ "SfLists.ilist", "Prims.int", "Prims.nat", "SfLists.foo3", "SfLists.length", "Prims.unit" ]
[ "recursion" ]
false
false
false
false
false
let rec foo3 l n m =
match l with | Nil -> () | Cons h t -> foo3 t n (length t)
false
SfLists.fst
SfLists.app_cons
val app_cons: l:ilist -> hd:int -> tl:ilist -> Lemma (app l (Cons hd tl) = app (app l (Cons hd Nil)) (tl))
val app_cons: l:ilist -> hd:int -> tl:ilist -> Lemma (app l (Cons hd tl) = app (app l (Cons hd Nil)) (tl))
let rec app_cons l hd tl = match l with | Nil -> () | Cons hd' tl' -> let ih = app_cons tl' hd tl in ()
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 6, "end_line": 214, "start_col": 0, "start_line": 210 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: SfLists.ilist -> hd: Prims.int -> tl: SfLists.ilist -> FStar.Pervasives.Lemma (ensures SfLists.app l (SfLists.Cons hd tl) = SfLists.app (SfLists.app l (SfLists.Cons hd SfLists.Nil)) tl)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "SfLists.ilist", "Prims.int", "Prims.unit", "SfLists.app_cons" ]
[ "recursion" ]
false
false
true
false
false
let rec app_cons l hd tl =
match l with | Nil -> () | Cons hd' tl' -> let ih = app_cons tl' hd tl in ()
false
SfLists.fst
SfLists.foo2
val foo2 : n : nat -> m : nat -> l : ilist -> Pure unit (requires (b2t (repeat n m = l))) (ensures (fun r -> length l = m))
val foo2 : n : nat -> m : nat -> l : ilist -> Pure unit (requires (b2t (repeat n m = l))) (ensures (fun r -> length l = m))
let rec foo2 n m l = match m with | 0 -> () | _ -> foo2 n (m-1) (repeat n (m-1))
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 38, "end_line": 154, "start_col": 0, "start_line": 151 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Prims.nat -> m: Prims.nat -> l: SfLists.ilist -> Prims.Pure Prims.unit
Prims.Pure
[]
[]
[ "Prims.nat", "SfLists.ilist", "Prims.int", "SfLists.foo2", "Prims.op_Subtraction", "SfLists.repeat", "Prims.unit" ]
[ "recursion" ]
false
false
false
false
false
let rec foo2 n m l =
match m with | 0 -> () | _ -> foo2 n (m - 1) (repeat n (m - 1))
false
SfLists.fst
SfLists.tl_strange
val tl_strange : l:ilist -> Tot ilist
val tl_strange : l:ilist -> Tot ilist
let tl_strange l = match l with | Nil -> Nil | Cons h t -> t
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 17, "end_line": 84, "start_col": 0, "start_line": 81 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: SfLists.ilist -> SfLists.ilist
Prims.Tot
[ "total" ]
[]
[ "SfLists.ilist", "SfLists.Nil", "Prims.int" ]
[]
false
false
false
true
false
let tl_strange l =
match l with | Nil -> Nil | Cons h t -> t
false
SfLists.fst
SfLists.app_assoc
val app_assoc : l1 : ilist -> l2 : ilist -> l3 : ilist -> Lemma (ensures (app (app l1 l2) l3) = app l1 (app l2 l3))
val app_assoc : l1 : ilist -> l2 : ilist -> l3 : ilist -> Lemma (ensures (app (app l1 l2) l3) = app l1 (app l2 l3))
let rec app_assoc l1 l2 l3 = match l1 with | Nil -> () | Cons h t -> app_assoc t l2 l3
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 33, "end_line": 108, "start_col": 0, "start_line": 105 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l1: SfLists.ilist -> l2: SfLists.ilist -> l3: SfLists.ilist -> FStar.Pervasives.Lemma (ensures SfLists.app (SfLists.app l1 l2) l3 = SfLists.app l1 (SfLists.app l2 l3))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "SfLists.ilist", "Prims.int", "SfLists.app_assoc", "Prims.unit" ]
[ "recursion" ]
false
false
true
false
false
let rec app_assoc l1 l2 l3 =
match l1 with | Nil -> () | Cons h t -> app_assoc t l2 l3
false
SfLists.fst
SfLists.rev
val rev : ilist -> Tot ilist
val rev : ilist -> Tot ilist
let rec rev l = match l with | Nil -> Nil | Cons h t -> snoc (rev t) h
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 30, "end_line": 127, "start_col": 0, "start_line": 124 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: SfLists.ilist -> SfLists.ilist
Prims.Tot
[ "total" ]
[]
[ "SfLists.ilist", "SfLists.Nil", "Prims.int", "SfLists.snoc", "SfLists.rev" ]
[ "recursion" ]
false
false
false
true
false
let rec rev l =
match l with | Nil -> Nil | Cons h t -> snoc (rev t) h
false
SfLists.fst
SfLists.snoc_app
val snoc_app: l:ilist -> h:int -> Lemma (snoc l h = app l (Cons h Nil))
val snoc_app: l:ilist -> h:int -> Lemma (snoc l h = app l (Cons h Nil))
let rec snoc_app l h = match l with | Nil -> () | Cons hd tl -> let _ = snoc_app tl h in ()
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 6, "end_line": 221, "start_col": 0, "start_line": 217 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: SfLists.ilist -> h: Prims.int -> FStar.Pervasives.Lemma (ensures SfLists.snoc l h = SfLists.app l (SfLists.Cons h SfLists.Nil))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "SfLists.ilist", "Prims.int", "Prims.unit", "SfLists.snoc_app" ]
[ "recursion" ]
false
false
true
false
false
let rec snoc_app l h =
match l with | Nil -> () | Cons hd tl -> let _ = snoc_app tl h in ()
false
SfLists.fst
SfLists.rev_injective
val rev_injective: l1:ilist -> l2:ilist -> Lemma (rev l1 = rev l2 ==> l1 = l2)
val rev_injective: l1:ilist -> l2:ilist -> Lemma (rev l1 = rev l2 ==> l1 = l2)
let rec rev_injective l1 l2 = match (l1, l2) with | Nil, Nil -> () | Cons hd1 tl1, Cons hd2 tl2 -> let ih = rev_injective tl1 tl2 in let lem = snoc_injective (rev tl1) hd1 (rev tl2) hd2 in () | _, _ -> ()
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 14, "end_line": 202, "start_col": 0, "start_line": 196 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l1: SfLists.ilist -> l2: SfLists.ilist -> FStar.Pervasives.Lemma (ensures SfLists.rev l1 = SfLists.rev l2 ==> l1 = l2)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "SfLists.ilist", "FStar.Pervasives.Native.Mktuple2", "Prims.int", "Prims.unit", "SfLists.snoc_injective", "SfLists.rev", "SfLists.rev_injective" ]
[ "recursion" ]
false
false
true
false
false
let rec rev_injective l1 l2 =
match (l1, l2) with | Nil, Nil -> () | Cons hd1 tl1, Cons hd2 tl2 -> let ih = rev_injective tl1 tl2 in let lem = snoc_injective (rev tl1) hd1 (rev tl2) hd2 in () | _, _ -> ()
false
SfLists.fst
SfLists.rev_app
val rev_app: tl:ilist -> hd:int -> Lemma (rev (Cons hd tl) = app (rev tl) (Cons hd Nil))
val rev_app: tl:ilist -> hd:int -> Lemma (rev (Cons hd tl) = app (rev tl) (Cons hd Nil))
let rev_app tl hd = snoc_app (rev tl) hd
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 40, "end_line": 224, "start_col": 0, "start_line": 224 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
tl: SfLists.ilist -> hd: Prims.int -> FStar.Pervasives.Lemma (ensures SfLists.rev (SfLists.Cons hd tl) = SfLists.app (SfLists.rev tl) (SfLists.Cons hd SfLists.Nil))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "SfLists.ilist", "Prims.int", "SfLists.snoc_app", "SfLists.rev", "Prims.unit" ]
[]
true
false
true
false
false
let rev_app tl hd =
snoc_app (rev tl) hd
false
SfLists.fst
SfLists.fold_left_cons_is_rev
val fold_left_cons_is_rev: l:ilist -> l':ilist -> Lemma (fold_left Cons l l' = app (rev l) l')
val fold_left_cons_is_rev: l:ilist -> l':ilist -> Lemma (fold_left Cons l l' = app (rev l) l')
let rec fold_left_cons_is_rev l l' = match l with | Nil -> () | Cons hd tl -> let _ = fold_left_cons_is_rev tl (Cons hd l') in let _ = app_cons (rev tl) hd l' in let _ = rev_app tl hd in ()
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 6, "end_line": 233, "start_col": 0, "start_line": 227 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: SfLists.ilist -> l': SfLists.ilist -> FStar.Pervasives.Lemma (ensures SfLists.fold_left SfLists.Cons l l' = SfLists.app (SfLists.rev l) l')
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "SfLists.ilist", "Prims.int", "Prims.unit", "SfLists.rev_app", "SfLists.app_cons", "SfLists.rev", "SfLists.fold_left_cons_is_rev", "SfLists.Cons" ]
[ "recursion" ]
false
false
true
false
false
let rec fold_left_cons_is_rev l l' =
match l with | Nil -> () | Cons hd tl -> let _ = fold_left_cons_is_rev tl (Cons hd l') in let _ = app_cons (rev tl) hd l' in let _ = rev_app tl hd in ()
false
SfLists.fst
SfLists.rev_involutive
val rev_involutive: l:ilist -> Lemma (rev (rev l) = l)
val rev_involutive: l:ilist -> Lemma (rev (rev l) = l)
let rec rev_involutive l = match l with | Nil -> () | Cons h t -> let ih = rev_involutive t in let lem = snoc_cons (rev t) h in ()
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 6, "end_line": 185, "start_col": 0, "start_line": 180 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: SfLists.ilist -> FStar.Pervasives.Lemma (ensures SfLists.rev (SfLists.rev l) = l)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "SfLists.ilist", "Prims.int", "Prims.unit", "SfLists.snoc_cons", "SfLists.rev", "SfLists.rev_involutive" ]
[ "recursion" ]
false
false
true
false
false
let rec rev_involutive l =
match l with | Nil -> () | Cons h t -> let ih = rev_involutive t in let lem = snoc_cons (rev t) h in ()
false
SfLists.fst
SfLists.snoc_injective
val snoc_injective: l1:ilist -> h1:int -> l2:ilist -> h2:int -> Lemma (snoc l1 h1 = snoc l2 h2 ==> l1 = l2 /\ h1 = h2)
val snoc_injective: l1:ilist -> h1:int -> l2:ilist -> h2:int -> Lemma (snoc l1 h1 = snoc l2 h2 ==> l1 = l2 /\ h1 = h2)
let rec snoc_injective l1 h1 l2 h2 = match (l1, l2) with | Nil, Nil -> () | Cons hd1 tl1, Cons hd2 tl2 -> let ih = snoc_injective tl1 h1 tl2 h2 in () | _, _ -> ()
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 14, "end_line": 193, "start_col": 0, "start_line": 188 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l1: SfLists.ilist -> h1: Prims.int -> l2: SfLists.ilist -> h2: Prims.int -> FStar.Pervasives.Lemma (ensures SfLists.snoc l1 h1 = SfLists.snoc l2 h2 ==> l1 = l2 /\ h1 = h2)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "SfLists.ilist", "Prims.int", "FStar.Pervasives.Native.Mktuple2", "Prims.unit", "SfLists.snoc_injective" ]
[ "recursion" ]
false
false
true
false
false
let rec snoc_injective l1 h1 l2 h2 =
match (l1, l2) with | Nil, Nil -> () | Cons hd1 tl1, Cons hd2 tl2 -> let ih = snoc_injective tl1 h1 tl2 h2 in () | _, _ -> ()
false
Hacl.Bignum256_32.fst
Hacl.Bignum256_32.bn_to_bytes_le
val bn_to_bytes_le: Hacl.Bignum.Convert.bn_to_bytes_le_st t_limbs n_bytes
val bn_to_bytes_le: Hacl.Bignum.Convert.bn_to_bytes_le_st t_limbs n_bytes
let bn_to_bytes_le = Hacl.Bignum.Convert.mk_bn_to_bytes_le true n_bytes
{ "file_name": "code/bignum/Hacl.Bignum256_32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 71, "end_line": 169, "start_col": 0, "start_line": 169 }
module Hacl.Bignum256_32 open FStar.Mul module BN = Hacl.Bignum module BM = Hacl.Bignum.Montgomery module AM = Hacl.Bignum.AlmostMontgomery module BE = Hacl.Bignum.Exponentiation module BR = Hacl.Bignum.ModReduction module BI = Hacl.Bignum.ModInv #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" let add: BN.bn_add_eq...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Bignum.Montgomery.fsti.checked", "Hacl.Bignum.ModReduction.fst.checked", "Hacl.Bignum.ModInv.fst.checked", "Hacl.Bignum.Exponentiation.fsti.checked", "Hacl.Bignum.Convert.fst.checked", "Hacl.Bignum.AlmostMontgomery.fsti....
[ { "abbrev": true, "full_module": "Hacl.Bignum.ModInv", "short_module": "BI" }, { "abbrev": true, "full_module": "Hacl.Bignum.ModReduction", "short_module": "BR" }, { "abbrev": true, "full_module": "Hacl.Bignum.Exponentiation", "short_module": "BE" }, { "abbrev": t...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.Convert.bn_to_bytes_le_st Hacl.Bignum256_32.t_limbs Hacl.Bignum256_32.n_bytes
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Convert.mk_bn_to_bytes_le", "Hacl.Bignum256_32.t_limbs", "Hacl.Bignum256_32.n_bytes" ]
[]
false
false
false
true
false
let bn_to_bytes_le =
Hacl.Bignum.Convert.mk_bn_to_bytes_le true n_bytes
false
SfLists.fst
SfLists.forallb
val forallb: l:ilist -> f:(int -> Tot bool) -> Tot bool
val forallb: l:ilist -> f:(int -> Tot bool) -> Tot bool
let rec forallb l f = match l with | Nil -> true | Cons x l' -> let b1 = f x in let b2 = forallb l' f in b1 && b2
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 12, "end_line": 245, "start_col": 0, "start_line": 240 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: SfLists.ilist -> f: (_: Prims.int -> Prims.bool) -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "SfLists.ilist", "Prims.int", "Prims.bool", "Prims.op_AmpAmp", "SfLists.forallb" ]
[ "recursion" ]
false
false
false
true
false
let rec forallb l f =
match l with | Nil -> true | Cons x l' -> let b1 = f x in let b2 = forallb l' f in b1 && b2
false
Hacl.Spec.K256.Field52.fst
Hacl.Spec.K256.Field52.fnegate5
val fnegate5 : _: Hacl.Spec.K256.Field52.Definitions.felem5 -> m: Lib.IntTypes.uint64 -> Hacl.Spec.K256.Field52.Definitions.felem5
let fnegate5 ((a0,a1,a2,a3,a4):felem5) (m:uint64) : felem5 = let r0 = u64 0xffffefffffc2f *. u64 2 *. m -. a0 in let r1 = u64 0xfffffffffffff *. u64 2 *. m -. a1 in let r2 = u64 0xfffffffffffff *. u64 2 *. m -. a2 in let r3 = u64 0xfffffffffffff *. u64 2 *. m -. a3 in let r4 = u64 0xffffffffffff *. u64 2 *. m...
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 18, "end_line": 260, "start_col": 0, "start_line": 254 }
module Hacl.Spec.K256.Field52 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract let load_felem5 ((s0,s1,s2,s3): felem4) : felem5 = let f0 = s0 &. mask52 in let f1 = (s0 >>. 52ul) |. ((...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52.Definitions", "short_module": null }, { "abbrev": true, "full_module": "Spec.K256", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Hacl.Spec.K256.Field52.Definitions.felem5 -> m: Lib.IntTypes.uint64 -> Hacl.Spec.K256.Field52.Definitions.felem5
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.K256.Field52.Definitions.felem5", "Lib.IntTypes.uint64", "FStar.Pervasives.Native.Mktuple5", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Lib.IntTypes.op_Subtraction_Dot", "Lib.IntTypes.op_Star_Dot", "Lib.IntTypes.u64" ]
[]
false
false
false
true
false
let fnegate5 (a0, a1, a2, a3, a4: felem5) (m: uint64) : felem5 =
let r0 = u64 0xffffefffffc2f *. u64 2 *. m -. a0 in let r1 = u64 0xfffffffffffff *. u64 2 *. m -. a1 in let r2 = u64 0xfffffffffffff *. u64 2 *. m -. a2 in let r3 = u64 0xfffffffffffff *. u64 2 *. m -. a3 in let r4 = u64 0xffffffffffff *. u64 2 *. m -. a4 in (r0, r1, r2, r3, r4)
false
SfLists.fst
SfLists.existsb_existsb'
val existsb_existsb': l:ilist -> f:(int -> Tot bool) -> Lemma (ensures (existsb l f = existsb' l f))
val existsb_existsb': l:ilist -> f:(int -> Tot bool) -> Lemma (ensures (existsb l f = existsb' l f))
let rec existsb_existsb' l f = match l with | Nil -> () | Cons x l' -> let _ = existsb_existsb' l' f in ()
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 6, "end_line": 268, "start_col": 0, "start_line": 264 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: SfLists.ilist -> f: (_: Prims.int -> Prims.bool) -> FStar.Pervasives.Lemma (ensures SfLists.existsb l f = SfLists.existsb' l f)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "SfLists.ilist", "Prims.int", "Prims.bool", "Prims.unit", "SfLists.existsb_existsb'" ]
[ "recursion" ]
false
false
true
false
false
let rec existsb_existsb' l f =
match l with | Nil -> () | Cons x l' -> let _ = existsb_existsb' l' f in ()
false
SfLists.fst
SfLists.fold_left
val fold_left: f:(int -> 'a -> Tot 'a) -> l:ilist -> 'a -> Tot 'a
val fold_left: f:(int -> 'a -> Tot 'a) -> l:ilist -> 'a -> Tot 'a
let rec fold_left f l a = match l with | Nil -> a | Cons hd tl -> fold_left f tl (f hd a)
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 41, "end_line": 207, "start_col": 0, "start_line": 205 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.int -> _: 'a -> 'a) -> l: SfLists.ilist -> a: 'a -> 'a
Prims.Tot
[ "total" ]
[]
[ "Prims.int", "SfLists.ilist", "SfLists.fold_left" ]
[ "recursion" ]
false
false
false
true
false
let rec fold_left f l a =
match l with | Nil -> a | Cons hd tl -> fold_left f tl (f hd a)
false
SfLists.fst
SfLists.existsb
val existsb: l:ilist -> f:(int -> Tot bool) -> Tot bool
val existsb: l:ilist -> f:(int -> Tot bool) -> Tot bool
let rec existsb l f = match l with | Nil -> false | Cons x l' -> let b1 = f x in let b2 = existsb l' f in b1 || b2
{ "file_name": "examples/software_foundations/SfLists.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 12, "end_line": 253, "start_col": 0, "start_line": 248 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SfLists.fst" }
[ { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: SfLists.ilist -> f: (_: Prims.int -> Prims.bool) -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "SfLists.ilist", "Prims.int", "Prims.bool", "Prims.op_BarBar", "SfLists.existsb" ]
[ "recursion" ]
false
false
false
true
false
let rec existsb l f =
match l with | Nil -> false | Cons x l' -> let b1 = f x in let b2 = existsb l' f in b1 || b2
false