effect
stringclasses
48 values
original_source_type
stringlengths
0
23k
opens_and_abbrevs
listlengths
2
92
isa_cross_project_example
bool
1 class
source_definition
stringlengths
9
57.9k
partial_definition
stringlengths
7
23.3k
is_div
bool
2 classes
is_type
null
is_proof
bool
2 classes
completed_definiton
stringlengths
1
250k
dependencies
dict
effect_flags
listlengths
0
2
ideal_premises
listlengths
0
236
mutual_with
listlengths
0
11
file_context
stringlengths
0
407k
interleaved
bool
1 class
is_simply_typed
bool
2 classes
file_name
stringlengths
5
48
vconfig
dict
is_simple_lemma
null
source_type
stringlengths
10
23k
proof_features
listlengths
0
1
name
stringlengths
8
95
source
dict
verbose_type
stringlengths
1
7.42k
source_range
dict
FStar.Pervasives.Lemma
val modifies_remove_fresh_frame (h1 h2 h3: HS.mem) (l: loc) : Lemma (requires (HS.fresh_frame h1 h2 /\ modifies (loc_union (loc_all_regions_from false (HS.get_tip h2)) l) h2 h3)) (ensures (modifies l h1 h3)) [SMTPat (modifies l h1 h3); SMTPat (HS.fresh_frame h1 h2)]
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let modifies_remove_fresh_frame (h1 h2 h3:HS.mem) (l:loc) : Lemma (requires (HS.fresh_frame h1 h2 /\ modifies (loc_union (loc_all_regions_from false (HS.get_tip h2)) l) h2 h3)) (ensures (modifies l h1 h3)) [SMTPat (modifies l h1 h3); SMTPat (HS.fresh_frame h1 h2)] = loc_regions_un...
val modifies_remove_fresh_frame (h1 h2 h3: HS.mem) (l: loc) : Lemma (requires (HS.fresh_frame h1 h2 /\ modifies (loc_union (loc_all_regions_from false (HS.get_tip h2)) l) h2 h3)) (ensures (modifies l h1 h3)) [SMTPat (modifies l h1 h3); SMTPat (HS.fresh_frame h1 h2)] let modifies_...
false
null
true
loc_regions_unused_in h1 (HS.mod_set (Set.singleton (HS.get_tip h2))); modifies_only_not_unused_in l h1 h3
{ "checked_file": "LowStar.Monotonic.Buffer.fsti.checked", "dependencies": [ "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Per...
[ "lemma" ]
[ "FStar.Monotonic.HyperStack.mem", "LowStar.Monotonic.Buffer.loc", "LowStar.Monotonic.Buffer.modifies_only_not_unused_in", "Prims.unit", "LowStar.Monotonic.Buffer.loc_regions_unused_in", "FStar.Monotonic.HyperHeap.mod_set", "FStar.Set.singleton", "FStar.Monotonic.HyperHeap.rid", "FStar.Monotonic.Hype...
[]
(* 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...
false
false
LowStar.Monotonic.Buffer.fsti
{ "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...
null
val modifies_remove_fresh_frame (h1 h2 h3: HS.mem) (l: loc) : Lemma (requires (HS.fresh_frame h1 h2 /\ modifies (loc_union (loc_all_regions_from false (HS.get_tip h2)) l) h2 h3)) (ensures (modifies l h1 h3)) [SMTPat (modifies l h1 h3); SMTPat (HS.fresh_frame h1 h2)]
[]
LowStar.Monotonic.Buffer.modifies_remove_fresh_frame
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fsti", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
h1: FStar.Monotonic.HyperStack.mem -> h2: FStar.Monotonic.HyperStack.mem -> h3: FStar.Monotonic.HyperStack.mem -> l: LowStar.Monotonic.Buffer.loc -> FStar.Pervasives.Lemma (requires FStar.Monotonic.HyperStack.fresh_frame h1 h2 /\ LowStar.Monotonic.Buffer.modifies (LowStar.Monoto...
{ "end_col": 39, "end_line": 1720, "start_col": 4, "start_line": 1719 }
FStar.HyperStack.ST.Stack
val upd (#a: Type0) (#rrel #rel: srel a) (b: mbuffer a rrel rel) (i: U32.t) (v: a) : HST.Stack unit (requires (fun h -> live h b /\ U32.v i < length b /\ rel (as_seq h b) (Seq.upd (as_seq h b) (U32.v i) v))) (ensures (fun h _ h' -> (not (g_is_null b)) /\ modifies ...
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module"...
false
let upd (#a:Type0) (#rrel #rel:srel a) (b:mbuffer a rrel rel) (i:U32.t) (v:a) : HST.Stack unit (requires (fun h -> live h b /\ U32.v i < length b /\ rel (as_seq h b) (Seq.upd (as_seq h b) (U32.v i) v))) (ensures (fun h _ h' -> (not (g_is_null b)) /\ ...
val upd (#a: Type0) (#rrel #rel: srel a) (b: mbuffer a rrel rel) (i: U32.t) (v: a) : HST.Stack unit (requires (fun h -> live h b /\ U32.v i < length b /\ rel (as_seq h b) (Seq.upd (as_seq h b) (U32.v i) v))) (ensures (fun h _ h' -> (not (g_is_null b)) /\ modifies ...
true
null
false
let h = HST.get () in upd' b i v; g_upd_seq_as_seq b (Seq.upd (as_seq h b) (U32.v i) v) h
{ "checked_file": "LowStar.Monotonic.Buffer.fsti.checked", "dependencies": [ "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Per...
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "LowStar.Monotonic.Buffer.g_upd_seq_as_seq", "FStar.Seq.Base.upd", "LowStar.Monotonic.Buffer.as_seq", "FStar.UInt32.v", "Prims.unit", "LowStar.Monotonic.Buffer.upd'", "FStar.Monotonic.HyperStack.mem", "FStar.H...
[]
(* 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...
false
false
LowStar.Monotonic.Buffer.fsti
{ "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...
null
val upd (#a: Type0) (#rrel #rel: srel a) (b: mbuffer a rrel rel) (i: U32.t) (v: a) : HST.Stack unit (requires (fun h -> live h b /\ U32.v i < length b /\ rel (as_seq h b) (Seq.upd (as_seq h b) (U32.v i) v))) (ensures (fun h _ h' -> (not (g_is_null b)) /\ modifies ...
[]
LowStar.Monotonic.Buffer.upd
{ "file_name": "ulib/LowStar.Monotonic.Buffer.fsti", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> i: FStar.UInt32.t -> v: a -> FStar.HyperStack.ST.Stack Prims.unit
{ "end_col": 59, "end_line": 1909, "start_col": 3, "start_line": 1907 }
Prims.Tot
[ { "abbrev": true, "full_module": "Pulse.Typing.Metatheory", "short_module": "Metatheory" }, { "abbrev": true, "full_module": "Pulse.Typing.FV", "short_module": "FV" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": true...
false
let intro_exists_witness_singleton (st:st_term) = match st.term with | Tm_IntroExists { witnesses = [_] } -> true | _ -> false
let intro_exists_witness_singleton (st: st_term) =
false
null
false
match st.term with | Tm_IntroExists { witnesses = [_] } -> true | _ -> false
{ "checked_file": "Pulse.Checker.Exists.fsti.checked", "dependencies": [ "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Checker.Base.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_f...
[ "total" ]
[ "Pulse.Syntax.Base.st_term", "Pulse.Syntax.Base.__proj__Mkst_term__item__term", "Pulse.Syntax.Base.vprop", "Pulse.Syntax.Base.term", "Pulse.Syntax.Base.st_term'", "Prims.bool" ]
[]
module Pulse.Checker.Exists module T = FStar.Tactics.V2 open Pulse.Syntax open Pulse.Typing open Pulse.Checker.Base val check_elim_exists (g:env) (pre:term) (pre_typing:tot_typing g pre tm_vprop) (post_hint:post_hint_opt g) (res_ppname:ppname) (t:st_term{Tm_ElimExists? t.term}) : T.Tac (checker_result_...
false
true
Pulse.Checker.Exists.fsti
{ "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...
null
val intro_exists_witness_singleton : st: Pulse.Syntax.Base.st_term -> Prims.bool
[]
Pulse.Checker.Exists.intro_exists_witness_singleton
{ "file_name": "lib/steel/pulse/Pulse.Checker.Exists.fsti", "git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
st: Pulse.Syntax.Base.st_term -> Prims.bool
{ "end_col": 14, "end_line": 21, "start_col": 2, "start_line": 19 }
Prims.Tot
[ { "abbrev": true, "full_module": "Pulse.Typing.Metatheory", "short_module": "Metatheory" }, { "abbrev": true, "full_module": "Pulse.Typing.FV", "short_module": "FV" }, { "abbrev": true, "full_module": "Pulse.Syntax.Printer", "short_module": "P" }, { "abbrev": true...
false
let intro_exists_vprop (st:st_term { Tm_IntroExists? st.term }) = match st.term with | Tm_IntroExists { p } -> p
let intro_exists_vprop (st: st_term{Tm_IntroExists? st.term}) =
false
null
false
match st.term with | Tm_IntroExists { p = p } -> p
{ "checked_file": "Pulse.Checker.Exists.fsti.checked", "dependencies": [ "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Checker.Base.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_f...
[ "total" ]
[ "Pulse.Syntax.Base.st_term", "Prims.b2t", "Pulse.Syntax.Base.uu___is_Tm_IntroExists", "Pulse.Syntax.Base.__proj__Mkst_term__item__term", "Pulse.Syntax.Base.vprop", "Prims.list", "Pulse.Syntax.Base.term" ]
[]
module Pulse.Checker.Exists module T = FStar.Tactics.V2 open Pulse.Syntax open Pulse.Typing open Pulse.Checker.Base val check_elim_exists (g:env) (pre:term) (pre_typing:tot_typing g pre tm_vprop) (post_hint:post_hint_opt g) (res_ppname:ppname) (t:st_term{Tm_ElimExists? t.term}) : T.Tac (checker_result_...
false
false
Pulse.Checker.Exists.fsti
{ "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...
null
val intro_exists_vprop : st: Pulse.Syntax.Base.st_term{Tm_IntroExists? (Mkst_term?.term st)} -> Pulse.Syntax.Base.vprop
[]
Pulse.Checker.Exists.intro_exists_vprop
{ "file_name": "lib/steel/pulse/Pulse.Checker.Exists.fsti", "git_rev": "7fbb54e94dd4f48ff7cb867d3bae6889a635541e", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
st: Pulse.Syntax.Base.st_term{Tm_IntroExists? (Mkst_term?.term st)} -> Pulse.Syntax.Base.vprop
{ "end_col": 29, "end_line": 25, "start_col": 2, "start_line": 24 }
Prims.Tot
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "S" }, { "abbrev": false, "full_module": "Sp...
false
let update_multi_pre (a:hash_alg) (prev:extra_state a) (blocks:bytes) = match a with | Blake2B | Blake2S -> (S.length blocks + prev) `less_than_max_input_length` a | _ -> true
let update_multi_pre (a: hash_alg) (prev: extra_state a) (blocks: bytes) =
false
null
false
match a with | Blake2B | Blake2S -> (S.length blocks + prev) `less_than_max_input_length` a | _ -> true
{ "checked_file": "Spec.Agile.Hash.fsti.checked", "dependencies": [ "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "S...
[ "total" ]
[ "Spec.Hash.Definitions.hash_alg", "Spec.Hash.Definitions.extra_state", "Spec.Hash.Definitions.bytes", "Spec.Hash.Definitions.less_than_max_input_length", "Prims.op_Addition", "FStar.Seq.Base.length", "Lib.IntTypes.uint8", "Prims.bool" ]
[]
module Spec.Agile.Hash module S = FStar.Seq include Spec.Hash.Definitions open FStar.Mul (** Hashes, agility, incrementality, streaming, and hash laws. For various historical reasons, this module serves two purposes. - For Merkle-Damgård algorithms (MD5, SHA1, SHA2), this module acts as a *definitional* specifica...
false
false
Spec.Agile.Hash.fsti
{ "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...
null
val update_multi_pre : a: Spec.Hash.Definitions.hash_alg -> prev: Spec.Hash.Definitions.extra_state a -> blocks: Spec.Hash.Definitions.bytes -> Prims.bool
[]
Spec.Agile.Hash.update_multi_pre
{ "file_name": "specs/Spec.Agile.Hash.fsti", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Spec.Hash.Definitions.hash_alg -> prev: Spec.Hash.Definitions.extra_state a -> blocks: Spec.Hash.Definitions.bytes -> Prims.bool
{ "end_col": 13, "end_line": 74, "start_col": 2, "start_line": 71 }
Prims.Tot
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "S" }, { "abbrev": false, "full_module": "Sp...
false
let hash (a:fixed_len_alg) (input:bytes{S.length input `less_than_max_input_length` a}) = hash' a input ()
let hash (a: fixed_len_alg) (input: bytes{(S.length input) `less_than_max_input_length` a}) =
false
null
false
hash' a input ()
{ "checked_file": "Spec.Agile.Hash.fsti.checked", "dependencies": [ "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "S...
[ "total" ]
[ "Spec.Hash.Definitions.fixed_len_alg", "Spec.Hash.Definitions.bytes", "Prims.b2t", "Spec.Hash.Definitions.less_than_max_input_length", "FStar.Seq.Base.length", "Lib.IntTypes.uint8", "Spec.Agile.Hash.hash'", "Lib.ByteSequence.lbytes", "Spec.Hash.Definitions.hash_length'" ]
[]
module Spec.Agile.Hash module S = FStar.Seq include Spec.Hash.Definitions open FStar.Mul (** Hashes, agility, incrementality, streaming, and hash laws. For various historical reasons, this module serves two purposes. - For Merkle-Damgård algorithms (MD5, SHA1, SHA2), this module acts as a *definitional* specifica...
false
false
Spec.Agile.Hash.fsti
{ "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...
null
val hash : a: Spec.Hash.Definitions.fixed_len_alg -> input: Spec.Hash.Definitions.bytes {Spec.Hash.Definitions.less_than_max_input_length (FStar.Seq.Base.length input) a} -> Lib.ByteSequence.lbytes (Spec.Hash.Definitions.hash_length' a ())
[]
Spec.Agile.Hash.hash
{ "file_name": "specs/Spec.Agile.Hash.fsti", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Spec.Hash.Definitions.fixed_len_alg -> input: Spec.Hash.Definitions.bytes {Spec.Hash.Definitions.less_than_max_input_length (FStar.Seq.Base.length input) a} -> Lib.ByteSequence.lbytes (Spec.Hash.Definitions.hash_length' a ())
{ "end_col": 18, "end_line": 93, "start_col": 2, "start_line": 93 }
Prims.Tot
val init_extra_state (a: hash_alg) : extra_state a
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "S" }, { "abbrev": false, "full_module": "Sp...
false
let init_extra_state (a:hash_alg) : extra_state a = match a with | Blake2B | Blake2S -> 0 | _ -> ()
val init_extra_state (a: hash_alg) : extra_state a let init_extra_state (a: hash_alg) : extra_state a =
false
null
false
match a with | Blake2B | Blake2S -> 0 | _ -> ()
{ "checked_file": "Spec.Agile.Hash.fsti.checked", "dependencies": [ "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "S...
[ "total" ]
[ "Spec.Hash.Definitions.hash_alg", "Spec.Hash.Definitions.extra_state" ]
[]
module Spec.Agile.Hash module S = FStar.Seq include Spec.Hash.Definitions open FStar.Mul (** Hashes, agility, incrementality, streaming, and hash laws. For various historical reasons, this module serves two purposes. - For Merkle-Damgård algorithms (MD5, SHA1, SHA2), this module acts as a *definitional* specifica...
false
false
Spec.Agile.Hash.fsti
{ "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...
null
val init_extra_state (a: hash_alg) : extra_state a
[]
Spec.Agile.Hash.init_extra_state
{ "file_name": "specs/Spec.Agile.Hash.fsti", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Spec.Hash.Definitions.hash_alg -> Spec.Hash.Definitions.extra_state a
{ "end_col": 11, "end_line": 58, "start_col": 52, "start_line": 56 }
Prims.Tot
val wrap_slice (#a: Type0) (s: Seq.seq a) (i: int) : Seq.seq a
[ { "abbrev": false, "full_module": "FStar.Int.Cast", "short_module": null }, { "abbrev": false, "full_module": "FStar.Integers", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash", "short_module": null }, { "abbrev": false, "full_module"...
false
let wrap_slice (#a:Type0) (s:Seq.seq a) (i:int) : Seq.seq a = Seq.slice s 0 (if 0 <= i && i <= Seq.length s then i else 0)
val wrap_slice (#a: Type0) (s: Seq.seq a) (i: int) : Seq.seq a let wrap_slice (#a: Type0) (s: Seq.seq a) (i: int) : Seq.seq a =
false
null
false
Seq.slice s 0 (if 0 <= i && i <= Seq.length s then i else 0)
{ "checked_file": "Vale.Wrapper.X64.GCM_IV.fst.checked", "dependencies": [ "Vale.X64.MemoryAdapters.fsti.checked", "Vale.X64.Decls.fsti.checked", "Vale.Stdcalls.X64.GCM_IV.fst.checked", "Vale.SHA.Simplify_Sha.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.c...
[ "total" ]
[ "FStar.Seq.Base.seq", "FStar.Integers.int", "FStar.Seq.Base.slice", "Prims.op_AmpAmp", "FStar.Integers.op_Less_Equals", "FStar.Integers.Signed", "FStar.Integers.Winfinite", "FStar.Seq.Base.length", "Prims.bool", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual" ]
[]
module Vale.Wrapper.X64.GCM_IV open FStar.Mul open Vale.Stdcalls.X64.GCM_IV open Vale.AsLowStar.MemoryHelpers open Vale.X64.MemoryAdapters module V = Vale.X64.Decls open Vale.SHA.Simplify_Sha open Vale.AES.Gcm_simplify open Vale.AES.GCM_helpers open Vale.Arch.Types open Vale.AES.GHash open FStar.Integers open FStar.In...
false
false
Vale.Wrapper.X64.GCM_IV.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val wrap_slice (#a: Type0) (s: Seq.seq a) (i: int) : Seq.seq a
[]
Vale.Wrapper.X64.GCM_IV.wrap_slice
{ "file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.GCM_IV.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
s: FStar.Seq.Base.seq a -> i: FStar.Integers.int -> FStar.Seq.Base.seq a
{ "end_col": 62, "end_line": 17, "start_col": 2, "start_line": 17 }
FStar.Pervasives.Lemma
val length_aux5 (b: uint8_p) : Lemma (requires B.length b = 128) (ensures DV.length (get_downview b) % 16 = 0)
[ { "abbrev": false, "full_module": "FStar.Int.Cast", "short_module": null }, { "abbrev": false, "full_module": "FStar.Integers", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash", "short_module": null }, { "abbrev": false, "full_module"...
false
let length_aux5 (b:uint8_p) : Lemma (requires B.length b = 128) (ensures DV.length (get_downview b) % 16 = 0) = let db = get_downview b in DV.length_eq db
val length_aux5 (b: uint8_p) : Lemma (requires B.length b = 128) (ensures DV.length (get_downview b) % 16 = 0) let length_aux5 (b: uint8_p) : Lemma (requires B.length b = 128) (ensures DV.length (get_downview b) % 16 = 0) =
false
null
true
let db = get_downview b in DV.length_eq db
{ "checked_file": "Vale.Wrapper.X64.GCM_IV.fst.checked", "dependencies": [ "Vale.X64.MemoryAdapters.fsti.checked", "Vale.X64.Decls.fsti.checked", "Vale.Stdcalls.X64.GCM_IV.fst.checked", "Vale.SHA.Simplify_Sha.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.c...
[ "lemma" ]
[ "Vale.Wrapper.X64.GCM_IV.uint8_p", "LowStar.BufferView.Down.length_eq", "FStar.UInt8.t", "LowStar.BufferView.Down.buffer", "Vale.Interop.Types.get_downview", "Vale.Arch.HeapTypes_s.TUInt8", "LowStar.Buffer.trivial_preorder", "Prims.unit", "Prims.b2t", "Prims.op_Equality", "Prims.int", "LowStar...
[]
module Vale.Wrapper.X64.GCM_IV open FStar.Mul open Vale.Stdcalls.X64.GCM_IV open Vale.AsLowStar.MemoryHelpers open Vale.X64.MemoryAdapters module V = Vale.X64.Decls open Vale.SHA.Simplify_Sha open Vale.AES.Gcm_simplify open Vale.AES.GCM_helpers open Vale.Arch.Types open Vale.AES.GHash open FStar.Integers open FStar.In...
false
false
Vale.Wrapper.X64.GCM_IV.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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...
null
val length_aux5 (b: uint8_p) : Lemma (requires B.length b = 128) (ensures DV.length (get_downview b) % 16 = 0)
[]
Vale.Wrapper.X64.GCM_IV.length_aux5
{ "file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.GCM_IV.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
b: Vale.Wrapper.X64.GCM_IV.uint8_p -> FStar.Pervasives.Lemma (requires LowStar.Monotonic.Buffer.length b = 128) (ensures LowStar.BufferView.Down.length (Vale.Interop.Types.get_downview b) % 16 = 0)
{ "end_col": 19, "end_line": 32, "start_col": 49, "start_line": 30 }
FStar.Pervasives.Lemma
val length_aux (b: uint8_p) (n: nat) : Lemma (requires B.length b = 16 * n) (ensures DV.length (get_downview b) % 16 = 0)
[ { "abbrev": false, "full_module": "FStar.Int.Cast", "short_module": null }, { "abbrev": false, "full_module": "FStar.Integers", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash", "short_module": null }, { "abbrev": false, "full_module"...
false
let length_aux (b:uint8_p) (n:nat) : Lemma (requires B.length b = 16 * n) (ensures DV.length (get_downview b) % 16 = 0) = let db = get_downview b in DV.length_eq db; FStar.Math.Lemmas.cancel_mul_mod n 16
val length_aux (b: uint8_p) (n: nat) : Lemma (requires B.length b = 16 * n) (ensures DV.length (get_downview b) % 16 = 0) let length_aux (b: uint8_p) (n: nat) : Lemma (requires B.length b = 16 * n) (ensures DV.length (get_downview b) % 16 = 0) =
false
null
true
let db = get_downview b in DV.length_eq db; FStar.Math.Lemmas.cancel_mul_mod n 16
{ "checked_file": "Vale.Wrapper.X64.GCM_IV.fst.checked", "dependencies": [ "Vale.X64.MemoryAdapters.fsti.checked", "Vale.X64.Decls.fsti.checked", "Vale.Stdcalls.X64.GCM_IV.fst.checked", "Vale.SHA.Simplify_Sha.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.c...
[ "lemma" ]
[ "Vale.Wrapper.X64.GCM_IV.uint8_p", "FStar.Integers.nat", "FStar.Math.Lemmas.cancel_mul_mod", "Prims.unit", "LowStar.BufferView.Down.length_eq", "FStar.UInt8.t", "LowStar.BufferView.Down.buffer", "Vale.Interop.Types.get_downview", "Vale.Arch.HeapTypes_s.TUInt8", "LowStar.Buffer.trivial_preorder", ...
[]
module Vale.Wrapper.X64.GCM_IV open FStar.Mul open Vale.Stdcalls.X64.GCM_IV open Vale.AsLowStar.MemoryHelpers open Vale.X64.MemoryAdapters module V = Vale.X64.Decls open Vale.SHA.Simplify_Sha open Vale.AES.Gcm_simplify open Vale.AES.GCM_helpers open Vale.Arch.Types open Vale.AES.GHash open FStar.Integers open FStar.In...
false
false
Vale.Wrapper.X64.GCM_IV.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
null
val length_aux (b: uint8_p) (n: nat) : Lemma (requires B.length b = 16 * n) (ensures DV.length (get_downview b) % 16 = 0)
[]
Vale.Wrapper.X64.GCM_IV.length_aux
{ "file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.GCM_IV.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
b: Vale.Wrapper.X64.GCM_IV.uint8_p -> n: FStar.Integers.nat -> FStar.Pervasives.Lemma (requires LowStar.Monotonic.Buffer.length b = 16 * n) (ensures LowStar.BufferView.Down.length (Vale.Interop.Types.get_downview b) % 16 = 0)
{ "end_col": 41, "end_line": 24, "start_col": 49, "start_line": 21 }
FStar.Pervasives.Lemma
val lemma_same_seq_same_buffer_read (h0 h1: HS.mem) (b: uint8_p) : Lemma (requires B.live h0 b /\ B.live h1 b /\ B.length b == 128 /\ (B.as_seq h0 b) `Seq.equal` (B.as_seq h1 b)) (ensures (DV.length_eq (get_downview b); low_buffer_read TUInt8 TUInt128 h0 b 2 == low_buff...
[ { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": false, "full_module": "FStar.Int.Cast", "short_module": null }, { "abbrev": false, "full_module": "FStar.Integers", "short_module": null }, { "abbrev": false, "...
false
let lemma_same_seq_same_buffer_read (h0 h1:HS.mem) (b:uint8_p) : Lemma (requires B.live h0 b /\ B.live h1 b /\ B.length b == 128 /\ B.as_seq h0 b `Seq.equal` B.as_seq h1 b) (ensures ( DV.length_eq (get_downview b); low_buffer_read TUInt8 TUInt128 h0 b 2 == low_buffer_read TUInt8 TUInt128 h1...
val lemma_same_seq_same_buffer_read (h0 h1: HS.mem) (b: uint8_p) : Lemma (requires B.live h0 b /\ B.live h1 b /\ B.length b == 128 /\ (B.as_seq h0 b) `Seq.equal` (B.as_seq h1 b)) (ensures (DV.length_eq (get_downview b); low_buffer_read TUInt8 TUInt128 h0 b 2 == low_buff...
false
null
true
let b_d = get_downview b in DV.length_eq b_d; let b_u = UV.mk_buffer b_d Vale.Interop.Views.up_view128 in lemma_dv_equal Vale.Interop.Views.down_view8 b h0 h1; lemma_uv_equal Vale.Interop.Views.up_view128 (get_downview b) h0 h1; UV.length_eq b_u; UV.as_seq_sel h0 b_u 2; UV.as_seq_sel h1 b_u 2
{ "checked_file": "Vale.Wrapper.X64.GCM_IV.fst.checked", "dependencies": [ "Vale.X64.MemoryAdapters.fsti.checked", "Vale.X64.Decls.fsti.checked", "Vale.Stdcalls.X64.GCM_IV.fst.checked", "Vale.SHA.Simplify_Sha.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.c...
[ "lemma" ]
[ "FStar.Monotonic.HyperStack.mem", "Vale.Wrapper.X64.GCM_IV.uint8_p", "LowStar.BufferView.Up.as_seq_sel", "Vale.Def.Types_s.quad32", "Prims.unit", "LowStar.BufferView.Up.length_eq", "Vale.Lib.BufferViewHelpers.lemma_uv_equal", "FStar.UInt8.t", "Vale.Interop.Views.up_view128", "Vale.Interop.Types.ge...
[]
module Vale.Wrapper.X64.GCM_IV open FStar.Mul open Vale.Stdcalls.X64.GCM_IV open Vale.AsLowStar.MemoryHelpers open Vale.X64.MemoryAdapters module V = Vale.X64.Decls open Vale.SHA.Simplify_Sha open Vale.AES.Gcm_simplify open Vale.AES.GCM_helpers open Vale.Arch.Types open Vale.AES.GHash open FStar.Integers open FStar.In...
false
false
Vale.Wrapper.X64.GCM_IV.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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...
null
val lemma_same_seq_same_buffer_read (h0 h1: HS.mem) (b: uint8_p) : Lemma (requires B.live h0 b /\ B.live h1 b /\ B.length b == 128 /\ (B.as_seq h0 b) `Seq.equal` (B.as_seq h1 b)) (ensures (DV.length_eq (get_downview b); low_buffer_read TUInt8 TUInt128 h0 b 2 == low_buff...
[]
Vale.Wrapper.X64.GCM_IV.lemma_same_seq_same_buffer_read
{ "file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.GCM_IV.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
h0: FStar.Monotonic.HyperStack.mem -> h1: FStar.Monotonic.HyperStack.mem -> b: Vale.Wrapper.X64.GCM_IV.uint8_p -> FStar.Pervasives.Lemma (requires LowStar.Monotonic.Buffer.live h0 b /\ LowStar.Monotonic.Buffer.live h1 b /\ LowStar.Monotonic.Buffer.length b == 128 /\ FStar.Se...
{ "end_col": 25, "end_line": 240, "start_col": 4, "start_line": 232 }
FStar.Pervasives.Lemma
val lemma_slice_uv_extra (b b_start b_extra: uint8_p) (h: HS.mem) : Lemma (requires B.length b_start = (B.length b / 16) * 16 /\ b_start == B.gsub b 0ul (UInt32.uint_to_t (B.length b_start)) /\ B.length b_extra = 16 /\ Seq.equal (B.as_seq h b) (Seq.slice (Seq.append (B.as_seq...
[ { "abbrev": false, "full_module": "FStar.Int.Cast", "short_module": null }, { "abbrev": false, "full_module": "FStar.Integers", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash", "short_module": null }, { "abbrev": false, "full_module"...
false
let lemma_slice_uv_extra (b:uint8_p) (b_start:uint8_p) (b_extra:uint8_p) (h:HS.mem) : Lemma (requires B.length b_start = B.length b / 16 * 16 /\ b_start == B.gsub b 0ul (UInt32.uint_to_t (B.length b_start)) /\ B.length b_extra = 16 /\ Seq.equal (B.as_seq h b) (Seq.slice (Seq.append (B.as_s...
val lemma_slice_uv_extra (b b_start b_extra: uint8_p) (h: HS.mem) : Lemma (requires B.length b_start = (B.length b / 16) * 16 /\ b_start == B.gsub b 0ul (UInt32.uint_to_t (B.length b_start)) /\ B.length b_extra = 16 /\ Seq.equal (B.as_seq h b) (Seq.slice (Seq.append (B.as_seq...
false
null
true
let b_start_d = get_downview b_start in DV.length_eq (get_downview b_start); let b_start_u = UV.mk_buffer b_start_d Vale.Interop.Views.up_view128 in let b_extra_d = get_downview b_extra in DV.length_eq (get_downview b_extra); let b_extra_u = UV.mk_buffer b_extra_d Vale.Interop.Views.up_view128 in let suv = Seq.append (...
{ "checked_file": "Vale.Wrapper.X64.GCM_IV.fst.checked", "dependencies": [ "Vale.X64.MemoryAdapters.fsti.checked", "Vale.X64.Decls.fsti.checked", "Vale.Stdcalls.X64.GCM_IV.fst.checked", "Vale.SHA.Simplify_Sha.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.c...
[ "lemma" ]
[ "Vale.Wrapper.X64.GCM_IV.uint8_p", "FStar.Monotonic.HyperStack.mem", "FStar.Calc.calc_finish", "FStar.Seq.Base.seq", "Vale.Def.Types_s.nat8", "Prims.eq2", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", "Prims.unit", "FStar.Calc.calc_step", "Vale.Wrapper.X64.GCM_IV.wrap_slice", "Vale.D...
[]
module Vale.Wrapper.X64.GCM_IV open FStar.Mul open Vale.Stdcalls.X64.GCM_IV open Vale.AsLowStar.MemoryHelpers open Vale.X64.MemoryAdapters module V = Vale.X64.Decls open Vale.SHA.Simplify_Sha open Vale.AES.Gcm_simplify open Vale.AES.GCM_helpers open Vale.Arch.Types open Vale.AES.GHash open FStar.Integers open FStar.In...
false
false
Vale.Wrapper.X64.GCM_IV.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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...
null
val lemma_slice_uv_extra (b b_start b_extra: uint8_p) (h: HS.mem) : Lemma (requires B.length b_start = (B.length b / 16) * 16 /\ b_start == B.gsub b 0ul (UInt32.uint_to_t (B.length b_start)) /\ B.length b_extra = 16 /\ Seq.equal (B.as_seq h b) (Seq.slice (Seq.append (B.as_seq...
[]
Vale.Wrapper.X64.GCM_IV.lemma_slice_uv_extra
{ "file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.GCM_IV.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
b: Vale.Wrapper.X64.GCM_IV.uint8_p -> b_start: Vale.Wrapper.X64.GCM_IV.uint8_p -> b_extra: Vale.Wrapper.X64.GCM_IV.uint8_p -> h: FStar.Monotonic.HyperStack.mem -> FStar.Pervasives.Lemma (requires LowStar.Monotonic.Buffer.length b_start = (LowStar.Monotonic.Buffer.length b / 16) * 16 /\ ...
{ "end_col": 4, "end_line": 183, "start_col": 2, "start_line": 137 }
FStar.Pervasives.Lemma
val lemma_slice_sub (b b_sub b_extra: uint8_p) (h: HS.mem) : Lemma (requires B.length b_extra = 16 /\ B.length b_sub = (B.length b / 16) * 16 /\ b_sub == B.gsub b 0ul (UInt32.uint_to_t (B.length b_sub)) /\ Seq.equal (Seq.slice (B.as_seq h b) (B.length b_sub) (B.length b_sub + B.length ...
[ { "abbrev": false, "full_module": "FStar.Int.Cast", "short_module": null }, { "abbrev": false, "full_module": "FStar.Integers", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.GHash", "short_module": null }, { "abbrev": false, "full_module"...
false
let lemma_slice_sub (b:uint8_p) (b_sub:uint8_p) (b_extra:uint8_p) (h:HS.mem) : Lemma (requires B.length b_extra = 16 /\ B.length b_sub = B.length b / 16 * 16 /\ b_sub == B.gsub b 0ul (UInt32.uint_to_t (B.length b_sub)) /\ Seq.equal (Seq.slice (B.as_seq h b) (B.length b_sub) (B.length b_sub + B.length b ...
val lemma_slice_sub (b b_sub b_extra: uint8_p) (h: HS.mem) : Lemma (requires B.length b_extra = 16 /\ B.length b_sub = (B.length b / 16) * 16 /\ b_sub == B.gsub b 0ul (UInt32.uint_to_t (B.length b_sub)) /\ Seq.equal (Seq.slice (B.as_seq h b) (B.length b_sub) (B.length b_sub + B.length ...
false
null
true
calc ( == ) { Seq.slice (Seq.append (B.as_seq h b_sub) (B.as_seq h b_extra)) 0 (B.length b); ( == ) { Seq.lemma_eq_intro (Seq.slice (Seq.append (B.as_seq h b_sub) (B.as_seq h b_extra)) 0 (B.length b)) (Seq.append (B.as_seq h b_sub) (Seq.slice (B.as_seq h b_extra) 0 (B.length b % 16))) } Seq.ap...
{ "checked_file": "Vale.Wrapper.X64.GCM_IV.fst.checked", "dependencies": [ "Vale.X64.MemoryAdapters.fsti.checked", "Vale.X64.Decls.fsti.checked", "Vale.Stdcalls.X64.GCM_IV.fst.checked", "Vale.SHA.Simplify_Sha.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.c...
[ "lemma" ]
[ "Vale.Wrapper.X64.GCM_IV.uint8_p", "FStar.Monotonic.HyperStack.mem", "FStar.Calc.calc_finish", "FStar.Seq.Base.seq", "FStar.UInt8.t", "Prims.eq2", "FStar.Seq.Base.slice", "FStar.Seq.Base.append", "LowStar.Monotonic.Buffer.as_seq", "LowStar.Buffer.trivial_preorder", "LowStar.Monotonic.Buffer.leng...
[]
module Vale.Wrapper.X64.GCM_IV open FStar.Mul open Vale.Stdcalls.X64.GCM_IV open Vale.AsLowStar.MemoryHelpers open Vale.X64.MemoryAdapters module V = Vale.X64.Decls open Vale.SHA.Simplify_Sha open Vale.AES.Gcm_simplify open Vale.AES.GCM_helpers open Vale.Arch.Types open Vale.AES.GHash open FStar.Integers open FStar.In...
false
false
Vale.Wrapper.X64.GCM_IV.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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...
null
val lemma_slice_sub (b b_sub b_extra: uint8_p) (h: HS.mem) : Lemma (requires B.length b_extra = 16 /\ B.length b_sub = (B.length b / 16) * 16 /\ b_sub == B.gsub b 0ul (UInt32.uint_to_t (B.length b_sub)) /\ Seq.equal (Seq.slice (B.as_seq h b) (B.length b_sub) (B.length b_sub + B.length ...
[]
Vale.Wrapper.X64.GCM_IV.lemma_slice_sub
{ "file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.GCM_IV.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
b: Vale.Wrapper.X64.GCM_IV.uint8_p -> b_sub: Vale.Wrapper.X64.GCM_IV.uint8_p -> b_extra: Vale.Wrapper.X64.GCM_IV.uint8_p -> h: FStar.Monotonic.HyperStack.mem -> FStar.Pervasives.Lemma (requires LowStar.Monotonic.Buffer.length b_extra = 16 /\ LowStar.Monotonic.Buffer.length b_sub...
{ "end_col": 3, "end_line": 218, "start_col": 2, "start_line": 197 }
FStar.HyperStack.ST.Stack
val compute_iv (a:algorithm) (key:Ghost.erased (Seq.seq nat32)) (iv_b:uint8_p) (num_bytes:UInt32.t) (j0_b:uint8_p) (extra_b:uint8_p) (hkeys_b:uint8_p) : Stack unit (requires fun h -> B.live h iv_b /\ B.live h extra_b /\ B.live h hkeys_b /\ B.live h j0_b /\ B.length j0_b == 16 /\ B.length extra_...
[ { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": false, "full_module": "FStar.Int.Cast", "short_module": null }, { "abbrev": false, "full_module": "FStar.Integers", "short_module": null }, { "abbrev": false, "...
false
let compute_iv a key full_iv_b num_bytes j0_b extra_b hkeys_b = let h0 = get() in let len = num_bytes / 16ul in let bytes_len = len * 16ul in let iv_b = B.sub full_iv_b 0ul bytes_len in B.blit full_iv_b bytes_len extra_b 0ul (num_bytes % 16ul); let h1 = get() in lemma_slice_sub full_iv_b iv_b extra_b h1...
val compute_iv (a:algorithm) (key:Ghost.erased (Seq.seq nat32)) (iv_b:uint8_p) (num_bytes:UInt32.t) (j0_b:uint8_p) (extra_b:uint8_p) (hkeys_b:uint8_p) : Stack unit (requires fun h -> B.live h iv_b /\ B.live h extra_b /\ B.live h hkeys_b /\ B.live h j0_b /\ B.length j0_b == 16 /\ B.length extra_...
true
null
false
let h0 = get () in let len = num_bytes / 16ul in let bytes_len = len * 16ul in let iv_b = B.sub full_iv_b 0ul bytes_len in B.blit full_iv_b bytes_len extra_b 0ul (num_bytes % 16ul); let h1 = get () in lemma_slice_sub full_iv_b iv_b extra_b h1; lemma_slice_uv_extra full_iv_b iv_b extra_b h1; DV.length_eq (get_downview h...
{ "checked_file": "Vale.Wrapper.X64.GCM_IV.fst.checked", "dependencies": [ "Vale.X64.MemoryAdapters.fsti.checked", "Vale.X64.Decls.fsti.checked", "Vale.Stdcalls.X64.GCM_IV.fst.checked", "Vale.SHA.Simplify_Sha.fsti.checked", "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.c...
[]
[ "Vale.AES.AES_common_s.algorithm", "FStar.Ghost.erased", "FStar.Seq.Base.seq", "Vale.Def.Types_s.nat32", "Vale.Wrapper.X64.GCM_IV.uint8_p", "FStar.UInt32.t", "Vale.Arch.Types.le_bytes_to_quad32_to_bytes", "Vale.AES.GCM_s.compute_iv_BE", "Vale.AES.AES_s.aes_encrypt_LE", "FStar.Ghost.reveal", "Val...
[]
module Vale.Wrapper.X64.GCM_IV open FStar.Mul open Vale.Stdcalls.X64.GCM_IV open Vale.AsLowStar.MemoryHelpers open Vale.X64.MemoryAdapters module V = Vale.X64.Decls open Vale.SHA.Simplify_Sha open Vale.AES.Gcm_simplify open Vale.AES.GCM_helpers open Vale.Arch.Types open Vale.AES.GHash open FStar.Integers open FStar.In...
false
false
Vale.Wrapper.X64.GCM_IV.fst
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "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...
null
val compute_iv (a:algorithm) (key:Ghost.erased (Seq.seq nat32)) (iv_b:uint8_p) (num_bytes:UInt32.t) (j0_b:uint8_p) (extra_b:uint8_p) (hkeys_b:uint8_p) : Stack unit (requires fun h -> B.live h iv_b /\ B.live h extra_b /\ B.live h hkeys_b /\ B.live h j0_b /\ B.length j0_b == 16 /\ B.length extra_...
[]
Vale.Wrapper.X64.GCM_IV.compute_iv
{ "file_name": "vale/code/arch/x64/interop/Vale.Wrapper.X64.GCM_IV.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Vale.AES.AES_common_s.algorithm -> key: FStar.Ghost.erased (FStar.Seq.Base.seq Vale.Def.Types_s.nat32) -> iv_b: Vale.Wrapper.X64.GCM_IV.uint8_p -> num_bytes: FStar.UInt32.t -> j0_b: Vale.Wrapper.X64.GCM_IV.uint8_p -> extra_b: Vale.Wrapper.X64.GCM_IV.uint8_p -> hkeys_b: Vale.Wrapper.X64.G...
{ "end_col": 52, "end_line": 318, "start_col": 63, "start_line": 244 }
Prims.Tot
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let proj_point = felem & felem & felem
let proj_point =
false
null
false
felem & felem & felem
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "FStar.Pervasives.Native.tuple3", "Spec.K256.PointOps.felem" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val proj_point : Type0
[]
Spec.K256.PointOps.proj_point
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Type0
{ "end_col": 38, "end_line": 56, "start_col": 17, "start_line": 56 }
Prims.Tot
val scalar_is_high (x: qelem) : bool
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let scalar_is_high (x:qelem) : bool = x > q / 2
val scalar_is_high (x: qelem) : bool let scalar_is_high (x: qelem) : bool =
false
null
false
x > q / 2
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Spec.K256.PointOps.qelem", "Prims.op_GreaterThan", "Prims.op_Division", "Spec.K256.PointOps.q", "Prims.bool" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val scalar_is_high (x: qelem) : bool
[]
Spec.K256.PointOps.scalar_is_high
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
x: Spec.K256.PointOps.qelem -> Prims.bool
{ "end_col": 47, "end_line": 48, "start_col": 38, "start_line": 48 }
Prims.Tot
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let aff_point = felem & felem
let aff_point =
false
null
false
felem & felem
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "FStar.Pervasives.Native.tuple2", "Spec.K256.PointOps.felem" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val aff_point : Type0
[]
Spec.K256.PointOps.aff_point
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Type0
{ "end_col": 29, "end_line": 55, "start_col": 16, "start_line": 55 }
Prims.Tot
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let felem = x:nat{x < prime}
let felem =
false
null
false
x: nat{x < prime}
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Spec.K256.PointOps.prime" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val felem : Type0
[]
Spec.K256.PointOps.felem
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Type0
{ "end_col": 28, "end_line": 20, "start_col": 12, "start_line": 20 }
Prims.Tot
val aff_point_at_inf:aff_point
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let aff_point_at_inf : aff_point = (zero, zero)
val aff_point_at_inf:aff_point let aff_point_at_inf:aff_point =
false
null
false
(zero, zero)
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "FStar.Pervasives.Native.Mktuple2", "Spec.K256.PointOps.felem", "Spec.K256.PointOps.zero" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val aff_point_at_inf:aff_point
[]
Spec.K256.PointOps.aff_point_at_inf
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Spec.K256.PointOps.aff_point
{ "end_col": 47, "end_line": 64, "start_col": 35, "start_line": 64 }
Prims.Tot
val is_fodd (x: nat) : bool
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let is_fodd (x:nat) : bool = x % 2 = 1
val is_fodd (x: nat) : bool let is_fodd (x: nat) : bool =
false
null
false
x % 2 = 1
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Prims.nat", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "Prims.bool" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val is_fodd (x: nat) : bool
[]
Spec.K256.PointOps.is_fodd
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
x: Prims.nat -> Prims.bool
{ "end_col": 38, "end_line": 29, "start_col": 29, "start_line": 29 }
Prims.Tot
val to_aff_point (p: proj_point) : aff_point
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let to_aff_point (p:proj_point) : aff_point = // if is_proj_point_at_inf p then aff_point_at_inf let (px, py, pz) = p in let zinv = finv pz in let x = px *% zinv in let y = py *% zinv in (x, y)
val to_aff_point (p: proj_point) : aff_point let to_aff_point (p: proj_point) : aff_point =
false
null
false
let px, py, pz = p in let zinv = finv pz in let x = px *% zinv in let y = py *% zinv in (x, y)
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Spec.K256.PointOps.proj_point", "Spec.K256.PointOps.felem", "FStar.Pervasives.Native.Mktuple2", "Spec.K256.PointOps.op_Star_Percent", "Spec.K256.PointOps.finv", "Spec.K256.PointOps.aff_point" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val to_aff_point (p: proj_point) : aff_point
[]
Spec.K256.PointOps.to_aff_point
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
p: Spec.K256.PointOps.proj_point -> Spec.K256.PointOps.aff_point
{ "end_col": 8, "end_line": 79, "start_col": 45, "start_line": 73 }
Prims.Tot
val to_proj_point (p: aff_point) : proj_point
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let to_proj_point (p:aff_point) : proj_point = let (x, y) = p in (x, y, one)
val to_proj_point (p: aff_point) : proj_point let to_proj_point (p: aff_point) : proj_point =
false
null
false
let x, y = p in (x, y, one)
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Spec.K256.PointOps.aff_point", "Spec.K256.PointOps.felem", "FStar.Pervasives.Native.Mktuple3", "Spec.K256.PointOps.one", "Spec.K256.PointOps.proj_point" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val to_proj_point (p: aff_point) : proj_point
[]
Spec.K256.PointOps.to_proj_point
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
p: Spec.K256.PointOps.aff_point -> Spec.K256.PointOps.proj_point
{ "end_col": 31, "end_line": 82, "start_col": 46, "start_line": 81 }
Prims.Tot
val g:proj_point
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let g : proj_point = (g_x, g_y, one)
val g:proj_point let g:proj_point =
false
null
false
(g_x, g_y, one)
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "FStar.Pervasives.Native.Mktuple3", "Spec.K256.PointOps.felem", "Spec.K256.PointOps.g_x", "Spec.K256.PointOps.g_y", "Spec.K256.PointOps.one" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val g:proj_point
[]
Spec.K256.PointOps.g
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Spec.K256.PointOps.proj_point
{ "end_col": 36, "end_line": 87, "start_col": 21, "start_line": 87 }
Prims.Tot
val q:q: pos{q < pow2 256}
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let q : q:pos{q < pow2 256} = assert_norm (0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141 < pow2 256); 0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141
val q:q: pos{q < pow2 256} let q:q: pos{q < pow2 256} =
false
null
false
assert_norm (0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141 < pow2 256); 0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.b2t", "Prims.op_LessThan", "Prims.pow2" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
false
Spec.K256.PointOps.fst
{ "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...
null
val q:q: pos{q < pow2 256}
[]
Spec.K256.PointOps.q
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
q: Prims.pos{q < Prims.pow2 256}
{ "end_col": 68, "end_line": 41, "start_col": 2, "start_line": 40 }
Prims.Tot
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let ( /% ) (x y:felem) = x *% finv y
let op_Slash_Percent (x y: felem) =
false
null
false
x *% finv y
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Spec.K256.PointOps.felem", "Spec.K256.PointOps.op_Star_Percent", "Spec.K256.PointOps.finv" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val op_Slash_Percent : x: Spec.K256.PointOps.felem -> y: Spec.K256.PointOps.felem -> Spec.K256.PointOps.felem
[]
Spec.K256.PointOps.op_Slash_Percent
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
x: Spec.K256.PointOps.felem -> y: Spec.K256.PointOps.felem -> Spec.K256.PointOps.felem
{ "end_col": 36, "end_line": 34, "start_col": 25, "start_line": 34 }
Prims.Tot
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let qelem = x:nat{x < q}
let qelem =
false
null
false
x: nat{x < q}
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Spec.K256.PointOps.q" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val qelem : Type0
[]
Spec.K256.PointOps.qelem
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Type0
{ "end_col": 24, "end_line": 43, "start_col": 12, "start_line": 43 }
Prims.Tot
val point_at_inf:proj_point
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let point_at_inf : proj_point = (zero, one, zero)
val point_at_inf:proj_point let point_at_inf:proj_point =
false
null
false
(zero, one, zero)
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "FStar.Pervasives.Native.Mktuple3", "Spec.K256.PointOps.felem", "Spec.K256.PointOps.zero", "Spec.K256.PointOps.one" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val point_at_inf:proj_point
[]
Spec.K256.PointOps.point_at_inf
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Spec.K256.PointOps.proj_point
{ "end_col": 49, "end_line": 65, "start_col": 32, "start_line": 65 }
Prims.Tot
val finv (x: felem) : felem
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let finv (x:felem) : felem = M.pow_mod #prime x (prime - 2)
val finv (x: felem) : felem let finv (x: felem) : felem =
false
null
false
M.pow_mod #prime x (prime - 2)
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Spec.K256.PointOps.felem", "Lib.NatMod.pow_mod", "Spec.K256.PointOps.prime", "Prims.op_Subtraction" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val finv (x: felem) : felem
[]
Spec.K256.PointOps.finv
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
x: Spec.K256.PointOps.felem -> Spec.K256.PointOps.felem
{ "end_col": 59, "end_line": 27, "start_col": 29, "start_line": 27 }
Prims.Tot
val one:felem
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let one : felem = 1
val one:felem let one:felem =
false
null
false
1
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val one:felem
[]
Spec.K256.PointOps.one
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Spec.K256.PointOps.felem
{ "end_col": 20, "end_line": 22, "start_col": 19, "start_line": 22 }
Prims.Tot
val is_aff_point_at_inf (p: aff_point) : bool
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let is_aff_point_at_inf (p:aff_point) : bool = let (x, y) = p in x = zero && y = zero
val is_aff_point_at_inf (p: aff_point) : bool let is_aff_point_at_inf (p: aff_point) : bool =
false
null
false
let x, y = p in x = zero && y = zero
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Spec.K256.PointOps.aff_point", "Spec.K256.PointOps.felem", "Prims.op_AmpAmp", "Prims.op_Equality", "Spec.K256.PointOps.zero", "Prims.bool" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val is_aff_point_at_inf (p: aff_point) : bool
[]
Spec.K256.PointOps.is_aff_point_at_inf
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
p: Spec.K256.PointOps.aff_point -> Prims.bool
{ "end_col": 40, "end_line": 68, "start_col": 46, "start_line": 67 }
Prims.Tot
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let is_on_curve (p:aff_point) = let x, y = p in y *% y = x *% x *% x +% b
let is_on_curve (p: aff_point) =
false
null
false
let x, y = p in y *% y = x *% x *% x +% b
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Spec.K256.PointOps.aff_point", "Spec.K256.PointOps.felem", "Prims.op_Equality", "Spec.K256.PointOps.op_Star_Percent", "Spec.K256.PointOps.op_Plus_Percent", "Spec.K256.PointOps.b", "Prims.bool" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val is_on_curve : p: Spec.K256.PointOps.aff_point -> Prims.bool
[]
Spec.K256.PointOps.is_on_curve
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
p: Spec.K256.PointOps.aff_point -> Prims.bool
{ "end_col": 43, "end_line": 62, "start_col": 31, "start_line": 61 }
Prims.Tot
val g_y:felem
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let g_y : felem = 0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8
val g_y:felem let g_y:felem =
false
null
false
0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val g_y:felem
[]
Spec.K256.PointOps.g_y
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Spec.K256.PointOps.felem
{ "end_col": 84, "end_line": 86, "start_col": 18, "start_line": 86 }
Prims.Tot
val g_x:felem
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let g_x : felem = 0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798
val g_x:felem let g_x:felem =
false
null
false
0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val g_x:felem
[]
Spec.K256.PointOps.g_x
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Spec.K256.PointOps.felem
{ "end_col": 84, "end_line": 85, "start_col": 18, "start_line": 85 }
Prims.Tot
val fadd (x y: felem) : felem
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let fadd (x y:felem) : felem = (x + y) % prime
val fadd (x y: felem) : felem let fadd (x y: felem) : felem =
false
null
false
(x + y) % prime
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Spec.K256.PointOps.felem", "Prims.op_Modulus", "Prims.op_Addition", "Spec.K256.PointOps.prime" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val fadd (x y: felem) : felem
[]
Spec.K256.PointOps.fadd
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
x: Spec.K256.PointOps.felem -> y: Spec.K256.PointOps.felem -> Spec.K256.PointOps.felem
{ "end_col": 46, "end_line": 24, "start_col": 31, "start_line": 24 }
Prims.Tot
val aff_point_double (p: aff_point) : aff_point
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let aff_point_double (p:aff_point) : aff_point = let (px, py) = p in if is_aff_point_at_inf p then p else begin if py = 0 then aff_point_at_inf else begin let lambda = 3 *% px *% px /% (2 *% py) in let rx = lambda *% lambda -% px -% px in let ry = lambda *% (px -% rx) -% py in (rx,...
val aff_point_double (p: aff_point) : aff_point let aff_point_double (p: aff_point) : aff_point =
false
null
false
let px, py = p in if is_aff_point_at_inf p then p else if py = 0 then aff_point_at_inf else let lambda = 3 *% px *% px /% (2 *% py) in let rx = lambda *% lambda -% px -% px in let ry = lambda *% (px -% rx) -% py in (rx, ry)
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Spec.K256.PointOps.aff_point", "Spec.K256.PointOps.felem", "Spec.K256.PointOps.is_aff_point_at_inf", "Prims.bool", "Prims.op_Equality", "Prims.int", "Spec.K256.PointOps.aff_point_at_inf", "FStar.Pervasives.Native.Mktuple2", "Spec.K256.PointOps.op_Subtraction_Percent", "Spec.K256.PointOps.op_Star_...
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val aff_point_double (p: aff_point) : aff_point
[]
Spec.K256.PointOps.aff_point_double
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
p: Spec.K256.PointOps.aff_point -> Spec.K256.PointOps.aff_point
{ "end_col": 5, "end_line": 101, "start_col": 48, "start_line": 91 }
Prims.Tot
val qnegate (x: qelem) : qelem
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let qnegate (x:qelem) : qelem = (- x) % q
val qnegate (x: qelem) : qelem let qnegate (x: qelem) : qelem =
false
null
false
(- x) % q
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Spec.K256.PointOps.qelem", "Prims.op_Modulus", "Prims.op_Minus", "Spec.K256.PointOps.q" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val qnegate (x: qelem) : qelem
[]
Spec.K256.PointOps.qnegate
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
x: Spec.K256.PointOps.qelem -> Spec.K256.PointOps.qelem
{ "end_col": 41, "end_line": 47, "start_col": 32, "start_line": 47 }
Prims.Tot
val qadd (x y: qelem) : qelem
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let qadd (x y:qelem) : qelem = (x + y) % q
val qadd (x y: qelem) : qelem let qadd (x y: qelem) : qelem =
false
null
false
(x + y) % q
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Spec.K256.PointOps.qelem", "Prims.op_Modulus", "Prims.op_Addition", "Spec.K256.PointOps.q" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val qadd (x y: qelem) : qelem
[]
Spec.K256.PointOps.qadd
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
x: Spec.K256.PointOps.qelem -> y: Spec.K256.PointOps.qelem -> Spec.K256.PointOps.qelem
{ "end_col": 42, "end_line": 44, "start_col": 31, "start_line": 44 }
Prims.Tot
val recover_y (x: felem) (is_odd: bool) : option felem
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let recover_y (x:felem) (is_odd:bool) : option felem = let y2 = x *% x *% x +% b in let y = fsqrt y2 in if y *% y <> y2 then None else begin let y = if is_fodd y <> is_odd then (prime - y) % prime else y in Some y end
val recover_y (x: felem) (is_odd: bool) : option felem let recover_y (x: felem) (is_odd: bool) : option felem =
false
null
false
let y2 = x *% x *% x +% b in let y = fsqrt y2 in if y *% y <> y2 then None else let y = if is_fodd y <> is_odd then (prime - y) % prime else y in Some y
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Spec.K256.PointOps.felem", "Prims.bool", "Prims.op_disEquality", "Spec.K256.PointOps.op_Star_Percent", "FStar.Pervasives.Native.None", "FStar.Pervasives.Native.Some", "Spec.K256.PointOps.is_fodd", "Prims.op_Modulus", "Prims.op_Subtraction", "Spec.K256.PointOps.prime", "FStar.Pervasives.Native.o...
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val recover_y (x: felem) (is_odd: bool) : option felem
[]
Spec.K256.PointOps.recover_y
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
x: Spec.K256.PointOps.felem -> is_odd: Prims.bool -> FStar.Pervasives.Native.option Spec.K256.PointOps.felem
{ "end_col": 14, "end_line": 212, "start_col": 54, "start_line": 206 }
Prims.Tot
val fsqrt (x: felem) : felem
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let fsqrt (x:felem) : felem = M.pow_mod #prime x ((prime + 1) / 4)
val fsqrt (x: felem) : felem let fsqrt (x: felem) : felem =
false
null
false
M.pow_mod #prime x ((prime + 1) / 4)
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Spec.K256.PointOps.felem", "Lib.NatMod.pow_mod", "Spec.K256.PointOps.prime", "Prims.op_Division", "Prims.op_Addition" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val fsqrt (x: felem) : felem
[]
Spec.K256.PointOps.fsqrt
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
x: Spec.K256.PointOps.felem -> Spec.K256.PointOps.felem
{ "end_col": 66, "end_line": 28, "start_col": 30, "start_line": 28 }
Prims.Tot
val aff_point_add (p q: aff_point) : aff_point
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let aff_point_add (p:aff_point) (q:aff_point) : aff_point = let (px, py) = p in let (qx, qy) = q in if is_aff_point_at_inf p then q else begin if is_aff_point_at_inf q then p else begin if p = q then aff_point_double p else begin if qx = px then aff_point_at_inf else begin ...
val aff_point_add (p q: aff_point) : aff_point let aff_point_add (p q: aff_point) : aff_point =
false
null
false
let px, py = p in let qx, qy = q in if is_aff_point_at_inf p then q else if is_aff_point_at_inf q then p else if p = q then aff_point_double p else if qx = px then aff_point_at_inf else let lambda = (qy -% py) /% (qx -% px) in let rx = lambda *% lambda -% px -% qx in ...
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Spec.K256.PointOps.aff_point", "Spec.K256.PointOps.felem", "Spec.K256.PointOps.is_aff_point_at_inf", "Prims.bool", "Prims.op_Equality", "Spec.K256.PointOps.aff_point_double", "Spec.K256.PointOps.aff_point_at_inf", "FStar.Pervasives.Native.Mktuple2", "Spec.K256.PointOps.op_Subtraction_Percent", "S...
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val aff_point_add (p q: aff_point) : aff_point
[]
Spec.K256.PointOps.aff_point_add
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
p: Spec.K256.PointOps.aff_point -> q: Spec.K256.PointOps.aff_point -> Spec.K256.PointOps.aff_point
{ "end_col": 5, "end_line": 120, "start_col": 59, "start_line": 103 }
Prims.Tot
val fsub (x y: felem) : felem
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let fsub (x y:felem) : felem = (x - y) % prime
val fsub (x y: felem) : felem let fsub (x y: felem) : felem =
false
null
false
(x - y) % prime
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Spec.K256.PointOps.felem", "Prims.op_Modulus", "Prims.op_Subtraction", "Spec.K256.PointOps.prime" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val fsub (x y: felem) : felem
[]
Spec.K256.PointOps.fsub
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
x: Spec.K256.PointOps.felem -> y: Spec.K256.PointOps.felem -> Spec.K256.PointOps.felem
{ "end_col": 46, "end_line": 25, "start_col": 31, "start_line": 25 }
Prims.Tot
val b:felem
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let b : felem = 7
val b:felem let b:felem =
false
null
false
7
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val b:felem
[]
Spec.K256.PointOps.b
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Spec.K256.PointOps.felem
{ "end_col": 17, "end_line": 59, "start_col": 16, "start_line": 59 }
Prims.Tot
val point_add (p q: proj_point) : proj_point
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let point_add (p:proj_point) (q:proj_point) : proj_point = let x1, y1, z1 = p in let x2, y2, z2 = q in let xx = x1 *% x2 in let yy = y1 *% y2 in let zz = z1 *% z2 in let xy_pairs = (x1 +% y1) *% (x2 +% y2) -% (xx +% yy) in let yz_pairs = (y1 +% z1) *% (y2 +% z2) -% (yy +% zz) in let xz_pairs = (x1 +% z1...
val point_add (p q: proj_point) : proj_point let point_add (p q: proj_point) : proj_point =
false
null
false
let x1, y1, z1 = p in let x2, y2, z2 = q in let xx = x1 *% x2 in let yy = y1 *% y2 in let zz = z1 *% z2 in let xy_pairs = (x1 +% y1) *% (x2 +% y2) -% (xx +% yy) in let yz_pairs = (y1 +% z1) *% (y2 +% z2) -% (yy +% zz) in let xz_pairs = (x1 +% z1) *% (x2 +% z2) -% (xx +% zz) in let bzz3 = 3 *% b *% zz in let yy_m_bzz3 =...
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Spec.K256.PointOps.proj_point", "Spec.K256.PointOps.felem", "FStar.Pervasives.Native.Mktuple3", "Spec.K256.PointOps.op_Plus_Percent", "Spec.K256.PointOps.op_Star_Percent", "Spec.K256.PointOps.op_Subtraction_Percent", "Spec.K256.PointOps.b" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val point_add (p q: proj_point) : proj_point
[]
Spec.K256.PointOps.point_add
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
p: Spec.K256.PointOps.proj_point -> q: Spec.K256.PointOps.proj_point -> Spec.K256.PointOps.proj_point
{ "end_col": 12, "end_line": 146, "start_col": 58, "start_line": 128 }
Prims.Tot
val fmul (x y: felem) : felem
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let fmul (x y:felem) : felem = (x * y) % prime
val fmul (x y: felem) : felem let fmul (x y: felem) : felem =
false
null
false
(x * y) % prime
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Spec.K256.PointOps.felem", "Prims.op_Modulus", "FStar.Mul.op_Star", "Spec.K256.PointOps.prime" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val fmul (x y: felem) : felem
[]
Spec.K256.PointOps.fmul
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
x: Spec.K256.PointOps.felem -> y: Spec.K256.PointOps.felem -> Spec.K256.PointOps.felem
{ "end_col": 46, "end_line": 26, "start_col": 31, "start_line": 26 }
Prims.Tot
val aff_point_negate (p: aff_point) : aff_point
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let aff_point_negate (p:aff_point) : aff_point = let x, y = p in x, (-y) % prime
val aff_point_negate (p: aff_point) : aff_point let aff_point_negate (p: aff_point) : aff_point =
false
null
false
let x, y = p in x, (- y) % prime
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Spec.K256.PointOps.aff_point", "Spec.K256.PointOps.felem", "FStar.Pervasives.Native.Mktuple2", "Prims.op_Modulus", "Prims.op_Minus", "Spec.K256.PointOps.prime" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val aff_point_negate (p: aff_point) : aff_point
[]
Spec.K256.PointOps.aff_point_negate
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
p: Spec.K256.PointOps.aff_point -> Spec.K256.PointOps.aff_point
{ "end_col": 33, "end_line": 123, "start_col": 48, "start_line": 122 }
Prims.Tot
val qmul (x y: qelem) : qelem
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let qmul (x y:qelem) : qelem = (x * y) % q
val qmul (x y: qelem) : qelem let qmul (x y: qelem) : qelem =
false
null
false
(x * y) % q
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Spec.K256.PointOps.qelem", "Prims.op_Modulus", "FStar.Mul.op_Star", "Spec.K256.PointOps.q" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val qmul (x y: qelem) : qelem
[]
Spec.K256.PointOps.qmul
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
x: Spec.K256.PointOps.qelem -> y: Spec.K256.PointOps.qelem -> Spec.K256.PointOps.qelem
{ "end_col": 42, "end_line": 45, "start_col": 31, "start_line": 45 }
Prims.Tot
val zero:felem
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let zero : felem = 0
val zero:felem let zero:felem =
false
null
false
0
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val zero:felem
[]
Spec.K256.PointOps.zero
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Spec.K256.PointOps.felem
{ "end_col": 20, "end_line": 21, "start_col": 19, "start_line": 21 }
Prims.Tot
val point_negate (p: proj_point) : proj_point
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let point_negate (p:proj_point) : proj_point = let x, y, z = p in x, (-y) % prime, z
val point_negate (p: proj_point) : proj_point let point_negate (p: proj_point) : proj_point =
false
null
false
let x, y, z = p in x, (- y) % prime, z
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Spec.K256.PointOps.proj_point", "Spec.K256.PointOps.felem", "FStar.Pervasives.Native.Mktuple3", "Prims.op_Modulus", "Prims.op_Minus", "Spec.K256.PointOps.prime" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val point_negate (p: proj_point) : proj_point
[]
Spec.K256.PointOps.point_negate
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
p: Spec.K256.PointOps.proj_point -> Spec.K256.PointOps.proj_point
{ "end_col": 20, "end_line": 166, "start_col": 46, "start_line": 164 }
Prims.Tot
val is_proj_point_at_inf (p: proj_point) : bool
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let is_proj_point_at_inf (p:proj_point) : bool = let (_, _, z) = p in z = zero
val is_proj_point_at_inf (p: proj_point) : bool let is_proj_point_at_inf (p: proj_point) : bool =
false
null
false
let _, _, z = p in z = zero
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Spec.K256.PointOps.proj_point", "Spec.K256.PointOps.felem", "Prims.op_Equality", "Spec.K256.PointOps.zero", "Prims.bool" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val is_proj_point_at_inf (p: proj_point) : bool
[]
Spec.K256.PointOps.is_proj_point_at_inf
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
p: Spec.K256.PointOps.proj_point -> Prims.bool
{ "end_col": 31, "end_line": 71, "start_col": 48, "start_line": 70 }
Prims.Tot
val point_double (p: proj_point) : proj_point
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let point_double (p:proj_point) : proj_point = let x, y, z = p in let yy = y *% y in let zz = z *% z in let xy2 = 2 *% x *% y in let bzz3 = 3 *% b *% zz in let bzz9 = 3 *% bzz3 in let yy_m_bzz9 = yy -% bzz9 in let yy_p_bzz3 = yy +% bzz3 in let yy_zz = yy *% zz in let t = 24 *% b *% yy_zz in let x3...
val point_double (p: proj_point) : proj_point let point_double (p: proj_point) : proj_point =
false
null
false
let x, y, z = p in let yy = y *% y in let zz = z *% z in let xy2 = 2 *% x *% y in let bzz3 = 3 *% b *% zz in let bzz9 = 3 *% bzz3 in let yy_m_bzz9 = yy -% bzz9 in let yy_p_bzz3 = yy +% bzz3 in let yy_zz = yy *% zz in let t = 24 *% b *% yy_zz in let x3 = xy2 *% yy_m_bzz9 in let y3 = yy_m_bzz9 *% yy_p_bzz3 +% t in let z3...
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Spec.K256.PointOps.proj_point", "Spec.K256.PointOps.felem", "FStar.Pervasives.Native.Mktuple3", "Spec.K256.PointOps.op_Star_Percent", "Spec.K256.PointOps.op_Plus_Percent", "Spec.K256.PointOps.b", "Spec.K256.PointOps.op_Subtraction_Percent" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val point_double (p: proj_point) : proj_point
[]
Spec.K256.PointOps.point_double
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
p: Spec.K256.PointOps.proj_point -> Spec.K256.PointOps.proj_point
{ "end_col": 12, "end_line": 162, "start_col": 46, "start_line": 148 }
Prims.Tot
val qinv (x: qelem) : qelem
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let qinv (x:qelem) : qelem = M.pow_mod #q x (q - 2)
val qinv (x: qelem) : qelem let qinv (x: qelem) : qelem =
false
null
false
M.pow_mod #q x (q - 2)
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Spec.K256.PointOps.qelem", "Lib.NatMod.pow_mod", "Spec.K256.PointOps.q", "Prims.op_Subtraction" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
true
Spec.K256.PointOps.fst
{ "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...
null
val qinv (x: qelem) : qelem
[]
Spec.K256.PointOps.qinv
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
x: Spec.K256.PointOps.qelem -> Spec.K256.PointOps.qelem
{ "end_col": 51, "end_line": 46, "start_col": 29, "start_line": 46 }
Prims.Tot
val prime:(p: pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F})
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 256 - 0x1000003D1); assert_norm (pow2 256 - 0x1000003D1 = pow2 256 - pow2 32 - pow2 9 - pow2 8 - pow2 7 - pow2 6 - pow2 4 - 1); assert_norm (pow2 256 - 0x1000003D1 = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFF...
val prime:(p: pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) let prime:(p: pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) =
false
null
false
assert_norm (24 < pow2 256 - 0x1000003D1); assert_norm (pow2 256 - 0x1000003D1 = pow2 256 - pow2 32 - pow2 9 - pow2 8 - pow2 7 - pow2 6 - pow2 4 - 1); assert_norm (pow2 256 - 0x1000003D1 = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F); pow2 256 - 0x1000003D1
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Prims.op_Subtraction", "Prims.pow2", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.op_LessThan" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field
false
false
Spec.K256.PointOps.fst
{ "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...
null
val prime:(p: pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F})
[]
Spec.K256.PointOps.prime
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
p: Prims.pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}
{ "end_col": 24, "end_line": 18, "start_col": 2, "start_line": 15 }
Prims.Tot
val aff_point_store (p: aff_point) : BSeq.lbytes 64
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let aff_point_store (p:aff_point) : BSeq.lbytes 64 = let (px, py) = p in let pxb = BSeq.nat_to_bytes_be 32 px in let pxy = BSeq.nat_to_bytes_be 32 py in concat #uint8 #32 #32 pxb pxy
val aff_point_store (p: aff_point) : BSeq.lbytes 64 let aff_point_store (p: aff_point) : BSeq.lbytes 64 =
false
null
false
let px, py = p in let pxb = BSeq.nat_to_bytes_be 32 px in let pxy = BSeq.nat_to_bytes_be 32 py in concat #uint8 #32 #32 pxb pxy
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Spec.K256.PointOps.aff_point", "Spec.K256.PointOps.felem", "Lib.Sequence.concat", "Lib.IntTypes.uint8", "Lib.Sequence.seq", "Lib.IntTypes.int_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Prims.l_and", "Prims.eq2", "Prims.nat", "Lib.Sequence.length", "Prims.l_or", "Prims.b2t", "Prims.op_L...
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
false
Spec.K256.PointOps.fst
{ "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...
null
val aff_point_store (p: aff_point) : BSeq.lbytes 64
[]
Spec.K256.PointOps.aff_point_store
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
p: Spec.K256.PointOps.aff_point -> Lib.ByteSequence.lbytes 64
{ "end_col": 31, "end_line": 200, "start_col": 52, "start_line": 196 }
Prims.Tot
val point_store (p: proj_point) : BSeq.lbytes 64
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let point_store (p:proj_point) : BSeq.lbytes 64 = aff_point_store (to_aff_point p)
val point_store (p: proj_point) : BSeq.lbytes 64 let point_store (p: proj_point) : BSeq.lbytes 64 =
false
null
false
aff_point_store (to_aff_point p)
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Spec.K256.PointOps.proj_point", "Spec.K256.PointOps.aff_point_store", "Spec.K256.PointOps.to_aff_point", "Lib.ByteSequence.lbytes" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
false
Spec.K256.PointOps.fst
{ "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...
null
val point_store (p: proj_point) : BSeq.lbytes 64
[]
Spec.K256.PointOps.point_store
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
p: Spec.K256.PointOps.proj_point -> Lib.ByteSequence.lbytes 64
{ "end_col": 34, "end_line": 203, "start_col": 2, "start_line": 203 }
Prims.Tot
val load_point (b: BSeq.lbytes 64) : option proj_point
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let load_point (b:BSeq.lbytes 64) : option proj_point = match (aff_point_load b) with | Some p -> Some (to_proj_point p) | None -> None
val load_point (b: BSeq.lbytes 64) : option proj_point let load_point (b: BSeq.lbytes 64) : option proj_point =
false
null
false
match (aff_point_load b) with | Some p -> Some (to_proj_point p) | None -> None
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Lib.ByteSequence.lbytes", "Spec.K256.PointOps.aff_point_load", "Spec.K256.PointOps.aff_point", "FStar.Pervasives.Native.Some", "Spec.K256.PointOps.proj_point", "Spec.K256.PointOps.to_proj_point", "FStar.Pervasives.Native.None", "FStar.Pervasives.Native.option" ]
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
false
Spec.K256.PointOps.fst
{ "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...
null
val load_point (b: BSeq.lbytes 64) : option proj_point
[]
Spec.K256.PointOps.load_point
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
b: Lib.ByteSequence.lbytes 64 -> FStar.Pervasives.Native.option Spec.K256.PointOps.proj_point
{ "end_col": 16, "end_line": 182, "start_col": 2, "start_line": 180 }
Prims.Tot
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let point_inv_bytes (b:BSeq.lbytes 64) = let px = BSeq.nat_from_bytes_be (sub b 0 32) in let py = BSeq.nat_from_bytes_be (sub b 32 32) in px < prime && py < prime && is_on_curve (px, py)
let point_inv_bytes (b: BSeq.lbytes 64) =
false
null
false
let px = BSeq.nat_from_bytes_be (sub b 0 32) in let py = BSeq.nat_from_bytes_be (sub b 32 32) in px < prime && py < prime && is_on_curve (px, py)
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Lib.ByteSequence.lbytes", "Prims.op_AmpAmp", "Prims.op_LessThan", "Spec.K256.PointOps.prime", "Spec.K256.PointOps.is_on_curve", "FStar.Pervasives.Native.Mktuple2", "Spec.K256.PointOps.felem", "Prims.nat", "Prims.b2t", "Prims.pow2", "Prims.op_Multiply", "Lib.Sequence.length", "Lib.IntTypes.i...
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
false
Spec.K256.PointOps.fst
{ "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...
null
val point_inv_bytes : b: Lib.ByteSequence.lbytes 64 -> Prims.bool
[]
Spec.K256.PointOps.point_inv_bytes
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
b: Lib.ByteSequence.lbytes 64 -> Prims.bool
{ "end_col": 50, "end_line": 188, "start_col": 40, "start_line": 185 }
Prims.Tot
val aff_point_load (b: BSeq.lbytes 64) : option aff_point
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let aff_point_load (b:BSeq.lbytes 64) : option aff_point = let pk_x = BSeq.nat_from_bytes_be (sub b 0 32) in let pk_y = BSeq.nat_from_bytes_be (sub b 32 32) in let is_x_valid = pk_x < prime in let is_y_valid = pk_y < prime in let is_xy_on_curve = if is_x_valid && is_y_valid then is_on_curve (pk_x, pk_y) e...
val aff_point_load (b: BSeq.lbytes 64) : option aff_point let aff_point_load (b: BSeq.lbytes 64) : option aff_point =
false
null
false
let pk_x = BSeq.nat_from_bytes_be (sub b 0 32) in let pk_y = BSeq.nat_from_bytes_be (sub b 32 32) in let is_x_valid = pk_x < prime in let is_y_valid = pk_y < prime in let is_xy_on_curve = if is_x_valid && is_y_valid then is_on_curve (pk_x, pk_y) else false in if is_xy_on_curve then Some (pk_x, pk_y) else None
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Lib.ByteSequence.lbytes", "FStar.Pervasives.Native.Some", "Spec.K256.PointOps.aff_point", "FStar.Pervasives.Native.Mktuple2", "Spec.K256.PointOps.felem", "Prims.bool", "FStar.Pervasives.Native.None", "FStar.Pervasives.Native.option", "Prims.op_AmpAmp", "Spec.K256.PointOps.is_on_curve", "Prims.o...
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
false
Spec.K256.PointOps.fst
{ "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...
null
val aff_point_load (b: BSeq.lbytes 64) : option aff_point
[]
Spec.K256.PointOps.aff_point_load
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
b: Lib.ByteSequence.lbytes 64 -> FStar.Pervasives.Native.option Spec.K256.PointOps.aff_point
{ "end_col": 52, "end_line": 177, "start_col": 58, "start_line": 170 }
Prims.Tot
val load_point_nocheck (b: BSeq.lbytes 64 {point_inv_bytes b}) : proj_point
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let load_point_nocheck (b:BSeq.lbytes 64{point_inv_bytes b}) : proj_point = let px = BSeq.nat_from_bytes_be (sub b 0 32) in let py = BSeq.nat_from_bytes_be (sub b 32 32) in to_proj_point (px, py)
val load_point_nocheck (b: BSeq.lbytes 64 {point_inv_bytes b}) : proj_point let load_point_nocheck (b: BSeq.lbytes 64 {point_inv_bytes b}) : proj_point =
false
null
false
let px = BSeq.nat_from_bytes_be (sub b 0 32) in let py = BSeq.nat_from_bytes_be (sub b 32 32) in to_proj_point (px, py)
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Lib.ByteSequence.lbytes", "Prims.b2t", "Spec.K256.PointOps.point_inv_bytes", "Spec.K256.PointOps.to_proj_point", "FStar.Pervasives.Native.Mktuple2", "Spec.K256.PointOps.felem", "Prims.nat", "Prims.op_LessThan", "Prims.pow2", "Prims.op_Multiply", "Lib.Sequence.length", "Lib.IntTypes.int_t", ...
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
false
Spec.K256.PointOps.fst
{ "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...
null
val load_point_nocheck (b: BSeq.lbytes 64 {point_inv_bytes b}) : proj_point
[]
Spec.K256.PointOps.load_point_nocheck
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
b: Lib.ByteSequence.lbytes 64 {Spec.K256.PointOps.point_inv_bytes b} -> Spec.K256.PointOps.proj_point
{ "end_col": 24, "end_line": 193, "start_col": 75, "start_line": 190 }
Prims.Tot
val aff_point_decompress (s: BSeq.lbytes 33) : option aff_point
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Lib.NatMod", "short_module": "M" }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Li...
false
let aff_point_decompress (s:BSeq.lbytes 33) : option aff_point = let s0 = Lib.RawIntTypes.u8_to_UInt8 s.[0] in if not (s0 = 0x02uy || s0 = 0x03uy) then None else begin let x = BSeq.nat_from_bytes_be (sub s 1 32) in let is_x_valid = x < prime in let is_y_odd = s0 = 0x03uy in if not is_x_valid then...
val aff_point_decompress (s: BSeq.lbytes 33) : option aff_point let aff_point_decompress (s: BSeq.lbytes 33) : option aff_point =
false
null
false
let s0 = Lib.RawIntTypes.u8_to_UInt8 s.[ 0 ] in if not (s0 = 0x02uy || s0 = 0x03uy) then None else let x = BSeq.nat_from_bytes_be (sub s 1 32) in let is_x_valid = x < prime in let is_y_odd = s0 = 0x03uy in if not is_x_valid then None else match (recover_y x is_y_odd) with | Some y -> Some (x, y) ...
{ "checked_file": "Spec.K256.PointOps.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.Pervasiv...
[ "total" ]
[ "Lib.ByteSequence.lbytes", "Prims.op_Negation", "Prims.op_BarBar", "Prims.op_Equality", "FStar.UInt8.t", "FStar.UInt8.__uint_to_t", "FStar.Pervasives.Native.None", "Spec.K256.PointOps.aff_point", "Prims.bool", "Spec.K256.PointOps.recover_y", "Spec.K256.PointOps.felem", "FStar.Pervasives.Native...
[]
module Spec.K256.PointOps open FStar.Mul open Lib.IntTypes open Lib.Sequence module M = Lib.NatMod module BSeq = Lib.ByteSequence #set-options "--z3rlimit 30 --fuel 0 --ifuel 0" /// Finite field let prime : (p:pos{p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F}) = assert_norm (24 < pow2 ...
false
false
Spec.K256.PointOps.fst
{ "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...
null
val aff_point_decompress (s: BSeq.lbytes 33) : option aff_point
[]
Spec.K256.PointOps.aff_point_decompress
{ "file_name": "specs/Spec.K256.PointOps.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
s: Lib.ByteSequence.lbytes 33 -> FStar.Pervasives.Native.option Spec.K256.PointOps.aff_point
{ "end_col": 24, "end_line": 227, "start_col": 64, "start_line": 215 }
FStar.HyperStack.ST.Stack
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.G...
false
let op_Array_Access (#a:Type0) (#rrel #rel:B.srel a) = B.index #a #rrel #rel
let op_Array_Access (#a: Type0) (#rrel #rel: B.srel a) =
true
null
false
B.index #a #rrel #rel
{ "checked_file": "LowStar.BufferOps.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.Hype...
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.index", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "LowStar.Monotonic.Buffer.live", "Prims.b2t", "Prims.op_LessThan", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.length", "Pri...
[]
(* 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...
false
false
LowStar.BufferOps.fst
{ "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...
null
val op_Array_Access : b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> i: FStar.UInt32.t -> FStar.HyperStack.ST.Stack a
[]
LowStar.BufferOps.op_Array_Access
{ "file_name": "ulib/LowStar.BufferOps.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> i: FStar.UInt32.t -> FStar.HyperStack.ST.Stack a
{ "end_col": 76, "end_line": 33, "start_col": 55, "start_line": 33 }
FStar.HyperStack.ST.Stack
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.G...
false
let op_Array_Assignment (#a:Type0) (#rrel #rel:B.srel a) = B.upd #a #rrel #rel
let op_Array_Assignment (#a: Type0) (#rrel #rel: B.srel a) =
true
null
false
B.upd #a #rrel #rel
{ "checked_file": "LowStar.BufferOps.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.Hype...
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.upd", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "Prims.unit", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "LowStar.Monotonic.Buffer.live", "Prims.b2t", "Prims.op_LessThan", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.l...
[]
(* 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...
false
false
LowStar.BufferOps.fst
{ "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...
null
val op_Array_Assignment : b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> i: FStar.UInt32.t -> v: a -> FStar.HyperStack.ST.Stack Prims.unit
[]
LowStar.BufferOps.op_Array_Assignment
{ "file_name": "ulib/LowStar.BufferOps.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
b: LowStar.Monotonic.Buffer.mbuffer a rrel rel -> i: FStar.UInt32.t -> v: a -> FStar.HyperStack.ST.Stack Prims.unit
{ "end_col": 78, "end_line": 37, "start_col": 59, "start_line": 37 }
FStar.HyperStack.ST.Stack
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.G...
false
let blit (#a:Type0) (#rrel1 #rel1 #rrel2 #rel2:B.srel a) = B.blit #a #rrel1 #rel1 #rrel2 #rel2
let blit (#a: Type0) (#rrel1 #rel1 #rrel2 #rel2: B.srel a) =
true
null
false
B.blit #a #rrel1 #rel1 #rrel2 #rel2
{ "checked_file": "LowStar.BufferOps.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.Hype...
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.blit", "LowStar.Monotonic.Buffer.mbuffer", "FStar.UInt32.t", "Prims.unit", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "LowStar.Monotonic.Buffer.live", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "FStar.UInt32.v"...
[]
(* 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...
false
false
LowStar.BufferOps.fst
{ "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...
null
val blit : src: LowStar.Monotonic.Buffer.mbuffer a rrel1 rrel2 -> idx_src: FStar.UInt32.t -> dst: LowStar.Monotonic.Buffer.mbuffer a rel1 rel2 -> idx_dst: FStar.UInt32.t -> len: FStar.UInt32.t -> FStar.HyperStack.ST.Stack Prims.unit
[]
LowStar.BufferOps.blit
{ "file_name": "ulib/LowStar.BufferOps.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
src: LowStar.Monotonic.Buffer.mbuffer a rrel1 rrel2 -> idx_src: FStar.UInt32.t -> dst: LowStar.Monotonic.Buffer.mbuffer a rel1 rel2 -> idx_dst: FStar.UInt32.t -> len: FStar.UInt32.t -> FStar.HyperStack.ST.Stack Prims.unit
{ "end_col": 94, "end_line": 63, "start_col": 59, "start_line": 63 }
FStar.HyperStack.ST.Stack
val op_Bang_Star (#a: Type0) (#rrel #rel: B.srel a) (p: B.mpointer a rrel rel) : HST.Stack a (requires (fun h -> B.live h p)) (ensures (fun h0 x h1 -> B.live h1 p /\ x == B.get h0 p 0 /\ h1 == h0))
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.G...
false
let ( !* ) (#a:Type0) (#rrel #rel:B.srel a) (p:B.mpointer a rrel rel): HST.Stack a (requires (fun h -> B.live h p)) (ensures (fun h0 x h1 -> B.live h1 p /\ x == B.get h0 p 0 /\ h1 == h0)) = B.index p 0ul
val op_Bang_Star (#a: Type0) (#rrel #rel: B.srel a) (p: B.mpointer a rrel rel) : HST.Stack a (requires (fun h -> B.live h p)) (ensures (fun h0 x h1 -> B.live h1 p /\ x == B.get h0 p 0 /\ h1 == h0)) let op_Bang_Star (#a: Type0) (#rrel #rel: B.srel a) (p: B.mpointer a rrel rel) : HST.Stack a (re...
true
null
false
B.index p 0ul
{ "checked_file": "LowStar.BufferOps.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.Hype...
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mpointer", "LowStar.Monotonic.Buffer.index", "FStar.UInt32.__uint_to_t", "FStar.Monotonic.HyperStack.mem", "LowStar.Monotonic.Buffer.live", "Prims.l_and", "Prims.eq2", "LowStar.Monotonic.Buffer.get" ]
[]
(* 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...
false
false
LowStar.BufferOps.fst
{ "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...
null
val op_Bang_Star (#a: Type0) (#rrel #rel: B.srel a) (p: B.mpointer a rrel rel) : HST.Stack a (requires (fun h -> B.live h p)) (ensures (fun h0 x h1 -> B.live h1 p /\ x == B.get h0 p 0 /\ h1 == h0))
[]
LowStar.BufferOps.op_Bang_Star
{ "file_name": "ulib/LowStar.BufferOps.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
p: LowStar.Monotonic.Buffer.mpointer a rrel rel -> FStar.HyperStack.ST.Stack a
{ "end_col": 15, "end_line": 46, "start_col": 2, "start_line": 46 }
FStar.HyperStack.ST.Stack
val op_Star_Equals (#a: Type0) (#rrel #rel: B.srel a) (p: B.mpointer a rrel rel) (v: a) : HST.Stack unit (requires (fun h -> B.live h p /\ rel (B.as_seq h p) (Seq.upd (B.as_seq h p) 0 v))) (ensures (fun h0 _ h1 -> B.live h1 p /\ (B.as_seq h1 p) `Seq.equal` (Seq.create 1 v) /\ ...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "FStar.G...
false
let ( *= ) (#a:Type0) (#rrel #rel:B.srel a) (p:B.mpointer a rrel rel) (v:a) : HST.Stack unit (requires (fun h -> B.live h p /\ rel (B.as_seq h p) (Seq.upd (B.as_seq h p) 0 v))) (ensures (fun h0 _ h1 -> B.live h1 p /\ B.as_seq h1 p `Seq.equal` Seq.create 1 v /\ B.modifies (B.loc_buffer p) h0 h1 )) = B....
val op_Star_Equals (#a: Type0) (#rrel #rel: B.srel a) (p: B.mpointer a rrel rel) (v: a) : HST.Stack unit (requires (fun h -> B.live h p /\ rel (B.as_seq h p) (Seq.upd (B.as_seq h p) 0 v))) (ensures (fun h0 _ h1 -> B.live h1 p /\ (B.as_seq h1 p) `Seq.equal` (Seq.create 1 v) /\ ...
true
null
false
B.upd p 0ul v
{ "checked_file": "LowStar.BufferOps.fst.checked", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", "FStar.HyperStack.ST.fsti.checked", "FStar.Hype...
[]
[ "LowStar.Monotonic.Buffer.srel", "LowStar.Monotonic.Buffer.mpointer", "LowStar.Monotonic.Buffer.upd", "FStar.UInt32.__uint_to_t", "Prims.unit", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "LowStar.Monotonic.Buffer.live", "LowStar.Monotonic.Buffer.as_seq", "FStar.Seq.Base.upd", "FStar.Seq.Ba...
[]
(* 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...
false
false
LowStar.BufferOps.fst
{ "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...
null
val op_Star_Equals (#a: Type0) (#rrel #rel: B.srel a) (p: B.mpointer a rrel rel) (v: a) : HST.Stack unit (requires (fun h -> B.live h p /\ rel (B.as_seq h p) (Seq.upd (B.as_seq h p) 0 v))) (ensures (fun h0 _ h1 -> B.live h1 p /\ (B.as_seq h1 p) `Seq.equal` (Seq.create 1 v) /\ ...
[]
LowStar.BufferOps.op_Star_Equals
{ "file_name": "ulib/LowStar.BufferOps.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
p: LowStar.Monotonic.Buffer.mpointer a rrel rel -> v: a -> FStar.HyperStack.ST.Stack Prims.unit
{ "end_col": 15, "end_line": 58, "start_col": 2, "start_line": 58 }
Prims.Tot
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
false
let size_key = 32
let size_key =
false
null
false
32
{ "checked_file": "Spec.SecretBox.fst.checked", "dependencies": [ "Spec.Salsa20.fst.checked", "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native...
[ "total" ]
[]
[]
module Spec.SecretBox open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0"
false
true
Spec.SecretBox.fst
{ "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...
null
val size_key : Prims.int
[]
Spec.SecretBox.size_key
{ "file_name": "specs/Spec.SecretBox.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Prims.int
{ "end_col": 17, "end_line": 11, "start_col": 15, "start_line": 11 }
Prims.Tot
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
false
let size_block = 64
let size_block =
false
null
false
64
{ "checked_file": "Spec.SecretBox.fst.checked", "dependencies": [ "Spec.Salsa20.fst.checked", "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native...
[ "total" ]
[]
[]
module Spec.SecretBox open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0" (* Constants *) let size_key = 32 (* in bytes *)
false
true
Spec.SecretBox.fst
{ "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...
null
val size_block : Prims.int
[]
Spec.SecretBox.size_block
{ "file_name": "specs/Spec.SecretBox.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Prims.int
{ "end_col": 19, "end_line": 13, "start_col": 17, "start_line": 13 }
Prims.Tot
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
false
let size_tag = 16
let size_tag =
false
null
false
16
{ "checked_file": "Spec.SecretBox.fst.checked", "dependencies": [ "Spec.Salsa20.fst.checked", "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native...
[ "total" ]
[]
[]
module Spec.SecretBox open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0" (* Constants *) let size_key = 32 (* in bytes *) let size_nonce = 24 (* in bytes *)
false
true
Spec.SecretBox.fst
{ "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...
null
val size_tag : Prims.int
[]
Spec.SecretBox.size_tag
{ "file_name": "specs/Spec.SecretBox.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Prims.int
{ "end_col": 17, "end_line": 14, "start_col": 15, "start_line": 14 }
Prims.Tot
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
false
let size_nonce = 24
let size_nonce =
false
null
false
24
{ "checked_file": "Spec.SecretBox.fst.checked", "dependencies": [ "Spec.Salsa20.fst.checked", "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native...
[ "total" ]
[]
[]
module Spec.SecretBox open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0" (* Constants *)
false
true
Spec.SecretBox.fst
{ "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...
null
val size_nonce : Prims.int
[]
Spec.SecretBox.size_nonce
{ "file_name": "specs/Spec.SecretBox.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Prims.int
{ "end_col": 19, "end_line": 12, "start_col": 17, "start_line": 12 }
Prims.Tot
val get_len0 (len: nat) : r: size_nat{r <= 32}
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
false
let get_len0 (len:nat) : r:size_nat{r <= 32} = if len <= 32 then len else 32
val get_len0 (len: nat) : r: size_nat{r <= 32} let get_len0 (len: nat) : r: size_nat{r <= 32} =
false
null
false
if len <= 32 then len else 32
{ "checked_file": "Spec.SecretBox.fst.checked", "dependencies": [ "Spec.Salsa20.fst.checked", "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native...
[ "total" ]
[ "Prims.nat", "Prims.op_LessThanOrEqual", "Prims.bool", "Lib.IntTypes.size_nat", "Prims.b2t" ]
[]
module Spec.SecretBox open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0" (* Constants *) let size_key = 32 (* in bytes *) let size_nonce = 24 (* in bytes *) let size_block = 64 (* in bytes *) let size_tag = 16 (* in bytes *) type key ...
false
false
Spec.SecretBox.fst
{ "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...
null
val get_len0 (len: nat) : r: size_nat{r <= 32}
[]
Spec.SecretBox.get_len0
{ "file_name": "specs/Spec.SecretBox.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
len: Prims.nat -> r: Lib.IntTypes.size_nat{r <= 32}
{ "end_col": 31, "end_line": 29, "start_col": 2, "start_line": 29 }
Prims.Tot
val secretbox_init (k: key) (n: nonce) : key & aekey
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
false
let secretbox_init (k:key) (n:nonce) : key & aekey = let n0 : lbytes 16 = sub n 0 16 in let n1 : lbytes 8 = sub n 16 8 in let subkey : lbytes 32 = Spec.Salsa20.hsalsa20 k n0 in let aekey : lbytes 64 = Spec.Salsa20.salsa20_key_block0 subkey n1 in (subkey,aekey)
val secretbox_init (k: key) (n: nonce) : key & aekey let secretbox_init (k: key) (n: nonce) : key & aekey =
false
null
false
let n0:lbytes 16 = sub n 0 16 in let n1:lbytes 8 = sub n 16 8 in let subkey:lbytes 32 = Spec.Salsa20.hsalsa20 k n0 in let aekey:lbytes 64 = Spec.Salsa20.salsa20_key_block0 subkey n1 in (subkey, aekey)
{ "checked_file": "Spec.SecretBox.fst.checked", "dependencies": [ "Spec.Salsa20.fst.checked", "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native...
[ "total" ]
[ "Spec.SecretBox.key", "Spec.SecretBox.nonce", "FStar.Pervasives.Native.Mktuple2", "Spec.SecretBox.aekey", "Lib.Sequence.lseq", "Lib.IntTypes.int_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Spec.Salsa20.salsa20_key_block0", "Spec.Salsa20.hsalsa20", "Lib.Sequence.sub", "Lib.IntTypes.uint_t", "...
[]
module Spec.SecretBox open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0" (* Constants *) let size_key = 32 (* in bytes *) let size_nonce = 24 (* in bytes *) let size_block = 64 (* in bytes *) let size_tag = 16 (* in bytes *) type key ...
false
true
Spec.SecretBox.fst
{ "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...
null
val secretbox_init (k: key) (n: nonce) : key & aekey
[]
Spec.SecretBox.secretbox_init
{ "file_name": "specs/Spec.SecretBox.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
k: Spec.SecretBox.key -> n: Spec.SecretBox.nonce -> Spec.SecretBox.key * Spec.SecretBox.aekey
{ "end_col": 16, "end_line": 26, "start_col": 52, "start_line": 21 }
Prims.Tot
val secretbox_easy (k: key) (n: nonce) (m: bytes{length m / size_block <= max_size_t}) : c: bytes{length c = size_tag + length m}
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
false
let secretbox_easy (k:key) (n:nonce) (m:bytes{length m / size_block <= max_size_t}) : c:bytes{length c = size_tag + length m} = let (tg,c) = secretbox_detached k n m in Seq.append tg c
val secretbox_easy (k: key) (n: nonce) (m: bytes{length m / size_block <= max_size_t}) : c: bytes{length c = size_tag + length m} let secretbox_easy (k: key) (n: nonce) (m: bytes{length m / size_block <= max_size_t}) : c: bytes{length c = size_tag + length m} =
false
null
false
let tg, c = secretbox_detached k n m in Seq.append tg c
{ "checked_file": "Spec.SecretBox.fst.checked", "dependencies": [ "Spec.Salsa20.fst.checked", "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native...
[ "total" ]
[ "Spec.SecretBox.key", "Spec.SecretBox.nonce", "Lib.ByteSequence.bytes", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Division", "Lib.Sequence.length", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Spec.SecretBox.size_block", "Lib.IntTypes.max_size_t", "Spec.SecretBox.t...
[]
module Spec.SecretBox open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0" (* Constants *) let size_key = 32 (* in bytes *) let size_nonce = 24 (* in bytes *) let size_block = 64 (* in bytes *) let size_tag = 16 (* in bytes *) type key ...
false
false
Spec.SecretBox.fst
{ "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...
null
val secretbox_easy (k: key) (n: nonce) (m: bytes{length m / size_block <= max_size_t}) : c: bytes{length c = size_tag + length m}
[]
Spec.SecretBox.secretbox_easy
{ "file_name": "specs/Spec.SecretBox.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
k: Spec.SecretBox.key -> n: Spec.SecretBox.nonce -> m: Lib.ByteSequence.bytes {Lib.Sequence.length m / Spec.SecretBox.size_block <= Lib.IntTypes.max_size_t} -> c: Lib.ByteSequence.bytes{Lib.Sequence.length c = Spec.SecretBox.size_tag + Lib.Sequence.length m}
{ "end_col": 17, "end_line": 77, "start_col": 127, "start_line": 75 }
Prims.Tot
val secretbox_open_easy (k: key) (n: nonce) (c: bytes{length c >= size_tag /\ (length c - size_tag) / size_block <= max_size_t}) : option (m: bytes{length m = length c - size_tag})
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
false
let secretbox_open_easy (k:key) (n:nonce) (c:bytes{length c >= size_tag /\ (length c - size_tag) / size_block <= max_size_t}) : option (m:bytes{length m = length c - size_tag}) = let tg = Seq.slice c 0 size_tag in let e = Seq.slice c size_tag (length c) in secretbox_open_detached k n tg e
val secretbox_open_easy (k: key) (n: nonce) (c: bytes{length c >= size_tag /\ (length c - size_tag) / size_block <= max_size_t}) : option (m: bytes{length m = length c - size_tag}) let secretbox_open_easy (k: key) (n: nonce) (c: bytes{length c >= size_tag /\ (length c - size_tag)...
false
null
false
let tg = Seq.slice c 0 size_tag in let e = Seq.slice c size_tag (length c) in secretbox_open_detached k n tg e
{ "checked_file": "Spec.SecretBox.fst.checked", "dependencies": [ "Spec.Salsa20.fst.checked", "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native...
[ "total" ]
[ "Spec.SecretBox.key", "Spec.SecretBox.nonce", "Lib.ByteSequence.bytes", "Prims.l_and", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "Lib.Sequence.length", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Spec.SecretBox.size_tag", "Prims.op_LessThanOrEqual", "Prims.op_Division", ...
[]
module Spec.SecretBox open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0" (* Constants *) let size_key = 32 (* in bytes *) let size_nonce = 24 (* in bytes *) let size_block = 64 (* in bytes *) let size_tag = 16 (* in bytes *) type key ...
false
false
Spec.SecretBox.fst
{ "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...
null
val secretbox_open_easy (k: key) (n: nonce) (c: bytes{length c >= size_tag /\ (length c - size_tag) / size_block <= max_size_t}) : option (m: bytes{length m = length c - size_tag})
[]
Spec.SecretBox.secretbox_open_easy
{ "file_name": "specs/Spec.SecretBox.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
k: Spec.SecretBox.key -> n: Spec.SecretBox.nonce -> c: Lib.ByteSequence.bytes { Lib.Sequence.length c >= Spec.SecretBox.size_tag /\ (Lib.Sequence.length c - Spec.SecretBox.size_tag) / Spec.SecretBox.size_block <= Lib.IntTypes.max_size_t } -> FStar.Pervasives.Native.optio...
{ "end_col": 34, "end_line": 82, "start_col": 178, "start_line": 79 }
Prims.Tot
val secretbox_detached (k: key) (n: nonce) (m: bytes{length m / size_block <= max_size_t}) : (tag & c: bytes{length c = length m})
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
false
let secretbox_detached (k:key) (n:nonce) (m:bytes{length m / size_block <= max_size_t}) : (tag & c:bytes{length c = length m}) = let (subkey,aekey) = secretbox_init k n in let n1 = sub n 16 8 in let mkey = sub aekey 0 32 in let ekey0 = sub aekey 32 32 in let mlen0 = get_len0 (length m) in let m0 = Seq.slic...
val secretbox_detached (k: key) (n: nonce) (m: bytes{length m / size_block <= max_size_t}) : (tag & c: bytes{length c = length m}) let secretbox_detached (k: key) (n: nonce) (m: bytes{length m / size_block <= max_size_t}) : (tag & c: bytes{length c = length m}) =
false
null
false
let subkey, aekey = secretbox_init k n in let n1 = sub n 16 8 in let mkey = sub aekey 0 32 in let ekey0 = sub aekey 32 32 in let mlen0 = get_len0 (length m) in let m0 = Seq.slice m 0 mlen0 in let m1 = Seq.slice m mlen0 (length m) in let block0 = create 32 (u8 0) in let block0 = update_sub block0 0 mlen0 m0 in let block...
{ "checked_file": "Spec.SecretBox.fst.checked", "dependencies": [ "Spec.Salsa20.fst.checked", "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native...
[ "total" ]
[ "Spec.SecretBox.key", "Spec.SecretBox.nonce", "Lib.ByteSequence.bytes", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Division", "Lib.Sequence.length", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Spec.SecretBox.size_block", "Lib.IntTypes.max_size_t", "Spec.SecretBox.a...
[]
module Spec.SecretBox open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0" (* Constants *) let size_key = 32 (* in bytes *) let size_nonce = 24 (* in bytes *) let size_block = 64 (* in bytes *) let size_tag = 16 (* in bytes *) type key ...
false
false
Spec.SecretBox.fst
{ "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...
null
val secretbox_detached (k: key) (n: nonce) (m: bytes{length m / size_block <= max_size_t}) : (tag & c: bytes{length c = length m})
[]
Spec.SecretBox.secretbox_detached
{ "file_name": "specs/Spec.SecretBox.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
k: Spec.SecretBox.key -> n: Spec.SecretBox.nonce -> m: Lib.ByteSequence.bytes {Lib.Sequence.length m / Spec.SecretBox.size_block <= Lib.IntTypes.max_size_t} -> Spec.SecretBox.tag * c: Lib.ByteSequence.bytes{Lib.Sequence.length c = Lib.Sequence.length m}
{ "end_col": 9, "end_line": 50, "start_col": 128, "start_line": 31 }
Prims.Tot
val secretbox_open_detached (k: key) (n: nonce) (tg: tag) (c: bytes{length c / size_block <= max_size_t}) : option (m: bytes{length m = length c})
[ { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": ...
false
let secretbox_open_detached (k:key) (n:nonce) (tg:tag) (c:bytes{length c / size_block <= max_size_t}) : option (m:bytes{length m = length c}) = let (subkey,aekey) = secretbox_init k n in let n1 = sub n 16 8 in let mkey = sub aekey 0 32 in let ekey0 = sub aekey 32 32 in let tg' = Spec.Poly1305.poly1305_mac c ...
val secretbox_open_detached (k: key) (n: nonce) (tg: tag) (c: bytes{length c / size_block <= max_size_t}) : option (m: bytes{length m = length c}) let secretbox_open_detached (k: key) (n: nonce) (tg: tag) (c: bytes{length c / size_block <= max_size_t}) : option (m...
false
null
false
let subkey, aekey = secretbox_init k n in let n1 = sub n 16 8 in let mkey = sub aekey 0 32 in let ekey0 = sub aekey 32 32 in let tg' = Spec.Poly1305.poly1305_mac c mkey in if Lib.ByteSequence.lbytes_eq tg tg' then (let clen0 = get_len0 (length c) in let c0 = Seq.slice c 0 clen0 in let c1 = Seq.slice c clen0 (...
{ "checked_file": "Spec.SecretBox.fst.checked", "dependencies": [ "Spec.Salsa20.fst.checked", "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native...
[ "total" ]
[ "Spec.SecretBox.key", "Spec.SecretBox.nonce", "Spec.SecretBox.tag", "Lib.ByteSequence.bytes", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Division", "Lib.Sequence.length", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Spec.SecretBox.size_block", "Lib.IntTypes.max_size...
[]
module Spec.SecretBox open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0" (* Constants *) let size_key = 32 (* in bytes *) let size_nonce = 24 (* in bytes *) let size_block = 64 (* in bytes *) let size_tag = 16 (* in bytes *) type key ...
false
false
Spec.SecretBox.fst
{ "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...
null
val secretbox_open_detached (k: key) (n: nonce) (tg: tag) (c: bytes{length c / size_block <= max_size_t}) : option (m: bytes{length m = length c})
[]
Spec.SecretBox.secretbox_open_detached
{ "file_name": "specs/Spec.SecretBox.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
k: Spec.SecretBox.key -> n: Spec.SecretBox.nonce -> tg: Spec.SecretBox.tag -> c: Lib.ByteSequence.bytes {Lib.Sequence.length c / Spec.SecretBox.size_block <= Lib.IntTypes.max_size_t} -> FStar.Pervasives.Native.option (m: Lib.ByteSequence.bytes{Lib.Sequence.length m = Lib.Sequenc...
{ "end_col": 11, "end_line": 73, "start_col": 143, "start_line": 52 }
Prims.Tot
val state: b:lbuffer uint8 48ul{ recallable b }
[ { "abbrev": true, "full_module": "Spec.Frodo.Random", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "Lo...
false
let state = gcmalloc HyperStack.root 0uy 48ul
val state: b:lbuffer uint8 48ul{ recallable b } let state =
false
null
false
gcmalloc HyperStack.root 0uy 48ul
{ "checked_file": "Hacl.Frodo.Random.fst.checked", "dependencies": [ "Spec.Frodo.Random.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.RandomBuffer.System.fsti.checked", "Lib.IntTypes.fst.checked", "Lib.IntTypes.fst.checked", "Lib.Buffer.fsti.checked", "FStar.U...
[ "total" ]
[ "LowStar.Buffer.gcmalloc", "FStar.UInt8.t", "FStar.Monotonic.HyperHeap.root", "FStar.UInt8.__uint_to_t", "FStar.UInt32.__uint_to_t", "LowStar.Monotonic.Buffer.mbuffer", "LowStar.Buffer.trivial_preorder", "Prims.l_and", "Prims.eq2", "Prims.nat", "LowStar.Monotonic.Buffer.length", "FStar.UInt32....
[]
module Hacl.Frodo.Random open FStar.HyperStack.All open LowStar.Buffer open Lib.IntTypes open Lib.Buffer module S = Spec.Frodo.Random (* Stub stateless implementation on top of Lib.RandomBuffer.System. Intended to be replaced for KATs with include/rng.c *) friend Lib.IntTypes #set-options "--z3rlimit 50 --fue...
false
false
Hacl.Frodo.Random.fst
{ "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...
null
val state: b:lbuffer uint8 48ul{ recallable b }
[]
Hacl.Frodo.Random.state
{ "file_name": "code/frodo/Hacl.Frodo.Random.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
b: Lib.Buffer.lbuffer Lib.IntTypes.uint8 48ul {Lib.Buffer.recallable b}
{ "end_col": 45, "end_line": 19, "start_col": 12, "start_line": 19 }
Prims.Tot
val secret_int (#sl:sl u#c) (l:lattice_element sl) (s:sw) : Type0
[ { "abbrev": false, "full_module": "FStar.Integers", "short_module": null }, { "abbrev": false, "full_module": "FStar.IFC", "short_module": null }, { "abbrev": false, "full_module": "FStar.ConstantTime", "short_module": null }, { "abbrev": false, "full_module":...
false
let secret_int (#sl:sl) (l:lattice_element sl) (s:sw) : Type0 = protected l (int_t s)
val secret_int (#sl:sl u#c) (l:lattice_element sl) (s:sw) : Type0 let secret_int (#sl: sl) (l: lattice_element sl) (s: sw) : Type0 =
false
null
false
protected l (int_t s)
{ "checked_file": "FStar.ConstantTime.Integers.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Integers.fst.checked", "FStar.IFC.fsti.checked" ], "interface_file": true, "source_file": "FStar.ConstantTime.Integers.fst" }
[ "total" ]
[ "FStar.IFC.sl", "FStar.IFC.lattice_element", "FStar.ConstantTime.Integers.sw", "FStar.IFC.protected", "FStar.Integers.int_t" ]
[]
(* 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...
false
false
FStar.ConstantTime.Integers.fst
{ "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...
null
val secret_int (#sl:sl u#c) (l:lattice_element sl) (s:sw) : Type0
[]
FStar.ConstantTime.Integers.secret_int
{ "file_name": "ulib/experimental/FStar.ConstantTime.Integers.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
l: FStar.IFC.lattice_element sl -> s: FStar.ConstantTime.Integers.sw -> Type0
{ "end_col": 25, "end_line": 35, "start_col": 4, "start_line": 35 }
Prims.GTot
val hide (#sl:sl) (#l:lattice_element sl) (#s:sw) (x:int{within_bounds s x}) : GTot (secret_int l s)
[ { "abbrev": false, "full_module": "FStar.Integers", "short_module": null }, { "abbrev": false, "full_module": "FStar.IFC", "short_module": null }, { "abbrev": false, "full_module": "FStar.ConstantTime", "short_module": null }, { "abbrev": false, "full_module":...
false
let hide (#sl:sl) (#l:lattice_element sl) (#s:sw) (x:int{within_bounds s x}) : GTot (secret_int l s) = return l (u x)
val hide (#sl:sl) (#l:lattice_element sl) (#s:sw) (x:int{within_bounds s x}) : GTot (secret_int l s) let hide (#sl: sl) (#l: lattice_element sl) (#s: sw) (x: int{within_bounds s x}) : GTot (secret_int l s) =
false
null
false
return l (u x)
{ "checked_file": "FStar.ConstantTime.Integers.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Integers.fst.checked", "FStar.IFC.fsti.checked" ], "interface_file": true, "source_file": "FStar.ConstantTime.Integers.fst" }
[ "sometrivial" ]
[ "FStar.IFC.sl", "FStar.IFC.lattice_element", "FStar.ConstantTime.Integers.sw", "FStar.Integers.int", "FStar.Integers.within_bounds", "FStar.IFC.return", "FStar.Integers.int_t", "FStar.Integers.u", "FStar.ConstantTime.Integers.secret_int" ]
[]
(* 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...
false
false
FStar.ConstantTime.Integers.fst
{ "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...
null
val hide (#sl:sl) (#l:lattice_element sl) (#s:sw) (x:int{within_bounds s x}) : GTot (secret_int l s)
[]
FStar.ConstantTime.Integers.hide
{ "file_name": "ulib/experimental/FStar.ConstantTime.Integers.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
x: FStar.Integers.int{FStar.Integers.within_bounds s x} -> Prims.GTot (FStar.ConstantTime.Integers.secret_int l s)
{ "end_col": 18, "end_line": 48, "start_col": 4, "start_line": 48 }
Prims.GTot
val reveal (#sl:sl) (#l:lattice_element sl) (#s:sw) (x:secret_int l s) : GTot (y:int{within_bounds s y})
[ { "abbrev": false, "full_module": "FStar.Integers", "short_module": null }, { "abbrev": false, "full_module": "FStar.IFC", "short_module": null }, { "abbrev": false, "full_module": "FStar.ConstantTime", "short_module": null }, { "abbrev": false, "full_module":...
false
let reveal (#sl:sl) (#l:lattice_element sl) (#s:sw) (x:secret_int l s) : GTot (y:int{within_bounds s y}) = v (reveal x)
val reveal (#sl:sl) (#l:lattice_element sl) (#s:sw) (x:secret_int l s) : GTot (y:int{within_bounds s y}) let reveal (#sl: sl) (#l: lattice_element sl) (#s: sw) (x: secret_int l s) : GTot (y: int{within_bounds s y}) =
false
null
false
v (reveal x)
{ "checked_file": "FStar.ConstantTime.Integers.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Integers.fst.checked", "FStar.IFC.fsti.checked" ], "interface_file": true, "source_file": "FStar.ConstantTime.Integers.fst" }
[ "sometrivial" ]
[ "FStar.IFC.sl", "FStar.IFC.lattice_element", "FStar.ConstantTime.Integers.sw", "FStar.ConstantTime.Integers.secret_int", "FStar.Integers.v", "FStar.IFC.reveal", "FStar.Integers.int_t", "FStar.Integers.int", "FStar.Integers.within_bounds" ]
[]
(* 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...
false
false
FStar.ConstantTime.Integers.fst
{ "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...
null
val reveal (#sl:sl) (#l:lattice_element sl) (#s:sw) (x:secret_int l s) : GTot (y:int{within_bounds s y})
[]
FStar.ConstantTime.Integers.reveal
{ "file_name": "ulib/experimental/FStar.ConstantTime.Integers.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
x: FStar.ConstantTime.Integers.secret_int l s -> Prims.GTot (y: FStar.Integers.int{FStar.Integers.within_bounds s y})
{ "end_col": 17, "end_line": 43, "start_col": 5, "start_line": 43 }
Prims.Tot
val promote (#sl:sl) (#l0:lattice_element sl) (#s:sw) (x:secret_int l0 s) (l1:lattice_element sl) : Tot (y:secret_int (l1 `lub` l0) s{reveal y == reveal x})
[ { "abbrev": false, "full_module": "FStar.Integers", "short_module": null }, { "abbrev": false, "full_module": "FStar.IFC", "short_module": null }, { "abbrev": false, "full_module": "FStar.ConstantTime", "short_module": null }, { "abbrev": false, "full_module":...
false
let promote #sl #l0 #s x l1 = join (return #_ #(secret_int l0 s) l1 x)
val promote (#sl:sl) (#l0:lattice_element sl) (#s:sw) (x:secret_int l0 s) (l1:lattice_element sl) : Tot (y:secret_int (l1 `lub` l0) s{reveal y == reveal x}) let promote #sl #l0 #s x l1 =
false
null
false
join (return #_ #(secret_int l0 s) l1 x)
{ "checked_file": "FStar.ConstantTime.Integers.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Integers.fst.checked", "FStar.IFC.fsti.checked" ], "interface_file": true, "source_file": "FStar.ConstantTime.Integers.fst" }
[ "total" ]
[ "FStar.IFC.sl", "FStar.IFC.lattice_element", "FStar.ConstantTime.Integers.sw", "FStar.ConstantTime.Integers.secret_int", "FStar.IFC.join", "FStar.Integers.int_t", "FStar.IFC.return", "FStar.IFC.lub", "Prims.eq2", "FStar.Integers.int", "Prims.l_or", "FStar.Integers.within_bounds", "FStar.Cons...
[]
(* 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...
false
false
FStar.ConstantTime.Integers.fst
{ "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...
null
val promote (#sl:sl) (#l0:lattice_element sl) (#s:sw) (x:secret_int l0 s) (l1:lattice_element sl) : Tot (y:secret_int (l1 `lub` l0) s{reveal y == reveal x})
[]
FStar.ConstantTime.Integers.promote
{ "file_name": "ulib/experimental/FStar.ConstantTime.Integers.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
x: FStar.ConstantTime.Integers.secret_int l0 s -> l1: FStar.IFC.lattice_element sl -> y: FStar.ConstantTime.Integers.secret_int (FStar.IFC.lub l1 l0) s {FStar.ConstantTime.Integers.reveal y == FStar.ConstantTime.Integers.reveal x}
{ "end_col": 44, "end_line": 54, "start_col": 4, "start_line": 54 }
Prims.Tot
val addition (#sl:sl) (#l:lattice_element sl) (#s:sw) (x : secret_int l s) (y : secret_int l s {ok ( + ) (m x) (m y)}) : Tot (z:secret_int l s{m z == m x + m y})
[ { "abbrev": false, "full_module": "FStar.Integers", "short_module": null }, { "abbrev": false, "full_module": "FStar.IFC", "short_module": null }, { "abbrev": false, "full_module": "FStar.ConstantTime", "short_module": null }, { "abbrev": false, "full_module":...
false
let addition #sl (#l:lattice_element sl) #s (x : secret_int l s) (y : secret_int l s {ok ( + ) (m x) (m y)}) : Tot (z:secret_int l s{m z == m x + m y}) = let>> a = x in let>> b = y in return l (a + b)
val addition (#sl:sl) (#l:lattice_element sl) (#s:sw) (x : secret_int l s) (y : secret_int l s {ok ( + ) (m x) (m y)}) : Tot (z:secret_int l s{m z == m x + m y}) let addition #sl (#l: lattice_element sl) #s (x: secret_int l s) (y: sec...
false
null
false
let>> a = x in let>> b = y in return l (a + b)
{ "checked_file": "FStar.ConstantTime.Integers.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Integers.fst.checked", "FStar.IFC.fsti.checked" ], "interface_file": true, "source_file": "FStar.ConstantTime.Integers.fst" }
[ "total" ]
[ "FStar.IFC.sl", "FStar.IFC.lattice_element", "FStar.ConstantTime.Integers.sw", "FStar.ConstantTime.Integers.secret_int", "FStar.Integers.ok", "FStar.Integers.op_Plus", "FStar.Integers.Signed", "FStar.Integers.Winfinite", "FStar.ConstantTime.Integers.m", "FStar.IFC.op_let_Greater_Greater", "FStar...
[]
(* 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...
false
false
FStar.ConstantTime.Integers.fst
{ "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...
null
val addition (#sl:sl) (#l:lattice_element sl) (#s:sw) (x : secret_int l s) (y : secret_int l s {ok ( + ) (m x) (m y)}) : Tot (z:secret_int l s{m z == m x + m y})
[]
FStar.ConstantTime.Integers.addition
{ "file_name": "ulib/experimental/FStar.ConstantTime.Integers.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
x: FStar.ConstantTime.Integers.secret_int l s -> y: FStar.ConstantTime.Integers.secret_int l s { FStar.Integers.ok FStar.Integers.op_Plus (FStar.ConstantTime.Integers.m x) (FStar.ConstantTime.Integers.m y) } -> z: FStar.ConstantTime.Integers.secret_int l s { FS...
{ "end_col": 22, "end_line": 72, "start_col": 6, "start_line": 70 }
Prims.Tot
val addition_mod (#sl:sl) (#l:lattice_element sl) (#sw: _ {Unsigned? sw /\ width_of_sw sw <> W128}) (x : secret_int l sw) (y : secret_int l sw) : Tot (z:secret_int l sw { m z == m x +% m y } )
[ { "abbrev": false, "full_module": "FStar.Integers", "short_module": null }, { "abbrev": false, "full_module": "FStar.IFC", "short_module": null }, { "abbrev": false, "full_module": "FStar.ConstantTime", "short_module": null }, { "abbrev": false, "full_module":...
false
let addition_mod (#sl:sl) (#l:lattice_element sl) (#sw: _ {Unsigned? sw /\ width_of_sw sw <> W128}) (x : secret_int l sw) (y : secret_int l sw) : Tot (z:secret_int l sw { m z == m x +% m y } ) = let>> a = x in let>> b = y in return ...
val addition_mod (#sl:sl) (#l:lattice_element sl) (#sw: _ {Unsigned? sw /\ width_of_sw sw <> W128}) (x : secret_int l sw) (y : secret_int l sw) : Tot (z:secret_int l sw { m z == m x +% m y } ) let addition_mod (#sl: sl) (#l: lattice_ele...
false
null
false
let>> a = x in let>> b = y in return l (a +% b)
{ "checked_file": "FStar.ConstantTime.Integers.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Integers.fst.checked", "FStar.IFC.fsti.checked" ], "interface_file": true, "source_file": "FStar.ConstantTime.Integers.fst" }
[ "total" ]
[ "FStar.IFC.sl", "FStar.IFC.lattice_element", "FStar.Integers.signed_width", "Prims.l_and", "Prims.b2t", "FStar.Integers.uu___is_Unsigned", "Prims.op_disEquality", "FStar.Integers.width", "FStar.Integers.width_of_sw", "FStar.Integers.W128", "FStar.ConstantTime.Integers.secret_int", "FStar.IFC.o...
[]
(* 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...
false
false
FStar.ConstantTime.Integers.fst
{ "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...
null
val addition_mod (#sl:sl) (#l:lattice_element sl) (#sw: _ {Unsigned? sw /\ width_of_sw sw <> W128}) (x : secret_int l sw) (y : secret_int l sw) : Tot (z:secret_int l sw { m z == m x +% m y } )
[]
FStar.ConstantTime.Integers.addition_mod
{ "file_name": "ulib/experimental/FStar.ConstantTime.Integers.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
x: FStar.ConstantTime.Integers.secret_int l sw -> y: FStar.ConstantTime.Integers.secret_int l sw -> z: FStar.ConstantTime.Integers.secret_int l sw { FStar.ConstantTime.Integers.m z == FStar.ConstantTime.Integers.m x +% FStar.ConstantTime.Integers.m y }
{ "end_col": 23, "end_line": 84, "start_col": 6, "start_line": 82 }
Prims.Tot
val mul_wide_add2_st: #t:limb_t -> mul_wide_add2_t t
[ { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Base", "short_module": null }, { "abbrev": false, "fu...
false
let mul_wide_add2_st #t = match t with | U32 -> mul_wide_add2_u32 | U64 -> mul_wide_add2_u64
val mul_wide_add2_st: #t:limb_t -> mul_wide_add2_t t let mul_wide_add2_st #t =
false
null
false
match t with | U32 -> mul_wide_add2_u32 | U64 -> mul_wide_add2_u64
{ "checked_file": "Hacl.Bignum.Base.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.Intrinsics.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.Base.fst.checked", "Hacl.Bignum.Definitions.fst.checked"...
[ "total" ]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.Base.mul_wide_add2_u32", "Hacl.Bignum.Base.mul_wide_add2_u64", "Hacl.Bignum.Base.mul_wide_add2_t" ]
[]
module Hacl.Bignum.Base open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions include Hacl.Spec.Bignum.Base module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" (** unsigned char _addcar...
false
false
Hacl.Bignum.Base.fst
{ "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...
null
val mul_wide_add2_st: #t:limb_t -> mul_wide_add2_t t
[]
Hacl.Bignum.Base.mul_wide_add2_st
{ "file_name": "code/bignum/Hacl.Bignum.Base.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Hacl.Bignum.Base.mul_wide_add2_t t
{ "end_col": 28, "end_line": 131, "start_col": 2, "start_line": 129 }
Prims.Tot
val mul_wide_add_st: #t:limb_t -> mul_wide_add_t t
[ { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Base", "short_module": null }, { "abbrev": false, "fu...
false
let mul_wide_add_st #t = match t with | U32 -> mul_wide_add_u32 | U64 -> mul_wide_add_u64
val mul_wide_add_st: #t:limb_t -> mul_wide_add_t t let mul_wide_add_st #t =
false
null
false
match t with | U32 -> mul_wide_add_u32 | U64 -> mul_wide_add_u64
{ "checked_file": "Hacl.Bignum.Base.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.Intrinsics.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.Base.fst.checked", "Hacl.Bignum.Definitions.fst.checked"...
[ "total" ]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.Base.mul_wide_add_u32", "Hacl.Bignum.Base.mul_wide_add_u64", "Hacl.Bignum.Base.mul_wide_add_t" ]
[]
module Hacl.Bignum.Base open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions include Hacl.Spec.Bignum.Base module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" (** unsigned char _addcar...
false
false
Hacl.Bignum.Base.fst
{ "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...
null
val mul_wide_add_st: #t:limb_t -> mul_wide_add_t t
[]
Hacl.Bignum.Base.mul_wide_add_st
{ "file_name": "code/bignum/Hacl.Bignum.Base.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Hacl.Bignum.Base.mul_wide_add_t t
{ "end_col": 27, "end_line": 91, "start_col": 2, "start_line": 89 }
Prims.Tot
[ { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Base", "short_module": null }, { "abbrev": false, "fu...
false
let mul_wide_add_t (t:limb_t) = a:limb t -> b:limb t -> c_in:limb t -> out:lbuffer (limb t) 1ul -> Stack (limb t) (requires fun h -> live h out) (ensures fun h0 c_out h1 -> modifies (loc out) h0 h1 /\ (c_out, LSeq.index (as_seq h1 out) 0) == mul_wide_add a b c_in)
let mul_wide_add_t (t: limb_t) =
false
null
false
a: limb t -> b: limb t -> c_in: limb t -> out: lbuffer (limb t) 1ul -> Stack (limb t) (requires fun h -> live h out) (ensures fun h0 c_out h1 -> modifies (loc out) h0 h1 /\ (c_out, LSeq.index (as_seq h1 out) 0) == mul_wide_add a b c_in )
{ "checked_file": "Hacl.Bignum.Base.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.Intrinsics.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.Base.fst.checked", "Hacl.Bignum.Definitions.fst.checked"...
[ "total" ]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.Definitions.limb", "Lib.Buffer.lbuffer", "FStar.UInt32.__uint_to_t", "FStar.Monotonic.HyperStack.mem", "Lib.Buffer.live", "Lib.Buffer.MUT", "Prims.l_and", "Lib.Buffer.modifies", "Lib.Buffer.loc", "Prims.eq2", "FStar.Pervasives.Native.tuple2", "H...
[]
module Hacl.Bignum.Base open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions include Hacl.Spec.Bignum.Base module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" (** unsigned char _addcar...
false
true
Hacl.Bignum.Base.fst
{ "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...
null
val mul_wide_add_t : t: Hacl.Bignum.Definitions.limb_t -> Type0
[]
Hacl.Bignum.Base.mul_wide_add_t
{ "file_name": "code/bignum/Hacl.Bignum.Base.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
t: Hacl.Bignum.Definitions.limb_t -> Type0
{ "end_col": 67, "end_line": 65, "start_col": 4, "start_line": 58 }
Prims.Tot
[ { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Base", "short_module": null }, { "abbrev": false, "fu...
false
let mul_wide_add2_t (t:limb_t) = a:limb t -> b:limb t -> c_in:limb t -> out:lbuffer (limb t) 1ul -> Stack (limb t) (requires fun h -> live h out) (ensures fun h0 c_out h1 -> modifies (loc out) h0 h1 /\ (c_out, LSeq.index (as_seq h1 out) 0) == mul_wide_add2 a b c_in (LSeq.index (as_seq h0 out) 0))
let mul_wide_add2_t (t: limb_t) =
false
null
false
a: limb t -> b: limb t -> c_in: limb t -> out: lbuffer (limb t) 1ul -> Stack (limb t) (requires fun h -> live h out) (ensures fun h0 c_out h1 -> modifies (loc out) h0 h1 /\ (c_out, LSeq.index (as_seq h1 out) 0) == mul_wide_add2 a b c_in (LSeq.index (as_seq h0 out) 0))
{ "checked_file": "Hacl.Bignum.Base.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.Intrinsics.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.Base.fst.checked", "Hacl.Bignum.Definitions.fst.checked"...
[ "total" ]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Bignum.Definitions.limb", "Lib.Buffer.lbuffer", "FStar.UInt32.__uint_to_t", "FStar.Monotonic.HyperStack.mem", "Lib.Buffer.live", "Lib.Buffer.MUT", "Prims.l_and", "Lib.Buffer.modifies", "Lib.Buffer.loc", "Prims.eq2", "FStar.Pervasives.Native.tuple2", "H...
[]
module Hacl.Bignum.Base open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions include Hacl.Spec.Bignum.Base module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" (** unsigned char _addcar...
false
true
Hacl.Bignum.Base.fst
{ "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...
null
val mul_wide_add2_t : t: Hacl.Bignum.Definitions.limb_t -> Type0
[]
Hacl.Bignum.Base.mul_wide_add2_t
{ "file_name": "code/bignum/Hacl.Bignum.Base.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
t: Hacl.Bignum.Definitions.limb_t -> Type0
{ "end_col": 99, "end_line": 103, "start_col": 4, "start_line": 96 }
Prims.Tot
val mul_wide_add_u64: mul_wide_add_t U64
[ { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Base", "short_module": null }, { "abbrev": false, "fu...
false
let mul_wide_add_u64 a b c_in out = lemma_mul_wide_add a b c_in (u64 0); let res = mul64_wide a b +! to_u128 c_in in out.(0ul) <- to_u64 res; to_u64 (res >>. 64ul)
val mul_wide_add_u64: mul_wide_add_t U64 let mul_wide_add_u64 a b c_in out =
false
null
false
lemma_mul_wide_add a b c_in (u64 0); let res = mul64_wide a b +! to_u128 c_in in out.(0ul) <- to_u64 res; to_u64 (res >>. 64ul)
{ "checked_file": "Hacl.Bignum.Base.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.Intrinsics.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.Base.fst.checked", "Hacl.Bignum.Definitions.fst.checked"...
[ "total" ]
[ "Hacl.Bignum.Definitions.limb", "Lib.IntTypes.U64", "Lib.Buffer.lbuffer", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.to_u64", "Lib.IntTypes.U128", "Lib.IntTypes.SEC", "Lib.IntTypes.op_Greater_Greater_Dot", "Prims.unit", "Lib.Buffer.op_Array_Assignment", "Lib.IntTypes.int_t", "Lib.IntTypes.op_Pl...
[]
module Hacl.Bignum.Base open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions include Hacl.Spec.Bignum.Base module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" (** unsigned char _addcar...
false
true
Hacl.Bignum.Base.fst
{ "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...
null
val mul_wide_add_u64: mul_wide_add_t U64
[]
Hacl.Bignum.Base.mul_wide_add_u64
{ "file_name": "code/bignum/Hacl.Bignum.Base.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Hacl.Bignum.Base.mul_wide_add_t Lib.IntTypes.U64
{ "end_col": 23, "end_line": 83, "start_col": 2, "start_line": 80 }
Prims.Tot
val mul_wide_add2_u64: mul_wide_add2_t U64
[ { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Base", "short_module": null }, { "abbrev": false, "fu...
false
let mul_wide_add2_u64 a b c_in out = let out0 = out.(0ul) in lemma_mul_wide_add a b c_in out0; let res = mul64_wide a b +! to_u128 c_in +! to_u128 out0 in out.(0ul) <- to_u64 res; to_u64 (res >>. 64ul)
val mul_wide_add2_u64: mul_wide_add2_t U64 let mul_wide_add2_u64 a b c_in out =
false
null
false
let out0 = out.(0ul) in lemma_mul_wide_add a b c_in out0; let res = mul64_wide a b +! to_u128 c_in +! to_u128 out0 in out.(0ul) <- to_u64 res; to_u64 (res >>. 64ul)
{ "checked_file": "Hacl.Bignum.Base.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.Intrinsics.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.Base.fst.checked", "Hacl.Bignum.Definitions.fst.checked"...
[ "total" ]
[ "Hacl.Bignum.Definitions.limb", "Lib.IntTypes.U64", "Lib.Buffer.lbuffer", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.to_u64", "Lib.IntTypes.U128", "Lib.IntTypes.SEC", "Lib.IntTypes.op_Greater_Greater_Dot", "Prims.unit", "Lib.Buffer.op_Array_Assignment", "Lib.IntTypes.int_t", "Lib.IntTypes.op_Pl...
[]
module Hacl.Bignum.Base open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions include Hacl.Spec.Bignum.Base module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" (** unsigned char _addcar...
false
true
Hacl.Bignum.Base.fst
{ "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...
null
val mul_wide_add2_u64: mul_wide_add2_t U64
[]
Hacl.Bignum.Base.mul_wide_add2_u64
{ "file_name": "code/bignum/Hacl.Bignum.Base.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Hacl.Bignum.Base.mul_wide_add2_t Lib.IntTypes.U64
{ "end_col": 23, "end_line": 123, "start_col": 36, "start_line": 118 }
Prims.Tot
val mul_wide_add_u32: mul_wide_add_t U32
[ { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Base", "short_module": null }, { "abbrev": false, "fu...
false
let mul_wide_add_u32 a b c_in out = lemma_mul_wide_add a b c_in (u32 0); let res = to_u64 a *! to_u64 b +! to_u64 c_in in out.(0ul) <- to_u32 res; to_u32 (res >>. 32ul)
val mul_wide_add_u32: mul_wide_add_t U32 let mul_wide_add_u32 a b c_in out =
false
null
false
lemma_mul_wide_add a b c_in (u32 0); let res = to_u64 a *! to_u64 b +! to_u64 c_in in out.(0ul) <- to_u32 res; to_u32 (res >>. 32ul)
{ "checked_file": "Hacl.Bignum.Base.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.Intrinsics.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.Base.fst.checked", "Hacl.Bignum.Definitions.fst.checked"...
[ "total" ]
[ "Hacl.Bignum.Definitions.limb", "Lib.IntTypes.U32", "Lib.Buffer.lbuffer", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.to_u32", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Lib.IntTypes.op_Greater_Greater_Dot", "Prims.unit", "Lib.Buffer.op_Array_Assignment", "Lib.IntTypes.int_t", "Lib.IntTypes.op_Plu...
[]
module Hacl.Bignum.Base open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions include Hacl.Spec.Bignum.Base module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" (** unsigned char _addcar...
false
true
Hacl.Bignum.Base.fst
{ "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...
null
val mul_wide_add_u32: mul_wide_add_t U32
[]
Hacl.Bignum.Base.mul_wide_add_u32
{ "file_name": "code/bignum/Hacl.Bignum.Base.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Hacl.Bignum.Base.mul_wide_add_t Lib.IntTypes.U32
{ "end_col": 23, "end_line": 74, "start_col": 2, "start_line": 71 }
Prims.Tot
val mul_wide_add2_u32: mul_wide_add2_t U32
[ { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Base", "short_module": null }, { "abbrev": false, "fu...
false
let mul_wide_add2_u32 a b c_in out = let out0 = out.(0ul) in lemma_mul_wide_add a b c_in out0; let res = to_u64 a *! to_u64 b +! to_u64 c_in +! to_u64 out0 in out.(0ul) <- to_u32 res; to_u32 (res >>. 32ul)
val mul_wide_add2_u32: mul_wide_add2_t U32 let mul_wide_add2_u32 a b c_in out =
false
null
false
let out0 = out.(0ul) in lemma_mul_wide_add a b c_in out0; let res = to_u64 a *! to_u64 b +! to_u64 c_in +! to_u64 out0 in out.(0ul) <- to_u32 res; to_u32 (res >>. 32ul)
{ "checked_file": "Hacl.Bignum.Base.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.Intrinsics.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.Base.fst.checked", "Hacl.Bignum.Definitions.fst.checked"...
[ "total" ]
[ "Hacl.Bignum.Definitions.limb", "Lib.IntTypes.U32", "Lib.Buffer.lbuffer", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.to_u32", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Lib.IntTypes.op_Greater_Greater_Dot", "Prims.unit", "Lib.Buffer.op_Array_Assignment", "Lib.IntTypes.int_t", "Lib.IntTypes.op_Plu...
[]
module Hacl.Bignum.Base open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions include Hacl.Spec.Bignum.Base module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" (** unsigned char _addcar...
false
true
Hacl.Bignum.Base.fst
{ "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...
null
val mul_wide_add2_u32: mul_wide_add2_t U32
[]
Hacl.Bignum.Base.mul_wide_add2_u32
{ "file_name": "code/bignum/Hacl.Bignum.Base.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Hacl.Bignum.Base.mul_wide_add2_t Lib.IntTypes.U32
{ "end_col": 23, "end_line": 113, "start_col": 36, "start_line": 108 }
FStar.HyperStack.ST.Stack
val subborrow_st: #t:limb_t -> c_in:carry t -> a:limb t -> b:limb t -> out:lbuffer (limb t) 1ul -> Stack (carry t) (requires fun h -> live h out) (ensures fun h0 c_out h1 -> modifies (loc out) h0 h1 /\ (c_out, LSeq.index (as_seq h1 out) 0) == subborrow c_in a b)
[ { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Base", "short_module": null }, { "abbrev": false, "fu...
false
let subborrow_st c_in a b out = Lib.IntTypes.Intrinsics.sub_borrow c_in a b out
val subborrow_st: #t:limb_t -> c_in:carry t -> a:limb t -> b:limb t -> out:lbuffer (limb t) 1ul -> Stack (carry t) (requires fun h -> live h out) (ensures fun h0 c_out h1 -> modifies (loc out) h0 h1 /\ (c_out, LSeq.index (as_seq h1 out) 0) == subborrow c_in a b) let subborrow_st c_in a b out =
true
null
false
Lib.IntTypes.Intrinsics.sub_borrow c_in a b out
{ "checked_file": "Hacl.Bignum.Base.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.Intrinsics.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.Base.fst.checked", "Hacl.Bignum.Definitions.fst.checked"...
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.Base.carry", "Hacl.Bignum.Definitions.limb", "Lib.Buffer.lbuffer", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.Intrinsics.sub_borrow", "Lib.IntTypes.uint_t", "Lib.IntTypes.SEC" ]
[]
module Hacl.Bignum.Base open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions include Hacl.Spec.Bignum.Base module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" (** unsigned char _addcar...
false
false
Hacl.Bignum.Base.fst
{ "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...
null
val subborrow_st: #t:limb_t -> c_in:carry t -> a:limb t -> b:limb t -> out:lbuffer (limb t) 1ul -> Stack (carry t) (requires fun h -> live h out) (ensures fun h0 c_out h1 -> modifies (loc out) h0 h1 /\ (c_out, LSeq.index (as_seq h1 out) 0) == subborrow c_in a b)
[]
Hacl.Bignum.Base.subborrow_st
{ "file_name": "code/bignum/Hacl.Bignum.Base.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
c_in: Hacl.Spec.Bignum.Base.carry t -> a: Hacl.Bignum.Definitions.limb t -> b: Hacl.Bignum.Definitions.limb t -> out: Lib.Buffer.lbuffer (Hacl.Bignum.Definitions.limb t) 1ul -> FStar.HyperStack.ST.Stack (Hacl.Spec.Bignum.Base.carry t)
{ "end_col": 49, "end_line": 53, "start_col": 2, "start_line": 53 }
FStar.HyperStack.ST.Stack
val addcarry_st: #t:limb_t -> c_in:carry t -> a:limb t -> b:limb t -> out:lbuffer (limb t) 1ul -> Stack (carry t) (requires fun h -> live h out) (ensures fun h0 c_out h1 -> modifies (loc out) h0 h1 /\ (c_out, LSeq.index (as_seq h1 out) 0) == addcarry c_in a b)
[ { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Base", "short_module": null }, { "abbrev": false, "fu...
false
let addcarry_st #t c_in a b out = Lib.IntTypes.Intrinsics.add_carry c_in a b out
val addcarry_st: #t:limb_t -> c_in:carry t -> a:limb t -> b:limb t -> out:lbuffer (limb t) 1ul -> Stack (carry t) (requires fun h -> live h out) (ensures fun h0 c_out h1 -> modifies (loc out) h0 h1 /\ (c_out, LSeq.index (as_seq h1 out) 0) == addcarry c_in a b) let addcarry_st #t c_in a b out =
true
null
false
Lib.IntTypes.Intrinsics.add_carry c_in a b out
{ "checked_file": "Hacl.Bignum.Base.fst.checked", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.Intrinsics.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.Base.fst.checked", "Hacl.Bignum.Definitions.fst.checked"...
[]
[ "Hacl.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.Base.carry", "Hacl.Bignum.Definitions.limb", "Lib.Buffer.lbuffer", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.Intrinsics.add_carry", "Lib.IntTypes.uint_t", "Lib.IntTypes.SEC" ]
[]
module Hacl.Bignum.Base open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions include Hacl.Spec.Bignum.Base module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" (** unsigned char _addcar...
false
false
Hacl.Bignum.Base.fst
{ "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...
null
val addcarry_st: #t:limb_t -> c_in:carry t -> a:limb t -> b:limb t -> out:lbuffer (limb t) 1ul -> Stack (carry t) (requires fun h -> live h out) (ensures fun h0 c_out h1 -> modifies (loc out) h0 h1 /\ (c_out, LSeq.index (as_seq h1 out) 0) == addcarry c_in a b)
[]
Hacl.Bignum.Base.addcarry_st
{ "file_name": "code/bignum/Hacl.Bignum.Base.fst", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
c_in: Hacl.Spec.Bignum.Base.carry t -> a: Hacl.Bignum.Definitions.limb t -> b: Hacl.Bignum.Definitions.limb t -> out: Lib.Buffer.lbuffer (Hacl.Bignum.Definitions.limb t) 1ul -> FStar.HyperStack.ST.Stack (Hacl.Spec.Bignum.Base.carry t)
{ "end_col": 48, "end_line": 35, "start_col": 2, "start_line": 35 }
Prims.GTot
val indefinite_description_ghost (a: Type) (p: (a -> prop) { exists x. p x }) : GTot (x: a { p x })
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar",...
false
let indefinite_description_ghost (a: Type) (p: (a -> prop) { exists x. p x }) : GTot (x: a { p x }) = let w = indefinite_description_tot a p in let x = Ghost.reveal w in x
val indefinite_description_ghost (a: Type) (p: (a -> prop) { exists x. p x }) : GTot (x: a { p x }) let indefinite_description_ghost (a: Type) (p: (a -> prop){exists x. p x}) : GTot (x: a{p x}) =
false
null
false
let w = indefinite_description_tot a p in let x = Ghost.reveal w in x
{ "checked_file": "FStar.IndefiniteDescription.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "FStar.IndefiniteDescriptio...
[ "sometrivial" ]
[ "Prims.prop", "Prims.l_Exists", "FStar.Ghost.reveal", "FStar.Ghost.erased", "FStar.IndefiniteDescription.indefinite_description_tot" ]
[]
(* 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...
false
false
FStar.IndefiniteDescription.fst
{ "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...
null
val indefinite_description_ghost (a: Type) (p: (a -> prop) { exists x. p x }) : GTot (x: a { p x })
[]
FStar.IndefiniteDescription.indefinite_description_ghost
{ "file_name": "ulib/FStar.IndefiniteDescription.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
a: Type -> p: (_: a -> Prims.prop){exists (x: a). p x} -> Prims.GTot (x: a{p x})
{ "end_col": 5, "end_line": 42, "start_col": 3, "start_line": 40 }
Prims.GTot
val elim_squash (#p:Type u#a) (s:squash p) : GTot p
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar",...
false
let elim_squash (#p:Type u#a) (s:squash p) : GTot p = let uu : squash (x:p & squash trivial) = bind_squash s (fun x -> return_squash (| x, return_squash T |)) in give_proof (return_squash uu); indefinite_description_ghost p (fun _ -> squash trivial)
val elim_squash (#p:Type u#a) (s:squash p) : GTot p let elim_squash (#p: Type u#a) (s: squash p) : GTot p =
false
null
false
let uu:squash (x: p & squash trivial) = bind_squash s (fun x -> return_squash (| x, return_squash T |)) in give_proof (return_squash uu); indefinite_description_ghost p (fun _ -> squash trivial)
{ "checked_file": "FStar.IndefiniteDescription.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "FStar.IndefiniteDescriptio...
[ "sometrivial" ]
[ "Prims.squash", "FStar.IndefiniteDescription.indefinite_description_ghost", "Prims.trivial", "Prims.prop", "Prims.unit", "FStar.Squash.give_proof", "Prims.dtuple2", "FStar.Squash.return_squash", "FStar.Squash.bind_squash", "Prims.Mkdtuple2", "Prims.T" ]
[]
(* 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...
false
false
FStar.IndefiniteDescription.fst
{ "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...
null
val elim_squash (#p:Type u#a) (s:squash p) : GTot p
[]
FStar.IndefiniteDescription.elim_squash
{ "file_name": "ulib/FStar.IndefiniteDescription.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
s: Prims.squash p -> Prims.GTot p
{ "end_col": 58, "end_line": 89, "start_col": 53, "start_line": 85 }
Prims.Ghost
val stronger_markovs_principle_prop (p: (nat -> GTot prop)) : Ghost nat (requires (~(forall (n: nat). ~(p n)))) (ensures (fun n -> p n))
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar",...
false
let stronger_markovs_principle_prop (p: (nat -> GTot prop)) : Ghost nat (requires (~(forall (n: nat). ~(p n)))) (ensures (fun n -> p n)) = indefinite_description_ghost _ p
val stronger_markovs_principle_prop (p: (nat -> GTot prop)) : Ghost nat (requires (~(forall (n: nat). ~(p n)))) (ensures (fun n -> p n)) let stronger_markovs_principle_prop (p: (nat -> GTot prop)) : Ghost nat (requires (~(forall (n: nat). ~(p n)))) (ensures (fun n -> p n)) =
false
null
false
indefinite_description_ghost _ p
{ "checked_file": "FStar.IndefiniteDescription.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "FStar.IndefiniteDescriptio...
[]
[ "Prims.nat", "Prims.prop", "FStar.IndefiniteDescription.indefinite_description_ghost", "Prims.l_not", "Prims.l_Forall" ]
[]
(* 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...
false
false
FStar.IndefiniteDescription.fst
{ "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...
null
val stronger_markovs_principle_prop (p: (nat -> GTot prop)) : Ghost nat (requires (~(forall (n: nat). ~(p n)))) (ensures (fun n -> p n))
[]
FStar.IndefiniteDescription.stronger_markovs_principle_prop
{ "file_name": "ulib/FStar.IndefiniteDescription.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
p: (_: Prims.nat -> Prims.GTot Prims.prop) -> Prims.Ghost Prims.nat
{ "end_col": 36, "end_line": 80, "start_col": 4, "start_line": 80 }
Prims.Ghost
val stronger_markovs_principle (p: (nat -> GTot bool)) : Ghost nat (requires (~(forall (n: nat). ~(p n)))) (ensures (fun n -> p n))
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar",...
false
let stronger_markovs_principle (p: (nat -> GTot bool)) : Ghost nat (requires (~(forall (n: nat). ~(p n)))) (ensures (fun n -> p n)) = indefinite_description_ghost _ (fun n -> p n==true)
val stronger_markovs_principle (p: (nat -> GTot bool)) : Ghost nat (requires (~(forall (n: nat). ~(p n)))) (ensures (fun n -> p n)) let stronger_markovs_principle (p: (nat -> GTot bool)) : Ghost nat (requires (~(forall (n: nat). ~(p n)))) (ensures (fun n -> p n)) =
false
null
false
indefinite_description_ghost _ (fun n -> p n == true)
{ "checked_file": "FStar.IndefiniteDescription.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "FStar.IndefiniteDescriptio...
[]
[ "Prims.nat", "Prims.bool", "FStar.IndefiniteDescription.indefinite_description_ghost", "Prims.eq2", "Prims.prop", "Prims.l_not", "Prims.l_Forall", "Prims.b2t" ]
[]
(* 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...
false
false
FStar.IndefiniteDescription.fst
{ "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...
null
val stronger_markovs_principle (p: (nat -> GTot bool)) : Ghost nat (requires (~(forall (n: nat). ~(p n)))) (ensures (fun n -> p n))
[]
FStar.IndefiniteDescription.stronger_markovs_principle
{ "file_name": "ulib/FStar.IndefiniteDescription.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
p: (_: Prims.nat -> Prims.GTot Prims.bool) -> Prims.Ghost Prims.nat
{ "end_col": 55, "end_line": 74, "start_col": 4, "start_line": 74 }
Prims.GTot
val strong_excluded_middle (p: Type0) : GTot (b: bool{b = true <==> p})
[ { "abbrev": false, "full_module": "FStar.Squash", "short_module": null }, { "abbrev": false, "full_module": "FStar.Classical", "short_module": null }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": false, "full_module": "FStar",...
false
let strong_excluded_middle (p: Type0) : GTot (b: bool{b = true <==> p}) = let aux (p: Type0) : Lemma (exists b. b = true <==> p) = give_proof (bind_squash (get_proof (l_or p (~p))) (fun (b: l_or p (~p)) -> bind_squash b (fun (b': Prims.sum p (~p)) -> mat...
val strong_excluded_middle (p: Type0) : GTot (b: bool{b = true <==> p}) let strong_excluded_middle (p: Type0) : GTot (b: bool{b = true <==> p}) =
false
null
false
let aux (p: Type0) : Lemma (exists b. b = true <==> p) = give_proof (bind_squash (get_proof (l_or p (~p))) (fun (b: l_or p (~p)) -> bind_squash b (fun (b': Prims.sum p (~p)) -> match b' with | Prims.Left hp -> give_witness hp; ...
{ "checked_file": "FStar.IndefiniteDescription.fst.checked", "dependencies": [ "prims.fst.checked", "FStar.Squash.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "FStar.IndefiniteDescriptio...
[ "sometrivial" ]
[ "FStar.IndefiniteDescription.indefinite_description_ghost", "Prims.bool", "Prims.l_iff", "Prims.b2t", "Prims.op_Equality", "Prims.prop", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.l_Exists", "Prims.Nil", "FStar.Pervasives.pattern", "FStar.Squash.give_proof", "FStar.Squash.bind_sq...
[]
(* 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...
false
false
FStar.IndefiniteDescription.fst
{ "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...
null
val strong_excluded_middle (p: Type0) : GTot (b: bool{b = true <==> p})
[]
FStar.IndefiniteDescription.strong_excluded_middle
{ "file_name": "ulib/FStar.IndefiniteDescription.fst", "git_rev": "f4cbb7a38d67eeb13fbdb2f4fb8a44a65cbcdc1f", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
p: Type0 -> Prims.GTot (b: Prims.bool{b = true <==> p})
{ "end_col": 62, "end_line": 64, "start_col": 73, "start_line": 47 }
Prims.Tot
val div_mod (#m: pos{1 < m}) (a b: nat_mod m) : nat_mod m
[ { "abbrev": true, "full_module": "Lib.Exponentiation.Definition", "short_module": "LE" }, { "abbrev": true, "full_module": "FStar.Math.Euclid", "short_module": "Euclid" }, { "abbrev": true, "full_module": "FStar.Math.Fermat", "short_module": "Fermat" }, { "abbrev"...
false
let div_mod (#m:pos{1 < m}) (a:nat_mod m) (b:nat_mod m) : nat_mod m = mul_mod a (inv_mod b)
val div_mod (#m: pos{1 < m}) (a b: nat_mod m) : nat_mod m let div_mod (#m: pos{1 < m}) (a b: nat_mod m) : nat_mod m =
false
null
false
mul_mod a (inv_mod b)
{ "checked_file": "Lib.NatMod.fsti.checked", "dependencies": [ "prims.fst.checked", "Lib.Exponentiation.Definition.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Math.Fermat.fsti.checked", "FStar.Math.Euclid.fsti.checked" ...
[ "total" ]
[ "Prims.pos", "Prims.b2t", "Prims.op_LessThan", "Lib.NatMod.nat_mod", "Lib.NatMod.mul_mod", "Lib.NatMod.inv_mod" ]
[]
module Lib.NatMod open FStar.Mul module Fermat = FStar.Math.Fermat module Euclid = FStar.Math.Euclid module LE = Lib.Exponentiation.Definition #set-options "--z3rlimit 10 --fuel 0 --ifuel 0" let mk_nat_comm_monoid : LE.comm_monoid int = { LE.one = 1; LE.mul = FStar.Mul.op_Star; LE.lemma_one = Math.Lemmas.mul...
false
false
Lib.NatMod.fsti
{ "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...
null
val div_mod (#m: pos{1 < m}) (a b: nat_mod m) : nat_mod m
[]
Lib.NatMod.div_mod
{ "file_name": "lib/Lib.NatMod.fsti", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
a: Lib.NatMod.nat_mod m -> b: Lib.NatMod.nat_mod m -> Lib.NatMod.nat_mod m
{ "end_col": 91, "end_line": 115, "start_col": 70, "start_line": 115 }
Prims.Tot
[ { "abbrev": true, "full_module": "Lib.Exponentiation.Definition", "short_module": "LE" }, { "abbrev": true, "full_module": "FStar.Math.Euclid", "short_module": "Euclid" }, { "abbrev": true, "full_module": "FStar.Math.Fermat", "short_module": "Fermat" }, { "abbrev"...
false
let prime = m:pos{1 < m /\ Euclid.is_prime m}
let prime =
false
null
false
m: pos{1 < m /\ Euclid.is_prime m}
{ "checked_file": "Lib.NatMod.fsti.checked", "dependencies": [ "prims.fst.checked", "Lib.Exponentiation.Definition.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Math.Fermat.fsti.checked", "FStar.Math.Euclid.fsti.checked" ...
[ "total" ]
[ "Prims.pos", "Prims.l_and", "Prims.b2t", "Prims.op_LessThan", "FStar.Math.Euclid.is_prime" ]
[]
module Lib.NatMod open FStar.Mul module Fermat = FStar.Math.Fermat module Euclid = FStar.Math.Euclid module LE = Lib.Exponentiation.Definition #set-options "--z3rlimit 10 --fuel 0 --ifuel 0" let mk_nat_comm_monoid : LE.comm_monoid int = { LE.one = 1; LE.mul = FStar.Mul.op_Star; LE.lemma_one = Math.Lemmas.mul...
false
true
Lib.NatMod.fsti
{ "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...
null
val prime : Type0
[]
Lib.NatMod.prime
{ "file_name": "lib/Lib.NatMod.fsti", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
Type0
{ "end_col": 45, "end_line": 113, "start_col": 12, "start_line": 113 }
Prims.Tot
[ { "abbrev": true, "full_module": "Lib.Exponentiation.Definition", "short_module": "LE" }, { "abbrev": true, "full_module": "FStar.Math.Euclid", "short_module": "Euclid" }, { "abbrev": true, "full_module": "FStar.Math.Fermat", "short_module": "Fermat" }, { "abbrev"...
false
let nat_mod (m:pos) = n:nat{n < m}
let nat_mod (m: pos) =
false
null
false
n: nat{n < m}
{ "checked_file": "Lib.NatMod.fsti.checked", "dependencies": [ "prims.fst.checked", "Lib.Exponentiation.Definition.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Math.Fermat.fsti.checked", "FStar.Math.Euclid.fsti.checked" ...
[ "total" ]
[ "Prims.pos", "Prims.nat", "Prims.b2t", "Prims.op_LessThan" ]
[]
module Lib.NatMod open FStar.Mul module Fermat = FStar.Math.Fermat module Euclid = FStar.Math.Euclid module LE = Lib.Exponentiation.Definition #set-options "--z3rlimit 10 --fuel 0 --ifuel 0" let mk_nat_comm_monoid : LE.comm_monoid int = { LE.one = 1; LE.mul = FStar.Mul.op_Star; LE.lemma_one = Math.Lemmas.mul...
false
true
Lib.NatMod.fsti
{ "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...
null
val nat_mod : m: Prims.pos -> Type0
[]
Lib.NatMod.nat_mod
{ "file_name": "lib/Lib.NatMod.fsti", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
m: Prims.pos -> Type0
{ "end_col": 34, "end_line": 51, "start_col": 22, "start_line": 51 }
Prims.Tot
val mk_nat_mod_comm_monoid (m: pos) : LE.comm_monoid (nat_mod m)
[ { "abbrev": true, "full_module": "Lib.Exponentiation.Definition", "short_module": "LE" }, { "abbrev": true, "full_module": "FStar.Math.Euclid", "short_module": "Euclid" }, { "abbrev": true, "full_module": "FStar.Math.Fermat", "short_module": "Fermat" }, { "abbrev"...
false
let mk_nat_mod_comm_monoid (m:pos) : LE.comm_monoid (nat_mod m) = { LE.one = one_mod; LE.mul = mul_mod; LE.lemma_one = lemma_mul_mod_one; LE.lemma_mul_assoc = lemma_mul_mod_assoc; LE.lemma_mul_comm = lemma_mul_mod_comm; }
val mk_nat_mod_comm_monoid (m: pos) : LE.comm_monoid (nat_mod m) let mk_nat_mod_comm_monoid (m: pos) : LE.comm_monoid (nat_mod m) =
false
null
false
{ LE.one = one_mod; LE.mul = mul_mod; LE.lemma_one = lemma_mul_mod_one; LE.lemma_mul_assoc = lemma_mul_mod_assoc; LE.lemma_mul_comm = lemma_mul_mod_comm }
{ "checked_file": "Lib.NatMod.fsti.checked", "dependencies": [ "prims.fst.checked", "Lib.Exponentiation.Definition.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Math.Fermat.fsti.checked", "FStar.Math.Euclid.fsti.checked" ...
[ "total" ]
[ "Prims.pos", "Lib.Exponentiation.Definition.Mkcomm_monoid", "Lib.NatMod.nat_mod", "Lib.NatMod.one_mod", "Lib.NatMod.mul_mod", "Lib.NatMod.lemma_mul_mod_one", "Lib.NatMod.lemma_mul_mod_assoc", "Lib.NatMod.lemma_mul_mod_comm", "Lib.Exponentiation.Definition.comm_monoid" ]
[]
module Lib.NatMod open FStar.Mul module Fermat = FStar.Math.Fermat module Euclid = FStar.Math.Euclid module LE = Lib.Exponentiation.Definition #set-options "--z3rlimit 10 --fuel 0 --ifuel 0" let mk_nat_comm_monoid : LE.comm_monoid int = { LE.one = 1; LE.mul = FStar.Mul.op_Star; LE.lemma_one = Math.Lemmas.mul...
false
false
Lib.NatMod.fsti
{ "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...
null
val mk_nat_mod_comm_monoid (m: pos) : LE.comm_monoid (nat_mod m)
[]
Lib.NatMod.mk_nat_mod_comm_monoid
{ "file_name": "lib/Lib.NatMod.fsti", "git_rev": "12c5e9539c7e3c366c26409d3b86493548c4483e", "git_url": "https://github.com/hacl-star/hacl-star.git", "project_name": "hacl-star" }
m: Prims.pos -> Lib.Exponentiation.Definition.comm_monoid (Lib.NatMod.nat_mod m)
{ "end_col": 41, "end_line": 71, "start_col": 2, "start_line": 67 }