file_name
stringlengths
5
52
name
stringlengths
4
95
original_source_type
stringlengths
0
23k
source_type
stringlengths
9
23k
source_definition
stringlengths
9
57.9k
source
dict
source_range
dict
file_context
stringlengths
0
721k
dependencies
dict
opens_and_abbrevs
listlengths
2
94
vconfig
dict
interleaved
bool
1 class
verbose_type
stringlengths
1
7.42k
effect
stringclasses
118 values
effect_flags
listlengths
0
2
mutual_with
listlengths
0
11
ideal_premises
listlengths
0
236
proof_features
listlengths
0
1
is_simple_lemma
bool
2 classes
is_div
bool
2 classes
is_proof
bool
2 classes
is_simply_typed
bool
2 classes
is_type
bool
2 classes
partial_definition
stringlengths
5
3.99k
completed_definiton
stringlengths
1
1.63M
isa_cross_project_example
bool
1 class
DoublyLinkedList.fst
DoublyLinkedList.piece_remains_valid_f
val piece_remains_valid_f (#t: Type) (h0 h1: heap) (p: piece t) : Lemma (requires ((piece_valid h0 p) /\ (Mod.modifies (Mod.loc_buffer p.ptail) h0 h1) /\ (h1 `contains` p.ptail) /\ (p.ptail @ h0).blink == (p.ptail @ h1).blink)) (ensures (piece_valid h1 p) /\ (p.phead @ h0).blink == (p....
val piece_remains_valid_f (#t: Type) (h0 h1: heap) (p: piece t) : Lemma (requires ((piece_valid h0 p) /\ (Mod.modifies (Mod.loc_buffer p.ptail) h0 h1) /\ (h1 `contains` p.ptail) /\ (p.ptail @ h0).blink == (p.ptail @ h1).blink)) (ensures (piece_valid h1 p) /\ (p.phead @ h0).blink == (p....
let piece_remains_valid_f (#t:Type) (h0 h1:heap) (p:piece t) : Lemma (requires ( (piece_valid h0 p) /\ (Mod.modifies (Mod.loc_buffer p.ptail) h0 h1) /\ (h1 `contains` p.ptail) /\ (p.ptail@h0).blink == (p.ptail@h1).blink)) (ensures (piece_valid h1 p) /\ (p.phead@h0).blink == (p....
{ "file_name": "examples/doublylinkedlist/DoublyLinkedList.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 11, "end_line": 1358, "start_col": 0, "start_line": 1313 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.ModifiesPat.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.c...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_modul...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h0: DoublyLinkedList.heap -> h1: DoublyLinkedList.heap -> p: DoublyLinkedList.piece t -> FStar.Pervasives.Lemma (requires DoublyLinkedList.piece_valid h0 p /\ LowStar.Monotonic.Buffer.modifies (LowStar.Monotonic.Buffer.loc_buffer (Mkpiece?.ptail p)) h0 h1 /\ DoublyLinkedList....
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "DoublyLinkedList.heap", "DoublyLinkedList.piece", "Prims.op_GreaterThan", "FStar.List.Tot.Base.length", "LowStar.Buffer.pointer", "DoublyLinkedList.node", "Prims.unit", "DoublyLinkedList.nodelist_append_conn", "FStar.Pervasives.Native.fst", "Prims.list", "FStar.List.Tot.Base.unsnoc", "Prims.C...
[]
false
false
true
false
false
let piece_remains_valid_f (#t: Type) (h0 h1: heap) (p: piece t) : Lemma (requires ((piece_valid h0 p) /\ (Mod.modifies (Mod.loc_buffer p.ptail) h0 h1) /\ (h1 `contains` p.ptail) /\ (p.ptail @ h0).blink == (p.ptail @ h1).blink)) (ensures (piece_valid h1 p) /\ (p.phead @ h0).blink == (p....
let nodes = reveal p.pnodes in if length nodes > 1 then (fst_unsnoc_nodelist_valid h0 nodes; lemma_unsnoc_is_last nodes; nodelist_remains_valid h0 h1 (Mod.loc_buffer p.ptail) (fst (unsnoc nodes)); nodelist_append_contained h1 (fst (unsnoc nodes)) [snd (unsnoc nodes)]; extract_nodelist_conn h0 nodes (l...
false
Hacl.Spec.Bignum.Definitions.fst
Hacl.Spec.Bignum.Definitions.blocks0
val blocks0: x:size_nat -> m:size_pos -> Tot (r:size_pos{x <= m * r})
val blocks0: x:size_nat -> m:size_pos -> Tot (r:size_pos{x <= m * r})
let blocks0 x m = if x = 0 then 1 else (x - 1) / m + 1
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 54, "end_line": 14, "start_col": 0, "start_line": 14 }
module Hacl.Spec.Bignum.Definitions open FStar.Mul open Lib.IntTypes open Lib.Sequence #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val blocks: x:size_pos -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let blocks x m = (x - 1) / m + 1
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Calc....
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Hacl.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Lib.IntTypes.size_nat -> m: Lib.IntTypes.size_pos -> r: Lib.IntTypes.size_pos{x <= m * r}
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Lib.IntTypes.size_pos", "Prims.op_Equality", "Prims.int", "Prims.bool", "Prims.op_Addition", "Prims.op_Division", "Prims.op_Subtraction", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star" ]
[]
false
false
false
false
false
let blocks0 x m =
if x = 0 then 1 else (x - 1) / m + 1
false
Hacl.Spec.Bignum.Exponentiation.fst
Hacl.Spec.Bignum.Exponentiation.mk_bn_mod_exp
val mk_bn_mod_exp: #t:limb_t -> len:BN.bn_len t -> bn_mod_exp_precomp:bn_mod_exp_precomp_st t len -> bn_mod_exp_st t len
val mk_bn_mod_exp: #t:limb_t -> len:BN.bn_len t -> bn_mod_exp_precomp:bn_mod_exp_precomp_st t len -> bn_mod_exp_st t len
let mk_bn_mod_exp #t len bn_mod_exp_precomp nBits n a bBits b = let r2, mu = BM.bn_mont_precomp nBits n in bn_mod_exp_precomp n mu r2 a bBits b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 146, "start_col": 0, "start_line": 144 }
module Hacl.Spec.Bignum.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions module LE = Lib.Exponentiation module SE = Spec.Exponentiation module E = Hacl.Spec.Exponentiation.Lemmas module M = Hacl.Spec.Montgomery.Lemmas module BN = Hacl.Spec.Bignum module BM = Hacl...
{ "checked_file": "/", "dependencies": [ "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Exponentiati...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "AE" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.ModInvLimb", "short_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: Hacl.Spec.Bignum.bn_len t -> bn_mod_exp_precomp: Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_precomp_st t len -> Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_st t len
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_precomp_st", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.blocks0", "Lib.IntTypes.bits", "Hacl.Spec.Bignum.Definitions.limb", "FStar.Pervasi...
[]
false
false
false
false
false
let mk_bn_mod_exp #t len bn_mod_exp_precomp nBits n a bBits b =
let r2, mu = BM.bn_mont_precomp nBits n in bn_mod_exp_precomp n mu r2 a bBits b
false
Hacl.Spec.Bignum.Exponentiation.fst
Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_fw_precomp
val bn_mod_exp_fw_precomp: #t:limb_t -> len:BN.bn_len t -> l:size_pos{l < bits t /\ pow2 l * len <= max_size_t} -> bn_mod_exp_precomp_st t len
val bn_mod_exp_fw_precomp: #t:limb_t -> len:BN.bn_len t -> l:size_pos{l < bits t /\ pow2 l * len <= max_size_t} -> bn_mod_exp_precomp_st t len
let bn_mod_exp_fw_precomp #t len l n mu r2 a bBits b = //mk_bn_mod_exp_precomp_mont #t len (ME.bn_exp_mont_fw l) n mu r2 a bBits b mk_bn_mod_exp_precomp_amont #t len (AE.bn_exp_almost_mont_fw l) n mu r2 a bBits b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 83, "end_line": 103, "start_col": 0, "start_line": 101 }
module Hacl.Spec.Bignum.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions module LE = Lib.Exponentiation module SE = Spec.Exponentiation module E = Hacl.Spec.Exponentiation.Lemmas module M = Hacl.Spec.Montgomery.Lemmas module BN = Hacl.Spec.Bignum module BM = Hacl...
{ "checked_file": "/", "dependencies": [ "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Exponentiati...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "AE" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.ModInvLimb", "short_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: Hacl.Spec.Bignum.bn_len t -> l: Lib.IntTypes.size_pos {l < Lib.IntTypes.bits t /\ Prims.pow2 l * len <= Lib.IntTypes.max_size_t} -> Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_precomp_st t len
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Lib.IntTypes.size_pos", "Prims.l_and", "Prims.b2t", "Prims.op_LessThan", "Lib.IntTypes.bits", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Prims.pow2", "Lib.IntTypes.max_size_t", "Hacl.Spec.Bignum.Definitions.lbignum", "...
[]
false
false
false
false
false
let bn_mod_exp_fw_precomp #t len l n mu r2 a bBits b =
mk_bn_mod_exp_precomp_amont #t len (AE.bn_exp_almost_mont_fw l) n mu r2 a bBits b
false
Hacl.Spec.Bignum.Definitions.fst
Hacl.Spec.Bignum.Definitions.bn_v
val bn_v : s: Hacl.Spec.Bignum.Definitions.lbignum t len -> Prims.nat
let bn_v (#t:limb_t) (#len:size_nat) (s:lbignum t len) = eval_ #t len s len
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 75, "end_line": 28, "start_col": 0, "start_line": 28 }
module Hacl.Spec.Bignum.Definitions open FStar.Mul open Lib.IntTypes open Lib.Sequence #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val blocks: x:size_pos -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let blocks x m = (x - 1) / m + 1 val blocks0: x:size_nat -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let bloc...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Calc....
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Hacl.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Hacl.Spec.Bignum.Definitions.lbignum t len -> Prims.nat
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.eval_", "Prims.nat" ]
[]
false
false
false
false
false
let bn_v (#t: limb_t) (#len: size_nat) (s: lbignum t len) =
eval_ #t len s len
false
Hacl.Spec.Bignum.Definitions.fst
Hacl.Spec.Bignum.Definitions.eval_
val eval_: #t:limb_t -> len:size_nat -> s:lbignum t len -> i:nat{i <= len} -> nat
val eval_: #t:limb_t -> len:size_nat -> s:lbignum t len -> i:nat{i <= len} -> nat
let rec eval_ #t len s i = if i = 0 then 0 else eval_ #t len s (i - 1) + v s.[i - 1] * pow2 (bits t * (i - 1))
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 69, "end_line": 26, "start_col": 0, "start_line": 24 }
module Hacl.Spec.Bignum.Definitions open FStar.Mul open Lib.IntTypes open Lib.Sequence #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val blocks: x:size_pos -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let blocks x m = (x - 1) / m + 1 val blocks0: x:size_nat -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let bloc...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Calc....
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Hacl.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: Lib.IntTypes.size_nat -> s: Hacl.Spec.Bignum.Definitions.lbignum t len -> i: Prims.nat{i <= len} -> Prims.nat
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Equality", "Prims.int", "Prims.bool", "Prims.op_Addition", "Hacl.Spec.Bignum.Definitions.eval_", "Prims.op_Subtraction", "FS...
[ "recursion" ]
false
false
false
false
false
let rec eval_ #t len s i =
if i = 0 then 0 else eval_ #t len s (i - 1) + v s.[ i - 1 ] * pow2 (bits t * (i - 1))
false
Hacl.Spec.Bignum.Exponentiation.fst
Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_consttime_precompr2
val bn_mod_exp_consttime_precompr2: #t:limb_t -> len:BN.bn_len t -> bn_mod_exp_precompr2_st t len
val bn_mod_exp_consttime_precompr2: #t:limb_t -> len:BN.bn_len t -> bn_mod_exp_precompr2_st t len
let bn_mod_exp_consttime_precompr2 #t len n r2 a bBits b = mk_bn_mod_exp_precompr2 #t len (bn_mod_exp_consttime_precomp len) n r2 a bBits b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 82, "end_line": 135, "start_col": 0, "start_line": 134 }
module Hacl.Spec.Bignum.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions module LE = Lib.Exponentiation module SE = Spec.Exponentiation module E = Hacl.Spec.Exponentiation.Lemmas module M = Hacl.Spec.Montgomery.Lemmas module BN = Hacl.Spec.Bignum module BM = Hacl...
{ "checked_file": "/", "dependencies": [ "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Exponentiati...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "AE" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.ModInvLimb", "short_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: Hacl.Spec.Bignum.bn_len t -> Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_precompr2_st t len
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Hacl.Spec.Bignum.Definitions.lbignum", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.blocks0", "Lib.IntTypes.bits", "Hacl.Spec.Bignum.Exponentiation.mk_bn_mod_exp_precompr2", "Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_constti...
[]
false
false
false
false
false
let bn_mod_exp_consttime_precompr2 #t len n r2 a bBits b =
mk_bn_mod_exp_precompr2 #t len (bn_mod_exp_consttime_precomp len) n r2 a bBits b
false
Hacl.Spec.Bignum.Exponentiation.fst
Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_consttime
val bn_mod_exp_consttime: #t:limb_t -> len:BN.bn_len t -> bn_mod_exp_st t len
val bn_mod_exp_consttime: #t:limb_t -> len:BN.bn_len t -> bn_mod_exp_st t len
let bn_mod_exp_consttime #t len nBits n a bBits b = mk_bn_mod_exp len (bn_mod_exp_consttime_precomp len) nBits n a bBits b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 72, "end_line": 153, "start_col": 0, "start_line": 152 }
module Hacl.Spec.Bignum.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions module LE = Lib.Exponentiation module SE = Spec.Exponentiation module E = Hacl.Spec.Exponentiation.Lemmas module M = Hacl.Spec.Montgomery.Lemmas module BN = Hacl.Spec.Bignum module BM = Hacl...
{ "checked_file": "/", "dependencies": [ "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Exponentiati...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "AE" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.ModInvLimb", "short_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: Hacl.Spec.Bignum.bn_len t -> Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_st t len
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.blocks0", "Lib.IntTypes.bits", "Hacl.Spec.Bignum.Exponentiation.mk_bn_mod_exp", "Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_consttime_precomp...
[]
false
false
false
false
false
let bn_mod_exp_consttime #t len nBits n a bBits b =
mk_bn_mod_exp len (bn_mod_exp_consttime_precomp len) nBits n a bBits b
false
Hacl.Spec.Bignum.Exponentiation.fst
Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_vartime_precomp
val bn_mod_exp_vartime_precomp: #t:limb_t -> len:BN.bn_len t -> bn_mod_exp_precomp_st t len
val bn_mod_exp_vartime_precomp: #t:limb_t -> len:BN.bn_len t -> bn_mod_exp_precomp_st t len
let bn_mod_exp_vartime_precomp #t len n mu r2 a bBits b = if bBits < ME.bn_exp_mont_vartime_threshold then bn_mod_exp_rl_precomp #t len n mu r2 a bBits b else bn_mod_exp_fw_precomp #t len 4 n mu r2 a bBits b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 52, "end_line": 110, "start_col": 0, "start_line": 106 }
module Hacl.Spec.Bignum.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions module LE = Lib.Exponentiation module SE = Spec.Exponentiation module E = Hacl.Spec.Exponentiation.Lemmas module M = Hacl.Spec.Montgomery.Lemmas module BN = Hacl.Spec.Bignum module BM = Hacl...
{ "checked_file": "/", "dependencies": [ "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Exponentiati...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "AE" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.ModInvLimb", "short_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: Hacl.Spec.Bignum.bn_len t -> Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_precomp_st t len
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.limb", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.blocks0", "Lib.IntTypes.bits", "Prims.op_LessThan", "Hacl.Spec.Bignum.MontExponentiation.bn_exp_mont_v...
[]
false
false
false
false
false
let bn_mod_exp_vartime_precomp #t len n mu r2 a bBits b =
if bBits < ME.bn_exp_mont_vartime_threshold then bn_mod_exp_rl_precomp #t len n mu r2 a bBits b else bn_mod_exp_fw_precomp #t len 4 n mu r2 a bBits b
false
EverCrypt.Ed25519.fst
EverCrypt.Ed25519.verify
val verify: public_key:lbuffer uint8 32ul -> msg_len:size_t -> msg:lbuffer uint8 msg_len -> signature:lbuffer uint8 64ul -> Stack bool (requires fun h -> live h public_key /\ live h msg /\ live h signature) (ensures fun h0 b h1 -> modifies0 h0 h1 /\ b == Spec.Ed25519.verify (as_seq h0 public_...
val verify: public_key:lbuffer uint8 32ul -> msg_len:size_t -> msg:lbuffer uint8 msg_len -> signature:lbuffer uint8 64ul -> Stack bool (requires fun h -> live h public_key /\ live h msg /\ live h signature) (ensures fun h0 b h1 -> modifies0 h0 h1 /\ b == Spec.Ed25519.verify (as_seq h0 public_...
let verify public_key msg_len msg signature = Hacl.Ed25519.verify public_key msg_len msg signature
{ "file_name": "providers/evercrypt/fst/EverCrypt.Ed25519.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 54, "end_line": 18, "start_col": 0, "start_line": 17 }
module EverCrypt.Ed25519 /// For now, only one implementation... to be improved in the future. let secret_to_public public_key private_key = Hacl.Ed25519.secret_to_public public_key private_key let expand_keys expanded_keys private_key = Hacl.Ed25519.expand_keys expanded_keys private_key let sign_expanded signa...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Ed25519.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "EverCrypt.Ed25519.fst" }
[ { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.All", "short_module": null }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
public_key: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> msg_len: Lib.IntTypes.size_t -> msg: Lib.Buffer.lbuffer Lib.IntTypes.uint8 msg_len -> signature: Lib.Buffer.lbuffer Lib.IntTypes.uint8 64ul -> FStar.HyperStack.ST.Stack Prims.bool
FStar.HyperStack.ST.Stack
[]
[]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.size_t", "Hacl.Ed25519.verify", "Prims.bool" ]
[]
false
true
false
false
false
let verify public_key msg_len msg signature =
Hacl.Ed25519.verify public_key msg_len msg signature
false
Hacl.Spec.Bignum.Exponentiation.fst
Hacl.Spec.Bignum.Exponentiation.mk_bn_mod_exp_precompr2
val mk_bn_mod_exp_precompr2: #t:limb_t -> len:BN.bn_len t -> bn_exp_precomp:bn_mod_exp_precomp_st t len -> bn_mod_exp_precompr2_st t len
val mk_bn_mod_exp_precompr2: #t:limb_t -> len:BN.bn_len t -> bn_exp_precomp:bn_mod_exp_precomp_st t len -> bn_mod_exp_precompr2_st t len
let mk_bn_mod_exp_precompr2 #t len bn_exp_precomp n r2 a bBits b = let mu = BI.mod_inv_limb n.[0] in BI.bn_mod_inv_limb_lemma n; bn_exp_precomp n mu r2 a bBits b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 34, "end_line": 128, "start_col": 0, "start_line": 125 }
module Hacl.Spec.Bignum.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions module LE = Lib.Exponentiation module SE = Spec.Exponentiation module E = Hacl.Spec.Exponentiation.Lemmas module M = Hacl.Spec.Montgomery.Lemmas module BN = Hacl.Spec.Bignum module BM = Hacl...
{ "checked_file": "/", "dependencies": [ "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Exponentiati...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "AE" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.ModInvLimb", "short_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: Hacl.Spec.Bignum.bn_len t -> bn_exp_precomp: Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_precomp_st t len -> Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_precompr2_st t len
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_precomp_st", "Hacl.Spec.Bignum.Definitions.lbignum", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.blocks0", "Lib.IntTypes.bits", "Prims.unit", "Hacl.Spec.Bignum.ModInvLimb.bn_mod_i...
[]
false
false
false
false
false
let mk_bn_mod_exp_precompr2 #t len bn_exp_precomp n r2 a bBits b =
let mu = BI.mod_inv_limb n.[ 0 ] in BI.bn_mod_inv_limb_lemma n; bn_exp_precomp n mu r2 a bBits b
false
Hacl.Spec.Bignum.Definitions.fst
Hacl.Spec.Bignum.Definitions.limb
val limb : t: Hacl.Spec.Bignum.Definitions.limb_t -> Type0
let limb (t:limb_t) = uint_t t SEC
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 34, "end_line": 20, "start_col": 0, "start_line": 20 }
module Hacl.Spec.Bignum.Definitions open FStar.Mul open Lib.IntTypes open Lib.Sequence #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val blocks: x:size_pos -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let blocks x m = (x - 1) / m + 1 val blocks0: x:size_nat -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let bloc...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Calc....
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Hacl.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Hacl.Spec.Bignum.Definitions.limb_t -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.uint_t", "Lib.IntTypes.SEC" ]
[]
false
false
false
true
true
let limb (t: limb_t) =
uint_t t SEC
false
Hacl.Spec.Bignum.Exponentiation.fst
Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_vartime
val bn_mod_exp_vartime: #t:limb_t -> len:BN.bn_len t -> bn_mod_exp_st t len
val bn_mod_exp_vartime: #t:limb_t -> len:BN.bn_len t -> bn_mod_exp_st t len
let bn_mod_exp_vartime #t len nBits n a bBits b = mk_bn_mod_exp len (bn_mod_exp_vartime_precomp len) nBits n a bBits b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 70, "end_line": 150, "start_col": 0, "start_line": 149 }
module Hacl.Spec.Bignum.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions module LE = Lib.Exponentiation module SE = Spec.Exponentiation module E = Hacl.Spec.Exponentiation.Lemmas module M = Hacl.Spec.Montgomery.Lemmas module BN = Hacl.Spec.Bignum module BM = Hacl...
{ "checked_file": "/", "dependencies": [ "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Exponentiati...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "AE" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.ModInvLimb", "short_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: Hacl.Spec.Bignum.bn_len t -> Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_st t len
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.blocks0", "Lib.IntTypes.bits", "Hacl.Spec.Bignum.Exponentiation.mk_bn_mod_exp", "Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_vartime_precomp" ...
[]
false
false
false
false
false
let bn_mod_exp_vartime #t len nBits n a bBits b =
mk_bn_mod_exp len (bn_mod_exp_vartime_precomp len) nBits n a bBits b
false
Hacl.Spec.Bignum.Exponentiation.fst
Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_rl_precomp
val bn_mod_exp_rl_precomp: #t:limb_t -> len:BN.bn_len t -> bn_mod_exp_precomp_st t len
val bn_mod_exp_rl_precomp: #t:limb_t -> len:BN.bn_len t -> bn_mod_exp_precomp_st t len
let bn_mod_exp_rl_precomp #t len n mu r2 a bBits b = //mk_bn_mod_exp_precomp_mont #t len ME.bn_exp_mont_bm_vartime n mu r2 a bBits b mk_bn_mod_exp_precomp_amont #t len AE.bn_exp_almost_mont_bm_vartime n mu r2 a bBits b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 87, "end_line": 95, "start_col": 0, "start_line": 93 }
module Hacl.Spec.Bignum.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions module LE = Lib.Exponentiation module SE = Spec.Exponentiation module E = Hacl.Spec.Exponentiation.Lemmas module M = Hacl.Spec.Montgomery.Lemmas module BN = Hacl.Spec.Bignum module BM = Hacl...
{ "checked_file": "/", "dependencies": [ "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Exponentiati...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "AE" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.ModInvLimb", "short_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: Hacl.Spec.Bignum.bn_len t -> Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_precomp_st t len
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.limb", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.blocks0", "Lib.IntTypes.bits", "Hacl.Spec.Bignum.Exponentiation.mk_bn_mod_exp_precomp_amont", "Hacl.Sp...
[]
false
false
false
false
false
let bn_mod_exp_rl_precomp #t len n mu r2 a bBits b =
mk_bn_mod_exp_precomp_amont #t len AE.bn_exp_almost_mont_bm_vartime n mu r2 a bBits b
false
EverCrypt.Ed25519.fst
EverCrypt.Ed25519.sign
val sign: signature:lbuffer uint8 64ul -> private_key:lbuffer uint8 32ul -> msg_len:size_t -> msg:lbuffer uint8 msg_len -> Stack unit (requires fun h -> live h signature /\ live h msg /\ live h private_key /\ disjoint signature msg /\ disjoint signature private_key) (ensures fun h0 _ h1...
val sign: signature:lbuffer uint8 64ul -> private_key:lbuffer uint8 32ul -> msg_len:size_t -> msg:lbuffer uint8 msg_len -> Stack unit (requires fun h -> live h signature /\ live h msg /\ live h private_key /\ disjoint signature msg /\ disjoint signature private_key) (ensures fun h0 _ h1...
let sign signature private_key msg_len msg = Hacl.Ed25519.sign signature private_key msg_len msg
{ "file_name": "providers/evercrypt/fst/EverCrypt.Ed25519.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 53, "end_line": 15, "start_col": 0, "start_line": 14 }
module EverCrypt.Ed25519 /// For now, only one implementation... to be improved in the future. let secret_to_public public_key private_key = Hacl.Ed25519.secret_to_public public_key private_key let expand_keys expanded_keys private_key = Hacl.Ed25519.expand_keys expanded_keys private_key let sign_expanded signa...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Ed25519.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "EverCrypt.Ed25519.fst" }
[ { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.All", "short_module": null }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
signature: Lib.Buffer.lbuffer Lib.IntTypes.uint8 64ul -> private_key: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> msg_len: Lib.IntTypes.size_t -> msg: Lib.Buffer.lbuffer Lib.IntTypes.uint8 msg_len -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.size_t", "Hacl.Ed25519.sign", "Prims.unit" ]
[]
false
true
false
false
false
let sign signature private_key msg_len msg =
Hacl.Ed25519.sign signature private_key msg_len msg
false
Hacl.Spec.Bignum.Exponentiation.fst
Hacl.Spec.Bignum.Exponentiation.mk_bn_mod_exp_precomp_mont
val mk_bn_mod_exp_precomp_mont: #t:limb_t -> len:BN.bn_len t -> bn_exp_mont:ME.bn_exp_mont_st t len -> bn_mod_exp_precomp_st t len
val mk_bn_mod_exp_precomp_mont: #t:limb_t -> len:BN.bn_len t -> bn_exp_mont:ME.bn_exp_mont_st t len -> bn_mod_exp_precomp_st t len
let mk_bn_mod_exp_precomp_mont #t len bn_exp_mont n mu r2 a bBits b = bn_eval_bound n len; let aM = BM.bn_to_mont n mu r2 a in BM.bn_to_mont_lemma n mu r2 a; let accM = bn_exp_mont n mu aM bBits b in let acc = BM.bn_from_mont n mu accM in BM.bn_from_mont_lemma n mu accM; E.mod_exp_mont_ll_lemma (bits t...
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 67, "start_col": 0, "start_line": 55 }
module Hacl.Spec.Bignum.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions module LE = Lib.Exponentiation module SE = Spec.Exponentiation module E = Hacl.Spec.Exponentiation.Lemmas module M = Hacl.Spec.Montgomery.Lemmas module BN = Hacl.Spec.Bignum module BM = Hacl...
{ "checked_file": "/", "dependencies": [ "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Exponentiati...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "AE" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.ModInvLimb", "short_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: Hacl.Spec.Bignum.bn_len t -> bn_exp_mont: Hacl.Spec.Bignum.MontExponentiation.bn_exp_mont_st t len -> Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_precomp_st t len
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Hacl.Spec.Bignum.MontExponentiation.bn_exp_mont_st", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.limb", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.blocks0", "Lib.IntTypes.bits", "Prims.unit", "...
[]
false
false
false
false
false
let mk_bn_mod_exp_precomp_mont #t len bn_exp_mont n mu r2 a bBits b =
bn_eval_bound n len; let aM = BM.bn_to_mont n mu r2 a in BM.bn_to_mont_lemma n mu r2 a; let accM = bn_exp_mont n mu aM bBits b in let acc = BM.bn_from_mont n mu accM in BM.bn_from_mont_lemma n mu accM; E.mod_exp_mont_ll_lemma (bits t) len (bn_v n) (v mu) (bn_v a) (bn_v b); assert (bn_v acc == Lib.NatMod.pow_mod #(bn_v ...
false
Hacl.Spec.Bignum.Exponentiation.fst
Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_consttime_precomp
val bn_mod_exp_consttime_precomp: #t:limb_t -> len:BN.bn_len t -> bn_mod_exp_precomp_st t len
val bn_mod_exp_consttime_precomp: #t:limb_t -> len:BN.bn_len t -> bn_mod_exp_precomp_st t len
let bn_mod_exp_consttime_precomp #t len n mu r2 a bBits b = if bBits < ME.bn_exp_mont_consttime_threshold then bn_mod_exp_mont_ladder_swap_precomp #t len n mu r2 a bBits b else bn_mod_exp_fw_precomp #t len 4 n mu r2 a bBits b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 52, "end_line": 116, "start_col": 0, "start_line": 112 }
module Hacl.Spec.Bignum.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions module LE = Lib.Exponentiation module SE = Spec.Exponentiation module E = Hacl.Spec.Exponentiation.Lemmas module M = Hacl.Spec.Montgomery.Lemmas module BN = Hacl.Spec.Bignum module BM = Hacl...
{ "checked_file": "/", "dependencies": [ "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Exponentiati...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "AE" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.ModInvLimb", "short_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: Hacl.Spec.Bignum.bn_len t -> Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_precomp_st t len
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.limb", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.blocks0", "Lib.IntTypes.bits", "Prims.op_LessThan", "Hacl.Spec.Bignum.MontExponentiation.bn_exp_mont_c...
[]
false
false
false
false
false
let bn_mod_exp_consttime_precomp #t len n mu r2 a bBits b =
if bBits < ME.bn_exp_mont_consttime_threshold then bn_mod_exp_mont_ladder_swap_precomp #t len n mu r2 a bBits b else bn_mod_exp_fw_precomp #t len 4 n mu r2 a bBits b
false
EverCrypt.Ed25519.fst
EverCrypt.Ed25519.secret_to_public
val secret_to_public: public_key:lbuffer uint8 32ul -> private_key:lbuffer uint8 32ul -> Stack unit (requires fun h -> live h public_key /\ live h private_key /\ disjoint public_key private_key) (ensures fun h0 _ h1 -> modifies (loc public_key) h0 h1 /\ as_seq h1 public_key == Spec.Ed25519....
val secret_to_public: public_key:lbuffer uint8 32ul -> private_key:lbuffer uint8 32ul -> Stack unit (requires fun h -> live h public_key /\ live h private_key /\ disjoint public_key private_key) (ensures fun h0 _ h1 -> modifies (loc public_key) h0 h1 /\ as_seq h1 public_key == Spec.Ed25519....
let secret_to_public public_key private_key = Hacl.Ed25519.secret_to_public public_key private_key
{ "file_name": "providers/evercrypt/fst/EverCrypt.Ed25519.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 54, "end_line": 6, "start_col": 0, "start_line": 5 }
module EverCrypt.Ed25519 /// For now, only one implementation... to be improved in the future.
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Ed25519.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "EverCrypt.Ed25519.fst" }
[ { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.All", "short_module": null }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
public_key: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> private_key: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Hacl.Ed25519.secret_to_public", "Prims.unit" ]
[]
false
true
false
false
false
let secret_to_public public_key private_key =
Hacl.Ed25519.secret_to_public public_key private_key
false
Hacl.Spec.Bignum.Exponentiation.fst
Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_vartime_precompr2
val bn_mod_exp_vartime_precompr2: #t:limb_t -> len:BN.bn_len t -> bn_mod_exp_precompr2_st t len
val bn_mod_exp_vartime_precompr2: #t:limb_t -> len:BN.bn_len t -> bn_mod_exp_precompr2_st t len
let bn_mod_exp_vartime_precompr2 #t len n r2 a bBits b = mk_bn_mod_exp_precompr2 #t len (bn_mod_exp_vartime_precomp len) n r2 a bBits b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 80, "end_line": 132, "start_col": 0, "start_line": 131 }
module Hacl.Spec.Bignum.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions module LE = Lib.Exponentiation module SE = Spec.Exponentiation module E = Hacl.Spec.Exponentiation.Lemmas module M = Hacl.Spec.Montgomery.Lemmas module BN = Hacl.Spec.Bignum module BM = Hacl...
{ "checked_file": "/", "dependencies": [ "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Exponentiati...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "AE" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.ModInvLimb", "short_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: Hacl.Spec.Bignum.bn_len t -> Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_precompr2_st t len
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Hacl.Spec.Bignum.Definitions.lbignum", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.blocks0", "Lib.IntTypes.bits", "Hacl.Spec.Bignum.Exponentiation.mk_bn_mod_exp_precompr2", "Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_vartime...
[]
false
false
false
false
false
let bn_mod_exp_vartime_precompr2 #t len n r2 a bBits b =
mk_bn_mod_exp_precompr2 #t len (bn_mod_exp_vartime_precomp len) n r2 a bBits b
false
Hacl.Spec.Bignum.Exponentiation.fst
Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_mont_ladder_swap_precomp
val bn_mod_exp_mont_ladder_swap_precomp: #t:limb_t -> len:BN.bn_len t -> bn_mod_exp_precomp_st t len
val bn_mod_exp_mont_ladder_swap_precomp: #t:limb_t -> len:BN.bn_len t -> bn_mod_exp_precomp_st t len
let bn_mod_exp_mont_ladder_swap_precomp #t len n mu r2 a bBits b = //mk_bn_mod_exp_precomp_mont #t len ME.bn_exp_mont_bm_consttime n mu r2 a bBits b mk_bn_mod_exp_precomp_amont #t len AE.bn_exp_almost_mont_bm_consttime n mu r2 a bBits b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 89, "end_line": 99, "start_col": 0, "start_line": 97 }
module Hacl.Spec.Bignum.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions module LE = Lib.Exponentiation module SE = Spec.Exponentiation module E = Hacl.Spec.Exponentiation.Lemmas module M = Hacl.Spec.Montgomery.Lemmas module BN = Hacl.Spec.Bignum module BM = Hacl...
{ "checked_file": "/", "dependencies": [ "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Exponentiati...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "AE" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.ModInvLimb", "short_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: Hacl.Spec.Bignum.bn_len t -> Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_precomp_st t len
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.limb", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.blocks0", "Lib.IntTypes.bits", "Hacl.Spec.Bignum.Exponentiation.mk_bn_mod_exp_precomp_amont", "Hacl.Sp...
[]
false
false
false
false
false
let bn_mod_exp_mont_ladder_swap_precomp #t len n mu r2 a bBits b =
mk_bn_mod_exp_precomp_amont #t len AE.bn_exp_almost_mont_bm_consttime n mu r2 a bBits b
false
Hacl.Spec.Bignum.Exponentiation.fst
Hacl.Spec.Bignum.Exponentiation.mk_bn_mod_exp_precomp_amont
val mk_bn_mod_exp_precomp_amont: #t:limb_t -> len:BN.bn_len t -> bn_exp_almost_mont:AE.bn_exp_almost_mont_st t len -> bn_mod_exp_precomp_st t len
val mk_bn_mod_exp_precomp_amont: #t:limb_t -> len:BN.bn_len t -> bn_exp_almost_mont:AE.bn_exp_almost_mont_st t len -> bn_mod_exp_precomp_st t len
let mk_bn_mod_exp_precomp_amont #t len bn_exp_almost_mont n mu r2 a bBits b = bn_eval_bound n len; let aM = BM.bn_to_mont n mu r2 a in BM.bn_to_mont_lemma n mu r2 a; M.to_mont_lemma (bits t) len (bn_v n) (v mu) (bn_v a); let accM = bn_exp_almost_mont n mu aM bBits b in let acc = BM.bn_from_mont n mu accM ...
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 90, "start_col": 0, "start_line": 76 }
module Hacl.Spec.Bignum.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions module LE = Lib.Exponentiation module SE = Spec.Exponentiation module E = Hacl.Spec.Exponentiation.Lemmas module M = Hacl.Spec.Montgomery.Lemmas module BN = Hacl.Spec.Bignum module BM = Hacl...
{ "checked_file": "/", "dependencies": [ "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Exponentiati...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "AE" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.ModInvLimb", "short_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: Hacl.Spec.Bignum.bn_len t -> bn_exp_almost_mont: Hacl.Spec.Bignum.AlmostMontExponentiation.bn_exp_almost_mont_st t len -> Hacl.Spec.Bignum.Exponentiation.bn_mod_exp_precomp_st t len
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Hacl.Spec.Bignum.AlmostMontExponentiation.bn_exp_almost_mont_st", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.limb", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.blocks0", "Lib.IntTypes.bits", "Pri...
[]
false
false
false
false
false
let mk_bn_mod_exp_precomp_amont #t len bn_exp_almost_mont n mu r2 a bBits b =
bn_eval_bound n len; let aM = BM.bn_to_mont n mu r2 a in BM.bn_to_mont_lemma n mu r2 a; M.to_mont_lemma (bits t) len (bn_v n) (v mu) (bn_v a); let accM = bn_exp_almost_mont n mu aM bBits b in let acc = BM.bn_from_mont n mu accM in BM.bn_from_mont_lemma n mu accM; bn_eval_bound accM len; E.mod_exp_mont_ll_mod_lemma (bit...
false
Hacl.Spec.Bignum.Definitions.fst
Hacl.Spec.Bignum.Definitions.bn_eval_create1
val bn_eval_create1: #t:limb_t -> c:limb t -> Lemma (bn_v (create 1 c) == v c)
val bn_eval_create1: #t:limb_t -> c:limb t -> Lemma (bn_v (create 1 c) == v c)
let bn_eval_create1 #t c = bn_eval1 (create 1 c)
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 23, "end_line": 58, "start_col": 0, "start_line": 57 }
module Hacl.Spec.Bignum.Definitions open FStar.Mul open Lib.IntTypes open Lib.Sequence #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val blocks: x:size_pos -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let blocks x m = (x - 1) / m + 1 val blocks0: x:size_nat -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let bloc...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Calc....
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Hacl.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
c: Hacl.Spec.Bignum.Definitions.limb t -> FStar.Pervasives.Lemma (ensures Hacl.Spec.Bignum.Definitions.bn_v (Lib.Sequence.create 1 c) == Lib.IntTypes.v c)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.Definitions.limb", "Hacl.Spec.Bignum.Definitions.bn_eval1", "Lib.Sequence.create", "Prims.unit" ]
[]
true
false
true
false
false
let bn_eval_create1 #t c =
bn_eval1 (create 1 c)
false
Hacl.Spec.Bignum.Definitions.fst
Hacl.Spec.Bignum.Definitions.bn_eval_snoc
val bn_eval_snoc: #t:limb_t -> #len:size_nat{len + 1 <= max_size_t} -> b:lbignum t len -> e:limb t -> Lemma (bn_v #t #(len + 1) (Seq.snoc b e) == bn_v b + v e * pow2 (bits t * len))
val bn_eval_snoc: #t:limb_t -> #len:size_nat{len + 1 <= max_size_t} -> b:lbignum t len -> e:limb t -> Lemma (bn_v #t #(len + 1) (Seq.snoc b e) == bn_v b + v e * pow2 (bits t * len))
let bn_eval_snoc #t #len b e = let b1 = Seq.snoc b e in bn_eval_unfold_i #t #(len + 1) b1 (len + 1); bn_eval_extensionality_j #t #(len+1) #len b1 (slice #_ #(len+1) b1 0 len) len; eq_intro (sub #_ #(len + 1) b1 0 len) b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 41, "end_line": 99, "start_col": 0, "start_line": 95 }
module Hacl.Spec.Bignum.Definitions open FStar.Mul open Lib.IntTypes open Lib.Sequence #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val blocks: x:size_pos -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let blocks x m = (x - 1) / m + 1 val blocks0: x:size_nat -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let bloc...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Calc....
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Hacl.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Hacl.Spec.Bignum.Definitions.lbignum t len -> e: Hacl.Spec.Bignum.Definitions.limb t -> FStar.Pervasives.Lemma (ensures Hacl.Spec.Bignum.Definitions.bn_v (FStar.Seq.Properties.snoc b e) == Hacl.Spec.Bignum.Definitions.bn_v b + Lib.IntTypes.v e * Prims.pow2 (Lib.IntTypes.bits t * len))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Lib.IntTypes.max_size_t", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.limb", "Lib.Sequence.eq_intro", "Lib.Sequence.sub", "Prims.unit", "Hacl...
[]
true
false
true
false
false
let bn_eval_snoc #t #len b e =
let b1 = Seq.snoc b e in bn_eval_unfold_i #t #(len + 1) b1 (len + 1); bn_eval_extensionality_j #t #(len + 1) #len b1 (slice #_ #(len + 1) b1 0 len) len; eq_intro (sub #_ #(len + 1) b1 0 len) b
false
DoublyLinkedList.fst
DoublyLinkedList.dll_insert_at_tail
val dll_insert_at_tail (#t: Type) (d: dll t) (n: pointer (node t)) : StackInline (dll t) (requires (fun h0 -> (dll_valid h0 d) /\ (h0 `contains` n) /\ (node_not_in_dll h0 n d))) (ensures (fun h0 y h1 -> Mod.modifies (Mod.loc_union (Mod.loc_buffer n) (Mod.loc_buffer d.ltail)) h0 h1 /\...
val dll_insert_at_tail (#t: Type) (d: dll t) (n: pointer (node t)) : StackInline (dll t) (requires (fun h0 -> (dll_valid h0 d) /\ (h0 `contains` n) /\ (node_not_in_dll h0 n d))) (ensures (fun h0 y h1 -> Mod.modifies (Mod.loc_union (Mod.loc_buffer n) (Mod.loc_buffer d.ltail)) h0 h1 /\...
let dll_insert_at_tail (#t:Type) (d:dll t) (n:pointer (node t)) : StackInline (dll t) (requires (fun h0 -> (dll_valid h0 d) /\ (h0 `contains` n) /\ (node_not_in_dll h0 n d))) (ensures (fun h0 y h1 -> Mod.modifies (Mod.loc_union (Mod.loc_buffer n) ...
{ "file_name": "examples/doublylinkedlist/DoublyLinkedList.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 3, "end_line": 1541, "start_col": 0, "start_line": 1498 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.ModifiesPat.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.c...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_modul...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 2, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
d: DoublyLinkedList.dll t -> n: LowStar.Buffer.pointer (DoublyLinkedList.node t) -> FStar.HyperStack.ST.StackInline (DoublyLinkedList.dll t)
FStar.HyperStack.ST.StackInline
[]
[]
[ "DoublyLinkedList.dll", "LowStar.Buffer.pointer", "DoublyLinkedList.node", "DoublyLinkedList.singleton_dll", "Prims.bool", "DoublyLinkedList.piece", "Prims.unit", "DoublyLinkedList.aux_unchanged_payload_transitive", "FStar.Ghost.reveal", "DoublyLinkedList.nodelist", "DoublyLinkedList.__proj__Mkd...
[]
false
true
false
false
false
let dll_insert_at_tail (#t: Type) (d: dll t) (n: pointer (node t)) : StackInline (dll t) (requires (fun h0 -> (dll_valid h0 d) /\ (h0 `contains` n) /\ (node_not_in_dll h0 n d))) (ensures (fun h0 y h1 -> Mod.modifies (Mod.loc_union (Mod.loc_buffer n) (Mod.loc_buffer d.ltail)) h0 h1 /\...
if is_null d.lhead then (singleton_dll n) else (let t = d.ltail in let h0 = ST.get () in !=|>n; t <|= n; let h0' = ST.get () in lemma_dll_links_contained h0 d (length d.nodes - 1); lemma_unsnoc_is_last d.nodes; t =|> n; let h1 = ST.get () in let Frag1 p1 = tot_dll_to_fragment h0 d ...
false
Hacl.Spec.Bignum.Exponentiation.fst
Hacl.Spec.Bignum.Exponentiation.bn_check_mod_exp
val bn_check_mod_exp: #t:limb_t -> #len:BN.bn_len t -> n:lbignum t len -> a:lbignum t len -> bBits:size_nat -> b:lbignum t (blocks0 bBits (bits t)) -> res:limb t{ let b = bn_v n % 2 = 1 && 1 < bn_v n && bn_v b < pow2 bBits && bn_v a < bn_v n in v res == (if b then v (ones t SEC...
val bn_check_mod_exp: #t:limb_t -> #len:BN.bn_len t -> n:lbignum t len -> a:lbignum t len -> bBits:size_nat -> b:lbignum t (blocks0 bBits (bits t)) -> res:limb t{ let b = bn_v n % 2 = 1 && 1 < bn_v n && bn_v b < pow2 bBits && bn_v a < bn_v n in v res == (if b then v (ones t SEC...
let bn_check_mod_exp #t #len n a bBits b = let pbits = bits t in let m0 = BM.bn_check_modulus n in bn_eval_bound b (blocks0 bBits pbits); let m1 = if bBits < pbits * blocks0 bBits pbits then begin BN.bn_lt_pow2_mask_lemma b bBits; BN.bn_lt_pow2_mask b bBits end else begin Math.Lemmas....
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Exponentiation.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 46, "start_col": 0, "start_line": 24 }
module Hacl.Spec.Bignum.Exponentiation open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Definitions module LE = Lib.Exponentiation module SE = Spec.Exponentiation module E = Hacl.Spec.Exponentiation.Lemmas module M = Hacl.Spec.Montgomery.Lemmas module BN = Hacl.Spec.Bignum module BM = Hacl...
{ "checked_file": "/", "dependencies": [ "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.NatMod.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Exponentiati...
[ { "abbrev": true, "full_module": "Hacl.Spec.Bignum.AlmostMontExponentiation", "short_module": "AE" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.MontExponentiation", "short_module": "ME" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.ModInvLimb", "short_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.Spec.Bignum.Definitions.lbignum t len -> a: Hacl.Spec.Bignum.Definitions.lbignum t len -> bBits: Lib.IntTypes.size_nat -> b: Hacl.Spec.Bignum.Definitions.lbignum t (Hacl.Spec.Bignum.Definitions.blocks0 bBits (Lib.IntTypes.bits t)) -> res: Hacl.Spec.Bignum.Definitions.limb t ...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Hacl.Spec.Bignum.bn_len", "Hacl.Spec.Bignum.Definitions.lbignum", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.blocks0", "Lib.IntTypes.bits", "Prims.unit", "Lib.IntTypes.logand_lemma", "Lib.IntTypes.SEC", "Lib.IntTypes.int_t", "Lib.IntTypes.op_Am...
[]
false
false
false
false
false
let bn_check_mod_exp #t #len n a bBits b =
let pbits = bits t in let m0 = BM.bn_check_modulus n in bn_eval_bound b (blocks0 bBits pbits); let m1 = if bBits < pbits * blocks0 bBits pbits then (BN.bn_lt_pow2_mask_lemma b bBits; BN.bn_lt_pow2_mask b bBits) else (Math.Lemmas.pow2_le_compat bBits (pbits * blocks bBits pbits); ones t SEC) in...
false
EverCrypt.Ed25519.fst
EverCrypt.Ed25519.sign_expanded
val sign_expanded: signature:lbuffer uint8 64ul -> expanded_keys:lbuffer uint8 96ul -> msg_len:size_t -> msg:lbuffer uint8 msg_len -> Stack unit (requires fun h -> live h signature /\ live h msg /\ live h expanded_keys /\ disjoint signature msg /\ disjoint signature expanded_keys) (ensur...
val sign_expanded: signature:lbuffer uint8 64ul -> expanded_keys:lbuffer uint8 96ul -> msg_len:size_t -> msg:lbuffer uint8 msg_len -> Stack unit (requires fun h -> live h signature /\ live h msg /\ live h expanded_keys /\ disjoint signature msg /\ disjoint signature expanded_keys) (ensur...
let sign_expanded signature expanded_keys msg_len msg = Hacl.Ed25519.sign_expanded signature expanded_keys msg_len msg
{ "file_name": "providers/evercrypt/fst/EverCrypt.Ed25519.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 64, "end_line": 12, "start_col": 0, "start_line": 11 }
module EverCrypt.Ed25519 /// For now, only one implementation... to be improved in the future. let secret_to_public public_key private_key = Hacl.Ed25519.secret_to_public public_key private_key let expand_keys expanded_keys private_key = Hacl.Ed25519.expand_keys expanded_keys private_key
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Ed25519.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "EverCrypt.Ed25519.fst" }
[ { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.All", "short_module": null }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
signature: Lib.Buffer.lbuffer Lib.IntTypes.uint8 64ul -> expanded_keys: Lib.Buffer.lbuffer Lib.IntTypes.uint8 96ul -> msg_len: Lib.IntTypes.size_t -> msg: Lib.Buffer.lbuffer Lib.IntTypes.uint8 msg_len -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.size_t", "Hacl.Ed25519.sign_expanded", "Prims.unit" ]
[]
false
true
false
false
false
let sign_expanded signature expanded_keys msg_len msg =
Hacl.Ed25519.sign_expanded signature expanded_keys msg_len msg
false
EverCrypt.Ed25519.fst
EverCrypt.Ed25519.expand_keys
val expand_keys: expanded_keys:lbuffer uint8 96ul -> private_key:lbuffer uint8 32ul -> Stack unit (requires fun h -> live h expanded_keys /\ live h private_key /\ disjoint expanded_keys private_key) (ensures fun h0 _ h1 -> modifies (loc expanded_keys) h0 h1 /\ (let public_key, s, prefix = Sp...
val expand_keys: expanded_keys:lbuffer uint8 96ul -> private_key:lbuffer uint8 32ul -> Stack unit (requires fun h -> live h expanded_keys /\ live h private_key /\ disjoint expanded_keys private_key) (ensures fun h0 _ h1 -> modifies (loc expanded_keys) h0 h1 /\ (let public_key, s, prefix = Sp...
let expand_keys expanded_keys private_key = Hacl.Ed25519.expand_keys expanded_keys private_key
{ "file_name": "providers/evercrypt/fst/EverCrypt.Ed25519.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 52, "end_line": 9, "start_col": 0, "start_line": 8 }
module EverCrypt.Ed25519 /// For now, only one implementation... to be improved in the future. let secret_to_public public_key private_key = Hacl.Ed25519.secret_to_public public_key private_key
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Ed25519.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": true, "source_file": "EverCrypt.Ed25519.fst" }
[ { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.HyperStack.All", "short_module": null }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
expanded_keys: Lib.Buffer.lbuffer Lib.IntTypes.uint8 96ul -> private_key: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Hacl.Ed25519.expand_keys", "Prims.unit" ]
[]
false
true
false
false
false
let expand_keys expanded_keys private_key =
Hacl.Ed25519.expand_keys expanded_keys private_key
false
Hacl.Spec.Bignum.Definitions.fst
Hacl.Spec.Bignum.Definitions.bn_eval_inj
val bn_eval_inj: #t:limb_t -> len:size_nat -> b1:lbignum t len -> b2:lbignum t len -> Lemma (requires bn_v b1 == bn_v b2) (ensures equal b1 b2) (decreases len)
val bn_eval_inj: #t:limb_t -> len:size_nat -> b1:lbignum t len -> b2:lbignum t len -> Lemma (requires bn_v b1 == bn_v b2) (ensures equal b1 b2) (decreases len)
let rec bn_eval_inj #t len b1 b2 = if len = 0 then () else begin bn_eval_split_i b1 1; bn_eval_split_i b2 1; bn_eval1 (slice b1 0 1); bn_eval1 (slice b2 0 1); bn_eval_inj (len - 1) (slice b1 1 len) (slice b2 1 len); Seq.lemma_split b1 1; Seq.lemma_split b2 1 end
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 168, "start_col": 0, "start_line": 158 }
module Hacl.Spec.Bignum.Definitions open FStar.Mul open Lib.IntTypes open Lib.Sequence #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val blocks: x:size_pos -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let blocks x m = (x - 1) / m + 1 val blocks0: x:size_nat -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let bloc...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Calc....
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Hacl.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: Lib.IntTypes.size_nat -> b1: Hacl.Spec.Bignum.Definitions.lbignum t len -> b2: Hacl.Spec.Bignum.Definitions.lbignum t len -> FStar.Pervasives.Lemma (requires Hacl.Spec.Bignum.Definitions.bn_v b1 == Hacl.Spec.Bignum.Definitions.bn_v b2) (ensures Lib.Sequence.equal b1 b2) (decreases ...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.op_Equality", "Prims.int", "Prims.bool", "FStar.Seq.Properties.lemma_split", "Hacl.Spec.Bignum.Definitions.limb", "Prims.unit", "Hacl.Spec.Bignum.Definitions.bn_eval_inj", "Prims.op_Sub...
[ "recursion" ]
false
false
true
false
false
let rec bn_eval_inj #t len b1 b2 =
if len = 0 then () else (bn_eval_split_i b1 1; bn_eval_split_i b2 1; bn_eval1 (slice b1 0 1); bn_eval1 (slice b2 0 1); bn_eval_inj (len - 1) (slice b1 1 len) (slice b2 1 len); Seq.lemma_split b1 1; Seq.lemma_split b2 1)
false
Hacl.Spec.Bignum.Definitions.fst
Hacl.Spec.Bignum.Definitions.bn_eval_split_i_aux
val bn_eval_split_i_aux: p:nat -> a:nat -> b:nat -> c:nat -> i:nat -> Lemma (requires pow2 p * c == a - b) (ensures pow2 (p * (i + 1)) * c == pow2 (p * i) * a - pow2 (p * i) * b)
val bn_eval_split_i_aux: p:nat -> a:nat -> b:nat -> c:nat -> i:nat -> Lemma (requires pow2 p * c == a - b) (ensures pow2 (p * (i + 1)) * c == pow2 (p * i) * a - pow2 (p * i) * b)
let bn_eval_split_i_aux p a b c i = calc (==) { pow2 (p * (i + 1)) * c; (==) { Math.Lemmas.pow2_plus (p * i) p } pow2 (p * i) * pow2 p * c; (==) { Math.Lemmas.paren_mul_right (pow2 (p * i)) (pow2 p) c } pow2 (p * i) * (pow2 p * c); (==) { } pow2 (p * i) * (a - b); (==) { Math.Lemmas.di...
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 117, "start_col": 0, "start_line": 106 }
module Hacl.Spec.Bignum.Definitions open FStar.Mul open Lib.IntTypes open Lib.Sequence #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val blocks: x:size_pos -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let blocks x m = (x - 1) / m + 1 val blocks0: x:size_nat -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let bloc...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Calc....
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Hacl.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Prims.nat -> a: Prims.nat -> b: Prims.nat -> c: Prims.nat -> i: Prims.nat -> FStar.Pervasives.Lemma (requires Prims.pow2 p * c == a - b) (ensures Prims.pow2 (p * (i + 1)) * c == Prims.pow2 (p * i) * a - Prims.pow2 (p * i) * b)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "FStar.Calc.calc_finish", "Prims.int", "Prims.eq2", "FStar.Mul.op_Star", "Prims.pow2", "Prims.op_Addition", "Prims.op_Subtraction", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", "Prims.unit", "FStar.Calc.calc_step", "FStar.Calc.calc_init", "FStar.Calc.calc_pack", "...
[]
false
false
true
false
false
let bn_eval_split_i_aux p a b c i =
calc ( == ) { pow2 (p * (i + 1)) * c; ( == ) { Math.Lemmas.pow2_plus (p * i) p } (pow2 (p * i) * pow2 p) * c; ( == ) { Math.Lemmas.paren_mul_right (pow2 (p * i)) (pow2 p) c } pow2 (p * i) * (pow2 p * c); ( == ) { () } pow2 (p * i) * (a - b); ( == ) { Math.Lemmas.distributivity_sub_right (pow2 (p * i)) a...
false
DoublyLinkedList.fst
DoublyLinkedList.dll_remove_tail
val dll_remove_tail (#t: Type) (d: dll t) : StackInline (dll t) (requires (fun h0 -> (dll_valid h0 d) /\ (length d.nodes > 0))) (ensures (fun h0 y h1 -> Mod.modifies (Mod.loc_buffer (d.ltail @ h0).blink) h0 h1 /\ _aux_fp_split_by_node d y d.ltail /\ dll_valid h1 y /\ unch...
val dll_remove_tail (#t: Type) (d: dll t) : StackInline (dll t) (requires (fun h0 -> (dll_valid h0 d) /\ (length d.nodes > 0))) (ensures (fun h0 y h1 -> Mod.modifies (Mod.loc_buffer (d.ltail @ h0).blink) h0 h1 /\ _aux_fp_split_by_node d y d.ltail /\ dll_valid h1 y /\ unch...
let dll_remove_tail (#t:Type) (d:dll t) : StackInline (dll t) (requires (fun h0 -> (dll_valid h0 d) /\ (length d.nodes > 0))) (ensures (fun h0 y h1 -> Mod.modifies (Mod.loc_buffer (d.ltail@h0).blink) h0 h1 /\ _aux_fp_split_by_node d y d.ltail /\ dll_valid h1 y /\ ...
{ "file_name": "examples/doublylinkedlist/DoublyLinkedList.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 3, "end_line": 1833, "start_col": 0, "start_line": 1797 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.ModifiesPat.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.c...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_modul...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
d: DoublyLinkedList.dll t -> FStar.HyperStack.ST.StackInline (DoublyLinkedList.dll t)
FStar.HyperStack.ST.StackInline
[]
[]
[ "DoublyLinkedList.dll", "DoublyLinkedList.empty_list", "Prims.unit", "DoublyLinkedList._lemma_only_head_can_point_left_to_null", "FStar.Ghost.reveal", "DoublyLinkedList.nodelist", "DoublyLinkedList.__proj__Mkdll__item__nodes", "Prims.bool", "DoublyLinkedList.piece", "DoublyLinkedList.aux_unchanged...
[]
false
true
false
false
false
let dll_remove_tail (#t: Type) (d: dll t) : StackInline (dll t) (requires (fun h0 -> (dll_valid h0 d) /\ (length d.nodes > 0))) (ensures (fun h0 y h1 -> Mod.modifies (Mod.loc_buffer (d.ltail @ h0).blink) h0 h1 /\ _aux_fp_split_by_node d y d.ltail /\ dll_valid h1 y /\ unch...
let h0 = ST.get () in let e = d.ltail in let e1 = (!*e).blink in lemma_dll_links_contained h0 d (length d.nodes - 1); lemma_unsnoc_is_last d.nodes; if is_null e1 then (_lemma_only_head_can_point_left_to_null h0 e d.nodes; empty_list) else (extract_nodelist_contained h0 d.nodes (length (d.nodes) - 2); extrac...
false
Hacl.Spec.Bignum.Definitions.fst
Hacl.Spec.Bignum.Definitions.bn_mask_lemma
val bn_mask_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> mask:limb t -> Lemma (requires v mask == v (ones t SEC) \/ v mask == 0) (ensures bn_v (map (logand mask) b) == (if v mask = 0 then 0 else bn_v b))
val bn_mask_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> mask:limb t -> Lemma (requires v mask == v (ones t SEC) \/ v mask == 0) (ensures bn_v (map (logand mask) b) == (if v mask = 0 then 0 else bn_v b))
let bn_mask_lemma #t #len b mask = let res = map (logand mask) b in //assert (forall (i:nat{i < len}). res.[i] == (mask &. b.[i])); let lemma_aux (i:nat{i < len}) : Lemma (v res.[i] == (if v mask = 0 then 0 else v b.[i])) = logand_lemma mask b.[i] in Classical.forall_intro lemma_aux; if v mask = 0 then ...
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 351, "start_col": 0, "start_line": 339 }
module Hacl.Spec.Bignum.Definitions open FStar.Mul open Lib.IntTypes open Lib.Sequence #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val blocks: x:size_pos -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let blocks x m = (x - 1) / m + 1 val blocks0: x:size_nat -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let bloc...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Calc....
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Hacl.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Hacl.Spec.Bignum.Definitions.lbignum t len -> mask: Hacl.Spec.Bignum.Definitions.limb t -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v mask == Lib.IntTypes.v (Lib.IntTypes.ones t Lib.IntTypes.SEC) \/ Lib.IntTypes.v mask == 0) (ensures Hacl.Spec.Bignum.Definitions.bn_v (Lib.S...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.limb", "Prims.op_Equality", "Prims.int", "Lib.IntTypes.v", "Lib.IntTypes.SEC", "Prims._assert", "Prims.eq2", "Hacl.Spec.Bignum.Definitions.bn_v", "Prims.unit", ...
[]
false
false
true
false
false
let bn_mask_lemma #t #len b mask =
let res = map (logand mask) b in let lemma_aux (i: nat{i < len}) : Lemma (v res.[ i ] == (if v mask = 0 then 0 else v b.[ i ])) = logand_lemma mask b.[ i ] in Classical.forall_intro lemma_aux; if v mask = 0 then (eq_intro res (create len (uint #t 0)); bn_eval_zeroes #t len len; assert (bn_v res == 0)) else ...
false
Hacl.Spec.Bignum.Definitions.fst
Hacl.Spec.Bignum.Definitions.bn_eval_zeroes
val bn_eval_zeroes: #t:limb_t -> len:size_nat -> i:nat{i <= len} -> Lemma (eval_ len (create len (uint #t 0)) i == 0)
val bn_eval_zeroes: #t:limb_t -> len:size_nat -> i:nat{i <= len} -> Lemma (eval_ len (create len (uint #t 0)) i == 0)
let rec bn_eval_zeroes #t len i = let b = create len (uint #t 0) in if i = 0 then bn_eval0 b else begin bn_eval_unfold_i b i; bn_eval_zeroes #t len (i - 1) end
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 37, "end_line": 54, "start_col": 0, "start_line": 48 }
module Hacl.Spec.Bignum.Definitions open FStar.Mul open Lib.IntTypes open Lib.Sequence #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val blocks: x:size_pos -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let blocks x m = (x - 1) / m + 1 val blocks0: x:size_nat -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let bloc...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Calc....
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Hacl.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: Lib.IntTypes.size_nat -> i: Prims.nat{i <= len} -> FStar.Pervasives.Lemma (ensures Hacl.Spec.Bignum.Definitions.eval_ len (Lib.Sequence.create len (Lib.IntTypes.uint 0)) i == 0)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Equality", "Prims.int", "Hacl.Spec.Bignum.Definitions.bn_eval0", "Prims.bool", "Hacl.Spec.Bignum.Definitions.bn_eval_zeroes", "Prims.op_Subtraction", "Prims.unit", ...
[ "recursion" ]
false
false
true
false
false
let rec bn_eval_zeroes #t len i =
let b = create len (uint #t 0) in if i = 0 then bn_eval0 b else (bn_eval_unfold_i b i; bn_eval_zeroes #t len (i - 1))
false
Hacl.Spec.Bignum.Definitions.fst
Hacl.Spec.Bignum.Definitions.bn_eval_update_sub
val bn_eval_update_sub: #t:limb_t -> len1:size_nat -> b1:lbignum t len1 -> len2:size_nat{len1 <= len2} -> Lemma (let b2 = create len2 (uint #t 0) in bn_v b1 == bn_v (update_sub b2 0 len1 b1))
val bn_eval_update_sub: #t:limb_t -> len1:size_nat -> b1:lbignum t len1 -> len2:size_nat{len1 <= len2} -> Lemma (let b2 = create len2 (uint #t 0) in bn_v b1 == bn_v (update_sub b2 0 len1 b1))
let bn_eval_update_sub #t len1 b1 len2 = let b2 = create len2 (uint #t 0) in let b2 = update_sub b2 0 len1 b1 in bn_eval_split_i b2 len1; assert (bn_v b2 == bn_v b1 + pow2 (bits t * len1) * bn_v (slice b2 len1 len2)); let b_zeroes = create (len2 - len1) (uint #t 0) in eq_intro b_zeroes (slice b2 len1 len2);...
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 255, "start_col": 0, "start_line": 248 }
module Hacl.Spec.Bignum.Definitions open FStar.Mul open Lib.IntTypes open Lib.Sequence #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val blocks: x:size_pos -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let blocks x m = (x - 1) / m + 1 val blocks0: x:size_nat -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let bloc...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Calc....
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Hacl.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len1: Lib.IntTypes.size_nat -> b1: Hacl.Spec.Bignum.Definitions.lbignum t len1 -> len2: Lib.IntTypes.size_nat{len1 <= len2} -> FStar.Pervasives.Lemma (ensures (let b2 = Lib.Sequence.create len2 (Lib.IntTypes.uint 0) in Hacl.Spec.Bignum.Definitions.bn_v b1 == Hacl.Spec.Bignum.Def...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.b2t", "Prims.op_LessThanOrEqual", "Hacl.Spec.Bignum.Definitions.bn_eval_zeroes", "Prims.op_Subtraction", "Prims.unit", "Lib.Sequence.eq_intro", "Hacl.Spec.Bignum.Definitions.limb", "Lib...
[]
true
false
true
false
false
let bn_eval_update_sub #t len1 b1 len2 =
let b2 = create len2 (uint #t 0) in let b2 = update_sub b2 0 len1 b1 in bn_eval_split_i b2 len1; assert (bn_v b2 == bn_v b1 + pow2 (bits t * len1) * bn_v (slice b2 len1 len2)); let b_zeroes = create (len2 - len1) (uint #t 0) in eq_intro b_zeroes (slice b2 len1 len2); bn_eval_zeroes #t (len2 - len1) (len2 - len1)
false
Hacl.Spec.Bignum.Definitions.fst
Hacl.Spec.Bignum.Definitions.bn_upd_eval
val bn_upd_eval: #t:limb_t -> #aLen:size_nat -> a:lbignum t aLen -> b1:limb t -> i:nat{i < aLen} -> Lemma (bn_v (upd a i b1) == bn_v a - v a.[i] * pow2 (bits t * i) + v b1 * pow2 (bits t * i))
val bn_upd_eval: #t:limb_t -> #aLen:size_nat -> a:lbignum t aLen -> b1:limb t -> i:nat{i < aLen} -> Lemma (bn_v (upd a i b1) == bn_v a - v a.[i] * pow2 (bits t * i) + v b1 * pow2 (bits t * i))
let bn_upd_eval #t #aLen a b1 i = let b = create 1 b1 in bn_update_sub_eval a b i; bn_eval1 (sub a i 1); bn_eval1 b; assert (bn_v (update_sub a i 1 b) == bn_v a - v a.[i] * pow2 (bits t * i) + v b1 * pow2 (bits t * i)); eq_intro (update_sub a i 1 b) (upd a i b1)
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 44, "end_line": 310, "start_col": 0, "start_line": 304 }
module Hacl.Spec.Bignum.Definitions open FStar.Mul open Lib.IntTypes open Lib.Sequence #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val blocks: x:size_pos -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let blocks x m = (x - 1) / m + 1 val blocks0: x:size_nat -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let bloc...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Calc....
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Hacl.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> b1: Hacl.Spec.Bignum.Definitions.limb t -> i: Prims.nat{i < aLen} -> FStar.Pervasives.Lemma (ensures Hacl.Spec.Bignum.Definitions.bn_v (Lib.Sequence.upd a i b1) == Hacl.Spec.Bignum.Definitions.bn_v a - Lib.IntTypes.v a.[ i ] * Prims....
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.limb", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Lib.Sequence.eq_intro", "Lib.Sequence.update_sub", "Lib.Sequence.upd", "Prims.unit", "Prims._assert", "...
[]
true
false
true
false
false
let bn_upd_eval #t #aLen a b1 i =
let b = create 1 b1 in bn_update_sub_eval a b i; bn_eval1 (sub a i 1); bn_eval1 b; assert (bn_v (update_sub a i 1 b) == bn_v a - v a.[ i ] * pow2 (bits t * i) + v b1 * pow2 (bits t * i)); eq_intro (update_sub a i 1 b) (upd a i b1)
false
Hacl.Spec.Bignum.Definitions.fst
Hacl.Spec.Bignum.Definitions.bn_eval_lt
val bn_eval_lt: #t:limb_t -> len:size_nat -> a:lbignum t len -> b:lbignum t len -> k:pos{k <= len} -> Lemma (requires v a.[k - 1] < v b.[k - 1]) (ensures eval_ len a k < eval_ len b k)
val bn_eval_lt: #t:limb_t -> len:size_nat -> a:lbignum t len -> b:lbignum t len -> k:pos{k <= len} -> Lemma (requires v a.[k - 1] < v b.[k - 1]) (ensures eval_ len a k < eval_ len b k)
let bn_eval_lt #t len a b k = let pbits = bits t in calc (==) { eval_ len b k - eval_ len a k; (==) { bn_eval_unfold_i b k } eval_ len b (k - 1) + v b.[k - 1] * pow2 (pbits * (k - 1)) - eval_ len a k; (==) { bn_eval_unfold_i a k } eval_ len b (k - 1) + v b.[k - 1] * pow2 (pbits * (k - 1)) - eva...
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 89, "end_line": 242, "start_col": 0, "start_line": 227 }
module Hacl.Spec.Bignum.Definitions open FStar.Mul open Lib.IntTypes open Lib.Sequence #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val blocks: x:size_pos -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let blocks x m = (x - 1) / m + 1 val blocks0: x:size_nat -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let bloc...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Calc....
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Hacl.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: Lib.IntTypes.size_nat -> a: Hacl.Spec.Bignum.Definitions.lbignum t len -> b: Hacl.Spec.Bignum.Definitions.lbignum t len -> k: Prims.pos{k <= len} -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v a.[ k - 1 ] < Lib.IntTypes.v b.[ k - 1 ]) (ensures Hacl.Spec.Bignum.Definitions.eval_...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.pos", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims._assert", "Prims.op_GreaterThanOrEqual", "FStar.Mul.op_Star", "Prims.op_Subtraction", "Lib.IntTypes.v", "Lib.IntTypes.SEC", "Li...
[]
false
false
true
false
false
let bn_eval_lt #t len a b k =
let pbits = bits t in calc ( == ) { eval_ len b k - eval_ len a k; ( == ) { bn_eval_unfold_i b k } eval_ len b (k - 1) + v b.[ k - 1 ] * pow2 (pbits * (k - 1)) - eval_ len a k; ( == ) { bn_eval_unfold_i a k } eval_ len b (k - 1) + v b.[ k - 1 ] * pow2 (pbits * (k - 1)) - eval_ len a (k - 1) - v a.[ k - 1 ] ...
false
Hacl.Spec.Bignum.Definitions.fst
Hacl.Spec.Bignum.Definitions.bn_concat_lemma
val bn_concat_lemma: #t:limb_t -> #aLen:size_nat -> #bLen:size_nat{aLen + bLen <= max_size_t} -> a:lbignum t aLen -> b:lbignum t bLen -> Lemma (bn_v (concat a b) == bn_v a + pow2 (bits t * aLen) * bn_v b)
val bn_concat_lemma: #t:limb_t -> #aLen:size_nat -> #bLen:size_nat{aLen + bLen <= max_size_t} -> a:lbignum t aLen -> b:lbignum t bLen -> Lemma (bn_v (concat a b) == bn_v a + pow2 (bits t * aLen) * bn_v b)
let bn_concat_lemma #t #aLen #bLen a b = let pbits = bits t in let res = concat a b in calc (==) { bn_v res; (==) { bn_eval_split_i res aLen } bn_v (slice res 0 aLen) + pow2 (pbits * aLen) * bn_v (slice res aLen (aLen + bLen)); (==) { eq_intro (slice res 0 aLen) a } bn_v a + pow2 (pbits * aLen...
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 332, "start_col": 0, "start_line": 321 }
module Hacl.Spec.Bignum.Definitions open FStar.Mul open Lib.IntTypes open Lib.Sequence #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val blocks: x:size_pos -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let blocks x m = (x - 1) / m + 1 val blocks0: x:size_nat -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let bloc...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Calc....
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Hacl.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> b: Hacl.Spec.Bignum.Definitions.lbignum t bLen -> FStar.Pervasives.Lemma (ensures Hacl.Spec.Bignum.Definitions.bn_v (Lib.Sequence.concat a b) == Hacl.Spec.Bignum.Definitions.bn_v a + Prims.pow2 (Lib.IntTypes.bits t * aLen) * Hacl.Spec.Bignum.Defi...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Lib.IntTypes.max_size_t", "Hacl.Spec.Bignum.Definitions.lbignum", "FStar.Calc.calc_finish", "Prims.nat", "Prims.eq2", "Hacl.Spec.Bignum.Definitions.bn_v", "FStar.Mul.o...
[]
false
false
true
false
false
let bn_concat_lemma #t #aLen #bLen a b =
let pbits = bits t in let res = concat a b in calc ( == ) { bn_v res; ( == ) { bn_eval_split_i res aLen } bn_v (slice res 0 aLen) + pow2 (pbits * aLen) * bn_v (slice res aLen (aLen + bLen)); ( == ) { eq_intro (slice res 0 aLen) a } bn_v a + pow2 (pbits * aLen) * bn_v (slice res aLen (aLen + bLen)); ( == ) {...
false
Hacl.Spec.Bignum.Definitions.fst
Hacl.Spec.Bignum.Definitions.bn_eval_bound
val bn_eval_bound: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:nat{i <= len} -> Lemma (eval_ len b i < pow2 (bits t * i))
val bn_eval_bound: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:nat{i <= len} -> Lemma (eval_ len b i < pow2 (bits t * i))
let rec bn_eval_bound #t #len b i = let pbits = bits t in if i = 0 then bn_eval0 b else begin bn_eval_unfold_i b i; assert (eval_ len b i == eval_ len b (i - 1) + pow2 (pbits * (i - 1)) * v b.[i - 1]); calc (<) { eval_ len b (i - 1) + pow2 (pbits * (i - 1)) * v b.[i - 1]; (<) { bn_eval...
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 7, "end_line": 193, "start_col": 0, "start_line": 174 }
module Hacl.Spec.Bignum.Definitions open FStar.Mul open Lib.IntTypes open Lib.Sequence #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val blocks: x:size_pos -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let blocks x m = (x - 1) / m + 1 val blocks0: x:size_nat -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let bloc...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Calc....
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Hacl.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Hacl.Spec.Bignum.Definitions.lbignum t len -> i: Prims.nat{i <= len} -> FStar.Pervasives.Lemma (ensures Hacl.Spec.Bignum.Definitions.eval_ len b i < Prims.pow2 (Lib.IntTypes.bits t * i))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Equality", "Prims.int", "Hacl.Spec.Bignum.Definitions.bn_eval0", "Prims.bool", "Prims._assert", "Prims.op_LessThan", "Hacl.S...
[ "recursion" ]
false
false
true
false
false
let rec bn_eval_bound #t #len b i =
let pbits = bits t in if i = 0 then bn_eval0 b else (bn_eval_unfold_i b i; assert (eval_ len b i == eval_ len b (i - 1) + pow2 (pbits * (i - 1)) * v b.[ i - 1 ]); calc ( < ) { eval_ len b (i - 1) + pow2 (pbits * (i - 1)) * v b.[ i - 1 ]; ( < ) { bn_eval_bound #t #len b (i - 1) } pow2 (pbits ...
false
Hacl.Spec.Bignum.Definitions.fst
Hacl.Spec.Bignum.Definitions.bn_eval_extensionality_j
val bn_eval_extensionality_j: #t:limb_t -> #len1:size_nat -> #len2:size_nat -> b1:lbignum t len1 -> b2:lbignum t len2 -> j:nat{j <= len1 /\ j <= len2} -> Lemma (requires sub b1 0 j == sub b2 0 j) (ensures eval_ len1 b1 j == eval_ len2 b2 j) (decreases j)
val bn_eval_extensionality_j: #t:limb_t -> #len1:size_nat -> #len2:size_nat -> b1:lbignum t len1 -> b2:lbignum t len2 -> j:nat{j <= len1 /\ j <= len2} -> Lemma (requires sub b1 0 j == sub b2 0 j) (ensures eval_ len1 b1 j == eval_ len2 b2 j) (decreases j)
let rec bn_eval_extensionality_j #t #len1 #len2 b1 b2 j = if j = 0 then begin bn_eval0 b1; bn_eval0 b2 end else begin bn_eval_unfold_i b1 j; bn_eval_unfold_i b2 j; let b1j = slice b1 0 j in let b2j = slice b2 0 j in let c1 = slice b1j 0 (j - 1) in let c2 = slice b2j 0 (j - 1) in ...
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 10, "end_line": 89, "start_col": 0, "start_line": 73 }
module Hacl.Spec.Bignum.Definitions open FStar.Mul open Lib.IntTypes open Lib.Sequence #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val blocks: x:size_pos -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let blocks x m = (x - 1) / m + 1 val blocks0: x:size_nat -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let bloc...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Calc....
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Hacl.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b1: Hacl.Spec.Bignum.Definitions.lbignum t len1 -> b2: Hacl.Spec.Bignum.Definitions.lbignum t len2 -> j: Prims.nat{j <= len1 /\ j <= len2} -> FStar.Pervasives.Lemma (requires Lib.Sequence.sub b1 0 j == Lib.Sequence.sub b2 0 j) (ensures Hacl.Spec.Bignum.Definitions.eval_ len1 b1 j == Hacl.Sp...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Equality", "Prims.int", "Hacl.Spec.Bignum.Definitions.bn_eval0", "Prims.unit", "Prims.bool", "Prims._assert",...
[ "recursion" ]
false
false
true
false
false
let rec bn_eval_extensionality_j #t #len1 #len2 b1 b2 j =
if j = 0 then (bn_eval0 b1; bn_eval0 b2) else (bn_eval_unfold_i b1 j; bn_eval_unfold_i b2 j; let b1j = slice b1 0 j in let b2j = slice b2 0 j in let c1 = slice b1j 0 (j - 1) in let c2 = slice b2j 0 (j - 1) in eq_intro c1 c2; bn_eval_extensionality_j #t #len1 #len2 b1 b2 (j - 1); ...
false
DoublyLinkedList.fst
DoublyLinkedList.tot_dll_to_fragment_split
val tot_dll_to_fragment_split (#t: Type) (h0: heap) (d: dll t {dll_valid h0 d}) (n1 n2: pointer (node t)) : Pure (fragment t) (requires (n1 `memP` d.nodes /\ n2 `memP` d.nodes /\ n1 @ h0 |>> n2 /\ n1 <<| n2 @ h0)) (ensures (fun f -> fragment_valid h0 f /\ frag...
val tot_dll_to_fragment_split (#t: Type) (h0: heap) (d: dll t {dll_valid h0 d}) (n1 n2: pointer (node t)) : Pure (fragment t) (requires (n1 `memP` d.nodes /\ n2 `memP` d.nodes /\ n1 @ h0 |>> n2 /\ n1 <<| n2 @ h0)) (ensures (fun f -> fragment_valid h0 f /\ frag...
let tot_dll_to_fragment_split (#t:Type) (h0:heap) (d:dll t{dll_valid h0 d}) (n1 n2:pointer (node t)) : Pure (fragment t) (requires ( n1 `memP` d.nodes /\ n2 `memP` d.nodes /\ n1@h0 |>> n2 /\ n1 <<| n2@h0)) (ensures (fun f -> fragment_valid h0 f /\ fragment_length ...
{ "file_name": "examples/doublylinkedlist/DoublyLinkedList.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 3, "end_line": 1150, "start_col": 0, "start_line": 1089 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.ModifiesPat.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.c...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_modul...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 8, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h0: DoublyLinkedList.heap -> d: DoublyLinkedList.dll t {DoublyLinkedList.dll_valid h0 d} -> n1: LowStar.Buffer.pointer (DoublyLinkedList.node t) -> n2: LowStar.Buffer.pointer (DoublyLinkedList.node t) -> Prims.Pure (DoublyLinkedList.fragment t)
Prims.Pure
[]
[]
[ "DoublyLinkedList.heap", "DoublyLinkedList.dll", "DoublyLinkedList.dll_valid", "LowStar.Buffer.pointer", "DoublyLinkedList.node", "Prims.unit", "DoublyLinkedList.loc_equiv_trans", "DoublyLinkedList.dll_fp0", "LowStar.Monotonic.Buffer.loc_union", "DoublyLinkedList.nodelist_fp0", "FStar.Ghost.reve...
[]
false
false
false
false
false
let tot_dll_to_fragment_split (#t: Type) (h0: heap) (d: dll t {dll_valid h0 d}) (n1 n2: pointer (node t)) : Pure (fragment t) (requires (n1 `memP` d.nodes /\ n2 `memP` d.nodes /\ n1 @ h0 |>> n2 /\ n1 <<| n2 @ h0)) (ensures (fun f -> fragment_valid h0 f /\ frag...
let split_nodes = elift2_p split_using d.nodes (hide n2) in lemma_split_using d.nodes n2; let l1 = elift1 fst split_nodes in let l2 = elift1 snd split_nodes in let p1 = { phead = d.lhead; ptail = n1; pnodes = l1 } in let p2 = { phead = n2; ptail = d.ltail; pnodes = l2 } in let f = Frag2 p1 p2 in dll_fp0_is_nodelist_fp0...
false
Hacl.Test.ECDSA.fst
Hacl.Test.ECDSA.siggen_vectors256_tmp
val siggen_vectors256_tmp : Prims.list ((((((Test.Lowstarize.hex_encoded * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded)
let siggen_vectors256_tmp = List.Tot.map (fun x -> h x.msg', h x.d, h x.qx', h x.qy', h x.k, h x.r', h x.s') siggen_vectors_sha2_256
{ "file_name": "code/tests/Hacl.Test.ECDSA.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 36, "start_col": 0, "start_line": 34 }
module Hacl.Test.ECDSA open FStar.HyperStack.ST open Test.Lowstarize open Lib.IntTypes open Hacl.P256 open Spec.ECDSA.Test.Vectors module L = Test.Lowstarize module B = LowStar.Buffer #set-options "--fuel 0 --ifuel 0 --z3rlimit 100" noextract let sigver_vectors256_tmp = List.Tot.map (fun x -> h x.msg, h x.qx, ...
{ "checked_file": "/", "dependencies": [ "Test.Lowstarize.fst.checked", "Spec.P256.fst.checked", "Spec.ECDSA.Test.Vectors.fst.checked", "prims.fst.checked", "LowStar.Printf.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "Test.Lowstarize", "short_module": "L" }, { "abbrev": false, "full_module": "Spec.ECDSA.Test.Vectors", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Prims.list ((((((Test.Lowstarize.hex_encoded * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded)
Prims.Tot
[ "total" ]
[]
[ "FStar.List.Tot.Base.map", "Spec.ECDSA.Test.Vectors.vec_SigGen", "FStar.Pervasives.Native.tuple7", "Test.Lowstarize.hex_encoded", "FStar.Pervasives.Native.Mktuple7", "Test.Lowstarize.h", "Spec.ECDSA.Test.Vectors.__proj__Mkvec_SigGen__item__msg'", "Spec.ECDSA.Test.Vectors.__proj__Mkvec_SigGen__item__d"...
[]
false
false
false
true
false
let siggen_vectors256_tmp =
List.Tot.map (fun x -> h x.msg', h x.d, h x.qx', h x.qy', h x.k, h x.r', h x.s') siggen_vectors_sha2_256
false
Hacl.Spec.Bignum.Definitions.fst
Hacl.Spec.Bignum.Definitions.bn_eval_split_i
val bn_eval_split_i: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:nat{i <= len} -> Lemma (ensures bn_v b == bn_v (slice b 0 i) + pow2 (bits t * i) * bn_v (slice b i len)) (decreases (len - i))
val bn_eval_split_i: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:nat{i <= len} -> Lemma (ensures bn_v b == bn_v (slice b 0 i) + pow2 (bits t * i) * bn_v (slice b i len)) (decreases (len - i))
let rec bn_eval_split_i #t #len b i = let pbits = bits t in if i = 0 then bn_eval0 (slice b 0 i) else begin if len = i then bn_eval0 (slice b i len) else begin let b1 = slice b i len in bn_eval_split_i b1 1; bn_eval1 (slice b1 0 1); assert (bn_v b1 == v b1.[0] + pow2 pbit...
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 19, "end_line": 151, "start_col": 0, "start_line": 127 }
module Hacl.Spec.Bignum.Definitions open FStar.Mul open Lib.IntTypes open Lib.Sequence #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val blocks: x:size_pos -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let blocks x m = (x - 1) / m + 1 val blocks0: x:size_nat -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let bloc...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Calc....
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Hacl.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Hacl.Spec.Bignum.Definitions.lbignum t len -> i: Prims.nat{i <= len} -> FStar.Pervasives.Lemma (ensures Hacl.Spec.Bignum.Definitions.bn_v b == Hacl.Spec.Bignum.Definitions.bn_v (Lib.Sequence.slice b 0 i) + Prims.pow2 (Lib.IntTypes.bits t * i) * Hacl.Spec.Bignum.Definitions.bn_...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Equality", "Prims.int", "Hacl.Spec.Bignum.Definitions.bn_eval0", "Prims.op_Subtraction", "Lib.Sequence.slice", "Hacl.Spec.Bign...
[ "recursion" ]
false
false
true
false
false
let rec bn_eval_split_i #t #len b i =
let pbits = bits t in if i = 0 then bn_eval0 (slice b 0 i) else if len = i then bn_eval0 (slice b i len) else let b1 = slice b i len in bn_eval_split_i b1 1; bn_eval1 (slice b1 0 1); assert (bn_v b1 == v b1.[ 0 ] + pow2 pbits * bn_v (slice b1 1 (len - i))); Seq.lemma_index_slice b i len 0; ...
false
Hacl.Test.ECDSA.fst
Hacl.Test.ECDSA.sigver_vectors512_tmp
val sigver_vectors512_tmp : Prims.list (((((Test.Lowstarize.hex_encoded * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Prims.bool)
let sigver_vectors512_tmp = List.Tot.map (fun x -> h x.msg, h x.qx, h x.qy, h x.r, h x.s, x.result) sigver_vectors_sha2_512
{ "file_name": "code/tests/Hacl.Test.ECDSA.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 30, "start_col": 0, "start_line": 28 }
module Hacl.Test.ECDSA open FStar.HyperStack.ST open Test.Lowstarize open Lib.IntTypes open Hacl.P256 open Spec.ECDSA.Test.Vectors module L = Test.Lowstarize module B = LowStar.Buffer #set-options "--fuel 0 --ifuel 0 --z3rlimit 100" noextract let sigver_vectors256_tmp = List.Tot.map (fun x -> h x.msg, h x.qx, ...
{ "checked_file": "/", "dependencies": [ "Test.Lowstarize.fst.checked", "Spec.P256.fst.checked", "Spec.ECDSA.Test.Vectors.fst.checked", "prims.fst.checked", "LowStar.Printf.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "Test.Lowstarize", "short_module": "L" }, { "abbrev": false, "full_module": "Spec.ECDSA.Test.Vectors", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Prims.list (((((Test.Lowstarize.hex_encoded * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Prims.bool)
Prims.Tot
[ "total" ]
[]
[ "FStar.List.Tot.Base.map", "Spec.ECDSA.Test.Vectors.vec_SigVer", "FStar.Pervasives.Native.tuple6", "Test.Lowstarize.hex_encoded", "Prims.bool", "FStar.Pervasives.Native.Mktuple6", "Test.Lowstarize.h", "Spec.ECDSA.Test.Vectors.__proj__Mkvec_SigVer__item__msg", "Spec.ECDSA.Test.Vectors.__proj__Mkvec_S...
[]
false
false
false
true
false
let sigver_vectors512_tmp =
List.Tot.map (fun x -> h x.msg, h x.qx, h x.qy, h x.r, h x.s, x.result) sigver_vectors_sha2_512
false
Hacl.Test.ECDSA.fst
Hacl.Test.ECDSA.sigver_vectors384_tmp
val sigver_vectors384_tmp : Prims.list (((((Test.Lowstarize.hex_encoded * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Prims.bool)
let sigver_vectors384_tmp = List.Tot.map (fun x -> h x.msg, h x.qx, h x.qy, h x.r, h x.s, x.result) sigver_vectors_sha2_384
{ "file_name": "code/tests/Hacl.Test.ECDSA.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 25, "start_col": 0, "start_line": 23 }
module Hacl.Test.ECDSA open FStar.HyperStack.ST open Test.Lowstarize open Lib.IntTypes open Hacl.P256 open Spec.ECDSA.Test.Vectors module L = Test.Lowstarize module B = LowStar.Buffer #set-options "--fuel 0 --ifuel 0 --z3rlimit 100" noextract let sigver_vectors256_tmp = List.Tot.map (fun x -> h x.msg, h x.qx, ...
{ "checked_file": "/", "dependencies": [ "Test.Lowstarize.fst.checked", "Spec.P256.fst.checked", "Spec.ECDSA.Test.Vectors.fst.checked", "prims.fst.checked", "LowStar.Printf.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "Test.Lowstarize", "short_module": "L" }, { "abbrev": false, "full_module": "Spec.ECDSA.Test.Vectors", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Prims.list (((((Test.Lowstarize.hex_encoded * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Prims.bool)
Prims.Tot
[ "total" ]
[]
[ "FStar.List.Tot.Base.map", "Spec.ECDSA.Test.Vectors.vec_SigVer", "FStar.Pervasives.Native.tuple6", "Test.Lowstarize.hex_encoded", "Prims.bool", "FStar.Pervasives.Native.Mktuple6", "Test.Lowstarize.h", "Spec.ECDSA.Test.Vectors.__proj__Mkvec_SigVer__item__msg", "Spec.ECDSA.Test.Vectors.__proj__Mkvec_S...
[]
false
false
false
true
false
let sigver_vectors384_tmp =
List.Tot.map (fun x -> h x.msg, h x.qx, h x.qy, h x.r, h x.s, x.result) sigver_vectors_sha2_384
false
Hacl.Test.ECDSA.fst
Hacl.Test.ECDSA.siggen_vectors512_tmp
val siggen_vectors512_tmp : Prims.list ((((((Test.Lowstarize.hex_encoded * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded)
let siggen_vectors512_tmp = List.Tot.map (fun x -> h x.msg', h x.d, h x.qx', h x.qy', h x.k, h x.r', h x.s') siggen_vectors_sha2_512
{ "file_name": "code/tests/Hacl.Test.ECDSA.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 46, "start_col": 0, "start_line": 44 }
module Hacl.Test.ECDSA open FStar.HyperStack.ST open Test.Lowstarize open Lib.IntTypes open Hacl.P256 open Spec.ECDSA.Test.Vectors module L = Test.Lowstarize module B = LowStar.Buffer #set-options "--fuel 0 --ifuel 0 --z3rlimit 100" noextract let sigver_vectors256_tmp = List.Tot.map (fun x -> h x.msg, h x.qx, ...
{ "checked_file": "/", "dependencies": [ "Test.Lowstarize.fst.checked", "Spec.P256.fst.checked", "Spec.ECDSA.Test.Vectors.fst.checked", "prims.fst.checked", "LowStar.Printf.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "Test.Lowstarize", "short_module": "L" }, { "abbrev": false, "full_module": "Spec.ECDSA.Test.Vectors", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Prims.list ((((((Test.Lowstarize.hex_encoded * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded)
Prims.Tot
[ "total" ]
[]
[ "FStar.List.Tot.Base.map", "Spec.ECDSA.Test.Vectors.vec_SigGen", "FStar.Pervasives.Native.tuple7", "Test.Lowstarize.hex_encoded", "FStar.Pervasives.Native.Mktuple7", "Test.Lowstarize.h", "Spec.ECDSA.Test.Vectors.__proj__Mkvec_SigGen__item__msg'", "Spec.ECDSA.Test.Vectors.__proj__Mkvec_SigGen__item__d"...
[]
false
false
false
true
false
let siggen_vectors512_tmp =
List.Tot.map (fun x -> h x.msg', h x.d, h x.qx', h x.qy', h x.k, h x.r', h x.s') siggen_vectors_sha2_512
false
Hacl.Test.ECDSA.fst
Hacl.Test.ECDSA.sigver_vectors256_tmp
val sigver_vectors256_tmp : Prims.list (((((Test.Lowstarize.hex_encoded * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Prims.bool)
let sigver_vectors256_tmp = List.Tot.map (fun x -> h x.msg, h x.qx, h x.qy, h x.r, h x.s, x.result) sigver_vectors_sha2_256
{ "file_name": "code/tests/Hacl.Test.ECDSA.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 20, "start_col": 0, "start_line": 18 }
module Hacl.Test.ECDSA open FStar.HyperStack.ST open Test.Lowstarize open Lib.IntTypes open Hacl.P256 open Spec.ECDSA.Test.Vectors module L = Test.Lowstarize module B = LowStar.Buffer #set-options "--fuel 0 --ifuel 0 --z3rlimit 100"
{ "checked_file": "/", "dependencies": [ "Test.Lowstarize.fst.checked", "Spec.P256.fst.checked", "Spec.ECDSA.Test.Vectors.fst.checked", "prims.fst.checked", "LowStar.Printf.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "Test.Lowstarize", "short_module": "L" }, { "abbrev": false, "full_module": "Spec.ECDSA.Test.Vectors", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Prims.list (((((Test.Lowstarize.hex_encoded * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Prims.bool)
Prims.Tot
[ "total" ]
[]
[ "FStar.List.Tot.Base.map", "Spec.ECDSA.Test.Vectors.vec_SigVer", "FStar.Pervasives.Native.tuple6", "Test.Lowstarize.hex_encoded", "Prims.bool", "FStar.Pervasives.Native.Mktuple6", "Test.Lowstarize.h", "Spec.ECDSA.Test.Vectors.__proj__Mkvec_SigVer__item__msg", "Spec.ECDSA.Test.Vectors.__proj__Mkvec_S...
[]
false
false
false
true
false
let sigver_vectors256_tmp =
List.Tot.map (fun x -> h x.msg, h x.qx, h x.qy, h x.r, h x.s, x.result) sigver_vectors_sha2_256
false
Hacl.Test.ECDSA.fst
Hacl.Test.ECDSA.siggen_vectors384_tmp
val siggen_vectors384_tmp : Prims.list ((((((Test.Lowstarize.hex_encoded * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded)
let siggen_vectors384_tmp = List.Tot.map (fun x -> h x.msg', h x.d, h x.qx', h x.qy', h x.k, h x.r', h x.s') siggen_vectors_sha2_384
{ "file_name": "code/tests/Hacl.Test.ECDSA.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 41, "start_col": 0, "start_line": 39 }
module Hacl.Test.ECDSA open FStar.HyperStack.ST open Test.Lowstarize open Lib.IntTypes open Hacl.P256 open Spec.ECDSA.Test.Vectors module L = Test.Lowstarize module B = LowStar.Buffer #set-options "--fuel 0 --ifuel 0 --z3rlimit 100" noextract let sigver_vectors256_tmp = List.Tot.map (fun x -> h x.msg, h x.qx, ...
{ "checked_file": "/", "dependencies": [ "Test.Lowstarize.fst.checked", "Spec.P256.fst.checked", "Spec.ECDSA.Test.Vectors.fst.checked", "prims.fst.checked", "LowStar.Printf.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "Test.Lowstarize", "short_module": "L" }, { "abbrev": false, "full_module": "Spec.ECDSA.Test.Vectors", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Prims.list ((((((Test.Lowstarize.hex_encoded * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded) * Test.Lowstarize.hex_encoded)
Prims.Tot
[ "total" ]
[]
[ "FStar.List.Tot.Base.map", "Spec.ECDSA.Test.Vectors.vec_SigGen", "FStar.Pervasives.Native.tuple7", "Test.Lowstarize.hex_encoded", "FStar.Pervasives.Native.Mktuple7", "Test.Lowstarize.h", "Spec.ECDSA.Test.Vectors.__proj__Mkvec_SigGen__item__msg'", "Spec.ECDSA.Test.Vectors.__proj__Mkvec_SigGen__item__d"...
[]
false
false
false
true
false
let siggen_vectors384_tmp =
List.Tot.map (fun x -> h x.msg', h x.d, h x.qx', h x.qy', h x.k, h x.r', h x.s') siggen_vectors_sha2_384
false
DoublyLinkedList.fst
DoublyLinkedList.dll_split_using
val dll_split_using (#t: Type) (d: dll t) (e: pointer (node t)) : StackInline (dll t * dll t) (requires (fun h0 -> (dll_valid h0 d) /\ (e `memP` d.nodes))) (ensures (fun h0 (y1, y2) h1 -> Mod.modifies (Mod.loc_union (Mod.loc_union (Mod.loc_buffer (d.lhead @ h0).flink) ...
val dll_split_using (#t: Type) (d: dll t) (e: pointer (node t)) : StackInline (dll t * dll t) (requires (fun h0 -> (dll_valid h0 d) /\ (e `memP` d.nodes))) (ensures (fun h0 (y1, y2) h1 -> Mod.modifies (Mod.loc_union (Mod.loc_union (Mod.loc_buffer (d.lhead @ h0).flink) ...
let dll_split_using (#t:Type) (d:dll t) (e:pointer (node t)) : StackInline (dll t * dll t) (requires (fun h0 -> (dll_valid h0 d) /\ (e `memP` d.nodes))) (ensures (fun h0 (y1, y2) h1 -> Mod.modifies (Mod.loc_union (Mod.loc_union (M...
{ "file_name": "examples/doublylinkedlist/DoublyLinkedList.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 3, "end_line": 2018, "start_col": 0, "start_line": 1969 }
(* Copyright 2008-2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.ModifiesPat.fst.checked", "LowStar.Modifies.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.c...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_modul...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 2, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
d: DoublyLinkedList.dll t -> e: LowStar.Buffer.pointer (DoublyLinkedList.node t) -> FStar.HyperStack.ST.StackInline (DoublyLinkedList.dll t * DoublyLinkedList.dll t)
FStar.HyperStack.ST.StackInline
[]
[]
[ "DoublyLinkedList.dll", "LowStar.Buffer.pointer", "DoublyLinkedList.node", "FStar.Pervasives.Native.Mktuple2", "Prims.unit", "DoublyLinkedList._lemma_only_head_can_point_left_to_null", "FStar.Ghost.reveal", "DoublyLinkedList.nodelist", "DoublyLinkedList.__proj__Mkdll__item__nodes", "DoublyLinkedLi...
[]
false
true
false
false
false
let dll_split_using (#t: Type) (d: dll t) (e: pointer (node t)) : StackInline (dll t * dll t) (requires (fun h0 -> (dll_valid h0 d) /\ (e `memP` d.nodes))) (ensures (fun h0 (y1, y2) h1 -> Mod.modifies (Mod.loc_union (Mod.loc_union (Mod.loc_buffer (d.lhead @ h0).flink) ...
let h0 = ST.get () in extract_nodelist_contained h0 d.nodes (d.nodes `index_of` e); let e1 = (!*e).blink in lemma_dll_links_contained h0 d (d.nodes `index_of` e); if is_null e1 then (let d1, d2 = empty_list, d in let h1 = ST.get () in aux_unchanged_payload_nomod h0 h1 d.nodes; _lemma_only_head_can_point_l...
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.op_String_Access
val op_String_Access : s: Lib.Sequence.lseq a len -> i: (n: Prims.nat{n <= Prims.pow2 32 - 1}){i < len} -> r: a{r == FStar.Seq.Base.index (Lib.Sequence.to_seq s) i}
let op_String_Access #a #len = LSeq.index #a #len
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 49, "end_line": 119, "start_col": 0, "start_line": 119 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Lib.Sequence.lseq a len -> i: (n: Prims.nat{n <= Prims.pow2 32 - 1}){i < len} -> r: a{r == FStar.Seq.Base.index (Lib.Sequence.to_seq s) i}
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Lib.Sequence.index", "Lib.Sequence.lseq", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Subtraction", "Prims.pow2", "Prims.op_LessThan", "Prims.eq2", "FStar.Seq.Base.index", "Lib.Sequence.to_seq" ]
[]
false
false
false
false
false
let ( .[] ) #a #len =
LSeq.index #a #len
false
Hacl.Spec.Bignum.Definitions.fst
Hacl.Spec.Bignum.Definitions.bn_eval_index
val bn_eval_index: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:nat{i < len} -> Lemma (v b.[i] == bn_v b / pow2 (bits t * i) % pow2 (bits t))
val bn_eval_index: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:nat{i < len} -> Lemma (v b.[i] == bn_v b / pow2 (bits t * i) % pow2 (bits t))
let bn_eval_index #t #len b i = let pbits = bits t in calc (==) { bn_v b / pow2 (pbits * i) % pow2 pbits; (==) { bn_eval_split_i #t #len b i } (bn_v (slice b 0 i) + pow2 (pbits * i) * bn_v (slice b i len)) / pow2 (pbits * i) % pow2 pbits; (==) { Math.Lemmas.division_addition_lemma (bn_v (slice b 0 ...
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 60, "end_line": 219, "start_col": 0, "start_line": 199 }
module Hacl.Spec.Bignum.Definitions open FStar.Mul open Lib.IntTypes open Lib.Sequence #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val blocks: x:size_pos -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let blocks x m = (x - 1) / m + 1 val blocks0: x:size_nat -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let bloc...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Calc....
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Hacl.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Hacl.Spec.Bignum.Definitions.lbignum t len -> i: Prims.nat{i < len} -> FStar.Pervasives.Lemma (ensures Lib.IntTypes.v b.[ i ] == Hacl.Spec.Bignum.Definitions.bn_v b / Prims.pow2 (Lib.IntTypes.bits t * i) % Prims.pow2 (Lib.IntTypes.bits t))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims._assert", "Prims.eq2", "Prims.int", "Prims.op_Modulus", "Prims.op_Division", "Hacl.Spec.Bignum.Definitions.bn_v", "Prims.pow2", "FSt...
[]
false
false
true
false
false
let bn_eval_index #t #len b i =
let pbits = bits t in calc ( == ) { bn_v b / pow2 (pbits * i) % pow2 pbits; ( == ) { bn_eval_split_i #t #len b i } (bn_v (slice b 0 i) + pow2 (pbits * i) * bn_v (slice b i len)) / pow2 (pbits * i) % pow2 pbits; ( == ) { Math.Lemmas.division_addition_lemma (bn_v (slice b 0 i)) (pow2 (pbits * i)) (bn_v (s...
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.width
val width (s: field_spec) : Vec.lanes
val width (s: field_spec) : Vec.lanes
let width (s:field_spec) : Vec.lanes = match s with | M32 -> 1 | M128 -> 2 | M256 -> 4
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 13, "end_line": 37, "start_col": 0, "start_line": 33 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Hacl.Impl.Poly1305.Fields.field_spec -> Hacl.Spec.Poly1305.Vec.lanes
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Spec.Poly1305.Vec.lanes" ]
[]
false
false
false
true
false
let width (s: field_spec) : Vec.lanes =
match s with | M32 -> 1 | M128 -> 2 | M256 -> 4
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.nlimb
val nlimb (s: field_spec) : size_t
val nlimb (s: field_spec) : size_t
let nlimb (s:field_spec) : size_t = match s with | M32 -> 5ul | M128 -> 5ul | M256 -> 5ul
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 15, "end_line": 65, "start_col": 0, "start_line": 61 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Hacl.Impl.Poly1305.Fields.field_spec -> Lib.IntTypes.size_t
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.size_t" ]
[]
false
false
false
true
false
let nlimb (s: field_spec) : size_t =
match s with | M32 -> 5ul | M128 -> 5ul | M256 -> 5ul
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.feval
val feval: #s:field_spec -> h:mem -> e:felem s -> GTot (LSeq.lseq S.felem (width s))
val feval: #s:field_spec -> h:mem -> e:felem s -> GTot (LSeq.lseq S.felem (width s))
let feval #s h e = match s with | M32 -> F32xN.feval #1 h e | M128 -> F32xN.feval #2 h e | M256 -> F32xN.feval #4 h e
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 30, "end_line": 116, "start_col": 0, "start_line": 112 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: FStar.Monotonic.HyperStack.mem -> e: Hacl.Impl.Poly1305.Fields.felem s -> Prims.GTot (Lib.Sequence.lseq Spec.Poly1305.felem (Hacl.Impl.Poly1305.Fields.width s))
Prims.GTot
[ "sometrivial" ]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "FStar.Monotonic.HyperStack.mem", "Hacl.Impl.Poly1305.Fields.felem", "Hacl.Impl.Poly1305.Field32xN.feval", "Lib.Sequence.lseq", "Spec.Poly1305.felem", "Hacl.Impl.Poly1305.Fields.width" ]
[]
false
false
false
false
false
let feval #s h e =
match s with | M32 -> F32xN.feval #1 h e | M128 -> F32xN.feval #2 h e | M256 -> F32xN.feval #4 h e
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.fas_nat
val fas_nat: #s:field_spec -> h:mem -> e:felem s -> GTot (LSeq.lseq nat (width s))
val fas_nat: #s:field_spec -> h:mem -> e:felem s -> GTot (LSeq.lseq nat (width s))
let fas_nat #s h e = match s with | M32 -> F32xN.fas_nat #1 h e | M128 -> F32xN.fas_nat #2 h e | M256 -> F32xN.fas_nat #4 h e
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 32, "end_line": 108, "start_col": 0, "start_line": 104 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: FStar.Monotonic.HyperStack.mem -> e: Hacl.Impl.Poly1305.Fields.felem s -> Prims.GTot (Lib.Sequence.lseq Prims.nat (Hacl.Impl.Poly1305.Fields.width s))
Prims.GTot
[ "sometrivial" ]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "FStar.Monotonic.HyperStack.mem", "Hacl.Impl.Poly1305.Fields.felem", "Hacl.Impl.Poly1305.Field32xN.fas_nat", "Lib.Sequence.lseq", "Prims.nat", "Hacl.Impl.Poly1305.Fields.width" ]
[]
false
false
false
false
false
let fas_nat #s h e =
match s with | M32 -> F32xN.fas_nat #1 h e | M128 -> F32xN.fas_nat #2 h e | M256 -> F32xN.fas_nat #4 h e
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.felem_fits
val felem_fits: #s:field_spec -> h:mem -> f:felem s -> m:F32xN.scale32_5 -> Type0
val felem_fits: #s:field_spec -> h:mem -> f:felem s -> m:F32xN.scale32_5 -> Type0
let felem_fits #s h f m = match s with | M32 -> F32xN.felem_fits #1 h f m | M128 -> F32xN.felem_fits #2 h f m | M256 -> F32xN.felem_fits #4 h f m
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 37, "end_line": 100, "start_col": 0, "start_line": 96 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: FStar.Monotonic.HyperStack.mem -> f: Hacl.Impl.Poly1305.Fields.felem s -> m: Hacl.Spec.Poly1305.Field32xN.scale32_5 -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "FStar.Monotonic.HyperStack.mem", "Hacl.Impl.Poly1305.Fields.felem", "Hacl.Spec.Poly1305.Field32xN.scale32_5", "Hacl.Impl.Poly1305.Field32xN.felem_fits" ]
[]
false
false
false
false
true
let felem_fits #s h f m =
match s with | M32 -> F32xN.felem_fits #1 h f m | M128 -> F32xN.felem_fits #2 h f m | M256 -> F32xN.felem_fits #4 h f m
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.nelem
val nelem (s: field_spec) : size_t
val nelem (s: field_spec) : size_t
let nelem (s:field_spec) : size_t = match s with | M32 -> 1ul | M128 -> 2ul | M256 -> 4ul
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 15, "end_line": 79, "start_col": 0, "start_line": 75 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Hacl.Impl.Poly1305.Fields.field_spec -> Lib.IntTypes.size_t
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.size_t" ]
[]
false
false
false
true
false
let nelem (s: field_spec) : size_t =
match s with | M32 -> 1ul | M128 -> 2ul | M256 -> 4ul
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.wide
val wide : s: Hacl.Impl.Poly1305.Fields.field_spec -> Type0
let wide (s:field_spec) = match s with | M32 -> F32xN.uint64xN 1 | M128 -> F32xN.uint64xN 2 | M256 -> F32xN.uint64xN 4
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 28, "end_line": 58, "start_col": 0, "start_line": 54 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Hacl.Impl.Poly1305.Fields.field_spec -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Spec.Poly1305.Field32xN.uint64xN" ]
[]
false
false
false
true
true
let wide (s: field_spec) =
match s with | M32 -> F32xN.uint64xN 1 | M128 -> F32xN.uint64xN 2 | M256 -> F32xN.uint64xN 4
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.limb
val limb : s: Hacl.Impl.Poly1305.Fields.field_spec -> Type0
let limb (s:field_spec) = match s with | M32 -> F32xN.uint64xN 1 | M128 -> F32xN.uint64xN 2 | M256 -> F32xN.uint64xN 4
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 28, "end_line": 44, "start_col": 0, "start_line": 40 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Hacl.Impl.Poly1305.Fields.field_spec -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Spec.Poly1305.Field32xN.uint64xN" ]
[]
false
false
false
true
true
let limb (s: field_spec) =
match s with | M32 -> F32xN.uint64xN 1 | M128 -> F32xN.uint64xN 2 | M256 -> F32xN.uint64xN 4
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.limb_zero
val limb_zero (s: field_spec) : limb s
val limb_zero (s: field_spec) : limb s
let limb_zero (s:field_spec) : limb s= match s with | M32 -> F32xN.zero 1 | M128 -> F32xN.zero 2 | M256 -> F32xN.zero 4
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 24, "end_line": 51, "start_col": 0, "start_line": 47 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Hacl.Impl.Poly1305.Fields.field_spec -> Hacl.Impl.Poly1305.Fields.limb s
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Spec.Poly1305.Field32xN.zero", "Hacl.Impl.Poly1305.Fields.limb" ]
[]
false
false
false
false
false
let limb_zero (s: field_spec) : limb s =
match s with | M32 -> F32xN.zero 1 | M128 -> F32xN.zero 2 | M256 -> F32xN.zero 4
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.precomplen
val precomplen (s: field_spec) : size_t
val precomplen (s: field_spec) : size_t
let precomplen (s:field_spec) : size_t = match s with | M32 -> 20ul | M128 -> 20ul | M256 -> 20ul
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 86, "start_col": 0, "start_line": 82 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Hacl.Impl.Poly1305.Fields.field_spec -> Lib.IntTypes.size_t
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.size_t" ]
[]
false
false
false
true
false
let precomplen (s: field_spec) : size_t =
match s with | M32 -> 20ul | M128 -> 20ul | M256 -> 20ul
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.blocklen
val blocklen (s: field_spec) : r: size_t{0 < v r /\ v r == width s * S.size_block}
val blocklen (s: field_spec) : r: size_t{0 < v r /\ v r == width s * S.size_block}
let blocklen (s:field_spec) : r:size_t{0 < v r /\ v r == width s * S.size_block} = match s with | M32 -> 16ul | M128 -> 32ul | M256 -> 64ul
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 72, "start_col": 0, "start_line": 68 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Hacl.Impl.Poly1305.Fields.field_spec -> r: Lib.IntTypes.size_t { 0 < Lib.IntTypes.v r /\ Lib.IntTypes.v r == Hacl.Impl.Poly1305.Fields.width s * Spec.Poly1305.size_block }
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.size_t", "Prims.l_and", "Prims.b2t", "Prims.op_LessThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Prims.eq2", "Prims.int", "FStar.Mul.op_Star", "Hacl.Impl.Poly1305.Fields.width", "Spec.Poly...
[]
false
false
false
false
false
let blocklen (s: field_spec) : r: size_t{0 < v r /\ v r == width s * S.size_block} =
match s with | M32 -> 16ul | M128 -> 32ul | M256 -> 64ul
false
EverParse3d.Actions.Base.fsti
EverParse3d.Actions.Base.is_range_okay
val is_range_okay : size: FStar.UInt32.t -> offset: FStar.UInt32.t -> access_size: FStar.UInt32.t -> Prims.bool
let is_range_okay = EverParse3d.ErrorCode.is_range_okay
{ "file_name": "src/3d/prelude/EverParse3d.Actions.Base.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 55, "end_line": 25, "start_col": 0, "start_line": 25 }
(* Copyright 2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Int.Cast.fst.checked", "EverParse3d.Prelude.fsti.checked", "EverParse3d.ErrorCode.fst.checked", "EverParse3d.CopyBuffer.fsti...
[ { "abbrev": true, "full_module": "EverParse3d.CopyBuffer", "short_module": "CP" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 2, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
size: FStar.UInt32.t -> offset: FStar.UInt32.t -> access_size: FStar.UInt32.t -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "EverParse3d.ErrorCode.is_range_okay" ]
[]
false
false
false
true
false
let is_range_okay =
EverParse3d.ErrorCode.is_range_okay
false
EverParse3d.Actions.Base.fsti
EverParse3d.Actions.Base.validator
val validator : p: EverParse3d.Prelude.parser k t -> Type0
let validator #nz #wk (#k:parser_kind nz wk) (#t:Type) (p:parser k t) = validate_with_action_t p true_inv disjointness_trivial eloc_none true
{ "file_name": "src/3d/prelude/EverParse3d.Actions.Base.fsti", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 73, "end_line": 633, "start_col": 0, "start_line": 632 }
(* Copyright 2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Int.Cast.fst.checked", "EverParse3d.Prelude.fsti.checked", "EverParse3d.ErrorCode.fst.checked", "EverParse3d.CopyBuffer.fsti...
[ { "abbrev": true, "full_module": "EverParse3d.CopyBuffer", "short_module": "CP" }, { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 2, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: EverParse3d.Prelude.parser k t -> Type0
Prims.Tot
[ "total" ]
[]
[ "Prims.bool", "EverParse3d.Kinds.weak_kind", "EverParse3d.Kinds.parser_kind", "EverParse3d.Prelude.parser", "EverParse3d.Actions.Base.validate_with_action_t", "EverParse3d.Actions.Base.true_inv", "EverParse3d.Actions.Base.disjointness_trivial", "EverParse3d.Actions.Base.eloc_none" ]
[]
false
false
false
false
true
let validator #nz #wk (#k: parser_kind nz wk) (#t: Type) (p: parser k t) =
validate_with_action_t p true_inv disjointness_trivial eloc_none true
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.lemma_feval_is_fas_nat
val lemma_feval_is_fas_nat: #s:field_spec -> h:mem -> f:felem s -> Lemma (requires F32xN.felem_less #(width s) h f (pow2 128)) (ensures (forall (i:nat). i < width s ==> (feval h f).[i] == (fas_nat h f).[i]))
val lemma_feval_is_fas_nat: #s:field_spec -> h:mem -> f:felem s -> Lemma (requires F32xN.felem_less #(width s) h f (pow2 128)) (ensures (forall (i:nat). i < width s ==> (feval h f).[i] == (fas_nat h f).[i]))
let lemma_feval_is_fas_nat #s h f = F32xN.lemma_feval_is_fas_nat #(width s) h f
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 45, "end_line": 127, "start_col": 0, "start_line": 126 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: FStar.Monotonic.HyperStack.mem -> f: Hacl.Impl.Poly1305.Fields.felem s -> FStar.Pervasives.Lemma (requires Hacl.Impl.Poly1305.Field32xN.felem_less h f (Prims.pow2 128)) (ensures forall (i: Prims.nat). i < Hacl.Impl.Poly1305.Fields.width s ==> (Hacl.Impl.Poly1305.Fields.feval h f)....
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "FStar.Monotonic.HyperStack.mem", "Hacl.Impl.Poly1305.Fields.felem", "Hacl.Impl.Poly1305.Field32xN.lemma_feval_is_fas_nat", "Hacl.Impl.Poly1305.Fields.width", "Prims.unit" ]
[]
true
false
true
false
false
let lemma_feval_is_fas_nat #s h f =
F32xN.lemma_feval_is_fas_nat #(width s) h f
false
Spec.Hash.MD.fst
Spec.Hash.MD.max_input_size_len
val max_input_size_len (a: hash_alg{is_md a}) : Lemma (ensures FStar.Mul.(Some?.v (max_input_length a) * 8 + 8 = pow2 (len_length a * 8)))
val max_input_size_len (a: hash_alg{is_md a}) : Lemma (ensures FStar.Mul.(Some?.v (max_input_length a) * 8 + 8 = pow2 (len_length a * 8)))
let max_input_size_len (a: hash_alg{is_md a}): Lemma (ensures FStar.Mul.(Some ?.v (max_input_length a) * 8 + 8 = pow2 (len_length a * 8))) = let open FStar.Mul in assert_norm (Some?.v (max_input_length a) * 8 + 8 = pow2 (len_length a * 8))
{ "file_name": "specs/Spec.Hash.MD.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 78, "end_line": 22, "start_col": 0, "start_line": 18 }
module Spec.Hash.MD module S = FStar.Seq open Lib.IntTypes open Lib.ByteSequence open Spec.Hash.Definitions (** This module contains a Merkle-Damgard padding scheme for the MD hashes ONLY (md5, sha1, sha2) In Spec.Agile.Hash, the one-shot hash for MD hashes is defined pad, update_multi, finish. *) #push-opti...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 2, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Hash.Definitions.hash_alg{Spec.Hash.Definitions.is_md a} -> FStar.Pervasives.Lemma (ensures Some?.v (Spec.Hash.Definitions.max_input_length a) * 8 + 8 = Prims.pow2 (Spec.Hash.Definitions.len_length a * 8))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Spec.Hash.Definitions.is_md", "FStar.Pervasives.assert_norm", "Prims.op_Equality", "Prims.int", "Prims.op_Addition", "FStar.Mul.op_Star", "FStar.Pervasives.Native.__proj__Some__item__v", "Prims.pos", "Spec.Hash.Definitions.max_input_length", "Pri...
[]
true
false
true
false
false
let max_input_size_len (a: hash_alg{is_md a}) : Lemma (ensures FStar.Mul.(Some?.v (max_input_length a) * 8 + 8 = pow2 (len_length a * 8))) =
let open FStar.Mul in assert_norm (Some?.v (max_input_length a) * 8 + 8 = pow2 (len_length a * 8))
false
Spec.Hash.MD.fst
Spec.Hash.MD.pad
val pad (a: md_alg) (total_len: nat{total_len `less_than_max_input_length` a}) : Tot (b: bytes{(S.length b + total_len) % block_length a = 0})
val pad (a: md_alg) (total_len: nat{total_len `less_than_max_input_length` a}) : Tot (b: bytes{(S.length b + total_len) % block_length a = 0})
let pad (a:md_alg) (total_len:nat{total_len `less_than_max_input_length` a}): Tot (b:bytes{(S.length b + total_len) % block_length a = 0}) = let open FStar.Mul in let firstbyte = S.create 1 (u8 0x80) in let zeros = S.create (pad0_length a total_len) (u8 0) in let total_len_bits = total_len * 8 in ...
{ "file_name": "specs/Spec.Hash.MD.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 40, "end_line": 43, "start_col": 0, "start_line": 29 }
module Spec.Hash.MD module S = FStar.Seq open Lib.IntTypes open Lib.ByteSequence open Spec.Hash.Definitions (** This module contains a Merkle-Damgard padding scheme for the MD hashes ONLY (md5, sha1, sha2) In Spec.Agile.Hash, the one-shot hash for MD hashes is defined pad, update_multi, finish. *) #push-opti...
{ "checked_file": "/", "dependencies": [ "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_fil...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Lib.ByteSequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": true, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Hash.Definitions.md_alg -> total_len: Prims.nat{Spec.Hash.Definitions.less_than_max_input_length total_len a} -> b: Spec.Hash.Definitions.bytes {(FStar.Seq.Base.length b + total_len) % Spec.Hash.Definitions.block_length a = 0}
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.md_alg", "Prims.nat", "Prims.b2t", "Spec.Hash.Definitions.less_than_max_input_length", "FStar.Seq.Base.op_At_Bar", "Lib.IntTypes.int_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Lib.Sequence.lseq", "Spec.Hash.Definitions.len_length", "Lib.ByteSequence.uint_to_bytes_le", "...
[]
false
false
false
false
false
let pad (a: md_alg) (total_len: nat{total_len `less_than_max_input_length` a}) : Tot (b: bytes{(S.length b + total_len) % block_length a = 0}) =
let open FStar.Mul in let firstbyte = S.create 1 (u8 0x80) in let zeros = S.create (pad0_length a total_len) (u8 0) in let total_len_bits = total_len * 8 in max_input_size_len a; let encodedlen:lbytes (len_length a) = match a with | MD5 -> Lib.ByteSequence.uint_to_bytes_le (secret (nat_to_len a (total_len * 8))) ...
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.set_zero
val set_zero: #s:field_spec -> f:felem s -> Stack unit (requires fun h -> live h f) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (0, 0, 0, 0, 0) /\ feval h1 f == LSeq.create (width s) 0)
val set_zero: #s:field_spec -> f:felem s -> Stack unit (requires fun h -> live h f) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (0, 0, 0, 0, 0) /\ feval h1 f == LSeq.create (width s) 0)
let set_zero #s f = match s with | M32 -> F32xN.set_zero #1 f | M128 -> F32xN.set_zero #2 f | M256 -> F32xN.set_zero #4 f
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 31, "end_line": 264, "start_col": 0, "start_line": 260 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Hacl.Impl.Poly1305.Fields.felem s -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.Fields.felem", "Hacl.Impl.Poly1305.Field32xN.set_zero", "Prims.unit" ]
[]
false
true
false
false
false
let set_zero #s f =
match s with | M32 -> F32xN.set_zero #1 f | M128 -> F32xN.set_zero #2 f | M256 -> F32xN.set_zero #4 f
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.create_felem
val create_felem: s:field_spec -> StackInline (felem s) (requires fun h -> True) (ensures fun h0 f h1 -> stack_allocated f h0 h1 (LSeq.create 5 (limb_zero s)) /\ feval h1 f == LSeq.create (width s) 0)
val create_felem: s:field_spec -> StackInline (felem s) (requires fun h -> True) (ensures fun h0 f h1 -> stack_allocated f h0 h1 (LSeq.create 5 (limb_zero s)) /\ feval h1 f == LSeq.create (width s) 0)
let create_felem s = match s with | M32 -> (F32xN.create_felem 1) <: felem s | M128 -> (F32xN.create_felem 2) <: felem s | M256 -> (F32xN.create_felem 4) <: felem s
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 45, "end_line": 141, "start_col": 0, "start_line": 137 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Hacl.Impl.Poly1305.Fields.field_spec -> FStar.HyperStack.ST.StackInline (Hacl.Impl.Poly1305.Fields.felem s)
FStar.HyperStack.ST.StackInline
[]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.Field32xN.create_felem", "Hacl.Impl.Poly1305.Field32xN.felem", "Hacl.Impl.Poly1305.Fields.felem" ]
[]
false
true
false
false
false
let create_felem s =
match s with | M32 -> (F32xN.create_felem 1) <: felem s | M128 -> (F32xN.create_felem 2) <: felem s | M256 -> (F32xN.create_felem 4) <: felem s
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.reduce_felem
val reduce_felem: #s:field_spec -> f:felem s -> Stack unit (requires fun h -> live h f /\ felem_fits h f (2, 2, 2, 2, 2)) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ (fas_nat h1 f).[0] == (feval h0 f).[0])
val reduce_felem: #s:field_spec -> f:felem s -> Stack unit (requires fun h -> live h f /\ felem_fits h f (2, 2, 2, 2, 2)) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ (fas_nat h1 f).[0] == (feval h0 f).[0])
let reduce_felem #s f = match s with | M32 -> F32xN.reduce_felem #1 f | M128 -> F32xN.reduce_felem #2 f | M256 -> F32xN.reduce_felem #4 f
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 35, "end_line": 282, "start_col": 0, "start_line": 278 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Hacl.Impl.Poly1305.Fields.felem s -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.Fields.felem", "Hacl.Impl.Poly1305.Field32xN.reduce_felem", "Prims.unit" ]
[]
false
true
false
false
false
let reduce_felem #s f =
match s with | M32 -> F32xN.reduce_felem #1 f | M128 -> F32xN.reduce_felem #2 f | M256 -> F32xN.reduce_felem #4 f
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.load_felem_le
val load_felem_le: #s:field_spec -> f:felem s -> b:lbuffer uint8 16ul -> Stack unit (requires fun h -> live h f /\ live h b) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ F32xN.felem_less #(width s) h1 f (pow2 128) /\ feval h1 f == LSeq.create (width...
val load_felem_le: #s:field_spec -> f:felem s -> b:lbuffer uint8 16ul -> Stack unit (requires fun h -> live h f /\ live h b) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ F32xN.felem_less #(width s) h1 f (pow2 128) /\ feval h1 f == LSeq.create (width...
let load_felem_le #s f b = match s with | M32 -> F32xN.load_felem_le #1 f b | M128 -> F32xN.load_felem_le #2 f b | M256 -> F32xN.load_felem_le #4 f b
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 161, "start_col": 0, "start_line": 157 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Hacl.Impl.Poly1305.Fields.felem s -> b: Lib.Buffer.lbuffer Lib.IntTypes.uint8 16ul -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.Fields.felem", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Hacl.Impl.Poly1305.Field32xN.load_felem_le", "Prims.unit" ]
[]
false
true
false
false
false
let load_felem_le #s f b =
match s with | M32 -> F32xN.load_felem_le #1 f b | M128 -> F32xN.load_felem_le #2 f b | M256 -> F32xN.load_felem_le #4 f b
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.uints64_from_felem_le
val uints64_from_felem_le: #s:field_spec -> f:felem s -> Stack (uint64 & uint64) (requires fun h -> live h f /\ felem_fits h f (1, 1, 1, 1, 1)) (ensures fun h0 (lo, hi) h1 -> h0 == h1 /\ v hi * pow2 64 + v lo == (fas_nat h0 f).[0] % pow2 128)
val uints64_from_felem_le: #s:field_spec -> f:felem s -> Stack (uint64 & uint64) (requires fun h -> live h f /\ felem_fits h f (1, 1, 1, 1, 1)) (ensures fun h0 (lo, hi) h1 -> h0 == h1 /\ v hi * pow2 64 + v lo == (fas_nat h0 f).[0] % pow2 128)
let uints64_from_felem_le #s f = match s with | M32 -> F32xN.uints64_from_felem_le #1 f | M128 -> F32xN.uints64_from_felem_le #2 f | M256 -> F32xN.uints64_from_felem_le #4 f
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 44, "end_line": 418, "start_col": 0, "start_line": 414 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Hacl.Impl.Poly1305.Fields.felem s -> FStar.HyperStack.ST.Stack (Lib.IntTypes.uint64 * Lib.IntTypes.uint64)
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.Fields.felem", "Hacl.Impl.Poly1305.Field32xN.uints64_from_felem_le", "FStar.Pervasives.Native.tuple2", "Lib.IntTypes.uint64" ]
[]
false
true
false
false
false
let uints64_from_felem_le #s f =
match s with | M32 -> F32xN.uints64_from_felem_le #1 f | M128 -> F32xN.uints64_from_felem_le #2 f | M256 -> F32xN.uints64_from_felem_le #4 f
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.set_bit128
val set_bit128: #s:field_spec -> f:felem s -> Stack unit (requires fun h -> live h f /\ felem_fits h f (1, 1, 1, 1, 1) /\ F32xN.felem_less #(width s) h f (pow2 128)) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ feval h1 f == LSeq.map (Vec.pfad...
val set_bit128: #s:field_spec -> f:felem s -> Stack unit (requires fun h -> live h f /\ felem_fits h f (1, 1, 1, 1, 1) /\ F32xN.felem_less #(width s) h f (pow2 128)) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ feval h1 f == LSeq.map (Vec.pfad...
let set_bit128 #s f = match s with | M32 -> F32xN.set_bit128 #1 f | M128 -> F32xN.set_bit128 #2 f | M256 -> F32xN.set_bit128 #4 f
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 33, "end_line": 246, "start_col": 0, "start_line": 242 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Hacl.Impl.Poly1305.Fields.felem s -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.Fields.felem", "Hacl.Impl.Poly1305.Field32xN.set_bit128", "Prims.unit" ]
[]
false
true
false
false
false
let set_bit128 #s f =
match s with | M32 -> F32xN.set_bit128 #1 f | M128 -> F32xN.set_bit128 #2 f | M256 -> F32xN.set_bit128 #4 f
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.set_bit
val set_bit: #s:field_spec -> f:felem s -> i:size_t{size_v i <= 128} -> Stack unit (requires fun h -> live h f /\ felem_fits h f (1, 1, 1, 1, 1) /\ F32xN.felem_less #(width s) h f (pow2 (v i))) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ (M...
val set_bit: #s:field_spec -> f:felem s -> i:size_t{size_v i <= 128} -> Stack unit (requires fun h -> live h f /\ felem_fits h f (1, 1, 1, 1, 1) /\ F32xN.felem_less #(width s) h f (pow2 (v i))) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ (M...
let set_bit #s f i = match s with | M32 -> F32xN.set_bit #1 f i | M128 -> F32xN.set_bit #2 f i | M256 -> F32xN.set_bit #4 f i
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 32, "end_line": 225, "start_col": 0, "start_line": 221 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Hacl.Impl.Poly1305.Fields.felem s -> i: Lib.IntTypes.size_t{Lib.IntTypes.size_v i <= 128} -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.Fields.felem", "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_LessThanOrEqual", "Lib.IntTypes.size_v", "Hacl.Impl.Poly1305.Field32xN.set_bit", "Prims.unit" ]
[]
false
true
false
false
false
let set_bit #s f i =
match s with | M32 -> F32xN.set_bit #1 f i | M128 -> F32xN.set_bit #2 f i | M256 -> F32xN.set_bit #4 f i
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.fadd
val fadd: #s:field_spec -> out:felem s -> f1:felem s -> f2:felem s -> Stack unit (requires fun h -> live h out /\ live h f1 /\ live h f2 /\ felem_fits h f1 (2, 2, 2, 2, 2) /\ felem_fits h f2 (1, 1, 1, 1, 1)) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ felem_fits h1 out (3, 3,...
val fadd: #s:field_spec -> out:felem s -> f1:felem s -> f2:felem s -> Stack unit (requires fun h -> live h out /\ live h f1 /\ live h f2 /\ felem_fits h f1 (2, 2, 2, 2, 2) /\ felem_fits h f2 (1, 1, 1, 1, 1)) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ felem_fits h1 out (3, 3,...
let fadd #s out f1 f2 = match s with | M32 -> F32xN.fadd #1 out f1 f2 | M128 -> F32xN.fadd #2 out f1 f2 | M256 -> F32xN.fadd #4 out f1 f2
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 35, "end_line": 401, "start_col": 0, "start_line": 397 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
out: Hacl.Impl.Poly1305.Fields.felem s -> f1: Hacl.Impl.Poly1305.Fields.felem s -> f2: Hacl.Impl.Poly1305.Fields.felem s -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.Fields.felem", "Hacl.Impl.Poly1305.Field32xN.fadd", "Prims.unit" ]
[]
false
true
false
false
false
let fadd #s out f1 f2 =
match s with | M32 -> F32xN.fadd #1 out f1 f2 | M128 -> F32xN.fadd #2 out f1 f2 | M256 -> F32xN.fadd #4 out f1 f2
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.load_felems_le
val load_felems_le: #s:field_spec -> f:felem s -> b:lbuffer uint8 (blocklen s) -> Stack unit (requires fun h -> live h f /\ live h b) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ F32xN.felem_less #(width s) h1 f (pow2 128) /\ feval h1 f == Vec.load_...
val load_felems_le: #s:field_spec -> f:felem s -> b:lbuffer uint8 (blocklen s) -> Stack unit (requires fun h -> live h f /\ live h b) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ felem_fits h1 f (1, 1, 1, 1, 1) /\ F32xN.felem_less #(width s) h1 f (pow2 128) /\ feval h1 f == Vec.load_...
let load_felems_le #s f b = match s with | M32 -> F32xN.load_felems_le #1 f b | M128 -> F32xN.load_felems_le #2 f b | M256 -> F32xN.load_felems_le #4 f b
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 39, "end_line": 181, "start_col": 0, "start_line": 177 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: Hacl.Impl.Poly1305.Fields.felem s -> b: Lib.Buffer.lbuffer Lib.IntTypes.uint8 (Hacl.Impl.Poly1305.Fields.blocklen s) -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.Fields.felem", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "Hacl.Impl.Poly1305.Fields.blocklen", "Hacl.Impl.Poly1305.Field32xN.load_felems_le", "Prims.unit" ]
[]
false
true
false
false
false
let load_felems_le #s f b =
match s with | M32 -> F32xN.load_felems_le #1 f b | M128 -> F32xN.load_felems_le #2 f b | M256 -> F32xN.load_felems_le #4 f b
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.load_acc
val load_acc: #s:field_spec -> acc:felem s -> b:lbuffer uint8 (blocklen s) -> Stack unit (requires fun h -> live h acc /\ live h b /\ disjoint acc b /\ felem_fits h acc (2, 2, 2, 2, 2)) (ensures fun h0 _ h1 -> modifies (loc acc) h0 h1 /\ felem_fits h1 acc (3, 3, 3, 3, 3) /\ feval h1 a...
val load_acc: #s:field_spec -> acc:felem s -> b:lbuffer uint8 (blocklen s) -> Stack unit (requires fun h -> live h acc /\ live h b /\ disjoint acc b /\ felem_fits h acc (2, 2, 2, 2, 2)) (ensures fun h0 _ h1 -> modifies (loc acc) h0 h1 /\ felem_fits h1 acc (3, 3, 3, 3, 3) /\ feval h1 a...
let load_acc #s acc b = match s with | M32 -> Field32xN_32.load_acc1 acc b | M128 -> Field32xN_128.load_acc2 acc b | M256 -> Field32xN_256.load_acc4 acc b
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 41, "end_line": 202, "start_col": 0, "start_line": 198 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
acc: Hacl.Impl.Poly1305.Fields.felem s -> b: Lib.Buffer.lbuffer Lib.IntTypes.uint8 (Hacl.Impl.Poly1305.Fields.blocklen s) -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.Fields.felem", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "Hacl.Impl.Poly1305.Fields.blocklen", "Hacl.Impl.Poly1305.Field32xN_32.load_acc1", "Prims.unit", "Hacl.Impl.Poly1305.Field32xN_128.load_acc2", "Hacl.Impl.Poly1305.Field32xN_256.load...
[]
false
true
false
false
false
let load_acc #s acc b =
match s with | M32 -> Field32xN_32.load_acc1 acc b | M128 -> Field32xN_128.load_acc2 acc b | M256 -> Field32xN_256.load_acc4 acc b
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.load_precompute_r
val load_precompute_r: #s:field_spec -> p:precomp_r s -> r0:uint64 -> r1:uint64 -> Stack unit (requires fun h -> live h p) (ensures fun h0 _ h1 -> modifies (loc p) h0 h1 /\ F32xN.load_precompute_r_post #(width s) h1 p /\ (assert (uint_v r1 * pow2 64 + uint_v r0 < pow2 128); feval h1 (gs...
val load_precompute_r: #s:field_spec -> p:precomp_r s -> r0:uint64 -> r1:uint64 -> Stack unit (requires fun h -> live h p) (ensures fun h0 _ h1 -> modifies (loc p) h0 h1 /\ F32xN.load_precompute_r_post #(width s) h1 p /\ (assert (uint_v r1 * pow2 64 + uint_v r0 < pow2 128); feval h1 (gs...
let load_precompute_r #s p r0 r1 = match s with | M32 -> F32xN.load_precompute_r #1 p r0 r1 | M128 -> F32xN.load_precompute_r #2 p r0 r1 | M256 -> F32xN.load_precompute_r #4 p r0 r1
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 46, "end_line": 304, "start_col": 0, "start_line": 300 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Hacl.Impl.Poly1305.Fields.precomp_r s -> r0: Lib.IntTypes.uint64 -> r1: Lib.IntTypes.uint64 -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.Fields.precomp_r", "Lib.IntTypes.uint64", "Hacl.Impl.Poly1305.Field32xN.load_precompute_r", "Prims.unit" ]
[]
false
true
false
false
false
let load_precompute_r #s p r0 r1 =
match s with | M32 -> F32xN.load_precompute_r #1 p r0 r1 | M128 -> F32xN.load_precompute_r #2 p r0 r1 | M256 -> F32xN.load_precompute_r #4 p r0 r1
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.fmul_rn
val fmul_rn: #s:field_spec -> out:felem s -> f1:felem s -> precomp:precomp_r s -> Stack unit (requires fun h -> live h out /\ live h f1 /\ live h precomp /\ (let rn = gsub precomp 10ul 5ul in let rn_5 = gsub precomp 15ul 5ul in felem_fits h f1 (3, 3, 3, 3, 3) /\ felem_fits h rn (2, 2, ...
val fmul_rn: #s:field_spec -> out:felem s -> f1:felem s -> precomp:precomp_r s -> Stack unit (requires fun h -> live h out /\ live h f1 /\ live h precomp /\ (let rn = gsub precomp 10ul 5ul in let rn_5 = gsub precomp 15ul 5ul in felem_fits h f1 (3, 3, 3, 3, 3) /\ felem_fits h rn (2, 2, ...
let fmul_rn #s out f1 precomp = match s with | M32 -> F32xN.fmul_rn #1 out f1 precomp | M128 -> F32xN.fmul_rn #2 out f1 precomp | M256 -> F32xN.fmul_rn #4 out f1 precomp
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 43, "end_line": 356, "start_col": 0, "start_line": 352 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
out: Hacl.Impl.Poly1305.Fields.felem s -> f1: Hacl.Impl.Poly1305.Fields.felem s -> precomp: Hacl.Impl.Poly1305.Fields.precomp_r s -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.Fields.felem", "Hacl.Impl.Poly1305.Fields.precomp_r", "Hacl.Impl.Poly1305.Field32xN.fmul_rn", "Prims.unit" ]
[]
false
true
false
false
false
let fmul_rn #s out f1 precomp =
match s with | M32 -> F32xN.fmul_rn #1 out f1 precomp | M128 -> F32xN.fmul_rn #2 out f1 precomp | M256 -> F32xN.fmul_rn #4 out f1 precomp
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.fadd_mul_r
val fadd_mul_r: #s:field_spec -> out:felem s -> f1:felem s -> precomp:precomp_r s -> Stack unit (requires fun h -> live h out /\ live h f1 /\ live h precomp /\ F32xN.fmul_precomp_r_pre #(width s) h precomp /\ felem_fits h out (2, 2, 2, 2, 2) /\ felem_fits h f1 (1, 1, 1, 1, 1)) (ensures ...
val fadd_mul_r: #s:field_spec -> out:felem s -> f1:felem s -> precomp:precomp_r s -> Stack unit (requires fun h -> live h out /\ live h f1 /\ live h precomp /\ F32xN.fmul_precomp_r_pre #(width s) h precomp /\ felem_fits h out (2, 2, 2, 2, 2) /\ felem_fits h f1 (1, 1, 1, 1, 1)) (ensures ...
let fadd_mul_r #s out f1 precomp = match s with | M32 -> F32xN.fadd_mul_r #1 out f1 precomp | M128 -> F32xN.fadd_mul_r #2 out f1 precomp | M256 -> F32xN.fadd_mul_r #4 out f1 precomp
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 46, "end_line": 329, "start_col": 0, "start_line": 325 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
out: Hacl.Impl.Poly1305.Fields.felem s -> f1: Hacl.Impl.Poly1305.Fields.felem s -> precomp: Hacl.Impl.Poly1305.Fields.precomp_r s -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.Fields.felem", "Hacl.Impl.Poly1305.Fields.precomp_r", "Hacl.Impl.Poly1305.Field32xN.fadd_mul_r", "Prims.unit" ]
[]
false
true
false
false
false
let fadd_mul_r #s out f1 precomp =
match s with | M32 -> F32xN.fadd_mul_r #1 out f1 precomp | M128 -> F32xN.fadd_mul_r #2 out f1 precomp | M256 -> F32xN.fadd_mul_r #4 out f1 precomp
false
Hacl.Spec.Bignum.Definitions.fst
Hacl.Spec.Bignum.Definitions.bn_update_sub_eval
val bn_update_sub_eval: #t:limb_t -> #aLen:size_nat -> #bLen:size_nat -> a:lbignum t aLen -> b:lbignum t bLen -> i:nat{i + bLen <= aLen} -> Lemma (bn_v (update_sub a i bLen b) == bn_v a - bn_v (sub a i bLen) * pow2 (bits t * i) + bn_v b * pow2 (bits t * i))
val bn_update_sub_eval: #t:limb_t -> #aLen:size_nat -> #bLen:size_nat -> a:lbignum t aLen -> b:lbignum t bLen -> i:nat{i + bLen <= aLen} -> Lemma (bn_v (update_sub a i bLen b) == bn_v a - bn_v (sub a i bLen) * pow2 (bits t * i) + bn_v b * pow2 (bits t * i))
let bn_update_sub_eval #t #aLen #bLen a b i = let pbits = bits t in let a' = update_sub a i bLen b in let c = bn_v (sub a i bLen) * pow2 (bits t * i) in calc (==) { bn_v a' + c; (==) { bn_eval_split_i a' i } bn_v (slice a' 0 i) + pow2 (pbits * i) * bn_v (slice a' i aLen) + c; (==) { eq_intro (s...
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 293, "start_col": 0, "start_line": 267 }
module Hacl.Spec.Bignum.Definitions open FStar.Mul open Lib.IntTypes open Lib.Sequence #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val blocks: x:size_pos -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let blocks x m = (x - 1) / m + 1 val blocks0: x:size_nat -> m:size_pos -> Tot (r:size_pos{x <= m * r}) let bloc...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.Classical.fsti.checked", "FStar.Calc....
[ { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Hacl.S...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> b: Hacl.Spec.Bignum.Definitions.lbignum t bLen -> i: Prims.nat{i + bLen <= aLen} -> FStar.Pervasives.Lemma (ensures Hacl.Spec.Bignum.Definitions.bn_v (Lib.Sequence.update_sub a i bLen b) == Hacl.Spec.Bignum.Definitions.bn_v a - Hacl....
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "FStar.Calc.calc_finish", "Prims.int", "Prims.eq2", "Hacl.Spec.Bignum.Definitions.bn_v", "FStar.Mul.op_Star", "Pr...
[]
false
false
true
false
false
let bn_update_sub_eval #t #aLen #bLen a b i =
let pbits = bits t in let a' = update_sub a i bLen b in let c = bn_v (sub a i bLen) * pow2 (bits t * i) in calc ( == ) { bn_v a' + c; ( == ) { bn_eval_split_i a' i } bn_v (slice a' 0 i) + pow2 (pbits * i) * bn_v (slice a' i aLen) + c; ( == ) { eq_intro (slice a 0 i) (slice a' 0 i) } bn_v (slice a 0 i) + pow2 ...
false
Hacl.Impl.Poly1305.Fields.fst
Hacl.Impl.Poly1305.Fields.fmul_rn_normalize
val fmul_rn_normalize: #s:field_spec -> out:felem s -> precomp:precomp_r s -> Stack unit (requires fun h -> live h out /\ live h precomp /\ felem_fits h out (3, 3, 3, 3, 3) /\ F32xN.load_precompute_r_post #(width s) h precomp) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ felem_f...
val fmul_rn_normalize: #s:field_spec -> out:felem s -> precomp:precomp_r s -> Stack unit (requires fun h -> live h out /\ live h precomp /\ felem_fits h out (3, 3, 3, 3, 3) /\ F32xN.load_precompute_r_post #(width s) h precomp) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ felem_f...
let fmul_rn_normalize #s out precomp = match s with | M32 -> Field32xN_32.fmul_r1_normalize out precomp | M128 -> Field32xN_128.fmul_r2_normalize out precomp | M256 -> Field32xN_256.fmul_r4_normalize out precomp
{ "file_name": "code/poly1305/Hacl.Impl.Poly1305.Fields.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 55, "end_line": 379, "start_col": 0, "start_line": 375 }
module Hacl.Impl.Poly1305.Fields open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Field32xN_32 open Hacl.Impl.Poly1305.Field32xN_128 open Hacl.Impl.Poly1305.Field32xN_256 open Hacl.Impl.Poly1305.Field32xN module ST = FStar.HyperStack.ST module ...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Poly1305.Vec.fst.checked", "Hacl.Impl.Poly1305.Field32xN_32.fst....
[ { "abbrev": true, "full_module": "Hacl.Impl.Poly1305.Field32xN", "short_module": "F32xN" }, { "abbrev": true, "full_module": "Hacl.Spec.Poly1305.Vec", "short_module": "Vec" }, { "abbrev": true, "full_module": "Spec.Poly1305", "short_module": "S" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
out: Hacl.Impl.Poly1305.Fields.felem s -> precomp: Hacl.Impl.Poly1305.Fields.precomp_r s -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Impl.Poly1305.Fields.felem", "Hacl.Impl.Poly1305.Fields.precomp_r", "Hacl.Impl.Poly1305.Field32xN_32.fmul_r1_normalize", "Prims.unit", "Hacl.Impl.Poly1305.Field32xN_128.fmul_r2_normalize", "Hacl.Impl.Poly1305.Field32xN_256.fmul_r4_normalize" ]
[]
false
true
false
false
false
let fmul_rn_normalize #s out precomp =
match s with | M32 -> Field32xN_32.fmul_r1_normalize out precomp | M128 -> Field32xN_128.fmul_r2_normalize out precomp | M256 -> Field32xN_256.fmul_r4_normalize out precomp
false
Vale.Transformers.InstructionReorder.fst
Vale.Transformers.InstructionReorder.aux_write_exchange_allowed
val aux_write_exchange_allowed (w2: locations) (c1 c2: locations_with_values) (x: location) : pbool
val aux_write_exchange_allowed (w2: locations) (c1 c2: locations_with_values) (x: location) : pbool
let aux_write_exchange_allowed (w2:locations) (c1 c2:locations_with_values) (x:location) : pbool = let cv1, cv2 = locations_of_locations_with_values c1, locations_of_locations_with_values c2 in (disjoint_location_from_locations x w2) ||. ((x `L.mem` cv1 && x `L.mem` cv2) /- "non constant write")
{ "file_name": "vale/code/lib/transformers/Vale.Transformers.InstructionReorder.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 60, "end_line": 79, "start_col": 0, "start_line": 74 }
(** This module defines a transformer that performs safe instruction reordering. Example: The following set of instructions can be reordered in any order without any observable change in behavior: mov rax, 10 mov rbx, 3 Usage: Actual vale-tool or user-facing code should pr...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Print_s.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instructions_s.fsti.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Transformers.Lo...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Vale.Transformers.BoundedInstructionEffects", "short_module": null }, { "abbrev": false, "full_module": "Vale.Transformers.Locations", "short_module": null }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
w2: Vale.Transformers.Locations.locations -> c1: Vale.Transformers.BoundedInstructionEffects.locations_with_values -> c2: Vale.Transformers.BoundedInstructionEffects.locations_with_values -> x: Vale.Transformers.Locations.location -> Vale.Def.PossiblyMonad.pbool
Prims.Tot
[ "total" ]
[]
[ "Vale.Transformers.Locations.locations", "Vale.Transformers.BoundedInstructionEffects.locations_with_values", "Vale.Transformers.Locations.location", "Prims.list", "Vale.Def.PossiblyMonad.op_Bar_Bar_Dot", "Vale.Transformers.Locations.disjoint_location_from_locations", "Vale.Def.PossiblyMonad.op_Slash_Su...
[]
false
false
false
true
false
let aux_write_exchange_allowed (w2: locations) (c1 c2: locations_with_values) (x: location) : pbool =
let cv1, cv2 = locations_of_locations_with_values c1, locations_of_locations_with_values c2 in (disjoint_location_from_locations x w2) ||. ((x `L.mem` cv1 && x `L.mem` cv2) /- "non constant write")
false
Vale.Transformers.InstructionReorder.fst
Vale.Transformers.InstructionReorder.write_exchange_allowed
val write_exchange_allowed (w1 w2: locations) (c1 c2: locations_with_values) : pbool
val write_exchange_allowed (w1 w2: locations) (c1 c2: locations_with_values) : pbool
let write_exchange_allowed (w1 w2:locations) (c1 c2:locations_with_values) : pbool = write_same_constants c1 c2 &&. for_all (aux_write_exchange_allowed w2 c1 c2) w1 &&. (* REVIEW: Just to make the symmetry proof easier, we write the other way around too. However, this makes things not as fast as they _c...
{ "file_name": "vale/code/lib/transformers/Vale.Transformers.InstructionReorder.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 50, "end_line": 87, "start_col": 0, "start_line": 81 }
(** This module defines a transformer that performs safe instruction reordering. Example: The following set of instructions can be reordered in any order without any observable change in behavior: mov rax, 10 mov rbx, 3 Usage: Actual vale-tool or user-facing code should pr...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Print_s.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instructions_s.fsti.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Transformers.Lo...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Vale.Transformers.BoundedInstructionEffects", "short_module": null }, { "abbrev": false, "full_module": "Vale.Transformers.Locations", "short_module": null }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
w1: Vale.Transformers.Locations.locations -> w2: Vale.Transformers.Locations.locations -> c1: Vale.Transformers.BoundedInstructionEffects.locations_with_values -> c2: Vale.Transformers.BoundedInstructionEffects.locations_with_values -> Vale.Def.PossiblyMonad.pbool
Prims.Tot
[ "total" ]
[]
[ "Vale.Transformers.Locations.locations", "Vale.Transformers.BoundedInstructionEffects.locations_with_values", "Vale.Def.PossiblyMonad.op_Amp_Amp_Dot", "Vale.Transformers.InstructionReorder.write_same_constants", "Vale.Def.PossiblyMonad.for_all", "Vale.Transformers.Locations.location", "Vale.Transformers...
[]
false
false
false
true
false
let write_exchange_allowed (w1 w2: locations) (c1 c2: locations_with_values) : pbool =
write_same_constants c1 c2 &&. for_all (aux_write_exchange_allowed w2 c1 c2) w1 &&. for_all (aux_write_exchange_allowed w1 c2 c1) w2
false
Vale.Transformers.InstructionReorder.fst
Vale.Transformers.InstructionReorder.rw_exchange_allowed
val rw_exchange_allowed (rw1 rw2: rw_set) : pbool
val rw_exchange_allowed (rw1 rw2: rw_set) : pbool
let rw_exchange_allowed (rw1 rw2 : rw_set) : pbool = let r1, w1, c1 = rw1.loc_reads, rw1.loc_writes, rw1.loc_constant_writes in let r2, w2, c2 = rw2.loc_reads, rw2.loc_writes, rw2.loc_constant_writes in (disjoint_locations r1 w2 /+< "read set of 1st not disjoint from write set of 2nd because ") &&. (disjoint_lo...
{ "file_name": "vale/code/lib/transformers/Vale.Transformers.InstructionReorder.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 77, "end_line": 94, "start_col": 0, "start_line": 89 }
(** This module defines a transformer that performs safe instruction reordering. Example: The following set of instructions can be reordered in any order without any observable change in behavior: mov rax, 10 mov rbx, 3 Usage: Actual vale-tool or user-facing code should pr...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Print_s.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instructions_s.fsti.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Transformers.Lo...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Vale.Transformers.BoundedInstructionEffects", "short_module": null }, { "abbrev": false, "full_module": "Vale.Transformers.Locations", "short_module": null }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
rw1: Vale.Transformers.BoundedInstructionEffects.rw_set -> rw2: Vale.Transformers.BoundedInstructionEffects.rw_set -> Vale.Def.PossiblyMonad.pbool
Prims.Tot
[ "total" ]
[]
[ "Vale.Transformers.BoundedInstructionEffects.rw_set", "Vale.Transformers.Locations.locations", "Vale.Transformers.BoundedInstructionEffects.locations_with_values", "Vale.Def.PossiblyMonad.op_Amp_Amp_Dot", "Vale.Def.PossiblyMonad.op_Slash_Plus_Less", "Vale.Transformers.Locations.disjoint_locations", "Val...
[]
false
false
false
true
false
let rw_exchange_allowed (rw1 rw2: rw_set) : pbool =
let r1, w1, c1 = rw1.loc_reads, rw1.loc_writes, rw1.loc_constant_writes in let r2, w2, c2 = rw2.loc_reads, rw2.loc_writes, rw2.loc_constant_writes in (disjoint_locations r1 w2 /+< "read set of 1st not disjoint from write set of 2nd because ") &&. (disjoint_locations r2 w1 /+< "read set of 2nd not disjoint from write se...
false
Vale.Transformers.InstructionReorder.fst
Vale.Transformers.InstructionReorder.ins_exchange_allowed
val ins_exchange_allowed (i1 i2: ins) : pbool
val ins_exchange_allowed (i1 i2: ins) : pbool
let ins_exchange_allowed (i1 i2 : ins) : pbool = ( match i1, i2 with | Instr _ _ _, Instr _ _ _ -> (rw_exchange_allowed (rw_set_of_ins i1) (rw_set_of_ins i2)) | _, _ -> ffalse "non-generic instructions: conservatively disallowed exchange" ) /+> normal (" for instructions " ^ print_ins i1 gcc...
{ "file_name": "vale/code/lib/transformers/Vale.Transformers.InstructionReorder.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 85, "end_line": 103, "start_col": 0, "start_line": 96 }
(** This module defines a transformer that performs safe instruction reordering. Example: The following set of instructions can be reordered in any order without any observable change in behavior: mov rax, 10 mov rbx, 3 Usage: Actual vale-tool or user-facing code should pr...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Print_s.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instructions_s.fsti.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Transformers.Lo...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Vale.Transformers.BoundedInstructionEffects", "short_module": null }, { "abbrev": false, "full_module": "Vale.Transformers.Locations", "short_module": null }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i1: Vale.X64.Machine_Semantics_s.ins -> i2: Vale.X64.Machine_Semantics_s.ins -> Vale.Def.PossiblyMonad.pbool
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_Semantics_s.ins", "Vale.Def.PossiblyMonad.op_Slash_Plus_Greater", "FStar.Pervasives.Native.Mktuple2", "Vale.X64.Bytes_Code_s.instruction_t", "Vale.X64.Machine_Semantics_s.instr_annotation", "Vale.X64.Instruction_s.instr_t_record", "Vale.X64.Instruction_s.instr_operands_t", "Vale.X64....
[]
false
false
false
true
false
let ins_exchange_allowed (i1 i2: ins) : pbool =
(match i1, i2 with | Instr _ _ _, Instr _ _ _ -> (rw_exchange_allowed (rw_set_of_ins i1) (rw_set_of_ins i2)) | _, _ -> ffalse "non-generic instructions: conservatively disallowed exchange") /+> normal (" for instructions " ^ print_ins i1 gcc ^ " and " ^ print_ins i2 gcc)
false
Vale.Transformers.InstructionReorder.fst
Vale.Transformers.InstructionReorder.equiv_states_ext
val equiv_states_ext (s1 s2: machine_state) : GTot Type0
val equiv_states_ext (s1 s2: machine_state) : GTot Type0
let equiv_states_ext (s1 s2 : machine_state) : GTot Type0 = let open FStar.FunctionalExtensionality in (feq s1.ms_regs s2.ms_regs) /\ (s1.ms_heap == s2.ms_heap) /\ (Map.equal s1.ms_stack.stack_mem s2.ms_stack.stack_mem) /\ (Map.equal s1.ms_stackTaint s2.ms_stackTaint) /\ (equiv_states s1 s2)
{ "file_name": "vale/code/lib/transformers/Vale.Transformers.InstructionReorder.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 155, "start_col": 0, "start_line": 149 }
(** This module defines a transformer that performs safe instruction reordering. Example: The following set of instructions can be reordered in any order without any observable change in behavior: mov rax, 10 mov rbx, 3 Usage: Actual vale-tool or user-facing code should pr...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Print_s.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instructions_s.fsti.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Transformers.Lo...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Vale.Transformers.BoundedInstructionEffects", "short_module": null }, { "abbrev": false, "full_module": "Vale.Transformers.Locations", "short_module": null }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> Prims.GTot Type0
Prims.GTot
[ "sometrivial" ]
[]
[ "Vale.X64.Machine_Semantics_s.machine_state", "Prims.l_and", "FStar.FunctionalExtensionality.feq", "Vale.X64.Machine_s.reg", "Vale.X64.Machine_s.t_reg", "Vale.X64.Machine_Semantics_s.__proj__Mkmachine_state__item__ms_regs", "Prims.eq2", "Vale.Arch.Heap.heap_impl", "Vale.X64.Machine_Semantics_s.__pro...
[]
false
false
false
false
true
let equiv_states_ext (s1 s2: machine_state) : GTot Type0 =
let open FStar.FunctionalExtensionality in (feq s1.ms_regs s2.ms_regs) /\ (s1.ms_heap == s2.ms_heap) /\ (Map.equal s1.ms_stack.stack_mem s2.ms_stack.stack_mem) /\ (Map.equal s1.ms_stackTaint s2.ms_stackTaint) /\ (equiv_states s1 s2)
false
Hacl.Impl.Frodo.KEM.fst
Hacl.Impl.Frodo.KEM.clear_words_u8
val clear_words_u8: #len:size_t -> b:lbytes len -> Stack unit (requires fun h -> live h b) (ensures fun h0 _ h1 -> modifies (loc b) h0 h1)
val clear_words_u8: #len:size_t -> b:lbytes len -> Stack unit (requires fun h -> live h b) (ensures fun h0 _ h1 -> modifies (loc b) h0 h1)
let clear_words_u8 #len b = memzero #uint8 b len
{ "file_name": "code/frodo/Hacl.Impl.Frodo.KEM.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 39, "start_col": 0, "start_line": 38 }
module Hacl.Impl.Frodo.KEM open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open LowStar.Buffer open Lib.IntTypes open Lib.Buffer open Lib.Memzero0 open Hacl.Impl.Matrix #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract val clear_matrix: #n1:size_t -> #n2:size_t{v ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Memzero0.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Impl.Matrix.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperS...
[ { "abbrev": false, "full_module": "Hacl.Impl.Matrix", "short_module": null }, { "abbrev": false, "full_module": "Lib.Memzero0", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "L...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Hacl.Impl.Matrix.lbytes len -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Lib.IntTypes.size_t", "Hacl.Impl.Matrix.lbytes", "Lib.Memzero0.memzero", "Lib.IntTypes.uint8", "Prims.unit" ]
[]
false
true
false
false
false
let clear_words_u8 #len b =
memzero #uint8 b len
false
Hacl.Impl.Frodo.KEM.fst
Hacl.Impl.Frodo.KEM.clear_matrix
val clear_matrix: #n1:size_t -> #n2:size_t{v n1 * v n2 <= max_size_t} -> m:matrix_t n1 n2 -> Stack unit (requires fun h -> live h m) (ensures fun h0 _ h1 -> modifies1 m h0 h1)
val clear_matrix: #n1:size_t -> #n2:size_t{v n1 * v n2 <= max_size_t} -> m:matrix_t n1 n2 -> Stack unit (requires fun h -> live h m) (ensures fun h0 _ h1 -> modifies1 m h0 h1)
let clear_matrix #n1 #n2 m = memzero #uint16 m (n1 *! n2)
{ "file_name": "code/frodo/Hacl.Impl.Frodo.KEM.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 30, "end_line": 27, "start_col": 0, "start_line": 26 }
module Hacl.Impl.Frodo.KEM open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open LowStar.Buffer open Lib.IntTypes open Lib.Buffer open Lib.Memzero0 open Hacl.Impl.Matrix #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract val clear_matrix: #n1:size_t -> #n2:size_t{v ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Memzero0.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Impl.Matrix.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.HyperS...
[ { "abbrev": false, "full_module": "Hacl.Impl.Matrix", "short_module": null }, { "abbrev": false, "full_module": "Lib.Memzero0", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "full_module": "L...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
m: Hacl.Impl.Matrix.matrix_t n1 n2 -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Lib.IntTypes.max_size_t", "Hacl.Impl.Matrix.matrix_t", "Lib.Memzero0.memzero", "Lib.IntTypes.uint16", "Lib.IntTypes.op_Star_Bang", "Prims.unit" ]
[]
false
true
false
false
false
let clear_matrix #n1 #n2 m =
memzero #uint16 m (n1 *! n2)
false
Vale.Transformers.InstructionReorder.fst
Vale.Transformers.InstructionReorder.equiv_states_or_both_not_ok
val equiv_states_or_both_not_ok : s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> Prims.logical
let equiv_states_or_both_not_ok (s1 s2:machine_state) = (equiv_states s1 s2) \/ ((not s1.ms_ok) /\ (not s2.ms_ok))
{ "file_name": "vale/code/lib/transformers/Vale.Transformers.InstructionReorder.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 36, "end_line": 163, "start_col": 0, "start_line": 161 }
(** This module defines a transformer that performs safe instruction reordering. Example: The following set of instructions can be reordered in any order without any observable change in behavior: mov rax, 10 mov rbx, 3 Usage: Actual vale-tool or user-facing code should pr...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Print_s.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instructions_s.fsti.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Transformers.Lo...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Vale.Transformers.BoundedInstructionEffects", "short_module": null }, { "abbrev": false, "full_module": "Vale.Transformers.Locations", "short_module": null }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_Semantics_s.machine_state", "Prims.l_or", "Vale.Transformers.InstructionReorder.equiv_states", "Prims.l_and", "Prims.b2t", "Prims.op_Negation", "Vale.X64.Machine_Semantics_s.__proj__Mkmachine_state__item__ms_ok", "Prims.logical" ]
[]
false
false
false
true
true
let equiv_states_or_both_not_ok (s1 s2: machine_state) =
(equiv_states s1 s2) \/ ((not s1.ms_ok) /\ (not s2.ms_ok))
false
Vale.Transformers.InstructionReorder.fst
Vale.Transformers.InstructionReorder.proof_run
val proof_run (s: machine_state) (f: st unit) : machine_state
val proof_run (s: machine_state) (f: st unit) : machine_state
let proof_run (s:machine_state) (f:st unit) : machine_state = let (), s1 = f s in { s1 with ms_ok = s1.ms_ok && s.ms_ok }
{ "file_name": "vale/code/lib/transformers/Vale.Transformers.InstructionReorder.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 41, "end_line": 195, "start_col": 0, "start_line": 193 }
(** This module defines a transformer that performs safe instruction reordering. Example: The following set of instructions can be reordered in any order without any observable change in behavior: mov rax, 10 mov rbx, 3 Usage: Actual vale-tool or user-facing code should pr...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Print_s.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instructions_s.fsti.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Transformers.Lo...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Vale.Transformers.BoundedInstructionEffects", "short_module": null }, { "abbrev": false, "full_module": "Vale.Transformers.Locations", "short_module": null }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Vale.X64.Machine_Semantics_s.machine_state -> f: Vale.X64.Machine_Semantics_s.st Prims.unit -> Vale.X64.Machine_Semantics_s.machine_state
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_Semantics_s.machine_state", "Vale.X64.Machine_Semantics_s.st", "Prims.unit", "Vale.X64.Machine_Semantics_s.Mkmachine_state", "Prims.op_AmpAmp", "Vale.X64.Machine_Semantics_s.__proj__Mkmachine_state__item__ms_ok", "Vale.X64.Machine_Semantics_s.__proj__Mkmachine_state__item__ms_regs", ...
[]
false
false
false
true
false
let proof_run (s: machine_state) (f: st unit) : machine_state =
let (), s1 = f s in { s1 with ms_ok = s1.ms_ok && s.ms_ok }
false
Vale.Transformers.InstructionReorder.fst
Vale.Transformers.InstructionReorder.write_same_constants
val write_same_constants (c1 c2: locations_with_values) : pbool
val write_same_constants (c1 c2: locations_with_values) : pbool
let write_same_constants (c1 c2:locations_with_values) : pbool = for_all (fun (x1:location_with_value) -> for_all (fun (x2:location_with_value) -> let (| l1, v1 |) = x1 in let (| l2, v2 |) = x2 in (if l1 = l2 then v1 = v2 else true) /- "not writing same constants" ) c2 ...
{ "file_name": "vale/code/lib/transformers/Vale.Transformers.InstructionReorder.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 8, "end_line": 72, "start_col": 0, "start_line": 65 }
(** This module defines a transformer that performs safe instruction reordering. Example: The following set of instructions can be reordered in any order without any observable change in behavior: mov rax, 10 mov rbx, 3 Usage: Actual vale-tool or user-facing code should pr...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Print_s.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instructions_s.fsti.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Transformers.Lo...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Vale.Transformers.BoundedInstructionEffects", "short_module": null }, { "abbrev": false, "full_module": "Vale.Transformers.Locations", "short_module": null }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
c1: Vale.Transformers.BoundedInstructionEffects.locations_with_values -> c2: Vale.Transformers.BoundedInstructionEffects.locations_with_values -> Vale.Def.PossiblyMonad.pbool
Prims.Tot
[ "total" ]
[]
[ "Vale.Transformers.BoundedInstructionEffects.locations_with_values", "Vale.Def.PossiblyMonad.for_all", "Vale.Transformers.BoundedInstructionEffects.location_with_value", "Vale.Transformers.Locations.location_eq", "Vale.Transformers.Locations.location_val_eqt", "Vale.Def.PossiblyMonad.op_Slash_Subtraction"...
[]
false
false
false
true
false
let write_same_constants (c1 c2: locations_with_values) : pbool =
for_all (fun (x1: location_with_value) -> for_all (fun (x2: location_with_value) -> let (| l1 , v1 |) = x1 in let (| l2 , v2 |) = x2 in (if l1 = l2 then v1 = v2 else true) /- "not writing same constants") c2) c1
false
Hacl.Test.ECDSA.fst
Hacl.Test.ECDSA.vec8
val vec8 : Type0
let vec8 = L.lbuffer UInt8.t
{ "file_name": "code/tests/Hacl.Test.ECDSA.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 28, "end_line": 74, "start_col": 0, "start_line": 74 }
module Hacl.Test.ECDSA open FStar.HyperStack.ST open Test.Lowstarize open Lib.IntTypes open Hacl.P256 open Spec.ECDSA.Test.Vectors module L = Test.Lowstarize module B = LowStar.Buffer #set-options "--fuel 0 --ifuel 0 --z3rlimit 100" noextract let sigver_vectors256_tmp = List.Tot.map (fun x -> h x.msg, h x.qx, ...
{ "checked_file": "/", "dependencies": [ "Test.Lowstarize.fst.checked", "Spec.P256.fst.checked", "Spec.ECDSA.Test.Vectors.fst.checked", "prims.fst.checked", "LowStar.Printf.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "...
[ { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "Test.Lowstarize", "short_module": "L" }, { "abbrev": false, "full_module": "Spec.ECDSA.Test.Vectors", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "Test.Lowstarize.lbuffer", "FStar.UInt8.t" ]
[]
false
false
false
true
true
let vec8 =
L.lbuffer UInt8.t
false
Vale.Transformers.InstructionReorder.fst
Vale.Transformers.InstructionReorder.locations_of_locations_with_values
val locations_of_locations_with_values (lv: locations_with_values) : locations
val locations_of_locations_with_values (lv: locations_with_values) : locations
let rec locations_of_locations_with_values (lv:locations_with_values) : locations = match lv with | [] -> [] | (|l,v|) :: lv -> l :: locations_of_locations_with_values lv
{ "file_name": "vale/code/lib/transformers/Vale.Transformers.InstructionReorder.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 46, "end_line": 59, "start_col": 0, "start_line": 55 }
(** This module defines a transformer that performs safe instruction reordering. Example: The following set of instructions can be reordered in any order without any observable change in behavior: mov rax, 10 mov rbx, 3 Usage: Actual vale-tool or user-facing code should pr...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Print_s.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instructions_s.fsti.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Transformers.Lo...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Vale.Transformers.BoundedInstructionEffects", "short_module": null }, { "abbrev": false, "full_module": "Vale.Transformers.Locations", "short_module": null }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
lv: Vale.Transformers.BoundedInstructionEffects.locations_with_values -> Vale.Transformers.Locations.locations
Prims.Tot
[ "total" ]
[]
[ "Vale.Transformers.BoundedInstructionEffects.locations_with_values", "Prims.Nil", "Vale.Transformers.Locations.location", "Vale.Transformers.Locations.location_eq", "Vale.Transformers.Locations.location_val_eqt", "Prims.list", "Vale.Transformers.BoundedInstructionEffects.location_with_value", "Prims.C...
[ "recursion" ]
false
false
false
true
false
let rec locations_of_locations_with_values (lv: locations_with_values) : locations =
match lv with | [] -> [] | (| l , v |) :: lv -> l :: locations_of_locations_with_values lv
false
Vale.Transformers.InstructionReorder.fst
Vale.Transformers.InstructionReorder.lemma_write_same_constants_symmetric
val lemma_write_same_constants_symmetric (c1 c2: locations_with_values) : Lemma (ensures (!!(write_same_constants c1 c2) = !!(write_same_constants c2 c1)))
val lemma_write_same_constants_symmetric (c1 c2: locations_with_values) : Lemma (ensures (!!(write_same_constants c1 c2) = !!(write_same_constants c2 c1)))
let rec lemma_write_same_constants_symmetric (c1 c2:locations_with_values) : Lemma (ensures (!!(write_same_constants c1 c2) = !!(write_same_constants c2 c1))) = match c1, c2 with | [], [] -> () | x :: xs, [] -> lemma_write_same_constants_symmetric xs [] | [], y :: ys -> lemma_write_same_constants_...
{ "file_name": "vale/code/lib/transformers/Vale.Transformers.InstructionReorder.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 46, "end_line": 117, "start_col": 0, "start_line": 105 }
(** This module defines a transformer that performs safe instruction reordering. Example: The following set of instructions can be reordered in any order without any observable change in behavior: mov rax, 10 mov rbx, 3 Usage: Actual vale-tool or user-facing code should pr...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Print_s.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instructions_s.fsti.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Transformers.Lo...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Vale.Transformers.BoundedInstructionEffects", "short_module": null }, { "abbrev": false, "full_module": "Vale.Transformers.Locations", "short_module": null }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
c1: Vale.Transformers.BoundedInstructionEffects.locations_with_values -> c2: Vale.Transformers.BoundedInstructionEffects.locations_with_values -> FStar.Pervasives.Lemma (ensures !!(Vale.Transformers.InstructionReorder.write_same_constants c1 c2) = !!(Vale.Transformers.InstructionReorder.write...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Transformers.BoundedInstructionEffects.locations_with_values", "FStar.Pervasives.Native.Mktuple2", "Prims.list", "Vale.Transformers.BoundedInstructionEffects.location_with_value", "Vale.Transformers.InstructionReorder.lemma_write_same_constants_symmetric", "Prims.Nil", "Prims.unit", "Prims.l_Tru...
[ "recursion" ]
false
false
true
false
false
let rec lemma_write_same_constants_symmetric (c1 c2: locations_with_values) : Lemma (ensures (!!(write_same_constants c1 c2) = !!(write_same_constants c2 c1))) =
match c1, c2 with | [], [] -> () | x :: xs, [] -> lemma_write_same_constants_symmetric xs [] | [], y :: ys -> lemma_write_same_constants_symmetric [] ys | x :: xs, y :: ys -> lemma_write_same_constants_symmetric c1 ys; lemma_write_same_constants_symmetric xs c2; lemma_write_same_constants_symmetric xs ys
false
Vale.Transformers.InstructionReorder.fst
Vale.Transformers.InstructionReorder.equiv_ostates
val equiv_ostates (s1 s2: option machine_state) : GTot Type0
val equiv_ostates (s1 s2: option machine_state) : GTot Type0
let equiv_ostates (s1 s2 : option machine_state) : GTot Type0 = (Some? s1 = Some? s2) /\ (Some? s1 ==> (equiv_states (Some?.v s1) (Some?.v s2)))
{ "file_name": "vale/code/lib/transformers/Vale.Transformers.InstructionReorder.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 44, "end_line": 170, "start_col": 0, "start_line": 167 }
(** This module defines a transformer that performs safe instruction reordering. Example: The following set of instructions can be reordered in any order without any observable change in behavior: mov rax, 10 mov rbx, 3 Usage: Actual vale-tool or user-facing code should pr...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Print_s.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instructions_s.fsti.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Transformers.Lo...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Vale.Transformers.BoundedInstructionEffects", "short_module": null }, { "abbrev": false, "full_module": "Vale.Transformers.Locations", "short_module": null }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s1: FStar.Pervasives.Native.option Vale.X64.Machine_Semantics_s.machine_state -> s2: FStar.Pervasives.Native.option Vale.X64.Machine_Semantics_s.machine_state -> Prims.GTot Type0
Prims.GTot
[ "sometrivial" ]
[]
[ "FStar.Pervasives.Native.option", "Vale.X64.Machine_Semantics_s.machine_state", "Prims.l_and", "Prims.b2t", "Prims.op_Equality", "Prims.bool", "FStar.Pervasives.Native.uu___is_Some", "Prims.l_imp", "Vale.Transformers.InstructionReorder.equiv_states", "FStar.Pervasives.Native.__proj__Some__item__v"...
[]
false
false
false
false
true
let equiv_ostates (s1 s2: option machine_state) : GTot Type0 =
(Some? s1 = Some? s2) /\ (Some? s1 ==> (equiv_states (Some?.v s1) (Some?.v s2)))
false
Vale.Transformers.InstructionReorder.fst
Vale.Transformers.InstructionReorder.lemma_write_exchange_allowed_symmetric
val lemma_write_exchange_allowed_symmetric (w1 w2: locations) (c1 c2: locations_with_values) : Lemma (ensures (!!(write_exchange_allowed w1 w2 c1 c2) = !!(write_exchange_allowed w2 w1 c2 c1)))
val lemma_write_exchange_allowed_symmetric (w1 w2: locations) (c1 c2: locations_with_values) : Lemma (ensures (!!(write_exchange_allowed w1 w2 c1 c2) = !!(write_exchange_allowed w2 w1 c2 c1)))
let lemma_write_exchange_allowed_symmetric (w1 w2:locations) (c1 c2:locations_with_values) : Lemma (ensures (!!(write_exchange_allowed w1 w2 c1 c2) = !!(write_exchange_allowed w2 w1 c2 c1))) = lemma_write_same_constants_symmetric c1 c2
{ "file_name": "vale/code/lib/transformers/Vale.Transformers.InstructionReorder.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 44, "end_line": 122, "start_col": 0, "start_line": 119 }
(** This module defines a transformer that performs safe instruction reordering. Example: The following set of instructions can be reordered in any order without any observable change in behavior: mov rax, 10 mov rbx, 3 Usage: Actual vale-tool or user-facing code should pr...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Print_s.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instructions_s.fsti.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Transformers.Lo...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Vale.Transformers.BoundedInstructionEffects", "short_module": null }, { "abbrev": false, "full_module": "Vale.Transformers.Locations", "short_module": null }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
w1: Vale.Transformers.Locations.locations -> w2: Vale.Transformers.Locations.locations -> c1: Vale.Transformers.BoundedInstructionEffects.locations_with_values -> c2: Vale.Transformers.BoundedInstructionEffects.locations_with_values -> FStar.Pervasives.Lemma (ensures !!(Vale.Transformers.In...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Transformers.Locations.locations", "Vale.Transformers.BoundedInstructionEffects.locations_with_values", "Vale.Transformers.InstructionReorder.lemma_write_same_constants_symmetric", "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.b2t", "Prims.op_Equality", "Prims.bool", "Vale.Def.Possibl...
[]
true
false
true
false
false
let lemma_write_exchange_allowed_symmetric (w1 w2: locations) (c1 c2: locations_with_values) : Lemma (ensures (!!(write_exchange_allowed w1 w2 c1 c2) = !!(write_exchange_allowed w2 w1 c2 c1))) =
lemma_write_same_constants_symmetric c1 c2
false
Vale.Transformers.InstructionReorder.fst
Vale.Transformers.InstructionReorder.equiv_states
val equiv_states (s1 s2: machine_state) : GTot Type0
val equiv_states (s1 s2: machine_state) : GTot Type0
let equiv_states (s1 s2 : machine_state) : GTot Type0 = (s1.ms_ok == s2.ms_ok) /\ (s1.ms_regs == s2.ms_regs) /\ (cf s1.ms_flags = cf s2.ms_flags) /\ (overflow s1.ms_flags = overflow s2.ms_flags) /\ (s1.ms_heap == s2.ms_heap) /\ (s1.ms_stack == s2.ms_stack) /\ (s1.ms_stackTaint == s2.ms_stackTaint)
{ "file_name": "vale/code/lib/transformers/Vale.Transformers.InstructionReorder.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 40, "end_line": 145, "start_col": 0, "start_line": 138 }
(** This module defines a transformer that performs safe instruction reordering. Example: The following set of instructions can be reordered in any order without any observable change in behavior: mov rax, 10 mov rbx, 3 Usage: Actual vale-tool or user-facing code should pr...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Print_s.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instructions_s.fsti.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Transformers.Lo...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Vale.Transformers.BoundedInstructionEffects", "short_module": null }, { "abbrev": false, "full_module": "Vale.Transformers.Locations", "short_module": null }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> Prims.GTot Type0
Prims.GTot
[ "sometrivial" ]
[]
[ "Vale.X64.Machine_Semantics_s.machine_state", "Prims.l_and", "Prims.eq2", "Prims.bool", "Vale.X64.Machine_Semantics_s.__proj__Mkmachine_state__item__ms_ok", "Vale.X64.Machine_Semantics_s.regs_t", "Vale.X64.Machine_Semantics_s.__proj__Mkmachine_state__item__ms_regs", "Prims.b2t", "Prims.op_Equality",...
[]
false
false
false
false
true
let equiv_states (s1 s2: machine_state) : GTot Type0 =
(s1.ms_ok == s2.ms_ok) /\ (s1.ms_regs == s2.ms_regs) /\ (cf s1.ms_flags = cf s2.ms_flags) /\ (overflow s1.ms_flags = overflow s2.ms_flags) /\ (s1.ms_heap == s2.ms_heap) /\ (s1.ms_stack == s2.ms_stack) /\ (s1.ms_stackTaint == s2.ms_stackTaint)
false
Vale.Transformers.InstructionReorder.fst
Vale.Transformers.InstructionReorder.filt_state
val filt_state : s: Vale.X64.Machine_Semantics_s.machine_state -> Vale.X64.Machine_Semantics_s.machine_state
let filt_state (s:machine_state) = { s with ms_trace = [] }
{ "file_name": "vale/code/lib/transformers/Vale.Transformers.InstructionReorder.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 19, "end_line": 419, "start_col": 0, "start_line": 417 }
(** This module defines a transformer that performs safe instruction reordering. Example: The following set of instructions can be reordered in any order without any observable change in behavior: mov rax, 10 mov rbx, 3 Usage: Actual vale-tool or user-facing code should pr...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Print_s.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instructions_s.fsti.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Transformers.Lo...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Vale.Transformers.BoundedInstructionEffects", "short_module": null }, { "abbrev": false, "full_module": "Vale.Transformers.Locations", "short_module": null }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Vale.X64.Machine_Semantics_s.machine_state -> Vale.X64.Machine_Semantics_s.machine_state
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_Semantics_s.machine_state", "Vale.X64.Machine_Semantics_s.Mkmachine_state", "Vale.X64.Machine_Semantics_s.__proj__Mkmachine_state__item__ms_ok", "Vale.X64.Machine_Semantics_s.__proj__Mkmachine_state__item__ms_regs", "Vale.X64.Machine_Semantics_s.__proj__Mkmachine_state__item__ms_flags", ...
[]
false
false
false
true
false
let filt_state (s: machine_state) =
{ s with ms_trace = [] }
false
Vale.Transformers.InstructionReorder.fst
Vale.Transformers.InstructionReorder.erroring_option_state
val erroring_option_state : s: FStar.Pervasives.Native.option Vale.X64.Machine_Semantics_s.machine_state -> Prims.bool
let erroring_option_state (s:option machine_state) = match s with | None -> true | Some s -> not (s.ms_ok)
{ "file_name": "vale/code/lib/transformers/Vale.Transformers.InstructionReorder.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 27, "end_line": 178, "start_col": 0, "start_line": 175 }
(** This module defines a transformer that performs safe instruction reordering. Example: The following set of instructions can be reordered in any order without any observable change in behavior: mov rax, 10 mov rbx, 3 Usage: Actual vale-tool or user-facing code should pr...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Print_s.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instructions_s.fsti.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Transformers.Lo...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Vale.Transformers.BoundedInstructionEffects", "short_module": null }, { "abbrev": false, "full_module": "Vale.Transformers.Locations", "short_module": null }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: FStar.Pervasives.Native.option Vale.X64.Machine_Semantics_s.machine_state -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.Native.option", "Vale.X64.Machine_Semantics_s.machine_state", "Prims.op_Negation", "Vale.X64.Machine_Semantics_s.__proj__Mkmachine_state__item__ms_ok", "Prims.bool" ]
[]
false
false
false
true
false
let erroring_option_state (s: option machine_state) =
match s with | None -> true | Some s -> not (s.ms_ok)
false
Vale.Transformers.InstructionReorder.fst
Vale.Transformers.InstructionReorder.lemma_ins_exchange_allowed_symmetric
val lemma_ins_exchange_allowed_symmetric (i1 i2: ins) : Lemma (requires (!!(ins_exchange_allowed i1 i2))) (ensures (!!(ins_exchange_allowed i2 i1)))
val lemma_ins_exchange_allowed_symmetric (i1 i2: ins) : Lemma (requires (!!(ins_exchange_allowed i1 i2))) (ensures (!!(ins_exchange_allowed i2 i1)))
let lemma_ins_exchange_allowed_symmetric (i1 i2 : ins) : Lemma (requires ( !!(ins_exchange_allowed i1 i2))) (ensures ( !!(ins_exchange_allowed i2 i1))) = let rw1, rw2 = rw_set_of_ins i1, rw_set_of_ins i2 in let r1, w1, c1 = rw1.loc_reads, rw1.loc_writes, rw1.loc_constant_writes in let r2...
{ "file_name": "vale/code/lib/transformers/Vale.Transformers.InstructionReorder.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 52, "end_line": 133, "start_col": 0, "start_line": 124 }
(** This module defines a transformer that performs safe instruction reordering. Example: The following set of instructions can be reordered in any order without any observable change in behavior: mov rax, 10 mov rbx, 3 Usage: Actual vale-tool or user-facing code should pr...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Print_s.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instructions_s.fsti.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Transformers.Lo...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Vale.Transformers.BoundedInstructionEffects", "short_module": null }, { "abbrev": false, "full_module": "Vale.Transformers.Locations", "short_module": null }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i1: Vale.X64.Machine_Semantics_s.ins -> i2: Vale.X64.Machine_Semantics_s.ins -> FStar.Pervasives.Lemma (requires !!(Vale.Transformers.InstructionReorder.ins_exchange_allowed i1 i2)) (ensures !!(Vale.Transformers.InstructionReorder.ins_exchange_allowed i2 i1))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.X64.Machine_Semantics_s.ins", "Vale.Transformers.BoundedInstructionEffects.rw_set", "Vale.Transformers.Locations.locations", "Vale.Transformers.BoundedInstructionEffects.locations_with_values", "Vale.Transformers.InstructionReorder.lemma_write_exchange_allowed_symmetric", "Prims.unit", "FStar.Perv...
[]
false
false
true
false
false
let lemma_ins_exchange_allowed_symmetric (i1 i2: ins) : Lemma (requires (!!(ins_exchange_allowed i1 i2))) (ensures (!!(ins_exchange_allowed i2 i1))) =
let rw1, rw2 = rw_set_of_ins i1, rw_set_of_ins i2 in let r1, w1, c1 = rw1.loc_reads, rw1.loc_writes, rw1.loc_constant_writes in let r2, w2, c2 = rw2.loc_reads, rw2.loc_writes, rw2.loc_constant_writes in lemma_write_exchange_allowed_symmetric w1 w2 c1 c2
false
Vale.Transformers.InstructionReorder.fst
Vale.Transformers.InstructionReorder.commutes
val commutes (s: machine_state) (f1 f2: st unit) : GTot Type0
val commutes (s: machine_state) (f1 f2: st unit) : GTot Type0
let commutes (s:machine_state) (f1 f2:st unit) : GTot Type0 = equiv_states_or_both_not_ok (run2 f1 f2 s) (run2 f2 f1 s)
{ "file_name": "vale/code/lib/transformers/Vale.Transformers.InstructionReorder.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 18, "end_line": 563, "start_col": 0, "start_line": 560 }
(** This module defines a transformer that performs safe instruction reordering. Example: The following set of instructions can be reordered in any order without any observable change in behavior: mov rax, 10 mov rbx, 3 Usage: Actual vale-tool or user-facing code should pr...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Print_s.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instructions_s.fsti.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.Bytes_Code_s.fst.checked", "Vale.Transformers.Lo...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Vale.Transformers.BoundedInstructionEffects", "short_module": null }, { "abbrev": false, "full_module": "Vale.Transformers.Locations", "short_module": null }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Vale.X64.Machine_Semantics_s.machine_state -> f1: Vale.X64.Machine_Semantics_s.st Prims.unit -> f2: Vale.X64.Machine_Semantics_s.st Prims.unit -> Prims.GTot Type0
Prims.GTot
[ "sometrivial" ]
[]
[ "Vale.X64.Machine_Semantics_s.machine_state", "Vale.X64.Machine_Semantics_s.st", "Prims.unit", "Vale.Transformers.InstructionReorder.equiv_states_or_both_not_ok", "Vale.Transformers.InstructionReorder.run2" ]
[]
false
false
false
false
true
let commutes (s: machine_state) (f1 f2: st unit) : GTot Type0 =
equiv_states_or_both_not_ok (run2 f1 f2 s) (run2 f2 f1 s)
false