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
Vale.X64.Machine_s.fst
Vale.X64.Machine_s.reg_R13
val reg_R13:reg
val reg_R13:reg
let reg_R13 : reg = Reg 0 13
{ "file_name": "vale/specs/hardware/Vale.X64.Machine_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 101, "start_col": 19, "start_line": 101 }
module Vale.X64.Machine_s open FStar.Mul include Vale.Arch.HeapTypes_s irreducible let va_qattr = () unfold let pow2_32 = Vale.Def.Words_s.pow2_32 unfold let pow2_64 = Vale.Def.Words_s.pow2_64 unfold let pow2_128 = Vale.Def.Words_s.pow2_128 unfold let nat64 = Vale.Def.Types_s.nat64 let int_to_nat64 (i:int) : n:nat64{...
{ "checked_file": "/", "dependencies": [ "Vale.Def.Words_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "Vale.X64.Machine_s.fs...
[ { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "V...
{ "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
Vale.X64.Machine_s.reg
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_s.Reg" ]
[]
false
false
false
true
false
let reg_R13:reg =
Reg 0 13
false
Hacl.Impl.Salsa20.Core32.fst
Hacl.Impl.Salsa20.Core32.set_counter
val set_counter: st:state -> c:size_t -> Stack unit (requires fun h -> live h st) (ensures fun h0 _ h1 -> modifies (loc st) h0 h1 /\ as_seq h1 st == Seq.upd (as_seq h0 st) 8 (size_to_uint32 c))
val set_counter: st:state -> c:size_t -> Stack unit (requires fun h -> live h st) (ensures fun h0 _ h1 -> modifies (loc st) h0 h1 /\ as_seq h1 st == Seq.upd (as_seq h0 st) 8 (size_to_uint32 c))
let set_counter st c = st.(size 8) <- size_to_uint32 c
{ "file_name": "code/salsa20/Hacl.Impl.Salsa20.Core32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 33, "end_line": 66, "start_col": 0, "start_line": 65 }
module Hacl.Impl.Salsa20.Core32 open FStar.HyperStack open FStar.HyperStack.All open Lib.IntTypes open Lib.Sequence open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module Spec = Spec.Salsa20 let state = lbuffer uint32 16ul let index = i:size_t{size_v i < 16} inline_for_extraction val create_s...
{ "checked_file": "/", "dependencies": [ "Spec.Salsa20.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.f...
[ { "abbrev": true, "full_module": "Spec.Salsa20", "short_module": "Spec" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Lib.ByteBuffer", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
st: Hacl.Impl.Salsa20.Core32.state -> c: Lib.IntTypes.size_t -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Salsa20.Core32.state", "Lib.IntTypes.size_t", "Lib.Buffer.op_Array_Assignment", "Lib.IntTypes.uint32", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.size", "Lib.IntTypes.size_to_uint32", "Prims.unit" ]
[]
false
true
false
false
false
let set_counter st c =
st.(size 8) <- size_to_uint32 c
false
Hacl.Impl.Salsa20.Core32.fst
Hacl.Impl.Salsa20.Core32.copy_state
val copy_state: st:state -> ost:state -> Stack unit (requires fun h -> live h st /\ live h ost /\ disjoint st ost) (ensures fun h0 _ h1 -> modifies (loc st) h0 h1 /\ as_seq h1 st == as_seq h0 ost)
val copy_state: st:state -> ost:state -> Stack unit (requires fun h -> live h st /\ live h ost /\ disjoint st ost) (ensures fun h0 _ h1 -> modifies (loc st) h0 h1 /\ as_seq h1 st == as_seq h0 ost)
let copy_state st ost = copy #MUT #uint32 #(size 16) st ost
{ "file_name": "code/salsa20/Hacl.Impl.Salsa20.Core32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 59, "end_line": 78, "start_col": 0, "start_line": 78 }
module Hacl.Impl.Salsa20.Core32 open FStar.HyperStack open FStar.HyperStack.All open Lib.IntTypes open Lib.Sequence open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module Spec = Spec.Salsa20 let state = lbuffer uint32 16ul let index = i:size_t{size_v i < 16} inline_for_extraction val create_s...
{ "checked_file": "/", "dependencies": [ "Spec.Salsa20.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.f...
[ { "abbrev": true, "full_module": "Spec.Salsa20", "short_module": "Spec" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Lib.ByteBuffer", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
st: Hacl.Impl.Salsa20.Core32.state -> ost: Hacl.Impl.Salsa20.Core32.state -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Salsa20.Core32.state", "Lib.Buffer.copy", "Lib.Buffer.MUT", "Lib.IntTypes.uint32", "Lib.IntTypes.size", "Prims.unit" ]
[]
false
true
false
false
false
let copy_state st ost =
copy #MUT #uint32 #(size 16) st ost
false
Vale.X64.Machine_s.fst
Vale.X64.Machine_s.reg_R14
val reg_R14:reg
val reg_R14:reg
let reg_R14 : reg = Reg 0 14
{ "file_name": "vale/specs/hardware/Vale.X64.Machine_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 102, "start_col": 19, "start_line": 102 }
module Vale.X64.Machine_s open FStar.Mul include Vale.Arch.HeapTypes_s irreducible let va_qattr = () unfold let pow2_32 = Vale.Def.Words_s.pow2_32 unfold let pow2_64 = Vale.Def.Words_s.pow2_64 unfold let pow2_128 = Vale.Def.Words_s.pow2_128 unfold let nat64 = Vale.Def.Types_s.nat64 let int_to_nat64 (i:int) : n:nat64{...
{ "checked_file": "/", "dependencies": [ "Vale.Def.Words_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "Vale.X64.Machine_s.fs...
[ { "abbrev": false, "full_module": "Vale.Arch.HeapTypes_s", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64", "short_module": null }, { "abbrev": false, "full_module": "V...
{ "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
Vale.X64.Machine_s.reg
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_s.Reg" ]
[]
false
false
false
true
false
let reg_R14:reg =
Reg 0 14
false
Hacl.Impl.Salsa20.Core32.fst
Hacl.Impl.Salsa20.Core32.load_state
val load_state: st:state -> b:lbuffer uint8 64ul -> Stack unit (requires fun h -> live h st /\ live h b /\ disjoint st b) (ensures fun h0 _ h1 -> modifies (loc st) h0 h1 /\ as_seq h1 st == Lib.ByteSequence.uints_from_bytes_le (as_seq h0 b))
val load_state: st:state -> b:lbuffer uint8 64ul -> Stack unit (requires fun h -> live h st /\ live h b /\ disjoint st b) (ensures fun h0 _ h1 -> modifies (loc st) h0 h1 /\ as_seq h1 st == Lib.ByteSequence.uints_from_bytes_le (as_seq h0 b))
let load_state st b = uints_from_bytes_le st b
{ "file_name": "code/salsa20/Hacl.Impl.Salsa20.Core32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 26, "end_line": 40, "start_col": 0, "start_line": 39 }
module Hacl.Impl.Salsa20.Core32 open FStar.HyperStack open FStar.HyperStack.All open Lib.IntTypes open Lib.Sequence open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module Spec = Spec.Salsa20 let state = lbuffer uint32 16ul let index = i:size_t{size_v i < 16} inline_for_extraction val create_s...
{ "checked_file": "/", "dependencies": [ "Spec.Salsa20.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.f...
[ { "abbrev": true, "full_module": "Spec.Salsa20", "short_module": "Spec" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Lib.ByteBuffer", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
st: Hacl.Impl.Salsa20.Core32.state -> b: Lib.Buffer.lbuffer Lib.IntTypes.uint8 64ul -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Salsa20.Core32.state", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Lib.ByteBuffer.uints_from_bytes_le", "Lib.IntTypes.U32", "Lib.IntTypes.SEC", "Prims.unit" ]
[]
false
true
false
false
false
let load_state st b =
uints_from_bytes_le st b
false
FStar.DM4F.Heap.ST.fsti
FStar.DM4F.Heap.ST.incr
val incr (r: ref int) : ST unit (requires (fun h -> h `contains_a_well_typed` r)) (ensures (fun h0 s h1 -> h0 `contains_a_well_typed` r /\ modifies (Set.singleton (addr_of r)) h0 h1 /\ sel h1 r = sel h0 r + 1))
val incr (r: ref int) : ST unit (requires (fun h -> h `contains_a_well_typed` r)) (ensures (fun h0 s h1 -> h0 `contains_a_well_typed` r /\ modifies (Set.singleton (addr_of r)) h0 h1 /\ sel h1 r = sel h0 r + 1))
let incr (r:ref int) : ST unit (requires (fun h -> h `contains_a_well_typed` r)) (ensures (fun h0 s h1 -> h0 `contains_a_well_typed` r /\ modifies (Set.singleton (addr_of r)) h0 h1 /\ sel h1 r = sel h0 r + 1)) = r := !r + 1
{ "file_name": "examples/dm4free/FStar.DM4F.Heap.ST.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 17, "end_line": 129, "start_col": 0, "start_line": 123 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Set.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.DM4F.ST.fst.checked", "FStar.DM4F.Heap.fsti.checked" ], "interface_file": false, "source_file": "FStar.DM4F.Heap.ST.fst...
[ { "abbrev": false, "full_module": "FStar.DM4F.ST", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F.Heap", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.DM4F.Heap.ref Prims.int -> FStar.DM4F.Heap.ST.ST Prims.unit
FStar.DM4F.Heap.ST.ST
[]
[]
[ "FStar.DM4F.Heap.ref", "Prims.int", "FStar.DM4F.Heap.ST.op_Colon_Equals", "Prims.unit", "Prims.op_Addition", "FStar.DM4F.Heap.ST.op_Bang", "FStar.DM4F.Heap.heap", "FStar.DM4F.Heap.contains_a_well_typed", "Prims.l_and", "FStar.DM4F.Heap.modifies", "FStar.Set.singleton", "Prims.nat", "FStar.DM...
[]
false
true
false
false
false
let incr (r: ref int) : ST unit (requires (fun h -> h `contains_a_well_typed` r)) (ensures (fun h0 s h1 -> h0 `contains_a_well_typed` r /\ modifies (Set.singleton (addr_of r)) h0 h1 /\ sel h1 r = sel h0 r + 1)) =
r := !r + 1
false
FStar.DM4F.Heap.ST.fsti
FStar.DM4F.Heap.ST.incr_increases
val incr_increases : r: FStar.DM4F.Heap.ref Prims.int -> h0: FStar.DM4F.Heap.heap{FStar.DM4F.Heap.contains_a_well_typed h0 r} -> Prims.unit
let incr_increases (r:ref int) (h0:heap{h0 `contains_a_well_typed` r}) = assert (let _, h1 = (reify (incr' r)) h0 in sel h1 r = sel h0 r + 1)
{ "file_name": "examples/dm4free/FStar.DM4F.Heap.ST.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 36, "end_line": 137, "start_col": 0, "start_line": 135 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Set.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.DM4F.ST.fst.checked", "FStar.DM4F.Heap.fsti.checked" ], "interface_file": false, "source_file": "FStar.DM4F.Heap.ST.fst...
[ { "abbrev": false, "full_module": "FStar.DM4F.ST", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F.Heap", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.DM4F.Heap.ref Prims.int -> h0: FStar.DM4F.Heap.heap{FStar.DM4F.Heap.contains_a_well_typed h0 r} -> Prims.unit
Prims.Tot
[ "total" ]
[]
[ "FStar.DM4F.Heap.ref", "Prims.int", "FStar.DM4F.Heap.heap", "FStar.DM4F.Heap.contains_a_well_typed", "Prims._assert", "Prims.unit", "Prims.b2t", "Prims.op_Equality", "FStar.DM4F.Heap.sel", "Prims.op_Addition", "FStar.Pervasives.Native.tuple2", "FStar.DM4F.Heap.ST.incr'" ]
[]
false
false
false
false
false
let incr_increases (r: ref int) (h0: heap{h0 `contains_a_well_typed` r}) =
assert (let _, h1 = (reify (incr' r)) h0 in sel h1 r = sel h0 r + 1)
false
Hacl.Impl.Salsa20.Core32.fst
Hacl.Impl.Salsa20.Core32.store_state
val store_state: b:lbuffer uint8 64ul -> st:state -> Stack unit (requires fun h -> live h st /\ live h b /\ disjoint st b) (ensures fun h0 _ h1 -> modifies (loc b) h0 h1 /\ as_seq h1 b == Lib.ByteSequence.uints_to_bytes_le (as_seq h0 st))
val store_state: b:lbuffer uint8 64ul -> st:state -> Stack unit (requires fun h -> live h st /\ live h b /\ disjoint st b) (ensures fun h0 _ h1 -> modifies (loc b) h0 h1 /\ as_seq h1 b == Lib.ByteSequence.uints_to_bytes_le (as_seq h0 st))
let store_state st b = uints_to_bytes_le 16ul st b
{ "file_name": "code/salsa20/Hacl.Impl.Salsa20.Core32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 53, "start_col": 0, "start_line": 52 }
module Hacl.Impl.Salsa20.Core32 open FStar.HyperStack open FStar.HyperStack.All open Lib.IntTypes open Lib.Sequence open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module Spec = Spec.Salsa20 let state = lbuffer uint32 16ul let index = i:size_t{size_v i < 16} inline_for_extraction val create_s...
{ "checked_file": "/", "dependencies": [ "Spec.Salsa20.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.f...
[ { "abbrev": true, "full_module": "Spec.Salsa20", "short_module": "Spec" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Lib.ByteBuffer", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Lib.Buffer.lbuffer Lib.IntTypes.uint8 64ul -> st: Hacl.Impl.Salsa20.Core32.state -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Hacl.Impl.Salsa20.Core32.state", "Lib.ByteBuffer.uints_to_bytes_le", "Lib.IntTypes.U32", "Lib.IntTypes.SEC", "Prims.unit" ]
[]
false
true
false
false
false
let store_state st b =
uints_to_bytes_le 16ul st b
false
Hacl.Streaming.Poly1305.fst
Hacl.Streaming.Poly1305.update_last_is_update
val update_last_is_update (input: S.seq uint8) (acc: Spec.Poly1305.felem) (r: Spec.Poly1305.felem): Lemma (requires (S.length input <= Spec.Poly1305.size_block)) (ensures (update_last (acc, r) input == (Spec.Poly1305.poly1305_update input acc r, r)))
val update_last_is_update (input: S.seq uint8) (acc: Spec.Poly1305.felem) (r: Spec.Poly1305.felem): Lemma (requires (S.length input <= Spec.Poly1305.size_block)) (ensures (update_last (acc, r) input == (Spec.Poly1305.poly1305_update input acc r, r)))
let update_last_is_update input acc r = if S.length input = Spec.Poly1305.size_block then update_last_block_is_update input acc r else update_last_not_block_is_update input acc r
{ "file_name": "code/streaming/Hacl.Streaming.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 50, "end_line": 282, "start_col": 0, "start_line": 279 }
module Hacl.Streaming.Poly1305 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module U32 = FStar.UInt32 module U64 = FStar.UInt64 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module P = Hacl.Impl.Poly1305 module F32xN = Hacl.Spec.Poly1305.Fie...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.Lemmas.fsti.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.check...
[ { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Poly1305.Fields", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
input: FStar.Seq.Base.seq Hacl.Streaming.Poly1305.uint8 -> acc: Spec.Poly1305.felem -> r: Spec.Poly1305.felem -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length input <= Spec.Poly1305.size_block) (ensures Hacl.Streaming.Poly1305.update_last (acc, r) input == (Spec.Poly1305.po...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.Seq.Base.seq", "Hacl.Streaming.Poly1305.uint8", "Spec.Poly1305.felem", "Prims.op_Equality", "Prims.nat", "FStar.Seq.Base.length", "Spec.Poly1305.size_block", "Hacl.Streaming.Poly1305.update_last_block_is_update", "Prims.bool", "Hacl.Streaming.Poly1305.update_last_not_block_is_update", "Pr...
[]
false
false
true
false
false
let update_last_is_update input acc r =
if S.length input = Spec.Poly1305.size_block then update_last_block_is_update input acc r else update_last_not_block_is_update input acc r
false
FStar.DM4F.Heap.ST.fsti
FStar.DM4F.Heap.ST.incr'
val incr' (r: ref int) : ST unit (fun h0 -> h0 `contains_a_well_typed` r) (fun h0 _ h1 -> h1 `contains_a_well_typed` r)
val incr' (r: ref int) : ST unit (fun h0 -> h0 `contains_a_well_typed` r) (fun h0 _ h1 -> h1 `contains_a_well_typed` r)
let incr' (r:ref int) :ST unit (fun h0 -> h0 `contains_a_well_typed` r) (fun h0 _ h1 -> h1 `contains_a_well_typed` r) = write_weak r (read_weak r + 1)
{ "file_name": "examples/dm4free/FStar.DM4F.Heap.ST.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 34, "end_line": 133, "start_col": 1, "start_line": 131 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Set.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.DM4F.ST.fst.checked", "FStar.DM4F.Heap.fsti.checked" ], "interface_file": false, "source_file": "FStar.DM4F.Heap.ST.fst...
[ { "abbrev": false, "full_module": "FStar.DM4F.ST", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F.Heap", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.DM4F.Heap.ref Prims.int -> FStar.DM4F.Heap.ST.ST Prims.unit
FStar.DM4F.Heap.ST.ST
[]
[]
[ "FStar.DM4F.Heap.ref", "Prims.int", "FStar.DM4F.Heap.ST.write_weak", "Prims.unit", "Prims.op_Addition", "FStar.DM4F.Heap.ST.read_weak", "FStar.DM4F.Heap.heap", "FStar.DM4F.Heap.contains_a_well_typed" ]
[]
false
true
false
false
false
let incr' (r: ref int) : ST unit (fun h0 -> h0 `contains_a_well_typed` r) (fun h0 _ h1 -> h1 `contains_a_well_typed` r) =
write_weak r (read_weak r + 1)
false
Hacl.Streaming.Poly1305.fst
Hacl.Streaming.Poly1305.update__
val update__ : _: (Spec.Poly1305.felem * Spec.Poly1305.felem) -> input: FStar.Seq.Base.seq Hacl.Streaming.Poly1305.uint8 {FStar.Seq.Base.length input <= Spec.Poly1305.size_block} -> Spec.Poly1305.felem * Spec.Poly1305.felem
let update__ (acc, r) (input: S.seq uint8{S.length input <= Spec.Poly1305.size_block}) = Spec.Poly1305.poly1305_update1 r (S.length input) input acc, r
{ "file_name": "code/streaming/Hacl.Streaming.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 64, "end_line": 122, "start_col": 0, "start_line": 121 }
module Hacl.Streaming.Poly1305 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module U32 = FStar.UInt32 module U64 = FStar.UInt64 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module P = Hacl.Impl.Poly1305 module F32xN = Hacl.Spec.Poly1305.Fie...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.Lemmas.fsti.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.check...
[ { "abbrev": false, "full_module": "Hacl.Impl.Poly1305.Fields", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": true, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: (Spec.Poly1305.felem * Spec.Poly1305.felem) -> input: FStar.Seq.Base.seq Hacl.Streaming.Poly1305.uint8 {FStar.Seq.Base.length input <= Spec.Poly1305.size_block} -> Spec.Poly1305.felem * Spec.Poly1305.felem
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.Native.tuple2", "Spec.Poly1305.felem", "FStar.Seq.Base.seq", "Hacl.Streaming.Poly1305.uint8", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Seq.Base.length", "Spec.Poly1305.size_block", "FStar.Pervasives.Native.Mktuple2", "Spec.Poly1305.poly1305_update1" ]
[]
false
false
false
false
false
let update__ (acc, r) (input: S.seq uint8 {S.length input <= Spec.Poly1305.size_block}) =
Spec.Poly1305.poly1305_update1 r (S.length input) input acc, r
false
FStar.DM4F.Heap.ST.fsti
FStar.DM4F.Heap.ST.copy_and_incr
val copy_and_incr (r: ref int) : ST (ref int) (requires (fun h -> h `contains_a_well_typed` r)) (ensures (fun h0 s h1 -> h0 `contains_a_well_typed` r /\ ~(h0 `contains` s) /\ h1 `contains_a_well_typed` s /\ modifies (Set.singleton (addr_of r)) h0 h1 /\ sel h1 r = sel h0 r...
val copy_and_incr (r: ref int) : ST (ref int) (requires (fun h -> h `contains_a_well_typed` r)) (ensures (fun h0 s h1 -> h0 `contains_a_well_typed` r /\ ~(h0 `contains` s) /\ h1 `contains_a_well_typed` s /\ modifies (Set.singleton (addr_of r)) h0 h1 /\ sel h1 r = sel h0 r...
let copy_and_incr (r:ref int) : ST (ref int) (requires (fun h -> h `contains_a_well_typed` r)) (ensures (fun h0 s h1 -> h0 `contains_a_well_typed` r /\ ~ (h0 `contains` s) /\ h1 `contains_a_well_typed` s /\ modifies (Set.sing...
{ "file_name": "examples/dm4free/FStar.DM4F.Heap.ST.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 7, "end_line": 150, "start_col": 0, "start_line": 139 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Set.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.DM4F.ST.fst.checked", "FStar.DM4F.Heap.fsti.checked" ], "interface_file": false, "source_file": "FStar.DM4F.Heap.ST.fst...
[ { "abbrev": false, "full_module": "FStar.DM4F.ST", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F.Heap", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.DM4F.Heap.ref Prims.int -> FStar.DM4F.Heap.ST.ST (FStar.DM4F.Heap.ref Prims.int)
FStar.DM4F.Heap.ST.ST
[]
[]
[ "FStar.DM4F.Heap.ref", "Prims.int", "Prims.unit", "FStar.DM4F.Heap.ST.incr", "FStar.DM4F.Heap.ST.alloc", "FStar.DM4F.Heap.ST.op_Bang", "FStar.DM4F.Heap.heap", "FStar.DM4F.Heap.contains_a_well_typed", "Prims.l_and", "Prims.l_not", "FStar.DM4F.Heap.contains", "FStar.DM4F.Heap.modifies", "FStar...
[]
false
true
false
false
false
let copy_and_incr (r: ref int) : ST (ref int) (requires (fun h -> h `contains_a_well_typed` r)) (ensures (fun h0 s h1 -> h0 `contains_a_well_typed` r /\ ~(h0 `contains` s) /\ h1 `contains_a_well_typed` s /\ modifies (Set.singleton (addr_of r)) h0 h1 /\ sel h1 r = sel h0 r...
let s = alloc !r in incr r; s
false
Hacl.Impl.Salsa20.Core32.fst
Hacl.Impl.Salsa20.Core32.quarter_round
val quarter_round: st:state -> a:index -> b:index -> c:index -> d:index -> Stack unit (requires fun h -> live h st /\ v b <> v d /\ v c <> v a) (ensures fun h0 _ h1 -> modifies (loc st) h0 h1 /\ as_seq h1 st == Spec.quarter_round (v a) (v b) (v c) (v d) (as_seq h0 st))
val quarter_round: st:state -> a:index -> b:index -> c:index -> d:index -> Stack unit (requires fun h -> live h st /\ v b <> v d /\ v c <> v a) (ensures fun h0 _ h1 -> modifies (loc st) h0 h1 /\ as_seq h1 st == Spec.quarter_round (v a) (v b) (v c) (v d) (as_seq h0 st))
let quarter_round st a b c d = line st b a d (size 7); line st c b a (size 9); line st d c b (size 13); line st a d c (size 18)
{ "file_name": "code/salsa20/Hacl.Impl.Salsa20.Core32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 149, "start_col": 0, "start_line": 145 }
module Hacl.Impl.Salsa20.Core32 open FStar.HyperStack open FStar.HyperStack.All open Lib.IntTypes open Lib.Sequence open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module Spec = Spec.Salsa20 let state = lbuffer uint32 16ul let index = i:size_t{size_v i < 16} inline_for_extraction val create_s...
{ "checked_file": "/", "dependencies": [ "Spec.Salsa20.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.f...
[ { "abbrev": true, "full_module": "Spec.Salsa20", "short_module": "Spec" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Lib.ByteBuffer", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
st: Hacl.Impl.Salsa20.Core32.state -> a: Hacl.Impl.Salsa20.Core32.index -> b: Hacl.Impl.Salsa20.Core32.index -> c: Hacl.Impl.Salsa20.Core32.index -> d: Hacl.Impl.Salsa20.Core32.index -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Salsa20.Core32.state", "Hacl.Impl.Salsa20.Core32.index", "Hacl.Impl.Salsa20.Core32.line", "Lib.IntTypes.size", "Prims.unit" ]
[]
false
true
false
false
false
let quarter_round st a b c d =
line st b a d (size 7); line st c b a (size 9); line st d c b (size 13); line st a d c (size 18)
false
FStar.DM4F.Heap.ST.fsti
FStar.DM4F.Heap.ST.alloc_addition_and_incr
val alloc_addition_and_incr (r: ref int) : ST (ref (int -> Tot int)) (requires (fun h -> h `contains_a_well_typed` r)) (ensures (fun h0 s h1 -> h0 `contains_a_well_typed` r /\ ~(h0 `contains` s) /\ h1 `contains_a_well_typed` s /\ modifies (Set.singleton (addr_of r)) h0 h1...
val alloc_addition_and_incr (r: ref int) : ST (ref (int -> Tot int)) (requires (fun h -> h `contains_a_well_typed` r)) (ensures (fun h0 s h1 -> h0 `contains_a_well_typed` r /\ ~(h0 `contains` s) /\ h1 `contains_a_well_typed` s /\ modifies (Set.singleton (addr_of r)) h0 h1...
let alloc_addition_and_incr (r:ref int) : ST (ref (int -> Tot int)) (requires (fun h -> h `contains_a_well_typed` r)) (ensures (fun h0 s h1 -> h0 `contains_a_well_typed` r /\ ~ (h0 `contains` s) /\ h1 `contains_a_well_typed` s /\ ...
{ "file_name": "examples/dm4free/FStar.DM4F.Heap.ST.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 7, "end_line": 166, "start_col": 0, "start_line": 156 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Set.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.DM4F.ST.fst.checked", "FStar.DM4F.Heap.fsti.checked" ], "interface_file": false, "source_file": "FStar.DM4F.Heap.ST.fst...
[ { "abbrev": false, "full_module": "FStar.DM4F.ST", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F.Heap", "short_module": null }, { "abbrev": false, "full_module": "FStar.DM4F.Heap", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.DM4F.Heap.ref Prims.int -> FStar.DM4F.Heap.ST.ST (FStar.DM4F.Heap.ref (_: Prims.int -> Prims.int))
FStar.DM4F.Heap.ST.ST
[]
[]
[ "FStar.DM4F.Heap.ref", "Prims.int", "FStar.DM4F.Heap.ST.alloc", "Prims.op_Addition", "FStar.DM4F.Heap.ST.op_Bang", "FStar.DM4F.Heap.heap", "FStar.DM4F.Heap.contains_a_well_typed", "Prims.l_and", "Prims.l_not", "FStar.DM4F.Heap.contains", "FStar.DM4F.Heap.modifies", "FStar.Set.singleton", "Pr...
[]
false
true
false
false
false
let alloc_addition_and_incr (r: ref int) : ST (ref (int -> Tot int)) (requires (fun h -> h `contains_a_well_typed` r)) (ensures (fun h0 s h1 -> h0 `contains_a_well_typed` r /\ ~(h0 `contains` s) /\ h1 `contains_a_well_typed` s /\ modifies (Set.singleton (addr_of r)) h0 h1...
let x = !r in let s = alloc (fun y -> x + y) in s
false
Hacl.Bignum.Multiplication.fst
Hacl.Bignum.Multiplication.bn_sqr
val bn_sqr: #t:limb_t -> bn_sqr_st t
val bn_sqr: #t:limb_t -> bn_sqr_st t
let bn_sqr #t aLen a res = push_frame (); [@inline_let] let resLen = aLen +! aLen in memset res (uint #t 0) resLen; let h0 = ST.get () in LSeq.eq_intro (LSeq.sub (as_seq h0 res) 0 (v resLen)) (as_seq h0 res); [@inline_let] let spec h = SS.bn_sqr_f (as_seq h a) in loop1 h0 aLen res spec (fun j -> ...
{ "file_name": "code/bignum/Hacl.Bignum.Multiplication.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 233, "start_col": 0, "start_line": 208 }
module Hacl.Bignum.Multiplication open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Definitions open Hacl.Bignum.Base open Hacl.Impl.Lib module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module B = LowStar.Buffer module S = Hacl.Spec.Bignum.Mul...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked",...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Squaring", "short_module": "SS" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Multiplication", "short_module": "S" }, { "a...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.Multiplication.bn_sqr_st t
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.limb_t", "Lib.IntTypes.size_t", "Prims.l_and", "Prims.b2t", "Prims.op_LessThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Lib.IntTypes.max_size_t", "Hacl.Bignum.Definitions.lbignum", "Lib.IntTypes.op_...
[]
false
false
false
false
false
let bn_sqr #t aLen a res =
push_frame (); [@@ inline_let ]let resLen = aLen +! aLen in memset res (uint #t 0) resLen; let h0 = ST.get () in LSeq.eq_intro (LSeq.sub (as_seq h0 res) 0 (v resLen)) (as_seq h0 res); [@@ inline_let ]let spec h = SS.bn_sqr_f (as_seq h a) in loop1 h0 aLen res spec (fun j -> Loops.unfold_repeati (v aLen) (s...
false
Hacl.Streaming.Poly1305.fst
Hacl.Streaming.Poly1305.with_or_without_r
val with_or_without_r (acc r: Spec.Poly1305.felem) (blocks: S.seq uint8) : Lemma (requires S.length blocks % Spec.Poly1305.size_block = 0) (ensures update_multi (acc, r) blocks == (update_multi' r acc blocks, r)) (decreases (S.length blocks))
val with_or_without_r (acc r: Spec.Poly1305.felem) (blocks: S.seq uint8) : Lemma (requires S.length blocks % Spec.Poly1305.size_block = 0) (ensures update_multi (acc, r) blocks == (update_multi' r acc blocks, r)) (decreases (S.length blocks))
let rec with_or_without_r (acc r: Spec.Poly1305.felem) (blocks: S.seq uint8): Lemma (requires S.length blocks % Spec.Poly1305.size_block = 0) (ensures update_multi (acc, r) blocks == (update_multi' r acc blocks, r)) (decreases (S.length blocks)) = if S.length blocks = 0 then () else ...
{ "file_name": "code/streaming/Hacl.Streaming.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 31, "end_line": 151, "start_col": 0, "start_line": 138 }
module Hacl.Streaming.Poly1305 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module U32 = FStar.UInt32 module U64 = FStar.UInt64 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module P = Hacl.Impl.Poly1305 module F32xN = Hacl.Spec.Poly1305.Fie...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.Lemmas.fsti.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.check...
[ { "abbrev": false, "full_module": "Hacl.Impl.Poly1305.Fields", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": true, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
acc: Spec.Poly1305.felem -> r: Spec.Poly1305.felem -> blocks: FStar.Seq.Base.seq Hacl.Streaming.Poly1305.uint8 -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length blocks % Spec.Poly1305.size_block = 0) (ensures Hacl.Streaming.Poly1305.update_multi (acc, r) blocks == (Hacl.Stre...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Spec.Poly1305.felem", "FStar.Seq.Base.seq", "Hacl.Streaming.Poly1305.uint8", "Prims.op_Equality", "Prims.int", "FStar.Seq.Base.length", "Prims.bool", "Lib.UpdateMulti.uint8", "Hacl.Streaming.Poly1305.with_or_without_r", "Hacl.Streaming.Poly1305.update'", "Prims.unit", "FStar.Pervasives.Native...
[ "recursion" ]
false
false
true
false
false
let rec with_or_without_r (acc r: Spec.Poly1305.felem) (blocks: S.seq uint8) : Lemma (requires S.length blocks % Spec.Poly1305.size_block = 0) (ensures update_multi (acc, r) blocks == (update_multi' r acc blocks, r)) (decreases (S.length blocks)) =
if S.length blocks = 0 then () else let block, rem = Lib.UpdateMulti.split_block Spec.Poly1305.size_block blocks 1 in let acc = update' r acc block in with_or_without_r acc r rem
false
Hacl.Impl.Salsa20.Core32.fst
Hacl.Impl.Salsa20.Core32.xor_block
val xor_block: o:lbuffer uint8 64ul -> st:state -> b:lbuffer uint8 64ul -> Stack unit (requires fun h -> live h o /\ live h st /\ live h b) (ensures fun h0 _ h1 -> modifies (loc o) h0 h1 /\ as_seq h1 o == Spec.xor_block (as_seq h0 st) (as_seq h0 b))
val xor_block: o:lbuffer uint8 64ul -> st:state -> b:lbuffer uint8 64ul -> Stack unit (requires fun h -> live h o /\ live h st /\ live h b) (ensures fun h0 _ h1 -> modifies (loc o) h0 h1 /\ as_seq h1 o == Spec.xor_block (as_seq h0 st) (as_seq h0 b))
let xor_block o st b = push_frame(); let bl = create_state() in load_state bl b; map2T (size 16) bl ( ^. ) bl st; store_state o bl; pop_frame()
{ "file_name": "code/salsa20/Hacl.Impl.Salsa20.Core32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 13, "end_line": 110, "start_col": 0, "start_line": 104 }
module Hacl.Impl.Salsa20.Core32 open FStar.HyperStack open FStar.HyperStack.All open Lib.IntTypes open Lib.Sequence open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module Spec = Spec.Salsa20 let state = lbuffer uint32 16ul let index = i:size_t{size_v i < 16} inline_for_extraction val create_s...
{ "checked_file": "/", "dependencies": [ "Spec.Salsa20.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.f...
[ { "abbrev": true, "full_module": "Spec.Salsa20", "short_module": "Spec" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Lib.ByteBuffer", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
o: Lib.Buffer.lbuffer Lib.IntTypes.uint8 64ul -> st: Hacl.Impl.Salsa20.Core32.state -> b: Lib.Buffer.lbuffer Lib.IntTypes.uint8 64ul -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Hacl.Impl.Salsa20.Core32.state", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "Hacl.Impl.Salsa20.Core32.store_state", "Lib.Buffer.map2T", "Lib.Buffer.MUT", "Lib.IntTypes.uint32", "Lib.IntTypes.size", "Lib.IntTypes.op_Ha...
[]
false
true
false
false
false
let xor_block o st b =
push_frame (); let bl = create_state () in load_state bl b; map2T (size 16) bl ( ^. ) bl st; store_state o bl; pop_frame ()
false
Hacl.Streaming.Poly1305.fst
Hacl.Streaming.Poly1305.stateful_poly1305_ctx
val stateful_poly1305_ctx (fs: field_spec) : I.stateful unit
val stateful_poly1305_ctx (fs: field_spec) : I.stateful unit
let stateful_poly1305_ctx (fs : field_spec) : I.stateful unit = I.Stateful (fun () -> t fs) (fun #_ _ s -> B.loc_addr_of_buffer (as_raw s)) (fun #_ _ s -> B.freeable (as_raw s)) (fun #_ h s -> B.live h (as_raw s) /\ P.state_inv_t h (as_lib s)) (fun () -> Spec.Poly1305.felem & Spec.Poly1305.felem) ...
{ "file_name": "code/streaming/Hacl.Streaming.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 56, "end_line": 95, "start_col": 0, "start_line": 62 }
module Hacl.Streaming.Poly1305 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module U32 = FStar.UInt32 module U64 = FStar.UInt64 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module P = Hacl.Impl.Poly1305 module F32xN = Hacl.Spec.Poly1305.Fie...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.Lemmas.fsti.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.check...
[ { "abbrev": false, "full_module": "Hacl.Impl.Poly1305.Fields", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": true, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
fs: Hacl.Impl.Poly1305.Fields.field_spec -> Hacl.Streaming.Interface.stateful Prims.unit
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Streaming.Interface.Stateful", "Prims.unit", "Hacl.Streaming.Poly1305.t", "FStar.Monotonic.HyperStack.mem", "LowStar.Monotonic.Buffer.loc_addr_of_buffer", "Hacl.Impl.Poly1305.Fields.limb", "LowStar.Buffer.trivial_preorder", "Hacl.Streaming.Poly1305.as_ra...
[]
false
false
false
true
false
let stateful_poly1305_ctx (fs: field_spec) : I.stateful unit =
I.Stateful (fun () -> t fs) (fun #_ _ s -> B.loc_addr_of_buffer (as_raw s)) (fun #_ _ s -> B.freeable (as_raw s)) (fun #_ h s -> B.live h (as_raw s) /\ P.state_inv_t h (as_lib s)) (fun () -> Spec.Poly1305.felem & Spec.Poly1305.felem) (fun () h s -> P.as_get_acc h (as_lib s), P.as_get_r h (as_lib s)) (fun #_...
false
Hacl.Streaming.Poly1305.fst
Hacl.Streaming.Poly1305.update_multi_is_update
val update_multi_is_update (input: S.seq uint8) (acc: Spec.Poly1305.felem) (r: Spec.Poly1305.felem): Lemma (requires (S.length input % Spec.Poly1305.size_block = 0)) (ensures (update_multi (acc, r) input == (Spec.Poly1305.poly1305_update input acc r, r)))
val update_multi_is_update (input: S.seq uint8) (acc: Spec.Poly1305.felem) (r: Spec.Poly1305.felem): Lemma (requires (S.length input % Spec.Poly1305.size_block = 0)) (ensures (update_multi (acc, r) input == (Spec.Poly1305.poly1305_update input acc r, r)))
let update_multi_is_update input acc r = let open Lib.UpdateMulti.Lemmas in let block_length = Spec.Poly1305.size_block in assert_norm (block_length < pow2 32); calc (==) { update_multi (acc, r) input; (==) { with_or_without_r acc r input } update_multi' r acc input, r; (==) { } update_last' r (...
{ "file_name": "code/streaming/Hacl.Streaming.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 318, "start_col": 0, "start_line": 292 }
module Hacl.Streaming.Poly1305 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module U32 = FStar.UInt32 module U64 = FStar.UInt64 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module P = Hacl.Impl.Poly1305 module F32xN = Hacl.Spec.Poly1305.Fie...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.Lemmas.fsti.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.check...
[ { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Poly1305.Fields", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
input: FStar.Seq.Base.seq Hacl.Streaming.Poly1305.uint8 -> acc: Spec.Poly1305.felem -> r: Spec.Poly1305.felem -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length input % Spec.Poly1305.size_block = 0) (ensures Hacl.Streaming.Poly1305.update_multi (acc, r) input == (Spec.Poly130...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.Seq.Base.seq", "Hacl.Streaming.Poly1305.uint8", "Spec.Poly1305.felem", "FStar.Calc.calc_finish", "FStar.Pervasives.Native.tuple2", "Prims.eq2", "Hacl.Streaming.Poly1305.update_multi", "FStar.Pervasives.Native.Mktuple2", "Lib.Sequence.repeat_blocks", "Lib.UpdateMulti.Lemmas.uint8", "Spec.P...
[]
false
false
true
false
false
let update_multi_is_update input acc r =
let open Lib.UpdateMulti.Lemmas in let block_length = Spec.Poly1305.size_block in assert_norm (block_length < pow2 32); calc ( == ) { update_multi (acc, r) input; ( == ) { with_or_without_r acc r input } update_multi' r acc input, r; ( == ) { () } update_last' r (update_multi' r acc input) S.empty, r; ( == ...
false
Hacl.Streaming.Poly1305.fst
Hacl.Streaming.Poly1305.poly_is_incremental
val poly_is_incremental: key: S.seq uint8 { S.length key = 32 } -> input:S.seq uint8 { S.length input <= pow2 32 - 1 } -> Lemma (ensures ( let hash = Lib.UpdateMulti.update_full Spec.Poly1305.size_block update_ update_last (Spec.Poly1305.poly1305_init key) input in finish_ key hash `S.equal` spec key inpu...
val poly_is_incremental: key: S.seq uint8 { S.length key = 32 } -> input:S.seq uint8 { S.length input <= pow2 32 - 1 } -> Lemma (ensures ( let hash = Lib.UpdateMulti.update_full Spec.Poly1305.size_block update_ update_last (Spec.Poly1305.poly1305_init key) input in finish_ key hash `S.equal` spec key inpu...
let poly_is_incremental key input = let open Lib.UpdateMulti.Lemmas in let block_length = Spec.Poly1305.size_block in assert_norm (block_length < pow2 32); let n = S.length input / block_length in let bs, l = S.split input (n * block_length) in FStar.Math.Lemmas.multiple_modulo_lemma n block_length; let a...
{ "file_name": "code/streaming/Hacl.Streaming.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 356, "start_col": 0, "start_line": 327 }
module Hacl.Streaming.Poly1305 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module U32 = FStar.UInt32 module U64 = FStar.UInt64 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module P = Hacl.Impl.Poly1305 module F32xN = Hacl.Spec.Poly1305.Fie...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.Lemmas.fsti.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.check...
[ { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Poly1305.Fields", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
key: FStar.Seq.Base.seq Hacl.Streaming.Poly1305.uint8 {FStar.Seq.Base.length key = 32} -> input: FStar.Seq.Base.seq Hacl.Streaming.Poly1305.uint8 {FStar.Seq.Base.length input <= Prims.pow2 32 - 1} -> FStar.Pervasives.Lemma (ensures (let hash = Lib.UpdateMulti.update_full Spe...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.Seq.Base.seq", "Hacl.Streaming.Poly1305.uint8", "Prims.b2t", "Prims.op_Equality", "Prims.int", "FStar.Seq.Base.length", "Prims.op_LessThanOrEqual", "Prims.op_Subtraction", "Prims.pow2", "Spec.Poly1305.felem", "FStar.Calc.calc_finish", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.I...
[]
false
false
true
false
false
let poly_is_incremental key input =
let open Lib.UpdateMulti.Lemmas in let block_length = Spec.Poly1305.size_block in assert_norm (block_length < pow2 32); let n = S.length input / block_length in let bs, l = S.split input (n * block_length) in FStar.Math.Lemmas.multiple_modulo_lemma n block_length; let acc, r = Spec.Poly1305.poly1305_init key in calc (S...
false
Hacl.Streaming.Poly1305.fst
Hacl.Streaming.Poly1305.update_last_block_is_update
val update_last_block_is_update (input: S.seq uint8) (acc: Spec.Poly1305.felem) (r: Spec.Poly1305.felem): Lemma (requires (S.length input = Spec.Poly1305.size_block)) (ensures (update_last (acc, r) input == (Spec.Poly1305.poly1305_update input acc r, r)))
val update_last_block_is_update (input: S.seq uint8) (acc: Spec.Poly1305.felem) (r: Spec.Poly1305.felem): Lemma (requires (S.length input = Spec.Poly1305.size_block)) (ensures (update_last (acc, r) input == (Spec.Poly1305.poly1305_update input acc r, r)))
let update_last_block_is_update input acc r = let open Lib.UpdateMulti.Lemmas in let block_length = Spec.Poly1305.size_block in assert_norm (block_length < pow2 32); assert(input `S.equal` S.append input S.empty); let acc1 = update' r acc input in let acc1' = update_multi' r acc input in // SH: fun fact: ...
{ "file_name": "code/streaming/Hacl.Streaming.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 268, "start_col": 0, "start_line": 223 }
module Hacl.Streaming.Poly1305 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module U32 = FStar.UInt32 module U64 = FStar.UInt64 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module P = Hacl.Impl.Poly1305 module F32xN = Hacl.Spec.Poly1305.Fie...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.Lemmas.fsti.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.check...
[ { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Poly1305.Fields", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
input: FStar.Seq.Base.seq Hacl.Streaming.Poly1305.uint8 -> acc: Spec.Poly1305.felem -> r: Spec.Poly1305.felem -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length input = Spec.Poly1305.size_block) (ensures Hacl.Streaming.Poly1305.update_last (acc, r) input == (Spec.Poly1305.pol...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.Seq.Base.seq", "Hacl.Streaming.Poly1305.uint8", "Spec.Poly1305.felem", "FStar.Calc.calc_finish", "FStar.Pervasives.Native.tuple2", "Prims.eq2", "Hacl.Streaming.Poly1305.update_last", "FStar.Pervasives.Native.Mktuple2", "Lib.Sequence.repeat_blocks", "Lib.UpdateMulti.Lemmas.uint8", "Lib.Upd...
[]
false
false
true
false
false
let update_last_block_is_update input acc r =
let open Lib.UpdateMulti.Lemmas in let block_length = Spec.Poly1305.size_block in assert_norm (block_length < pow2 32); assert (input `S.equal` (S.append input S.empty)); let acc1 = update' r acc input in let acc1' = update_multi' r acc input in Lib.Sequence.Lemmas.repeat_blocks_extensionality block_length input (r...
false
Hacl.Streaming.Poly1305.fst
Hacl.Streaming.Poly1305.update_last_not_block_is_update
val update_last_not_block_is_update (input: S.seq uint8) (acc: Spec.Poly1305.felem) (r: Spec.Poly1305.felem): Lemma (requires (S.length input < Spec.Poly1305.size_block)) (ensures (update_last (acc, r) input == (Spec.Poly1305.poly1305_update input acc r, r)))
val update_last_not_block_is_update (input: S.seq uint8) (acc: Spec.Poly1305.felem) (r: Spec.Poly1305.felem): Lemma (requires (S.length input < Spec.Poly1305.size_block)) (ensures (update_last (acc, r) input == (Spec.Poly1305.poly1305_update input acc r, r)))
let update_last_not_block_is_update input acc r = let open Lib.UpdateMulti.Lemmas in let block_length = Spec.Poly1305.size_block in assert_norm (block_length < pow2 32); calc (==) { update_last (acc, r) input; (==) { } update_last' r acc input, r; (==) { Lib.UpdateMulti.update_multi_zero Spec.Poly13...
{ "file_name": "code/streaming/Hacl.Streaming.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 210, "start_col": 0, "start_line": 184 }
module Hacl.Streaming.Poly1305 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module U32 = FStar.UInt32 module U64 = FStar.UInt64 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module P = Hacl.Impl.Poly1305 module F32xN = Hacl.Spec.Poly1305.Fie...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.Lemmas.fsti.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.check...
[ { "abbrev": false, "full_module": "Hacl.Impl.Poly1305.Fields", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": true, "full...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
input: FStar.Seq.Base.seq Hacl.Streaming.Poly1305.uint8 -> acc: Spec.Poly1305.felem -> r: Spec.Poly1305.felem -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length input < Spec.Poly1305.size_block) (ensures Hacl.Streaming.Poly1305.update_last (acc, r) input == (Spec.Poly1305.pol...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.Seq.Base.seq", "Hacl.Streaming.Poly1305.uint8", "Spec.Poly1305.felem", "FStar.Calc.calc_finish", "FStar.Pervasives.Native.tuple2", "Prims.eq2", "Hacl.Streaming.Poly1305.update_last", "FStar.Pervasives.Native.Mktuple2", "Lib.Sequence.repeat_blocks", "Lib.UpdateMulti.Lemmas.uint8", "Spec.Po...
[]
false
false
true
false
false
let update_last_not_block_is_update input acc r =
let open Lib.UpdateMulti.Lemmas in let block_length = Spec.Poly1305.size_block in assert_norm (block_length < pow2 32); calc ( == ) { update_last (acc, r) input; ( == ) { () } update_last' r acc input, r; ( == ) { Lib.UpdateMulti.update_multi_zero Spec.Poly1305.size_block (update' r) acc } update_last' r (upd...
false
Hacl.Impl.Salsa20.Core32.fst
Hacl.Impl.Salsa20.Core32.double_round
val double_round: st:state -> Stack unit (requires fun h -> live h st) (ensures fun h0 _ h1 -> modifies (loc st) h0 h1 /\ as_seq h1 st == Spec.double_round (as_seq h0 st))
val double_round: st:state -> Stack unit (requires fun h -> live h st) (ensures fun h0 _ h1 -> modifies (loc st) h0 h1 /\ as_seq h1 st == Spec.double_round (as_seq h0 st))
let double_round st = quarter_round st (size 0) (size 4) (size 8) (size 12); quarter_round st (size 5) (size 9) (size 13) (size 1); quarter_round st (size 10) (size 14) (size 2) (size 6); quarter_round st (size 15) (size 3) (size 7) (size 11); quarter_round st (size 0) (size 1) (size 2) (size 3); quarter_r...
{ "file_name": "code/salsa20/Hacl.Impl.Salsa20.Core32.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 58, "end_line": 171, "start_col": 0, "start_line": 162 }
module Hacl.Impl.Salsa20.Core32 open FStar.HyperStack open FStar.HyperStack.All open Lib.IntTypes open Lib.Sequence open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module Spec = Spec.Salsa20 let state = lbuffer uint32 16ul let index = i:size_t{size_v i < 16} inline_for_extraction val create_s...
{ "checked_file": "/", "dependencies": [ "Spec.Salsa20.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.f...
[ { "abbrev": true, "full_module": "Spec.Salsa20", "short_module": "Spec" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": false, "full_module": "Lib.ByteBuffer", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
st: Hacl.Impl.Salsa20.Core32.state -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Salsa20.Core32.state", "Hacl.Impl.Salsa20.Core32.quarter_round", "Lib.IntTypes.size", "Prims.unit" ]
[]
false
true
false
false
false
let double_round st =
quarter_round st (size 0) (size 4) (size 8) (size 12); quarter_round st (size 5) (size 9) (size 13) (size 1); quarter_round st (size 10) (size 14) (size 2) (size 6); quarter_round st (size 15) (size 3) (size 7) (size 11); quarter_round st (size 0) (size 1) (size 2) (size 3); quarter_round st (size 5) (size 6) (size 7) ...
false
Hacl.Streaming.Poly1305.fst
Hacl.Streaming.Poly1305.poly_is_incremental_lazy
val poly_is_incremental_lazy: key: S.seq uint8 { S.length key = 32 } -> input:S.seq uint8 { S.length input <= pow2 32 - 1 } -> Lemma (ensures ( let hash = Lib.UpdateMulti.update_full_lazy Spec.Poly1305.size_block update_ update_last (Spec.Poly1305.poly1305_init key) input in finish_ key hash `S.equal` spe...
val poly_is_incremental_lazy: key: S.seq uint8 { S.length key = 32 } -> input:S.seq uint8 { S.length input <= pow2 32 - 1 } -> Lemma (ensures ( let hash = Lib.UpdateMulti.update_full_lazy Spec.Poly1305.size_block update_ update_last (Spec.Poly1305.poly1305_init key) input in finish_ key hash `S.equal` spe...
let poly_is_incremental_lazy key input = let open Lib.UpdateMulti.Lemmas in let block_length = Spec.Poly1305.size_block in assert_norm (block_length < pow2 32); let n = S.length input / block_length in let rem = S.length input % block_length in let n', rem' = if rem = 0 && n > 0 then n - 1, block_length els...
{ "file_name": "code/streaming/Hacl.Streaming.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 36, "end_line": 396, "start_col": 0, "start_line": 368 }
module Hacl.Streaming.Poly1305 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module U32 = FStar.UInt32 module U64 = FStar.UInt64 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module P = Hacl.Impl.Poly1305 module F32xN = Hacl.Spec.Poly1305.Fie...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.Lemmas.fsti.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.check...
[ { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Poly1305.Fields", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
key: FStar.Seq.Base.seq Hacl.Streaming.Poly1305.uint8 {FStar.Seq.Base.length key = 32} -> input: FStar.Seq.Base.seq Hacl.Streaming.Poly1305.uint8 {FStar.Seq.Base.length input <= Prims.pow2 32 - 1} -> FStar.Pervasives.Lemma (ensures (let hash = Lib.UpdateMulti.update_full_laz...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.Seq.Base.seq", "Hacl.Streaming.Poly1305.uint8", "Prims.b2t", "Prims.op_Equality", "Prims.int", "FStar.Seq.Base.length", "Prims.op_LessThanOrEqual", "Prims.op_Subtraction", "Prims.pow2", "Spec.Poly1305.felem", "Prims.op_AmpAmp", "Prims.op_GreaterThan", "Hacl.Streaming.Poly1305.poly_is_...
[]
false
false
true
false
false
let poly_is_incremental_lazy key input =
let open Lib.UpdateMulti.Lemmas in let block_length = Spec.Poly1305.size_block in assert_norm (block_length < pow2 32); let n = S.length input / block_length in let rem = S.length input % block_length in let n', rem' = if rem = 0 && n > 0 then n - 1, block_length else n, rem in let bs, l = S.split input (n' * block_len...
false
FStar.Tactics.Util.fst
FStar.Tactics.Util.mapi
val mapi: (nat -> 'a -> Tac 'b) -> list 'a -> Tac (list 'b)
val mapi: (nat -> 'a -> Tac 'b) -> list 'a -> Tac (list 'b)
let mapi f l = __mapi 0 f l
{ "file_name": "ulib/FStar.Tactics.Util.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 27, "end_line": 33, "start_col": 0, "start_line": 33 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.Util.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.nat -> _: 'a -> FStar.Tactics.Effect.Tac 'b) -> l: Prims.list 'a -> FStar.Tactics.Effect.Tac (Prims.list 'b)
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.nat", "Prims.list", "FStar.Tactics.Util.__mapi" ]
[]
false
true
false
false
false
let mapi f l =
__mapi 0 f l
false
FStar.Tactics.Util.fst
FStar.Tactics.Util.iteri
val iteri: (int -> 'a -> Tac unit) -> list 'a -> Tac unit
val iteri: (int -> 'a -> Tac unit) -> list 'a -> Tac unit
let iteri f x = iteri_aux 0 f x
{ "file_name": "ulib/FStar.Tactics.Util.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 31, "end_line": 46, "start_col": 0, "start_line": 46 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.Util.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.int -> _: 'a -> FStar.Tactics.Effect.Tac Prims.unit) -> x: Prims.list 'a -> FStar.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.int", "Prims.unit", "Prims.list", "FStar.Tactics.Util.iteri_aux" ]
[]
false
true
false
false
false
let iteri f x =
iteri_aux 0 f x
false
FStar.Tactics.Util.fst
FStar.Tactics.Util.map
val map: ('a -> Tac 'b) -> list 'a -> Tac (list 'b)
val map: ('a -> Tac 'b) -> list 'a -> Tac (list 'b)
let rec map f x = match x with | [] -> [] | a::tl -> f a::map f tl
{ "file_name": "ulib/FStar.Tactics.Util.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 26, "end_line": 25, "start_col": 0, "start_line": 23 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.Util.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: 'a -> FStar.Tactics.Effect.Tac 'b) -> x: Prims.list 'a -> FStar.Tactics.Effect.Tac (Prims.list 'b)
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.list", "Prims.Nil", "Prims.Cons", "FStar.Tactics.Util.map" ]
[ "recursion" ]
false
true
false
false
false
let rec map f x =
match x with | [] -> [] | a :: tl -> f a :: map f tl
false
FStar.Tactics.Util.fst
FStar.Tactics.Util.iter
val iter : ('a -> Tac unit) -> list 'a -> Tac unit
val iter : ('a -> Tac unit) -> list 'a -> Tac unit
let rec iter f x = match x with | [] -> () | a::tl -> f a; iter f tl
{ "file_name": "ulib/FStar.Tactics.Util.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 27, "end_line": 38, "start_col": 0, "start_line": 36 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.Util.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: 'a -> FStar.Tactics.Effect.Tac Prims.unit) -> x: Prims.list 'a -> FStar.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.unit", "Prims.list", "FStar.Tactics.Util.iter" ]
[ "recursion" ]
false
true
false
false
false
let rec iter f x =
match x with | [] -> () | a :: tl -> f a; iter f tl
false
FStar.Tactics.Util.fst
FStar.Tactics.Util.zip
val zip : (#a:Type) -> (#b:Type) -> list a -> list b -> Tac (list (a * b))
val zip : (#a:Type) -> (#b:Type) -> list a -> list b -> Tac (list (a * b))
let rec zip #a #b l1 l2 = match l1, l2 with | x::xs, y::ys -> (x,y) :: (zip xs ys) | _ -> []
{ "file_name": "ulib/FStar.Tactics.Util.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 13, "end_line": 62, "start_col": 0, "start_line": 60 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.Util.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l1: Prims.list a -> l2: Prims.list b -> FStar.Tactics.Effect.Tac (Prims.list (a * b))
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.list", "FStar.Pervasives.Native.Mktuple2", "Prims.Cons", "FStar.Pervasives.Native.tuple2", "FStar.Tactics.Util.zip", "Prims.Nil" ]
[ "recursion" ]
false
true
false
false
false
let rec zip #a #b l1 l2 =
match l1, l2 with | x :: xs, y :: ys -> (x, y) :: (zip xs ys) | _ -> []
false
FStar.Tactics.Util.fst
FStar.Tactics.Util.filter_map
val filter_map (f: ('a -> Tac (option 'b))) (l: list 'a) : Tac (list 'b)
val filter_map (f: ('a -> Tac (option 'b))) (l: list 'a) : Tac (list 'b)
let filter_map (f:'a -> Tac (option 'b)) (l:list 'a) : Tac (list 'b) = filter_map_acc f [] l
{ "file_name": "ulib/FStar.Tactics.Util.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 23, "end_line": 82, "start_col": 0, "start_line": 81 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.Util.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: 'a -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option 'b)) -> l: Prims.list 'a -> FStar.Tactics.Effect.Tac (Prims.list 'b)
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Pervasives.Native.option", "Prims.list", "FStar.Tactics.Util.filter_map_acc", "Prims.Nil" ]
[]
false
true
false
false
false
let filter_map (f: ('a -> Tac (option 'b))) (l: list 'a) : Tac (list 'b) =
filter_map_acc f [] l
false
FStar.Tactics.Util.fst
FStar.Tactics.Util.__mapi
val __mapi: nat -> (nat -> 'a -> Tac 'b) -> list 'a -> Tac (list 'b)
val __mapi: nat -> (nat -> 'a -> Tac 'b) -> list 'a -> Tac (list 'b)
let rec __mapi i f x = match x with | [] -> [] | a::tl -> f i a::__mapi (i+1) f tl
{ "file_name": "ulib/FStar.Tactics.Util.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 37, "end_line": 30, "start_col": 0, "start_line": 28 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.Util.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "fu...
{ "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
i: Prims.nat -> f: (_: Prims.nat -> _: 'a -> FStar.Tactics.Effect.Tac 'b) -> x: Prims.list 'a -> FStar.Tactics.Effect.Tac (Prims.list 'b)
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.nat", "Prims.list", "Prims.Nil", "Prims.Cons", "FStar.Tactics.Util.__mapi", "Prims.op_Addition" ]
[ "recursion" ]
false
true
false
false
false
let rec __mapi i f x =
match x with | [] -> [] | a :: tl -> f i a :: __mapi (i + 1) f tl
false
FStar.Tactics.Util.fst
FStar.Tactics.Util.iteri_aux
val iteri_aux: int -> (int -> 'a -> Tac unit) -> list 'a -> Tac unit
val iteri_aux: int -> (int -> 'a -> Tac unit) -> list 'a -> Tac unit
let rec iteri_aux i f x = match x with | [] -> () | a::tl -> f i a; iteri_aux (i+1) f tl
{ "file_name": "ulib/FStar.Tactics.Util.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 40, "end_line": 43, "start_col": 0, "start_line": 41 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.Util.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "fu...
{ "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
i: Prims.int -> f: (_: Prims.int -> _: 'a -> FStar.Tactics.Effect.Tac Prims.unit) -> x: Prims.list 'a -> FStar.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.int", "Prims.unit", "Prims.list", "FStar.Tactics.Util.iteri_aux", "Prims.op_Addition" ]
[ "recursion" ]
false
true
false
false
false
let rec iteri_aux i f x =
match x with | [] -> () | a :: tl -> f i a; iteri_aux (i + 1) f tl
false
FStar.Tactics.Util.fst
FStar.Tactics.Util.fold_right
val fold_right: ('a -> 'b -> Tac 'b) -> list 'a -> 'b -> Tac 'b
val fold_right: ('a -> 'b -> Tac 'b) -> list 'a -> 'b -> Tac 'b
let rec fold_right f l x = match l with | [] -> x | hd::tl -> f hd (fold_right f tl x)
{ "file_name": "ulib/FStar.Tactics.Util.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 38, "end_line": 56, "start_col": 0, "start_line": 54 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.Util.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: 'a -> _: 'b -> FStar.Tactics.Effect.Tac 'b) -> l: Prims.list 'a -> x: 'b -> FStar.Tactics.Effect.Tac 'b
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.list", "FStar.Tactics.Util.fold_right" ]
[ "recursion" ]
false
true
false
false
false
let rec fold_right f l x =
match l with | [] -> x | hd :: tl -> f hd (fold_right f tl x)
false
FStar.Tactics.Util.fst
FStar.Tactics.Util.fold_left
val fold_left: ('a -> 'b -> Tac 'a) -> 'a -> l:list 'b -> Tac 'a
val fold_left: ('a -> 'b -> Tac 'a) -> 'a -> l:list 'b -> Tac 'a
let rec fold_left f x l = match l with | [] -> x | hd::tl -> fold_left f (f x hd) tl
{ "file_name": "ulib/FStar.Tactics.Util.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 37, "end_line": 51, "start_col": 0, "start_line": 49 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.Util.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: 'a -> _: 'b -> FStar.Tactics.Effect.Tac 'a) -> x: 'a -> l: Prims.list 'b -> FStar.Tactics.Effect.Tac 'a
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.list", "FStar.Tactics.Util.fold_left" ]
[ "recursion" ]
false
true
false
false
false
let rec fold_left f x l =
match l with | [] -> x | hd :: tl -> fold_left f (f x hd) tl
false
FStar.Tactics.Util.fst
FStar.Tactics.Util.filter_map_acc
val filter_map_acc (f: ('a -> Tac (option 'b))) (acc: list 'b) (l: list 'a) : Tac (list 'b)
val filter_map_acc (f: ('a -> Tac (option 'b))) (acc: list 'b) (l: list 'a) : Tac (list 'b)
let rec filter_map_acc (f:'a -> Tac (option 'b)) (acc:list 'b) (l:list 'a) : Tac (list 'b) = match l with | [] -> rev acc | hd :: tl -> match f hd with | Some hd -> filter_map_acc f (hd :: acc) tl | None -> filter_map_acc f acc tl
{ "file_name": "ulib/FStar.Tactics.Util.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 33, "end_line": 79, "start_col": 8, "start_line": 69 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.Util.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: 'a -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option 'b)) -> acc: Prims.list 'b -> l: Prims.list 'a -> FStar.Tactics.Effect.Tac (Prims.list 'b)
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Pervasives.Native.option", "Prims.list", "FStar.List.Tot.Base.rev", "FStar.Tactics.Util.filter_map_acc", "Prims.Cons" ]
[ "recursion" ]
false
true
false
false
false
let rec filter_map_acc (f: ('a -> Tac (option 'b))) (acc: list 'b) (l: list 'a) : Tac (list 'b) =
match l with | [] -> rev acc | hd :: tl -> match f hd with | Some hd -> filter_map_acc f (hd :: acc) tl | None -> filter_map_acc f acc tl
false
FStar.Tactics.Util.fst
FStar.Tactics.Util.repeatn
val repeatn (#a: Type) (n: int) (t: (unit -> Tac a)) : Tac (l: list a {n < 0 \/ length l == n})
val repeatn (#a: Type) (n: int) (t: (unit -> Tac a)) : Tac (l: list a {n < 0 \/ length l == n})
let rec repeatn (#a:Type) (n : int) (t : unit -> Tac a) : Tac (l:list a{n < 0 \/ length l == n}) = if n <= 0 then [] else t () :: repeatn (n - 1) t
{ "file_name": "ulib/FStar.Tactics.Util.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 34, "end_line": 101, "start_col": 0, "start_line": 98 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.Util.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Prims.int -> t: (_: Prims.unit -> FStar.Tactics.Effect.Tac a) -> FStar.Tactics.Effect.Tac (l: Prims.list a {n < 0 \/ FStar.List.Tot.Base.length l == n})
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.int", "Prims.unit", "Prims.op_LessThanOrEqual", "Prims.Nil", "Prims.list", "Prims.l_or", "Prims.b2t", "Prims.op_LessThan", "Prims.eq2", "FStar.List.Tot.Base.length", "Prims.bool", "Prims.Cons", "FStar.Tactics.Util.repeatn", "Prims.op_Subtraction" ]
[ "recursion" ]
false
true
false
false
false
let rec repeatn (#a: Type) (n: int) (t: (unit -> Tac a)) : Tac (l: list a {n < 0 \/ length l == n}) =
if n <= 0 then [] else t () :: repeatn (n - 1) t
false
FStar.Tactics.Util.fst
FStar.Tactics.Util.map_opt
val map_opt (f: ('a -> Tac 'b)) (x: option 'a) : Tac (option 'b)
val map_opt (f: ('a -> Tac 'b)) (x: option 'a) : Tac (option 'b)
let map_opt (f:'a -> Tac 'b) (x:option 'a) : Tac (option 'b) = match x with | None -> None | Some x -> Some (f x)
{ "file_name": "ulib/FStar.Tactics.Util.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 24, "end_line": 95, "start_col": 0, "start_line": 92 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.Util.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: 'a -> FStar.Tactics.Effect.Tac 'b) -> x: FStar.Pervasives.Native.option 'a -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option 'b)
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Pervasives.Native.option", "FStar.Pervasives.Native.None", "FStar.Pervasives.Native.Some" ]
[]
false
true
false
false
false
let map_opt (f: ('a -> Tac 'b)) (x: option 'a) : Tac (option 'b) =
match x with | None -> None | Some x -> Some (f x)
false
FStar.Tactics.Util.fst
FStar.Tactics.Util.tryPick
val tryPick: ('a -> Tac (option 'b)) -> list 'a -> Tac (option 'b)
val tryPick: ('a -> Tac (option 'b)) -> list 'a -> Tac (option 'b)
let rec tryPick f l = match l with | [] -> None | hd::tl -> match f hd with | Some x -> Some x | None -> tryPick f tl
{ "file_name": "ulib/FStar.Tactics.Util.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 31, "end_line": 90, "start_col": 0, "start_line": 85 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.Util.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: 'a -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option 'b)) -> l: Prims.list 'a -> FStar.Tactics.Effect.Tac (FStar.Pervasives.Native.option 'b)
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Pervasives.Native.option", "Prims.list", "FStar.Pervasives.Native.None", "FStar.Pervasives.Native.Some", "FStar.Tactics.Util.tryPick" ]
[ "recursion" ]
false
true
false
false
false
let rec tryPick f l =
match l with | [] -> None | hd :: tl -> match f hd with | Some x -> Some x | None -> tryPick f tl
false
FStar.Tactics.Util.fst
FStar.Tactics.Util.fold_left2
val fold_left2 (#a #b #c: Type) (f: (a -> b -> c -> Tac a)) (x: a) (l1: list b) (l2: list c) : TacH a (requires fun _ -> length l1 == length l2) (ensures fun _ _ -> True)
val fold_left2 (#a #b #c: Type) (f: (a -> b -> c -> Tac a)) (x: a) (l1: list b) (l2: list c) : TacH a (requires fun _ -> length l1 == length l2) (ensures fun _ _ -> True)
let rec fold_left2 (#a #b #c:Type) (f:a -> b -> c -> Tac a) (x:a) (l1:list b) (l2:list c) : TacH a (requires fun _ -> length l1 == length l2) (ensures fun _ _ -> True) = match l1, l2 with | [], [] -> x | hd1::tl1, hd2::tl2 -> fold_left2 f (f x hd1 hd2) tl1 tl2
{ "file_name": "ulib/FStar.Tactics.Util.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 38, "end_line": 117, "start_col": 0, "start_line": 110 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.Util.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: a -> _: b -> _: c -> FStar.Tactics.Effect.Tac a) -> x: a -> l1: Prims.list b -> l2: Prims.list c -> FStar.Tactics.Effect.TacH a
FStar.Tactics.Effect.TacH
[]
[]
[ "Prims.list", "FStar.Pervasives.Native.Mktuple2", "FStar.Tactics.Util.fold_left2", "FStar.Stubs.Tactics.Types.proofstate", "Prims.eq2", "Prims.nat", "FStar.List.Tot.Base.length", "FStar.Stubs.Tactics.Result.__result", "Prims.l_True" ]
[ "recursion" ]
false
true
false
false
false
let rec fold_left2 (#a #b #c: Type) (f: (a -> b -> c -> Tac a)) (x: a) (l1: list b) (l2: list c) : TacH a (requires fun _ -> length l1 == length l2) (ensures fun _ _ -> True) =
match l1, l2 with | [], [] -> x | hd1 :: tl1, hd2 :: tl2 -> fold_left2 f (f x hd1 hd2) tl1 tl2
false
FStar.Tactics.Util.fst
FStar.Tactics.Util.string_of_list
val string_of_list (#a: _) (f: (a -> Tac string)) (l: list a) : Tac string
val string_of_list (#a: _) (f: (a -> Tac string)) (l: list a) : Tac string
let rec string_of_list #a (f : a -> Tac string) (l : list a) : Tac string = match l with | [] -> "" | x::xs -> f x ^ ";" ^ string_of_list f xs
{ "file_name": "ulib/FStar.Tactics.Util.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 44, "end_line": 122, "start_col": 0, "start_line": 119 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.Util.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: a -> FStar.Tactics.Effect.Tac Prims.string) -> l: Prims.list a -> FStar.Tactics.Effect.Tac Prims.string
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.string", "Prims.list", "Prims.op_Hat", "FStar.Tactics.Util.string_of_list" ]
[ "recursion" ]
false
true
false
false
false
let rec string_of_list #a (f: (a -> Tac string)) (l: list a) : Tac string =
match l with | [] -> "" | x :: xs -> f x ^ ";" ^ string_of_list f xs
false
FStar.Tactics.Util.fst
FStar.Tactics.Util.tryFind
val tryFind (#a: Type) (f: (a -> Tac bool)) (l: list a) : Tac bool
val tryFind (#a: Type) (f: (a -> Tac bool)) (l: list a) : Tac bool
let rec tryFind (#a:Type) (f:a -> Tac bool) (l:list a) : Tac bool = match l with | [] -> false | hd::tl -> if f hd then true else tryFind f tl
{ "file_name": "ulib/FStar.Tactics.Util.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 21, "end_line": 108, "start_col": 0, "start_line": 103 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.Util.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: a -> FStar.Tactics.Effect.Tac Prims.bool) -> l: Prims.list a -> FStar.Tactics.Effect.Tac Prims.bool
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.bool", "Prims.list", "FStar.Tactics.Util.tryFind" ]
[ "recursion" ]
false
true
false
false
false
let rec tryFind (#a: Type) (f: (a -> Tac bool)) (l: list a) : Tac bool =
match l with | [] -> false | hd :: tl -> if f hd then true else tryFind f tl
false
FStar.Tactics.Util.fst
FStar.Tactics.Util.filter
val filter: ('a -> Tac bool) -> list 'a -> Tac (list 'a)
val filter: ('a -> Tac bool) -> list 'a -> Tac (list 'a)
let rec filter f = function | [] -> [] | hd::tl -> if f hd then hd::(filter f tl) else filter f tl
{ "file_name": "ulib/FStar.Tactics.Util.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 61, "end_line": 67, "start_col": 0, "start_line": 65 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.Base.fst.checked" ], "interface_file": false, "source_file": "FStar.Tactics.Util.fst" }
[ { "abbrev": false, "full_module": "FStar.List.Tot.Base", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Effect", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: 'a -> FStar.Tactics.Effect.Tac Prims.bool) -> _: Prims.list 'a -> FStar.Tactics.Effect.Tac (Prims.list 'a)
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.bool", "Prims.list", "Prims.Nil", "Prims.Cons", "FStar.Tactics.Util.filter" ]
[ "recursion" ]
false
true
false
false
false
let rec filter f =
function | [] -> [] | hd :: tl -> if f hd then hd :: (filter f tl) else filter f tl
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.bn_add
val bn_add:BN.bn_add_st U64
val bn_add:BN.bn_add_st U64
let bn_add : BN.bn_add_st U64 = BN.bn_add
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 41, "end_line": 31, "start_col": 0, "start_line": 31 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.bn_add_st Lib.IntTypes.U64
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.bn_add", "Lib.IntTypes.U64" ]
[]
false
false
false
true
false
let bn_add:BN.bn_add_st U64 =
BN.bn_add
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.add4
val add4:BN.bn_add_eq_len_st U64 qnlimb
val add4:BN.bn_add_eq_len_st U64 qnlimb
let add4: BN.bn_add_eq_len_st U64 qnlimb = BN.bn_add_eq_len qnlimb
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 37, "start_col": 0, "start_line": 36 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.bn_add_eq_len_st Lib.IntTypes.U64 Hacl.K256.Scalar.qnlimb
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.bn_add_eq_len", "Lib.IntTypes.U64", "Hacl.K256.Scalar.qnlimb" ]
[]
false
false
false
true
false
let add4:BN.bn_add_eq_len_st U64 qnlimb =
BN.bn_add_eq_len qnlimb
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.sub4
val sub4:BN.bn_sub_eq_len_st U64 qnlimb
val sub4:BN.bn_sub_eq_len_st U64 qnlimb
let sub4: BN.bn_sub_eq_len_st U64 qnlimb = BN.bn_sub_eq_len qnlimb
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 40, "start_col": 0, "start_line": 39 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.bn_sub_eq_len_st Lib.IntTypes.U64 Hacl.K256.Scalar.qnlimb
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.bn_sub_eq_len", "Lib.IntTypes.U64", "Hacl.K256.Scalar.qnlimb" ]
[]
false
false
false
true
false
let sub4:BN.bn_sub_eq_len_st U64 qnlimb =
BN.bn_sub_eq_len qnlimb
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.is_qelem_zero
val is_qelem_zero (f:qelem) : Stack uint64 (requires fun h -> live h f) (ensures fun h0 m h1 -> modifies0 h0 h1 /\ (v m = 0 \/ v m = ones_v U64) /\ v m == (if qas_nat h0 f = 0 then ones_v U64 else 0))
val is_qelem_zero (f:qelem) : Stack uint64 (requires fun h -> live h f) (ensures fun h0 m h1 -> modifies0 h0 h1 /\ (v m = 0 \/ v m = ones_v U64) /\ v m == (if qas_nat h0 f = 0 then ones_v U64 else 0))
let is_qelem_zero f = let h0 = ST.get () in SN.bn_is_zero_mask_lemma (as_seq h0 f); BN.bn_is_zero_mask qnlimb f
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 107, "start_col": 0, "start_line": 104 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "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
f: Hacl.K256.Scalar.qelem -> FStar.HyperStack.ST.Stack Lib.IntTypes.uint64
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "Hacl.Bignum.bn_is_zero_mask", "Lib.IntTypes.U64", "Hacl.K256.Scalar.qnlimb", "Hacl.Bignum.Definitions.limb", "Prims.unit", "Hacl.Spec.Bignum.bn_is_zero_mask_lemma", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Lib.Buffer.as_seq", "Lib.Buffer.MUT", "Li...
[]
false
true
false
false
false
let is_qelem_zero f =
let h0 = ST.get () in SN.bn_is_zero_mask_lemma (as_seq h0 f); BN.bn_is_zero_mask qnlimb f
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.add_mod4
val add_mod4:BN.bn_add_mod_n_st U64 qnlimb
val add_mod4:BN.bn_add_mod_n_st U64 qnlimb
let add_mod4: BN.bn_add_mod_n_st U64 qnlimb = BN.bn_add_mod_n qnlimb
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 24, "end_line": 43, "start_col": 0, "start_line": 42 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.bn_add_mod_n_st Lib.IntTypes.U64 Hacl.K256.Scalar.qnlimb
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.bn_add_mod_n", "Lib.IntTypes.U64", "Hacl.K256.Scalar.qnlimb" ]
[]
false
false
false
true
false
let add_mod4:BN.bn_add_mod_n_st U64 qnlimb =
BN.bn_add_mod_n qnlimb
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.make_order_k256
val make_order_k256: unit -> Pure qelem4 (requires True) (ensures fun r -> qas_nat4 r = S.q)
val make_order_k256: unit -> Pure qelem4 (requires True) (ensures fun r -> qas_nat4 r = S.q)
let make_order_k256 () = [@inline_let] let r = (u64 0xbfd25e8cd0364141, u64 0xbaaedce6af48a03b, u64 0xfffffffffffffffe, u64 0xffffffffffffffff) in assert_norm (qas_nat4 r = S.q); r
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 85, "start_col": 0, "start_line": 76 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "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.unit -> Prims.Pure Hacl.Spec.K256.Scalar.qelem4
Prims.Pure
[]
[]
[ "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Hacl.Spec.K256.Scalar.qas_nat4", "Spec.K256.PointOps.q", "FStar.Pervasives.Native.tuple4", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "FStar.Pervasives.Native.Mktuple4", "Lib.IntT...
[]
false
false
false
false
false
let make_order_k256 () =
[@@ inline_let ]let r = (u64 0xbfd25e8cd0364141, u64 0xbaaedce6af48a03b, u64 0xfffffffffffffffe, u64 0xffffffffffffffff) in assert_norm (qas_nat4 r = S.q); r
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.load_qelem
val load_qelem: f:qelem -> b:lbuffer uint8 32ul -> Stack unit (requires fun h -> live h f /\ live h b /\ disjoint f b) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ qas_nat h1 f == BSeq.nat_from_bytes_be (as_seq h0 b))
val load_qelem: f:qelem -> b:lbuffer uint8 32ul -> Stack unit (requires fun h -> live h f /\ live h b /\ disjoint f b) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ qas_nat h1 f == BSeq.nat_from_bytes_be (as_seq h0 b))
let load_qelem f b = let h0 = ST.get () in Hacl.Spec.Bignum.Convert.bn_from_bytes_be_lemma #U64 32 (as_seq h0 b); Hacl.Bignum.Convert.mk_bn_from_bytes_be true 32ul b f
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 55, "end_line": 135, "start_col": 0, "start_line": 132 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "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
f: Hacl.K256.Scalar.qelem -> b: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Hacl.Bignum.Convert.mk_bn_from_bytes_be", "Lib.IntTypes.U64", "Prims.unit", "Hacl.Spec.Bignum.Convert.bn_from_bytes_be_lemma", "Lib.Buffer.as_seq", "Lib.Buffer.MUT", "FStar.Monotonic.HyperStack.mem...
[]
false
true
false
false
false
let load_qelem f b =
let h0 = ST.get () in Hacl.Spec.Bignum.Convert.bn_from_bytes_be_lemma #U64 32 (as_seq h0 b); Hacl.Bignum.Convert.mk_bn_from_bytes_be true 32ul b f
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.kn
[@@ FStar.Tactics.Typeclasses.tcinstance] val kn:BN.bn U64
[@@ FStar.Tactics.Typeclasses.tcinstance] val kn:BN.bn U64
instance kn: BN.bn U64 = { BN.len = qnlimb; BN.add = add4; BN.sub = sub4; BN.add_mod_n = add_mod4; BN.sub_mod_n = sub_mod4; BN.mul = mul4; BN.sqr = sqr4 }
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 1, "end_line": 63, "start_col": 0, "start_line": 55 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.bn Lib.IntTypes.U64
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Mkbn", "Lib.IntTypes.U64", "Hacl.K256.Scalar.qnlimb", "Hacl.K256.Scalar.add4", "Hacl.K256.Scalar.sub4", "Hacl.K256.Scalar.add_mod4", "Hacl.K256.Scalar.sub_mod4", "Hacl.K256.Scalar.mul4", "Hacl.K256.Scalar.sqr4" ]
[]
false
false
false
true
false
[@@ FStar.Tactics.Typeclasses.tcinstance] let kn:BN.bn U64 =
{ BN.len = qnlimb; BN.add = add4; BN.sub = sub4; BN.add_mod_n = add_mod4; BN.sub_mod_n = sub_mod4; BN.mul = mul4; BN.sqr = sqr4 }
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.is_qelem_zero_vartime
val is_qelem_zero_vartime (f:qelem) : Stack bool (requires fun h -> live h f) (ensures fun h0 m h1 -> modifies0 h0 h1 /\ m == (qas_nat h0 f = 0))
val is_qelem_zero_vartime (f:qelem) : Stack bool (requires fun h -> live h f) (ensures fun h0 m h1 -> modifies0 h0 h1 /\ m == (qas_nat h0 f = 0))
let is_qelem_zero_vartime f = let h = ST.get () in KL.qas_nat4_is_qas_nat (as_seq h f); let (f0,f1,f2,f3) = (f.(0ul), f.(1ul), f.(2ul), f.(3ul)) in KL.is_qelem_zero_vartime4_lemma (f0,f1,f2,f3); is_qelem_zero_vartime4 (f0,f1,f2,f3)
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 117, "start_col": 0, "start_line": 111 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "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
f: Hacl.K256.Scalar.qelem -> FStar.HyperStack.ST.Stack Prims.bool
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "Lib.IntTypes.uint64", "Hacl.Spec.K256.Scalar.is_qelem_zero_vartime4", "FStar.Pervasives.Native.Mktuple4", "Prims.unit", "Hacl.Spec.K256.Scalar.Lemmas.is_qelem_zero_vartime4_lemma", "Prims.bool", "FStar.Pervasives.Native.tuple4", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", ...
[]
false
true
false
false
false
let is_qelem_zero_vartime f =
let h = ST.get () in KL.qas_nat4_is_qas_nat (as_seq h f); let f0, f1, f2, f3 = (f.(0ul), f.(1ul), f.(2ul), f.(3ul)) in KL.is_qelem_zero_vartime4_lemma (f0, f1, f2, f3); is_qelem_zero_vartime4 (f0, f1, f2, f3)
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.mul4
val mul4 (a: BD.lbignum U64 qnlimb) : BN.bn_karatsuba_mul_st U64 qnlimb a
val mul4 (a: BD.lbignum U64 qnlimb) : BN.bn_karatsuba_mul_st U64 qnlimb a
let mul4 (a:BD.lbignum U64 qnlimb) : BN.bn_karatsuba_mul_st U64 qnlimb a = BN.bn_mul qnlimb qnlimb a
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 27, "end_line": 49, "start_col": 0, "start_line": 48 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "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.Bignum.Definitions.lbignum Lib.IntTypes.U64 Hacl.K256.Scalar.qnlimb -> Hacl.Bignum.bn_karatsuba_mul_st Lib.IntTypes.U64 Hacl.K256.Scalar.qnlimb a
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.lbignum", "Lib.IntTypes.U64", "Hacl.K256.Scalar.qnlimb", "Hacl.Bignum.bn_mul", "Hacl.Bignum.bn_karatsuba_mul_st" ]
[]
false
false
false
false
false
let mul4 (a: BD.lbignum U64 qnlimb) : BN.bn_karatsuba_mul_st U64 qnlimb a =
BN.bn_mul qnlimb qnlimb a
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.create_qelem
val create_qelem: unit -> StackInline qelem (requires fun h -> True) (ensures fun h0 f h1 -> stack_allocated f h0 h1 (LSeq.create (v qnlimb) (u64 0)) /\ qas_nat h1 f == 0)
val create_qelem: unit -> StackInline qelem (requires fun h -> True) (ensures fun h0 f h1 -> stack_allocated f h0 h1 (LSeq.create (v qnlimb) (u64 0)) /\ qas_nat h1 f == 0)
let create_qelem () = SD.bn_eval_zeroes #U64 (v qnlimb) (v qnlimb); create qnlimb (u64 0)
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 23, "end_line": 90, "start_col": 0, "start_line": 88 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "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.unit -> FStar.HyperStack.ST.StackInline Hacl.K256.Scalar.qelem
FStar.HyperStack.ST.StackInline
[]
[]
[ "Prims.unit", "Lib.Buffer.create", "Lib.IntTypes.uint64", "Hacl.K256.Scalar.qnlimb", "Lib.IntTypes.u64", "Lib.Buffer.lbuffer", "Hacl.Spec.Bignum.Definitions.bn_eval_zeroes", "Lib.IntTypes.U64", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.K256.Scalar.qelem" ]
[]
false
true
false
false
false
let create_qelem () =
SD.bn_eval_zeroes #U64 (v qnlimb) (v qnlimb); create qnlimb (u64 0)
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.sqr4
val sqr4 (a: BD.lbignum U64 qnlimb) : BN.bn_karatsuba_sqr_st U64 qnlimb a
val sqr4 (a: BD.lbignum U64 qnlimb) : BN.bn_karatsuba_sqr_st U64 qnlimb a
let sqr4 (a:BD.lbignum U64 qnlimb) : BN.bn_karatsuba_sqr_st U64 qnlimb a = BN.bn_sqr qnlimb a
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 20, "end_line": 52, "start_col": 0, "start_line": 51 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "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.Bignum.Definitions.lbignum Lib.IntTypes.U64 Hacl.K256.Scalar.qnlimb -> Hacl.Bignum.bn_karatsuba_sqr_st Lib.IntTypes.U64 Hacl.K256.Scalar.qnlimb a
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.Definitions.lbignum", "Lib.IntTypes.U64", "Hacl.K256.Scalar.qnlimb", "Hacl.Bignum.bn_sqr", "Hacl.Bignum.bn_karatsuba_sqr_st" ]
[]
false
false
false
false
false
let sqr4 (a: BD.lbignum U64 qnlimb) : BN.bn_karatsuba_sqr_st U64 qnlimb a =
BN.bn_sqr qnlimb a
false
Spec.Hash.Incremental.Definitions.fst
Spec.Hash.Incremental.Definitions.prev_length_t
val prev_length_t : a: Spec.Hash.Definitions.hash_alg -> Type0
let prev_length_t (a: hash_alg) = if is_keccak a then unit else n:nat { n % block_length a = 0 }
{ "file_name": "specs/lemmas/Spec.Hash.Incremental.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 36, "end_line": 24, "start_col": 0, "start_line": 20 }
module Spec.Hash.Incremental.Definitions module S = FStar.Seq module Blake2 = Spec.Blake2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.MD open FStar.Mul open Lib.Sequence open Lib.ByteSequence open Lib.IntTypes module Loops = Lib.LoopCombinators module UpdateMulti = Lib.UpdateMulti #set-options "...
{ "checked_file": "/", "dependencies": [ "Spec.SHA3.fst.checked", "Spec.Hash.MD.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loop...
[ { "abbrev": true, "full_module": "Lib.UpdateMulti", "short_module": "UpdateMulti" }, { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, ...
{ "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.hash_alg -> Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Spec.Hash.Definitions.is_keccak", "Prims.unit", "Prims.bool", "Prims.nat", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.op_Modulus", "Spec.Hash.Definitions.block_length" ]
[]
false
false
false
true
true
let prev_length_t (a: hash_alg) =
if is_keccak a then unit else n: nat{n % block_length a = 0}
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.is_qelem_eq_vartime
val is_qelem_eq_vartime (f1 f2:qelem) : Stack bool (requires fun h -> live h f1 /\ live h f2 /\ qe_lt_q h f1 /\ qe_lt_q h f2) (ensures fun h0 m h1 -> modifies0 h0 h1 /\ m == (qas_nat h0 f1 = qas_nat h0 f2))
val is_qelem_eq_vartime (f1 f2:qelem) : Stack bool (requires fun h -> live h f1 /\ live h f2 /\ qe_lt_q h f1 /\ qe_lt_q h f2) (ensures fun h0 m h1 -> modifies0 h0 h1 /\ m == (qas_nat h0 f1 = qas_nat h0 f2))
let is_qelem_eq_vartime f1 f2 = let h = ST.get () in KL.qas_nat4_is_qas_nat (as_seq h f1); KL.qas_nat4_is_qas_nat (as_seq h f2); let (a0,a1,a2,a3) = (f1.(0ul), f1.(1ul), f1.(2ul), f1.(3ul)) in let (b0,b1,b2,b3) = (f2.(0ul), f2.(1ul), f2.(2ul), f2.(3ul)) in KL.is_qelem_eq_vartime4_lemma (a0,a1,a2,a3) (b0,b1...
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 50, "end_line": 129, "start_col": 0, "start_line": 121 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "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
f1: Hacl.K256.Scalar.qelem -> f2: Hacl.K256.Scalar.qelem -> FStar.HyperStack.ST.Stack Prims.bool
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "Lib.IntTypes.uint64", "Hacl.Spec.K256.Scalar.is_qelem_eq_vartime4", "FStar.Pervasives.Native.Mktuple4", "Prims.unit", "Hacl.Spec.K256.Scalar.Lemmas.is_qelem_eq_vartime4_lemma", "Prims.bool", "FStar.Pervasives.Native.tuple4", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "L...
[]
false
true
false
false
false
let is_qelem_eq_vartime f1 f2 =
let h = ST.get () in KL.qas_nat4_is_qas_nat (as_seq h f1); KL.qas_nat4_is_qas_nat (as_seq h f2); let a0, a1, a2, a3 = (f1.(0ul), f1.(1ul), f1.(2ul), f1.(3ul)) in let b0, b1, b2, b3 = (f2.(0ul), f2.(1ul), f2.(2ul), f2.(3ul)) in KL.is_qelem_eq_vartime4_lemma (a0, a1, a2, a3) (b0, b1, b2, b3); is_qelem_eq_vartime4 (a0, a1...
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.is_qelem_lt_pow2_128_vartime
val is_qelem_lt_pow2_128_vartime: f:qelem -> Stack bool (requires fun h -> live h f) (ensures fun h0 b h1 -> modifies0 h0 h1 /\ b == (qas_nat h0 f < pow2 128))
val is_qelem_lt_pow2_128_vartime: f:qelem -> Stack bool (requires fun h -> live h f) (ensures fun h0 b h1 -> modifies0 h0 h1 /\ b == (qas_nat h0 f < pow2 128))
let is_qelem_lt_pow2_128_vartime f = let open Lib.RawIntTypes in let h0 = ST.get () in KL.qas_nat4_is_qas_nat (as_seq h0 f); let f0 = Ghost.hide (LSeq.index (as_seq h0 f) 0) in let f1 = Ghost.hide (LSeq.index (as_seq h0 f) 1) in let f2 = f.(2ul) in let f3 = f.(3ul) in KL.is_qelem_lt_pow2_128_vartime4_le...
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 52, "end_line": 379, "start_col": 0, "start_line": 370 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "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
f: Hacl.K256.Scalar.qelem -> FStar.HyperStack.ST.Stack Prims.bool
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "Prims.op_AmpAmp", "Lib.IntTypes.op_Equals_Dot", "Lib.IntTypes.U64", "Lib.RawIntTypes.u64_to_UInt64", "FStar.UInt64.__uint_to_t", "Prims.unit", "Hacl.Spec.K256.Scalar.Lemmas.is_qelem_lt_pow2_128_vartime4_lemma", "FStar.Pervasives.Native.Mktuple4", "Lib.IntTypes.uint64", ...
[]
false
true
false
false
false
let is_qelem_lt_pow2_128_vartime f =
let open Lib.RawIntTypes in let h0 = ST.get () in KL.qas_nat4_is_qas_nat (as_seq h0 f); let f0 = Ghost.hide (LSeq.index (as_seq h0 f) 0) in let f1 = Ghost.hide (LSeq.index (as_seq h0 f) 1) in let f2 = f.(2ul) in let f3 = f.(3ul) in KL.is_qelem_lt_pow2_128_vartime4_lemma (Ghost.reveal f0, Ghost.reveal f1, f2, f3); u64_t...
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.sub_mod4
val sub_mod4:BN.bn_sub_mod_n_st U64 qnlimb
val sub_mod4:BN.bn_sub_mod_n_st U64 qnlimb
let sub_mod4: BN.bn_sub_mod_n_st U64 qnlimb = BN.bn_sub_mod_n qnlimb
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 24, "end_line": 46, "start_col": 0, "start_line": 45 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Bignum.bn_sub_mod_n_st Lib.IntTypes.U64 Hacl.K256.Scalar.qnlimb
Prims.Tot
[ "total" ]
[]
[ "Hacl.Bignum.bn_sub_mod_n", "Lib.IntTypes.U64", "Hacl.K256.Scalar.qnlimb" ]
[]
false
false
false
true
false
let sub_mod4:BN.bn_sub_mod_n_st U64 qnlimb =
BN.bn_sub_mod_n qnlimb
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.store_qelem
val store_qelem: b:lbuffer uint8 32ul -> f:qelem -> Stack unit (requires fun h -> live h b /\ live h f /\ disjoint f b /\ qe_lt_q h f) (ensures fun h0 _ h1 -> modifies (loc b) h0 h1 /\ as_seq h1 b == BSeq.nat_to_bytes_be 32 (qas_nat h0 f))
val store_qelem: b:lbuffer uint8 32ul -> f:qelem -> Stack unit (requires fun h -> live h b /\ live h f /\ disjoint f b /\ qe_lt_q h f) (ensures fun h0 _ h1 -> modifies (loc b) h0 h1 /\ as_seq h1 b == BSeq.nat_to_bytes_be 32 (qas_nat h0 f))
let store_qelem b f = let h0 = ST.get () in Hacl.Spec.Bignum.Convert.bn_to_bytes_be_lemma #U64 32 (as_seq h0 f); Hacl.Bignum.Convert.mk_bn_to_bytes_be true 32ul f b
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 53, "end_line": 219, "start_col": 0, "start_line": 216 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "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: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> f: Hacl.K256.Scalar.qelem -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Hacl.K256.Scalar.qelem", "Hacl.Bignum.Convert.mk_bn_to_bytes_be", "Lib.IntTypes.U64", "Prims.unit", "Hacl.Spec.Bignum.Convert.bn_to_bytes_be_lemma", "Lib.Buffer.as_seq", "Lib.Buffer.MUT", "Lib.IntTypes.uint64", "Hacl.K256...
[]
false
true
false
false
false
let store_qelem b f =
let h0 = ST.get () in Hacl.Spec.Bignum.Convert.bn_to_bytes_be_lemma #U64 32 (as_seq h0 f); Hacl.Bignum.Convert.mk_bn_to_bytes_be true 32ul f b
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.create_one
val create_one: unit -> StackInline qelem (requires fun h -> True) (ensures fun h0 f h1 -> stack_allocated f h0 h1 (LSeq.create4 (u64 1) (u64 0) (u64 0) (u64 0)) /\ qas_nat h1 f = 1)
val create_one: unit -> StackInline qelem (requires fun h -> True) (ensures fun h0 f h1 -> stack_allocated f h0 h1 (LSeq.create4 (u64 1) (u64 0) (u64 0) (u64 0)) /\ qas_nat h1 f = 1)
let create_one () = [@inline_let] let l = [u64 0x1; u64 0x0; u64 0x0; u64 0x0] in assert_norm (FStar.List.Tot.length l = 4); Seq.elim_of_list l; LSeq.eq_intro (LSeq.create4 (u64 0x1) (u64 0x0) (u64 0x0) (u64 0x0)) (Seq.seq_of_list l); KL.qas_nat4_is_qas_nat (LSeq.create4 (u64 0x1) (u64 0x0) (u64 0x0) (u64 0...
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 100, "start_col": 0, "start_line": 93 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "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.unit -> FStar.HyperStack.ST.StackInline Hacl.K256.Scalar.qelem
FStar.HyperStack.ST.StackInline
[]
[]
[ "Prims.unit", "Lib.Buffer.createL", "Lib.IntTypes.uint64", "Lib.Buffer.lbuffer", "Lib.IntTypes.size", "FStar.Pervasives.normalize_term", "Lib.IntTypes.size_nat", "FStar.List.Tot.Base.length", "Hacl.Spec.K256.Scalar.Lemmas.qas_nat4_is_qas_nat", "Lib.Sequence.create4", "Lib.IntTypes.u64", "Hacl....
[]
false
true
false
false
false
let create_one () =
[@@ inline_let ]let l = [u64 0x1; u64 0x0; u64 0x0; u64 0x0] in assert_norm (FStar.List.Tot.length l = 4); Seq.elim_of_list l; LSeq.eq_intro (LSeq.create4 (u64 0x1) (u64 0x0) (u64 0x0) (u64 0x0)) (Seq.seq_of_list l); KL.qas_nat4_is_qas_nat (LSeq.create4 (u64 0x1) (u64 0x0) (u64 0x0) (u64 0x0)); createL l
false
Hacl.Streaming.Poly1305.fst
Hacl.Streaming.Poly1305.poly1305
val poly1305 (fs: field_spec) : I.block unit
val poly1305 (fs: field_spec) : I.block unit
let poly1305 (fs : field_spec) : I.block unit = I.Block I.Runtime (stateful_poly1305_ctx fs) (* state *) poly1305_key (* key *) unit (fun () -> 0xffffffffUL) (* max_input_len *) (fun () () -> 16) (* output_len *) (fun () -> 16ul) (* block_len *) (* blocks_state_len *) (fun () ->...
{ "file_name": "code/streaming/Hacl.Streaming.Poly1305.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 505, "start_col": 0, "start_line": 404 }
module Hacl.Streaming.Poly1305 module HS = FStar.HyperStack module B = LowStar.Buffer module G = FStar.Ghost module S = FStar.Seq module U32 = FStar.UInt32 module U64 = FStar.UInt64 module F = Hacl.Streaming.Functor module I = Hacl.Streaming.Interface module P = Hacl.Impl.Poly1305 module F32xN = Hacl.Spec.Poly1305.Fie...
{ "checked_file": "/", "dependencies": [ "Spec.Poly1305.fst.checked", "prims.fst.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.Lemmas.fsti.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.check...
[ { "abbrev": false, "full_module": "FStar.Tactics", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Poly1305.Fields", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
fs: Hacl.Impl.Poly1305.Fields.field_spec -> Hacl.Streaming.Interface.block Prims.unit
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Poly1305.Fields.field_spec", "Hacl.Streaming.Interface.Block", "Prims.unit", "Hacl.Streaming.Interface.Runtime", "Hacl.Streaming.Poly1305.stateful_poly1305_ctx", "Hacl.Streaming.Poly1305.poly1305_key", "FStar.UInt64.__uint_to_t", "FStar.UInt64.t", "Prims.b2t", "FStar.Integers.op_Greater...
[]
false
false
false
true
false
let poly1305 (fs: field_spec) : I.block unit =
I.Block I.Runtime (stateful_poly1305_ctx fs) poly1305_key unit (fun () -> 0xffffffffuL) (fun () () -> 16) (fun () -> 16ul) (fun () -> match fs with | M32 -> 16ul | M128 -> 32ul | M256 -> 64ul) (fun () -> 0ul) (fun () _k -> S.empty) (fun () -> Spec.Poly1305.poly1305_init) (f...
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.qsqr
val qsqr (out f: qelem) : Stack unit (requires fun h -> live h out /\ live h f /\ eq_or_disjoint out f /\ qe_lt_q h f) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ qas_nat h1 out == S.qmul (qas_nat h0 f) (qas_nat h0 f) /\ qe_lt_q h1 out)
val qsqr (out f: qelem) : Stack unit (requires fun h -> live h out /\ live h f /\ eq_or_disjoint out f /\ qe_lt_q h f) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ qas_nat h1 out == S.qmul (qas_nat h0 f) (qas_nat h0 f) /\ qe_lt_q h1 out)
let qsqr out f = push_frame (); let h0 = ST.get () in let tmp = create (2ul *! qnlimb) (u64 0) in kn.BN.sqr f tmp; SN.bn_sqr_lemma (as_seq h0 f); modq out tmp; pop_frame ()
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 339, "start_col": 0, "start_line": 331 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "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
out: Hacl.K256.Scalar.qelem -> f: Hacl.K256.Scalar.qelem -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "Hacl.K256.Scalar.modq", "Hacl.Spec.Bignum.bn_sqr_lemma", "Lib.IntTypes.U64", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.K256.Scalar.qnlimb", "Lib.Buffer.as_seq", "Lib.Buffer.MUT", "Lib.IntTypes.uin...
[]
false
true
false
false
false
let qsqr out f =
push_frame (); let h0 = ST.get () in let tmp = create (2ul *! qnlimb) (u64 0) in kn.BN.sqr f tmp; SN.bn_sqr_lemma (as_seq h0 f); modq out tmp; pop_frame ()
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.load_qelem_vartime
val load_qelem_vartime: f:qelem -> b:lbuffer uint8 32ul -> Stack bool (requires fun h -> live h f /\ live h b /\ disjoint f b) (ensures fun h0 m h1 -> modifies (loc f) h0 h1 /\ (let b_nat = BSeq.nat_from_bytes_be (as_seq h0 b) in qas_nat h1 f == b_nat /\ m = (0 < b_nat && b_nat < S.q)))
val load_qelem_vartime: f:qelem -> b:lbuffer uint8 32ul -> Stack bool (requires fun h -> live h f /\ live h b /\ disjoint f b) (ensures fun h0 m h1 -> modifies (loc f) h0 h1 /\ (let b_nat = BSeq.nat_from_bytes_be (as_seq h0 b) in qas_nat h1 f == b_nat /\ m = (0 < b_nat && b_nat < S.q)))
let load_qelem_vartime f b = load_qelem f b; let h = ST.get () in KL.qas_nat4_is_qas_nat (as_seq h f); let is_zero = is_qelem_zero_vartime f in let (a0,a1,a2,a3) = (f.(0ul), f.(1ul), f.(2ul), f.(3ul)) in let is_lt_q_b = is_qelem_lt_q_vartime4 (a0,a1,a2,a3) in KL.is_qelem_lt_q_vartime4_lemma (a0,a1,a2,a3)...
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 26, "end_line": 180, "start_col": 0, "start_line": 171 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "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
f: Hacl.K256.Scalar.qelem -> b: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> FStar.HyperStack.ST.Stack Prims.bool
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.uint64", "Prims.op_AmpAmp", "Prims.op_Negation", "Prims.unit", "Hacl.Spec.K256.Scalar.Lemmas.is_qelem_lt_q_vartime4_lemma", "FStar.Pervasives.Native.Mktuple4", "Prims.bool", "Hacl.Sp...
[]
false
true
false
false
false
let load_qelem_vartime f b =
load_qelem f b; let h = ST.get () in KL.qas_nat4_is_qas_nat (as_seq h f); let is_zero = is_qelem_zero_vartime f in let a0, a1, a2, a3 = (f.(0ul), f.(1ul), f.(2ul), f.(3ul)) in let is_lt_q_b = is_qelem_lt_q_vartime4 (a0, a1, a2, a3) in KL.is_qelem_lt_q_vartime4_lemma (a0, a1, a2, a3); not is_zero && is_lt_q_b
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.qmul
val qmul (out f1 f2: qelem) : Stack unit (requires fun h -> live h out /\ live h f1 /\ live h f2 /\ eq_or_disjoint out f1 /\ eq_or_disjoint out f2 /\ eq_or_disjoint f1 f2 /\ qe_lt_q h f1 /\ qe_lt_q h f2) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ qas_nat h1 out == S.qmul (qas_nat h0 f1) (q...
val qmul (out f1 f2: qelem) : Stack unit (requires fun h -> live h out /\ live h f1 /\ live h f2 /\ eq_or_disjoint out f1 /\ eq_or_disjoint out f2 /\ eq_or_disjoint f1 f2 /\ qe_lt_q h f1 /\ qe_lt_q h f2) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ qas_nat h1 out == S.qmul (qas_nat h0 f1) (q...
let qmul out f1 f2 = push_frame (); let h0 = ST.get () in let tmp = create (2ul *! qnlimb) (u64 0) in kn.BN.mul f1 f2 tmp; SN.bn_mul_lemma (as_seq h0 f1) (as_seq h0 f2); modq out tmp; pop_frame ()
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 327, "start_col": 0, "start_line": 319 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "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
out: Hacl.K256.Scalar.qelem -> f1: Hacl.K256.Scalar.qelem -> f2: Hacl.K256.Scalar.qelem -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "Hacl.K256.Scalar.modq", "Hacl.Spec.Bignum.bn_mul_lemma", "Lib.IntTypes.U64", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.K256.Scalar.qnlimb", "Lib.Buffer.as_seq", "Lib.Buffer.MUT", "Lib.IntTypes.uin...
[]
false
true
false
false
false
let qmul out f1 f2 =
push_frame (); let h0 = ST.get () in let tmp = create (2ul *! qnlimb) (u64 0) in kn.BN.mul f1 f2 tmp; SN.bn_mul_lemma (as_seq h0 f1) (as_seq h0 f2); modq out tmp; pop_frame ()
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.make_u64_4
val make_u64_4 (out:qelem) (f:qelem4) : Stack unit (requires fun h -> live h out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ qas_nat h1 out == qas_nat4 f /\ (let (f0,f1,f2,f3) = f in as_seq h1 out == LSeq.create4 f0 f1 f2 f3))
val make_u64_4 (out:qelem) (f:qelem4) : Stack unit (requires fun h -> live h out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ qas_nat h1 out == qas_nat4 f /\ (let (f0,f1,f2,f3) = f in as_seq h1 out == LSeq.create4 f0 f1 f2 f3))
let make_u64_4 out (f0, f1, f2, f3) = out.(0ul) <- f0; out.(1ul) <- f1; out.(2ul) <- f2; out.(3ul) <- f3; let h = ST.get () in KL.qas_nat4_is_qas_nat (as_seq h out); assert (Seq.equal (as_seq h out) (LSeq.create4 f0 f1 f2 f3))
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 62, "end_line": 73, "start_col": 0, "start_line": 66 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "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
out: Hacl.K256.Scalar.qelem -> f: Hacl.Spec.K256.Scalar.qelem4 -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "Hacl.Spec.K256.Scalar.qelem4", "Lib.IntTypes.uint64", "Prims._assert", "FStar.Seq.Base.equal", "Lib.Buffer.as_seq", "Lib.Buffer.MUT", "Hacl.K256.Scalar.qnlimb", "Lib.Sequence.create4", "Prims.unit", "Hacl.Spec.K256.Scalar.Lemmas.qas_nat4_is_qas_nat", "FStar.Monotonic...
[]
false
true
false
false
false
let make_u64_4 out (f0, f1, f2, f3) =
out.(0ul) <- f0; out.(1ul) <- f1; out.(2ul) <- f2; out.(3ul) <- f3; let h = ST.get () in KL.qas_nat4_is_qas_nat (as_seq h out); assert (Seq.equal (as_seq h out) (LSeq.create4 f0 f1 f2 f3))
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.load_qelem_conditional
val load_qelem_conditional: res:qelem -> b:lbuffer uint8 32ul -> Stack uint64 (requires fun h -> live h res /\ live h b /\ disjoint res b) (ensures fun h0 m h1 -> modifies (loc res) h0 h1 /\ (let b_nat = BSeq.nat_from_bytes_be (as_seq h0 b) in let is_b_valid = 0 < b_nat && b_nat < S.q in (v m = ones_...
val load_qelem_conditional: res:qelem -> b:lbuffer uint8 32ul -> Stack uint64 (requires fun h -> live h res /\ live h b /\ disjoint res b) (ensures fun h0 m h1 -> modifies (loc res) h0 h1 /\ (let b_nat = BSeq.nat_from_bytes_be (as_seq h0 b) in let is_b_valid = 0 < b_nat && b_nat < S.q in (v m = ones_...
let load_qelem_conditional res b = push_frame (); let is_b_valid = load_qelem_check res b in let oneq = create_one () in let h0 = ST.get () in Lib.ByteBuffer.buf_mask_select res oneq is_b_valid res; let h1 = ST.get () in assert (as_seq h1 res == (if (v is_b_valid = 0) then as_seq h0 oneq else as_seq h0 re...
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 12, "end_line": 167, "start_col": 0, "start_line": 158 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "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
res: Hacl.K256.Scalar.qelem -> b: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> FStar.HyperStack.ST.Stack Lib.IntTypes.uint64
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.uint64", "Prims.unit", "FStar.HyperStack.ST.pop_frame", "Prims._assert", "Prims.eq2", "Lib.Sequence.lseq", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.K256.Sc...
[]
false
true
false
false
false
let load_qelem_conditional res b =
push_frame (); let is_b_valid = load_qelem_check res b in let oneq = create_one () in let h0 = ST.get () in Lib.ByteBuffer.buf_mask_select res oneq is_b_valid res; let h1 = ST.get () in assert (as_seq h1 res == (if (v is_b_valid = 0) then as_seq h0 oneq else as_seq h0 res)); pop_frame (); is_b_valid
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.is_qelem_le_q_halved_vartime
val is_qelem_le_q_halved_vartime: f:qelem -> Stack bool (requires fun h -> live h f) (ensures fun h0 b h1 -> modifies0 h0 h1 /\ b == (qas_nat h0 f <= S.q / 2))
val is_qelem_le_q_halved_vartime: f:qelem -> Stack bool (requires fun h -> live h f) (ensures fun h0 b h1 -> modifies0 h0 h1 /\ b == (qas_nat h0 f <= S.q / 2))
let is_qelem_le_q_halved_vartime f = let h = ST.get () in KL.qas_nat4_is_qas_nat (as_seq h f); let (a0,a1,a2,a3) = (f.(0ul), f.(1ul), f.(2ul), f.(3ul)) in KL.is_qelem_le_q_halved_vartime4_lemma (a0,a1,a2,a3); is_qelem_le_q_halved_vartime4 (a0,a1,a2,a3)
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 45, "end_line": 367, "start_col": 0, "start_line": 361 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "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
f: Hacl.K256.Scalar.qelem -> FStar.HyperStack.ST.Stack Prims.bool
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "Lib.IntTypes.uint64", "Hacl.Spec.K256.Scalar.is_qelem_le_q_halved_vartime4", "FStar.Pervasives.Native.Mktuple4", "Prims.unit", "Hacl.Spec.K256.Scalar.Lemmas.is_qelem_le_q_halved_vartime4_lemma", "Prims.bool", "FStar.Pervasives.Native.tuple4", "Lib.IntTypes.int_t", "Lib.I...
[]
false
true
false
false
false
let is_qelem_le_q_halved_vartime f =
let h = ST.get () in KL.qas_nat4_is_qas_nat (as_seq h f); let a0, a1, a2, a3 = (f.(0ul), f.(1ul), f.(2ul), f.(3ul)) in KL.is_qelem_le_q_halved_vartime4_lemma (a0, a1, a2, a3); is_qelem_le_q_halved_vartime4 (a0, a1, a2, a3)
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.modq_short
val modq_short: out:qelem -> a:qelem -> Stack unit (requires fun h -> live h a /\ live h out /\ disjoint a out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ qas_nat h1 out == qas_nat h0 a % S.q)
val modq_short: out:qelem -> a:qelem -> Stack unit (requires fun h -> live h a /\ live h out /\ disjoint a out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ qas_nat h1 out == qas_nat h0 a % S.q)
let modq_short out a = push_frame (); let tmp = create_qelem () in [@inline_let] let (t0,t1,t2,t3) = make_pow2_256_minus_order_k256 () in make_u64_4 tmp (t0,t1,t2,t3); let h0 = ST.get () in let c = kn.BN.add a tmp out in let mask = u64 0 -. c in map2T qnlimb out (BB.mask_select mask) out a; KL.mod_...
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 202, "start_col": 0, "start_line": 190 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "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
out: Hacl.K256.Scalar.qelem -> a: Hacl.K256.Scalar.qelem -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "Lib.IntTypes.uint64", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "Hacl.Spec.K256.Scalar.Lemmas.mod_short_lseq_lemma", "Lib.Buffer.as_seq", "Lib.Buffer.MUT", "Hacl.K256.Scalar.qnlimb", "Lib.Buffer.map2T", "Hacl.Spec.Bignum.Base.mask_select", "Lib.IntTypes.U64", "L...
[]
false
true
false
false
false
let modq_short out a =
push_frame (); let tmp = create_qelem () in [@@ inline_let ]let t0, t1, t2, t3 = make_pow2_256_minus_order_k256 () in make_u64_4 tmp (t0, t1, t2, t3); let h0 = ST.get () in let c = kn.BN.add a tmp out in let mask = u64 0 -. c in map2T qnlimb out (BB.mask_select mask) out a; KL.mod_short_lseq_lemma (as_seq h0 a); pop_fr...
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.load_qelem_modq
val load_qelem_modq: f:qelem -> b:lbuffer uint8 32ul -> Stack unit (requires fun h -> live h f /\ live h b /\ disjoint f b) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ qas_nat h1 f == BSeq.nat_from_bytes_be (as_seq h0 b) % S.q /\ qe_lt_q h1 f)
val load_qelem_modq: f:qelem -> b:lbuffer uint8 32ul -> Stack unit (requires fun h -> live h f /\ live h b /\ disjoint f b) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ qas_nat h1 f == BSeq.nat_from_bytes_be (as_seq h0 b) % S.q /\ qe_lt_q h1 f)
let load_qelem_modq f b = push_frame (); let tmp = create_qelem () in load_qelem f b; copy tmp f; modq_short f tmp; pop_frame ()
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 212, "start_col": 0, "start_line": 206 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "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
f: Hacl.K256.Scalar.qelem -> b: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "Hacl.K256.Scalar.modq_short", "Lib.Buffer.copy", "Lib.Buffer.MUT", "Lib.IntTypes.uint64", "Hacl.K256.Scalar.qnlimb", "Hacl.K256.Scalar.load_qelem", ...
[]
false
true
false
false
false
let load_qelem_modq f b =
push_frame (); let tmp = create_qelem () in load_qelem f b; copy tmp f; modq_short f tmp; pop_frame ()
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.qnegate_conditional_vartime
val qnegate_conditional_vartime (f:qelem) (is_negate:bool) : Stack unit (requires fun h -> live h f /\ qe_lt_q h f) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ qe_lt_q h1 f /\ qas_nat h1 f == (if is_negate then (S.q - qas_nat h0 f) % S.q else qas_nat h0 f))
val qnegate_conditional_vartime (f:qelem) (is_negate:bool) : Stack unit (requires fun h -> live h f /\ qe_lt_q h f) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ qe_lt_q h1 f /\ qas_nat h1 f == (if is_negate then (S.q - qas_nat h0 f) % S.q else qas_nat h0 f))
let qnegate_conditional_vartime f is_negate = push_frame (); let n = create_qelem () in make_u64_4 n (make_order_k256 ()); let zero = create_qelem () in if is_negate then begin let h0 = ST.get () in kn.BN.sub_mod_n n zero f f; SN.bn_sub_mod_n_lemma (as_seq h0 n) (as_seq h0 zero) (as_seq h0 f); ...
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 357, "start_col": 0, "start_line": 343 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "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
f: Hacl.K256.Scalar.qelem -> is_negate: Prims.bool -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "Prims.bool", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "Prims._assert", "Prims.eq2", "Prims.int", "Hacl.K256.Scalar.qas_nat", "Prims.op_Modulus", "Prims.op_Subtraction", "Spec.K256.PointOps.q", "FStar.Math.Lemmas.modulo_addition_lemma", "Prims.op_Minus", "Pr...
[]
false
true
false
false
false
let qnegate_conditional_vartime f is_negate =
push_frame (); let n = create_qelem () in make_u64_4 n (make_order_k256 ()); let zero = create_qelem () in if is_negate then (let h0 = ST.get () in kn.BN.sub_mod_n n zero f f; SN.bn_sub_mod_n_lemma (as_seq h0 n) (as_seq h0 zero) (as_seq h0 f); let h1 = ST.get () in assert (qas_nat h1 f = (0 - qas_nat ...
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.load_qelem_check
val load_qelem_check: f:qelem -> b:lbuffer uint8 32ul -> Stack uint64 (requires fun h -> live h f /\ live h b /\ disjoint f b) (ensures fun h0 m h1 -> modifies (loc f) h0 h1 /\ (let b_nat = BSeq.nat_from_bytes_be (as_seq h0 b) in qas_nat h1 f == b_nat /\ (v m = ones_v U64 \/ v m = 0) /\ (v m = ones_...
val load_qelem_check: f:qelem -> b:lbuffer uint8 32ul -> Stack uint64 (requires fun h -> live h f /\ live h b /\ disjoint f b) (ensures fun h0 m h1 -> modifies (loc f) h0 h1 /\ (let b_nat = BSeq.nat_from_bytes_be (as_seq h0 b) in qas_nat h1 f == b_nat /\ (v m = ones_v U64 \/ v m = 0) /\ (v m = ones_...
let load_qelem_check f b = push_frame (); let n = create_qelem () in make_u64_4 n (make_order_k256 ()); load_qelem f b; let h0 = ST.get () in let is_zero = is_qelem_zero f in assert (v is_zero == (if qas_nat h0 f = 0 then ones_v U64 else 0)); let is_lt_q = BN.bn_lt_mask qnlimb f n in SN.bn_lt_mask_le...
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 155, "start_col": 0, "start_line": 139 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "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
f: Hacl.K256.Scalar.qelem -> b: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> FStar.HyperStack.ST.Stack Lib.IntTypes.uint64
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.uint64", "Prims.unit", "FStar.HyperStack.ST.pop_frame", "Lib.IntTypes.logand_lemma", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Lib.IntTypes.lognot", "Lib.IntTypes.lognot_lemma", "Li...
[]
false
true
false
false
false
let load_qelem_check f b =
push_frame (); let n = create_qelem () in make_u64_4 n (make_order_k256 ()); load_qelem f b; let h0 = ST.get () in let is_zero = is_qelem_zero f in assert (v is_zero == (if qas_nat h0 f = 0 then ones_v U64 else 0)); let is_lt_q = BN.bn_lt_mask qnlimb f n in SN.bn_lt_mask_lemma (as_seq h0 f) (as_seq h0 n); assert (v is_...
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.rshift_update_sub
val rshift_update_sub: res:qelem -> l:lbuffer uint64 8ul -> Stack unit (requires fun h -> live h res /\ live h l /\ disjoint res l /\ as_seq h res == LSeq.create 4 (u64 0)) (ensures fun h0 _ h1 -> modifies (loc res) h0 h1 /\ (let res_b = SN.bn_rshift (as_seq h0 l) 6 in let res_b_padded = LSeq.create 4 (...
val rshift_update_sub: res:qelem -> l:lbuffer uint64 8ul -> Stack unit (requires fun h -> live h res /\ live h l /\ disjoint res l /\ as_seq h res == LSeq.create 4 (u64 0)) (ensures fun h0 _ h1 -> modifies (loc res) h0 h1 /\ (let res_b = SN.bn_rshift (as_seq h0 l) 6 in let res_b_padded = LSeq.create 4 (...
let rshift_update_sub res l = let h1 = ST.get () in update_sub_f h1 res 0ul 2ul (fun h -> SN.bn_rshift (as_seq h1 l) 6) (fun _ -> BN.bn_rshift 8ul l 6ul (sub res 0ul 2ul))
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 55, "end_line": 396, "start_col": 0, "start_line": 392 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "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
res: Hacl.K256.Scalar.qelem -> l: Lib.Buffer.lbuffer Lib.IntTypes.uint64 8ul -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint64", "FStar.UInt32.__uint_to_t", "Lib.Buffer.update_sub_f", "Hacl.K256.Scalar.qnlimb", "FStar.Monotonic.HyperStack.mem", "Hacl.Spec.Bignum.bn_rshift", "Lib.IntTypes.U64", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB",...
[]
false
true
false
false
false
let rshift_update_sub res l =
let h1 = ST.get () in update_sub_f h1 res 0ul 2ul (fun h -> SN.bn_rshift (as_seq h1 l) 6) (fun _ -> BN.bn_rshift 8ul l 6ul (sub res 0ul 2ul))
false
Lib.UpdateMulti.Lemmas.fst
Lib.UpdateMulti.Lemmas.split_at_last_lazy_spec
val split_at_last_lazy_spec (l : pos) (b blocks rest: S.seq uint8) : Lemma (requires ( S.length blocks % l = 0 /\ S.length rest <= l /\ (S.length rest = 0 ==> S.length b = 0) /\ b `Seq.equal` Seq.append blocks rest)) (ensures ( (blocks, rest) == split_at_last_lazy ...
val split_at_last_lazy_spec (l : pos) (b blocks rest: S.seq uint8) : Lemma (requires ( S.length blocks % l = 0 /\ S.length rest <= l /\ (S.length rest = 0 ==> S.length b = 0) /\ b `Seq.equal` Seq.append blocks rest)) (ensures ( (blocks, rest) == split_at_last_lazy ...
let split_at_last_lazy_spec (l : pos) (b blocks rest: S.seq uint8): Lemma (requires ( S.length blocks % l = 0 /\ S.length rest <= l /\ (S.length rest = 0 ==> S.length b = 0) /\ b `Seq.equal` Seq.append blocks rest)) (ensures ( (blocks, rest) == split_at_last_lazy l...
{ "file_name": "lib/Lib.UpdateMulti.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 32, "end_line": 112, "start_col": 0, "start_line": 85 }
module Lib.UpdateMulti.Lemmas /// This first auxiliary lemma only manipulates the lengths of the sequences. #push-options "--z3cliopt smt.arith.nl=false" let split_at_last_lazy_nb_rem_spec (l : pos) (d n rest: nat) : Lemma (requires ( rest <= l /\ (rest = 0 ==> d = 0) /\ d = n * l + rest)) (ensures (...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Lib.UpdateMulti", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.Upda...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: Prims.pos -> b: FStar.Seq.Base.seq Lib.UpdateMulti.Lemmas.uint8 -> blocks: FStar.Seq.Base.seq Lib.UpdateMulti.Lemmas.uint8 -> rest: FStar.Seq.Base.seq Lib.UpdateMulti.Lemmas.uint8 -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length blocks % l = 0 /\ FStar.Seq.Base.length rest <...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "FStar.Seq.Base.seq", "Lib.UpdateMulti.Lemmas.uint8", "Lib.UpdateMulti.uint8", "Prims._assert", "FStar.Seq.Base.equal", "Prims.unit", "Prims.b2t", "Prims.op_Equality", "Prims.nat", "FStar.Seq.Base.length", "Prims.int", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native...
[]
false
false
true
false
false
let split_at_last_lazy_spec (l: pos) (b blocks rest: S.seq uint8) : Lemma (requires (S.length blocks % l = 0 /\ S.length rest <= l /\ (S.length rest = 0 ==> S.length b = 0) /\ b `Seq.equal` (Seq.append blocks rest))) (ensures ((blocks, rest) == split_at_last_lazy l b)) =
let b_l = Seq.length b in let blocks_l = Seq.length blocks in let rest_l = Seq.length rest in let blocks', rest' = split_at_last_lazy l b in let n' = Seq.length blocks' / l in let n = blocks_l / l in Math.Lemmas.nat_over_pos_is_nat blocks_l l; assert (n >= 0); Math.Lemmas.euclidean_division_definition (S.length blocks)...
false
Lib.UpdateMulti.Lemmas.fst
Lib.UpdateMulti.Lemmas.split_at_last_lazy_nb_rem_spec
val split_at_last_lazy_nb_rem_spec (l : pos) (d n rest: nat) : Lemma (requires ( rest <= l /\ (rest = 0 ==> d = 0) /\ d = n * l + rest)) (ensures ((n, rest) = split_at_last_lazy_nb_rem l d))
val split_at_last_lazy_nb_rem_spec (l : pos) (d n rest: nat) : Lemma (requires ( rest <= l /\ (rest = 0 ==> d = 0) /\ d = n * l + rest)) (ensures ((n, rest) = split_at_last_lazy_nb_rem l d))
let split_at_last_lazy_nb_rem_spec (l : pos) (d n rest: nat) : Lemma (requires ( rest <= l /\ (rest = 0 ==> d = 0) /\ d = n * l + rest)) (ensures ((n, rest) = split_at_last_lazy_nb_rem l d)) = (* We call ``split_at_last_lazy_nb_rem`` at the beginning to have its * postcondition in the context (th...
{ "file_name": "lib/Lib.UpdateMulti.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 8, "end_line": 77, "start_col": 0, "start_line": 5 }
module Lib.UpdateMulti.Lemmas /// This first auxiliary lemma only manipulates the lengths of the sequences.
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Lib.UpdateMulti", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.Upda...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: Prims.pos -> d: Prims.nat -> n: Prims.nat -> rest: Prims.nat -> FStar.Pervasives.Lemma (requires rest <= l /\ (rest = 0 ==> d = 0) /\ d = n * l + rest) (ensures (n, rest) = Lib.UpdateMulti.split_at_last_lazy_nb_rem l d)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "Prims.nat", "Prims.op_Equality", "Prims.int", "Prims._assert", "Prims.b2t", "Prims.unit", "FStar.Math.Lemmas.int_times_int_equal_zero_lemma", "FStar.Math.Lemmas.nat_times_nat_is_nat", "Prims.bool", "Prims.op_AmpAmp", "Prims.op_LessThan", "FStar.Math.Lemmas.lemma_cancel_mul", ...
[]
false
false
true
false
false
let split_at_last_lazy_nb_rem_spec (l: pos) (d n rest: nat) : Lemma (requires (rest <= l /\ (rest = 0 ==> d = 0) /\ d = n * l + rest)) (ensures ((n, rest) = split_at_last_lazy_nb_rem l d)) =
let n', rest' = split_at_last_lazy_nb_rem l d in if d = 0 then (Math.Lemmas.nat_times_nat_is_nat n l; Math.Lemmas.int_times_int_equal_zero_lemma n l; assert (n = 0)) else (assert (d > 0); let blocks = n * l in let rest = d - blocks in let blocks' = n' * l in Math.Lemmas.cancel_mul_mod n l; ...
false
Spec.Hash.Incremental.Definitions.fst
Spec.Hash.Incremental.Definitions.split_blocks
val split_blocks (a: hash_alg) (input: bytes) : Pure (bytes & bytes) (requires (S.length input) `less_than_max_input_length` a) (ensures fun (bs, l) -> S.length bs % block_length a = 0 /\ S.length l <= block_length a /\ S.append bs l == input )
val split_blocks (a: hash_alg) (input: bytes) : Pure (bytes & bytes) (requires (S.length input) `less_than_max_input_length` a) (ensures fun (bs, l) -> S.length bs % block_length a = 0 /\ S.length l <= block_length a /\ S.append bs l == input )
let split_blocks (a:hash_alg) (input:bytes) : Pure (bytes & bytes) (requires S.length input `less_than_max_input_length` a) (ensures fun (bs, l) -> S.length bs % block_length a = 0 /\ S.length l <= block_length a /\ S.append bs l == input) = UpdateMulti.split_at_last_lazy (block_length a) ...
{ "file_name": "specs/lemmas/Spec.Hash.Incremental.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 55, "end_line": 63, "start_col": 0, "start_line": 56 }
module Spec.Hash.Incremental.Definitions module S = FStar.Seq module Blake2 = Spec.Blake2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.MD open FStar.Mul open Lib.Sequence open Lib.ByteSequence open Lib.IntTypes module Loops = Lib.LoopCombinators module UpdateMulti = Lib.UpdateMulti #set-options "...
{ "checked_file": "/", "dependencies": [ "Spec.SHA3.fst.checked", "Spec.Hash.MD.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loop...
[ { "abbrev": true, "full_module": "Lib.UpdateMulti", "short_module": "UpdateMulti" }, { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, ...
{ "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.hash_alg -> input: Lib.ByteSequence.bytes -> Prims.Pure (Lib.ByteSequence.bytes * Lib.ByteSequence.bytes)
Prims.Pure
[]
[]
[ "Spec.Hash.Definitions.hash_alg", "Lib.ByteSequence.bytes", "Lib.UpdateMulti.split_at_last_lazy", "Spec.Hash.Definitions.block_length", "FStar.Pervasives.Native.tuple2", "Prims.b2t", "Spec.Hash.Definitions.less_than_max_input_length", "FStar.Seq.Base.length", "Lib.IntTypes.uint_t", "Lib.IntTypes.U...
[]
false
false
false
false
false
let split_blocks (a: hash_alg) (input: bytes) : Pure (bytes & bytes) (requires (S.length input) `less_than_max_input_length` a) (ensures fun (bs, l) -> S.length bs % block_length a = 0 /\ S.length l <= block_length a /\ S.append bs l == input ) =
UpdateMulti.split_at_last_lazy (block_length a) input
false
Spec.Hash.Incremental.Definitions.fst
Spec.Hash.Incremental.Definitions.hash_incremental
val hash_incremental (a: hash_alg) (input: bytes{(S.length input) `less_than_max_input_length` a}) (out_length: output_length a) : Tot (hash: bytes{S.length hash = (hash_length' a out_length)})
val hash_incremental (a: hash_alg) (input: bytes{(S.length input) `less_than_max_input_length` a}) (out_length: output_length a) : Tot (hash: bytes{S.length hash = (hash_length' a out_length)})
let hash_incremental (a:hash_alg) (input:bytes{S.length input `less_than_max_input_length` a}) (out_length: output_length a): Tot (hash:bytes{S.length hash = (hash_length' a out_length)}) = let s = init a in let bs, l = split_blocks a input in let s = update_multi a s (init_extra_state a) bs in let s = upda...
{ "file_name": "specs/lemmas/Spec.Hash.Incremental.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 23, "end_line": 73, "start_col": 0, "start_line": 65 }
module Spec.Hash.Incremental.Definitions module S = FStar.Seq module Blake2 = Spec.Blake2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.MD open FStar.Mul open Lib.Sequence open Lib.ByteSequence open Lib.IntTypes module Loops = Lib.LoopCombinators module UpdateMulti = Lib.UpdateMulti #set-options "...
{ "checked_file": "/", "dependencies": [ "Spec.SHA3.fst.checked", "Spec.Hash.MD.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loop...
[ { "abbrev": true, "full_module": "Lib.UpdateMulti", "short_module": "UpdateMulti" }, { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, ...
{ "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.hash_alg -> input: Lib.ByteSequence.bytes {Spec.Hash.Definitions.less_than_max_input_length (FStar.Seq.Base.length input) a} -> out_length: Spec.Hash.Definitions.output_length a -> hash: Lib.ByteSequence.bytes {FStar.Seq.Base.length hash = Spec.Hash.Defini...
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Lib.ByteSequence.bytes", "Prims.b2t", "Spec.Hash.Definitions.less_than_max_input_length", "FStar.Seq.Base.length", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Spec.Hash.Definitions.output_length", "Spec.Agile.Hash.finish", "Spec.Hash.Definiti...
[]
false
false
false
false
false
let hash_incremental (a: hash_alg) (input: bytes{(S.length input) `less_than_max_input_length` a}) (out_length: output_length a) : Tot (hash: bytes{S.length hash = (hash_length' a out_length)}) =
let s = init a in let bs, l = split_blocks a input in let s = update_multi a s (init_extra_state a) bs in let s = update_last a s (if is_keccak a then () else S.length bs) l in finish a s out_length
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.qadd
val qadd (out f1 f2: qelem) : Stack unit (requires fun h -> live h out /\ live h f1 /\ live h f2 /\ eq_or_disjoint out f1 /\ eq_or_disjoint out f2 /\ eq_or_disjoint f1 f2 /\ qe_lt_q h f1 /\ qe_lt_q h f2) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ qas_nat h1 out == S.qadd (qas_nat h0 f1) (q...
val qadd (out f1 f2: qelem) : Stack unit (requires fun h -> live h out /\ live h f1 /\ live h f2 /\ eq_or_disjoint out f1 /\ eq_or_disjoint out f2 /\ eq_or_disjoint f1 f2 /\ qe_lt_q h f1 /\ qe_lt_q h f2) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ qas_nat h1 out == S.qadd (qas_nat h0 f1) (q...
let qadd out f1 f2 = push_frame (); let n = create_qelem () in make_u64_4 n (make_order_k256 ()); let h0 = ST.get () in kn.BN.add_mod_n n f1 f2 out; SN.bn_add_mod_n_lemma (as_seq h0 n) (as_seq h0 f1) (as_seq h0 f2); pop_frame ()
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 231, "start_col": 0, "start_line": 223 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "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
out: Hacl.K256.Scalar.qelem -> f1: Hacl.K256.Scalar.qelem -> f2: Hacl.K256.Scalar.qelem -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "Hacl.Spec.Bignum.bn_add_mod_n_lemma", "Lib.IntTypes.U64", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.K256.Scalar.qnlimb", "Lib.Buffer.as_seq", "Lib.Buffer.MUT", "Lib.IntTypes.uint64", "Hacl.Bignum....
[]
false
true
false
false
false
let qadd out f1 f2 =
push_frame (); let n = create_qelem () in make_u64_4 n (make_order_k256 ()); let h0 = ST.get () in kn.BN.add_mod_n n f1 f2 out; SN.bn_add_mod_n_lemma (as_seq h0 n) (as_seq h0 f1) (as_seq h0 f2); pop_frame ()
false
Spec.Hash.Incremental.Definitions.fst
Spec.Hash.Incremental.Definitions.update_last
val update_last (a: hash_alg) (hash: words_state a) (prevlen: prev_length_t a) (input: bytes { (if is_keccak a then True else (S.length input + prevlen) `less_than_max_input_length` a) /\ S.length input <= block_length a }) ...
val update_last (a: hash_alg) (hash: words_state a) (prevlen: prev_length_t a) (input: bytes { (if is_keccak a then True else (S.length input + prevlen) `less_than_max_input_length` a) /\ S.length input <= block_length a }) ...
let update_last (a:hash_alg) (hash:words_state a) (prevlen:prev_length_t a) (input:bytes{ (if is_keccak a then True else (S.length input + prevlen) `less_than_max_input_length` a) /\ S.length input <= block_length a }): Tot (words_state a) = if is_blake a then Spec.Blake2.blake2_update_last (to_blake_...
{ "file_name": "specs/lemmas/Spec.Hash.Incremental.Definitions.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 54, "start_col": 0, "start_line": 29 }
module Spec.Hash.Incremental.Definitions module S = FStar.Seq module Blake2 = Spec.Blake2 open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.MD open FStar.Mul open Lib.Sequence open Lib.ByteSequence open Lib.IntTypes module Loops = Lib.LoopCombinators module UpdateMulti = Lib.UpdateMulti #set-options "...
{ "checked_file": "/", "dependencies": [ "Spec.SHA3.fst.checked", "Spec.Hash.MD.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fsti.checked", "prims.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loop...
[ { "abbrev": true, "full_module": "Lib.UpdateMulti", "short_module": "UpdateMulti" }, { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, ...
{ "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.hash_alg -> hash: Spec.Hash.Definitions.words_state a -> prevlen: Spec.Hash.Incremental.Definitions.prev_length_t a -> input: Lib.ByteSequence.bytes { (match Spec.Hash.Definitions.is_keccak a with | true -> Prims.l_True | _ -> ...
Prims.Tot
[ "total" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Spec.Hash.Definitions.words_state", "Spec.Hash.Incremental.Definitions.prev_length_t", "Lib.ByteSequence.bytes", "Prims.l_and", "Spec.Hash.Definitions.is_keccak", "Prims.l_True", "Prims.bool", "Prims.b2t", "Spec.Hash.Definitions.less_than_max_input_length", "Pr...
[]
false
false
false
false
false
let update_last (a: hash_alg) (hash: words_state a) (prevlen: prev_length_t a) (input: bytes { (if is_keccak a then True else (S.length input + prevlen) `less_than_max_input_length` a) /\ S.length input <= block_length a }) ...
if is_blake a then Spec.Blake2.blake2_update_last (to_blake_alg a) prevlen (S.length input) input hash else if is_keccak a then let rateInBytes = rate a / 8 in let delimitedSuffix = if is_shake a then byte 0x1f else byte 0x06 in let s = hash in let l = S.length input in if l = block_length a ...
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.qmul_shift_384
val qmul_shift_384 (res a b: qelem) : Stack unit (requires fun h -> live h a /\ live h b /\ live h res /\ eq_or_disjoint a b /\ eq_or_disjoint a res /\ eq_or_disjoint b res /\ qas_nat h a < S.q /\ qas_nat h b < S.q) (ensures fun h0 _ h1 -> modifies (loc res) h0 h1 /\ qas_nat h1 res < S.q /\ qas...
val qmul_shift_384 (res a b: qelem) : Stack unit (requires fun h -> live h a /\ live h b /\ live h res /\ eq_or_disjoint a b /\ eq_or_disjoint a res /\ eq_or_disjoint b res /\ qas_nat h a < S.q /\ qas_nat h b < S.q) (ensures fun h0 _ h1 -> modifies (loc res) h0 h1 /\ qas_nat h1 res < S.q /\ qas...
let qmul_shift_384 res a b = push_frame (); let h0 = ST.get () in let l = create (2ul *! qnlimb) (u64 0) in kn.BN.mul a b l; // l = a * b let res_b_padded = create_qelem () in rshift_update_sub res_b_padded l; let _ = BN.bn_add1 qnlimb res_b_padded (u64 1) res in let flag = l.(5ul) >>. 63ul in let mas...
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 417, "start_col": 0, "start_line": 400 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "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
res: Hacl.K256.Scalar.qelem -> a: Hacl.K256.Scalar.qelem -> b: Hacl.K256.Scalar.qelem -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "Hacl.Spec.K256.Scalar.Lemmas.qas_nat4_is_qas_nat", "Lib.Buffer.as_seq", "Lib.Buffer.MUT", "Lib.IntTypes.uint64", "Hacl.K256.Scalar.qnlimb", "Hacl.Spec.K256.Scalar.Lemmas.qmul_shift_384_lemma", "Prims._assert", "Prims.eq2",...
[]
false
true
false
false
false
let qmul_shift_384 res a b =
push_frame (); let h0 = ST.get () in let l = create (2ul *! qnlimb) (u64 0) in kn.BN.mul a b l; let res_b_padded = create_qelem () in rshift_update_sub res_b_padded l; let _ = BN.bn_add1 qnlimb res_b_padded (u64 1) res in let flag = l.(5ul) >>. 63ul in let mask = u64 0 -. flag in map2T qnlimb res (BB.mask_select mask) ...
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.mul_pow2_256_minus_q_add
val mul_pow2_256_minus_q_add: len:size_t -> resLen:size_t{2 + v len <= v resLen /\ 4 <= v resLen} -> t01:lbuffer uint64 2ul -> a:lbuffer uint64 len -> e:lbuffer uint64 4ul -> res:lbuffer uint64 resLen -> Stack (BB.carry U64) (requires fun h -> live h a /\ live h res /\ live h t01 /\ live h e /\ ...
val mul_pow2_256_minus_q_add: len:size_t -> resLen:size_t{2 + v len <= v resLen /\ 4 <= v resLen} -> t01:lbuffer uint64 2ul -> a:lbuffer uint64 len -> e:lbuffer uint64 4ul -> res:lbuffer uint64 resLen -> Stack (BB.carry U64) (requires fun h -> live h a /\ live h res /\ live h t01 /\ live h e /\ ...
let mul_pow2_256_minus_q_add len resLen t01 a e res = push_frame (); let tmp = create (len +! 2ul) (u64 0) in BN.bn_mul len 2ul a t01 tmp; update_sub res 2ul len a; let _ = bn_add resLen res (len +! 2ul) tmp res in let c = bn_add resLen res 4ul e res in pop_frame (); c
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 261, "start_col": 0, "start_line": 253 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: Lib.IntTypes.size_t -> resLen: Lib.IntTypes.size_t {2 + Lib.IntTypes.v len <= Lib.IntTypes.v resLen /\ 4 <= Lib.IntTypes.v resLen} -> t01: Lib.Buffer.lbuffer Lib.IntTypes.uint64 2ul -> a: Lib.Buffer.lbuffer Lib.IntTypes.uint64 len -> e: Lib.Buffer.lbuffer Lib.IntTypes.uint64 4ul ...
FStar.HyperStack.ST.Stack
[]
[]
[ "Lib.IntTypes.size_t", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint64", "FStar.UInt32.__uint_to_t", "Hacl.Spec.Bignum.Base.carry", "Lib.IntTypes.U64", "Prims.u...
[]
false
true
false
false
false
let mul_pow2_256_minus_q_add len resLen t01 a e res =
push_frame (); let tmp = create (len +! 2ul) (u64 0) in BN.bn_mul len 2ul a t01 tmp; update_sub res 2ul len a; let _ = bn_add resLen res (len +! 2ul) tmp res in let c = bn_add resLen res 4ul e res in pop_frame (); c
false
CQueue.Cell.fsti
CQueue.Cell.ccell
val ccell (#a: Type0) (c: ccell_ptrvalue a) : Tot vprop
val ccell (#a: Type0) (c: ccell_ptrvalue a) : Tot vprop
let ccell (#a: Type0) (c: ccell_ptrvalue a) : Tot vprop = VUnit (ccell' c)
{ "file_name": "share/steel/examples/steel/CQueue.Cell.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 18, "end_line": 115, "start_col": 0, "start_line": 114 }
module CQueue.Cell open Steel.Memory open Steel.Effect open Steel.Effect.Atomic open Steel.FractionalPermission open Steel.Reference (* A C lvalue view of a cell struct, as a pair of two references for its data and next fields *) val ccell_ptrvalue (a: Type0) : Tot Type0 (* "ccell *" seen as a rvalue *) val ccell_pt...
{ "checked_file": "/", "dependencies": [ "Steel.Reference.fsti.checked", "Steel.Memory.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.che...
[ { "abbrev": false, "full_module": "Steel.Reference", "short_module": null }, { "abbrev": false, "full_module": "Steel.FractionalPermission", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect.Atomic", "short_module": null }, { "abbrev": false,...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
c: CQueue.Cell.ccell_ptrvalue a -> Steel.Effect.Common.vprop
Prims.Tot
[ "total" ]
[]
[ "CQueue.Cell.ccell_ptrvalue", "Steel.Effect.Common.VUnit", "CQueue.Cell.ccell'", "Steel.Effect.Common.vprop" ]
[]
false
false
false
true
false
let ccell (#a: Type0) (c: ccell_ptrvalue a) : Tot vprop =
VUnit (ccell' c)
false
CQueue.Cell.fsti
CQueue.Cell.ccell_is_lvalue
val ccell_is_lvalue (#a: Type0) (c: ccell_ptrvalue a) : Tot vprop
val ccell_is_lvalue (#a: Type0) (c: ccell_ptrvalue a) : Tot vprop
let ccell_is_lvalue (#a: Type0) (c: ccell_ptrvalue a) : Tot vprop = VUnit (ccell_is_lvalue' c)
{ "file_name": "share/steel/examples/steel/CQueue.Cell.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 28, "end_line": 64, "start_col": 0, "start_line": 63 }
module CQueue.Cell open Steel.Memory open Steel.Effect open Steel.Effect.Atomic open Steel.FractionalPermission open Steel.Reference (* A C lvalue view of a cell struct, as a pair of two references for its data and next fields *) val ccell_ptrvalue (a: Type0) : Tot Type0 (* "ccell *" seen as a rvalue *) val ccell_pt...
{ "checked_file": "/", "dependencies": [ "Steel.Reference.fsti.checked", "Steel.Memory.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.che...
[ { "abbrev": false, "full_module": "Steel.Reference", "short_module": null }, { "abbrev": false, "full_module": "Steel.FractionalPermission", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect.Atomic", "short_module": null }, { "abbrev": false,...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
c: CQueue.Cell.ccell_ptrvalue a -> Steel.Effect.Common.vprop
Prims.Tot
[ "total" ]
[]
[ "CQueue.Cell.ccell_ptrvalue", "Steel.Effect.Common.VUnit", "CQueue.Cell.ccell_is_lvalue'", "Steel.Effect.Common.vprop" ]
[]
false
false
false
true
false
let ccell_is_lvalue (#a: Type0) (c: ccell_ptrvalue a) : Tot vprop =
VUnit (ccell_is_lvalue' c)
false
CQueue.Cell.fsti
CQueue.Cell.ccell_lvalue
val ccell_lvalue : a: Type0 -> Type0
let ccell_lvalue (a: Type0) = (c: ccell_ptrvalue a { ccell_ptrvalue_is_null c == false })
{ "file_name": "share/steel/examples/steel/CQueue.Cell.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 89, "end_line": 20, "start_col": 0, "start_line": 20 }
module CQueue.Cell open Steel.Memory open Steel.Effect open Steel.Effect.Atomic open Steel.FractionalPermission open Steel.Reference (* A C lvalue view of a cell struct, as a pair of two references for its data and next fields *) val ccell_ptrvalue (a: Type0) : Tot Type0 (* "ccell *" seen as a rvalue *) val ccell_pt...
{ "checked_file": "/", "dependencies": [ "Steel.Reference.fsti.checked", "Steel.Memory.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.che...
[ { "abbrev": false, "full_module": "Steel.Reference", "short_module": null }, { "abbrev": false, "full_module": "Steel.FractionalPermission", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect.Atomic", "short_module": null }, { "abbrev": false,...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type0 -> Type0
Prims.Tot
[ "total" ]
[]
[ "CQueue.Cell.ccell_ptrvalue", "Prims.eq2", "Prims.bool", "CQueue.Cell.ccell_ptrvalue_is_null" ]
[]
false
false
false
true
true
let ccell_lvalue (a: Type0) =
(c: ccell_ptrvalue a {ccell_ptrvalue_is_null c == false})
false
CQueue.Cell.fsti
CQueue.Cell.ccell'
val ccell' (#a: Type0) (c: ccell_ptrvalue a) : GTot vprop'
val ccell' (#a: Type0) (c: ccell_ptrvalue a) : GTot vprop'
let ccell' (#a: Type0) (c: ccell_ptrvalue a) : GTot vprop' = { hp = ccell_hp c; t = vcell a; sel = ccell_sel c; }
{ "file_name": "share/steel/examples/steel/CQueue.Cell.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 1, "end_line": 111, "start_col": 0, "start_line": 103 }
module CQueue.Cell open Steel.Memory open Steel.Effect open Steel.Effect.Atomic open Steel.FractionalPermission open Steel.Reference (* A C lvalue view of a cell struct, as a pair of two references for its data and next fields *) val ccell_ptrvalue (a: Type0) : Tot Type0 (* "ccell *" seen as a rvalue *) val ccell_pt...
{ "checked_file": "/", "dependencies": [ "Steel.Reference.fsti.checked", "Steel.Memory.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.che...
[ { "abbrev": false, "full_module": "Steel.Reference", "short_module": null }, { "abbrev": false, "full_module": "Steel.FractionalPermission", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect.Atomic", "short_module": null }, { "abbrev": false,...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
c: CQueue.Cell.ccell_ptrvalue a -> Prims.GTot Steel.Effect.Common.vprop'
Prims.GTot
[ "sometrivial" ]
[]
[ "CQueue.Cell.ccell_ptrvalue", "Steel.Effect.Common.Mkvprop'", "CQueue.Cell.ccell_hp", "CQueue.Cell.vcell", "CQueue.Cell.ccell_sel", "Steel.Effect.Common.vprop'" ]
[]
false
false
false
false
false
let ccell' (#a: Type0) (c: ccell_ptrvalue a) : GTot vprop' =
{ hp = ccell_hp c; t = vcell a; sel = ccell_sel c }
false
CQueue.Cell.fsti
CQueue.Cell.ccell_is_lvalue'
val ccell_is_lvalue' (#a: Type0) (c: ccell_ptrvalue a) : GTot vprop'
val ccell_is_lvalue' (#a: Type0) (c: ccell_ptrvalue a) : GTot vprop'
let ccell_is_lvalue' (#a: Type0) (c: ccell_ptrvalue a) : GTot vprop' = { hp = ccell_is_lvalue_hp c; t = ccell_lvalue a; sel = ccell_is_lvalue_sel c; }
{ "file_name": "share/steel/examples/steel/CQueue.Cell.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 1, "end_line": 60, "start_col": 0, "start_line": 52 }
module CQueue.Cell open Steel.Memory open Steel.Effect open Steel.Effect.Atomic open Steel.FractionalPermission open Steel.Reference (* A C lvalue view of a cell struct, as a pair of two references for its data and next fields *) val ccell_ptrvalue (a: Type0) : Tot Type0 (* "ccell *" seen as a rvalue *) val ccell_pt...
{ "checked_file": "/", "dependencies": [ "Steel.Reference.fsti.checked", "Steel.Memory.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.che...
[ { "abbrev": false, "full_module": "Steel.Reference", "short_module": null }, { "abbrev": false, "full_module": "Steel.FractionalPermission", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect.Atomic", "short_module": null }, { "abbrev": false,...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
c: CQueue.Cell.ccell_ptrvalue a -> Prims.GTot Steel.Effect.Common.vprop'
Prims.GTot
[ "sometrivial" ]
[]
[ "CQueue.Cell.ccell_ptrvalue", "Steel.Effect.Common.Mkvprop'", "CQueue.Cell.ccell_is_lvalue_hp", "CQueue.Cell.ccell_lvalue", "CQueue.Cell.ccell_is_lvalue_sel", "Steel.Effect.Common.vprop'" ]
[]
false
false
false
false
false
let ccell_is_lvalue' (#a: Type0) (c: ccell_ptrvalue a) : GTot vprop' =
{ hp = ccell_is_lvalue_hp c; t = ccell_lvalue a; sel = ccell_is_lvalue_sel c }
false
MerkleTree.New.High.Correct.Rhs.fst
MerkleTree.New.High.Correct.Rhs.rhs_equiv
val rhs_equiv: #hsz:pos -> j:nat -> rhs1:hashes #hsz {S.length rhs1 = log2c j} -> rhs2:hashes #hsz {S.length rhs2 = log2c j} -> actd:bool -> GTot Type0 (decreases j)
val rhs_equiv: #hsz:pos -> j:nat -> rhs1:hashes #hsz {S.length rhs1 = log2c j} -> rhs2:hashes #hsz {S.length rhs2 = log2c j} -> actd:bool -> GTot Type0 (decreases j)
let rec rhs_equiv #hsz j rhs1 rhs2 actd = if j = 0 then true else if j % 2 = 0 then rhs_equiv #hsz (j / 2) (S.tail rhs1) (S.tail rhs2) actd else ((if actd then S.head rhs1 == S.head rhs2 else true) /\ rhs_equiv #hsz (j / 2) (S.tail rhs1) (S.tail rhs2) true)
{ "file_name": "src/MerkleTree.New.High.Correct.Rhs.fst", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 63, "end_line": 184, "start_col": 0, "start_line": 179 }
module MerkleTree.New.High.Correct.Rhs open FStar.Classical open FStar.Ghost open FStar.Seq module S = FStar.Seq module MTS = MerkleTree.Spec open MerkleTree.New.High open MerkleTree.New.High.Correct.Base #set-options "--z3rlimit 10 --initial_fuel 1 --max_fuel 1 --initial_ifuel 0 --max_ifuel 0" /// Correctness of...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.New.High.Correct.Base.fst.checked", "MerkleTree.New.High.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghos...
[ { "abbrev": false, "full_module": "MerkleTree.New.High.Correct.Base", "short_module": null }, { "abbrev": false, "full_module": "MerkleTree.New.High", "short_module": null }, { "abbrev": true, "full_module": "MerkleTree.Spec", "short_module": "MTS" }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
j: Prims.nat -> rhs1: MerkleTree.New.High.hashes {FStar.Seq.Base.length rhs1 = MerkleTree.New.High.Correct.Base.log2c j} -> rhs2: MerkleTree.New.High.hashes {FStar.Seq.Base.length rhs2 = MerkleTree.New.High.Correct.Base.log2c j} -> actd: Prims.bool -> Prims.GTot Type0
Prims.GTot
[ "sometrivial", "" ]
[]
[ "Prims.pos", "Prims.nat", "MerkleTree.New.High.hashes", "Prims.b2t", "Prims.op_Equality", "FStar.Seq.Base.length", "MerkleTree.New.High.hash", "MerkleTree.New.High.Correct.Base.log2c", "Prims.bool", "Prims.int", "Prims.op_Modulus", "MerkleTree.New.High.Correct.Rhs.rhs_equiv", "Prims.op_Divis...
[ "recursion" ]
false
false
false
false
true
let rec rhs_equiv #hsz j rhs1 rhs2 actd =
if j = 0 then true else if j % 2 = 0 then rhs_equiv #hsz (j / 2) (S.tail rhs1) (S.tail rhs2) actd else ((if actd then S.head rhs1 == S.head rhs2 else true) /\ rhs_equiv #hsz (j / 2) (S.tail rhs1) (S.tail rhs2) true)
false
MerkleTree.New.High.Correct.Rhs.fst
MerkleTree.New.High.Correct.Rhs.construct_rhs_base_inv_ok
val construct_rhs_base_inv_ok: #hsz:pos -> #f:MTS.hash_fun_t #hsz -> i:nat -> j:nat{j > 0 /\ i <= j /\ j < pow2 32} -> olds:hashess #hsz {S.length olds = 32 /\ mt_olds_inv #hsz 0 i olds} -> hs:hashess #hsz {S.length hs = 32 /\ hs_wf_elts 0 hs i j} -> rhs:hashes #hsz {S.length rhs = 32} -> acc:hash #hsz -> ...
val construct_rhs_base_inv_ok: #hsz:pos -> #f:MTS.hash_fun_t #hsz -> i:nat -> j:nat{j > 0 /\ i <= j /\ j < pow2 32} -> olds:hashess #hsz {S.length olds = 32 /\ mt_olds_inv #hsz 0 i olds} -> hs:hashess #hsz {S.length hs = 32 /\ hs_wf_elts 0 hs i j} -> rhs:hashes #hsz {S.length rhs = 32} -> acc:hash #hsz -> ...
let construct_rhs_base_inv_ok #hsz #f i j olds hs rhs acc actd = construct_rhs_inv_ok #_ #f 0 i j olds hs rhs acc actd
{ "file_name": "src/MerkleTree.New.High.Correct.Rhs.fst", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 55, "end_line": 374, "start_col": 0, "start_line": 373 }
module MerkleTree.New.High.Correct.Rhs open FStar.Classical open FStar.Ghost open FStar.Seq module S = FStar.Seq module MTS = MerkleTree.Spec open MerkleTree.New.High open MerkleTree.New.High.Correct.Base #set-options "--z3rlimit 10 --initial_fuel 1 --max_fuel 1 --initial_ifuel 0 --max_ifuel 0" /// Correctness of...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.New.High.Correct.Base.fst.checked", "MerkleTree.New.High.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghos...
[ { "abbrev": false, "full_module": "MerkleTree.New.High.Correct.Base", "short_module": null }, { "abbrev": false, "full_module": "MerkleTree.New.High", "short_module": null }, { "abbrev": true, "full_module": "MerkleTree.Spec", "short_module": "MTS" }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: Prims.nat -> j: Prims.nat{j > 0 /\ i <= j /\ j < Prims.pow2 32} -> olds: MerkleTree.New.High.hashess {FStar.Seq.Base.length olds = 32 /\ MerkleTree.New.High.Correct.Base.mt_olds_inv 0 i olds} -> hs: MerkleTree.New.High.hashess {FStar.Seq.Base.length hs = 32 /\ MerkleTree....
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "MerkleTree.Spec.hash_fun_t", "Prims.nat", "Prims.l_and", "Prims.b2t", "Prims.op_GreaterThan", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "Prims.pow2", "MerkleTree.New.High.hashess", "Prims.op_Equality", "Prims.int", "FStar.Seq.Base.length", "MerkleTree.New.High.hashes",...
[]
true
false
true
false
false
let construct_rhs_base_inv_ok #hsz #f i j olds hs rhs acc actd =
construct_rhs_inv_ok #_ #f 0 i j olds hs rhs acc actd
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.modq
val modq: out:qelem -> a:lbuffer uint64 (2ul *! qnlimb) -> Stack unit (requires fun h -> live h a /\ live h out /\ disjoint a out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ qas_nat h1 out == BD.bn_v h0 a % S.q)
val modq: out:qelem -> a:lbuffer uint64 (2ul *! qnlimb) -> Stack unit (requires fun h -> live h a /\ live h out /\ disjoint a out) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ qas_nat h1 out == BD.bn_v h0 a % S.q)
let modq out a = push_frame (); let r = create_qelem () in let tmp = create_qelem () in [@inline_let] let (t0,t1,t2,t3) = make_pow2_256_minus_order_k256 () in make_u64_4 tmp (t0,t1,t2,t3); let t01 = sub tmp 0ul 2ul in let h0 = ST.get () in assert (Seq.equal (as_seq h0 t01) (LSeq.create2 t0 t1)); le...
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 315, "start_col": 0, "start_line": 296 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "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
out: Hacl.K256.Scalar.qelem -> a: Lib.Buffer.lbuffer Lib.IntTypes.uint64 (2ul *! Hacl.K256.Scalar.qnlimb) -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Scalar.qelem", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint64", "Lib.IntTypes.op_Star_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "FStar.UInt32.__uint_to_t", "Hacl.K256.Scalar.qnlimb", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "Hacl.Spec.K256.Scalar.Lemmas.mod_lseq_lemma", "Lib....
[]
false
true
false
false
false
let modq out a =
push_frame (); let r = create_qelem () in let tmp = create_qelem () in [@@ inline_let ]let t0, t1, t2, t3 = make_pow2_256_minus_order_k256 () in make_u64_4 tmp (t0, t1, t2, t3); let t01 = sub tmp 0ul 2ul in let h0 = ST.get () in assert (Seq.equal (as_seq h0 t01) (LSeq.create2 t0 t1)); let c0 = modq_before_final t01 a r...
false
MerkleTree.New.High.Correct.Rhs.fst
MerkleTree.New.High.Correct.Rhs.construct_rhs_init_ignored
val construct_rhs_init_ignored: #hsz:pos -> #f:MTS.hash_fun_t #hsz -> lv:nat{lv <= 32} -> hs:hashess #hsz {S.length hs = 32} -> rhs:hashes #hsz {S.length rhs = 32} -> i:nat -> j:nat{ i <= j /\ j < pow2 (32 - lv) /\ hs_wf_elts lv hs i j} -> acc1:hash #hsz -> acc2:hash #hsz -> Lemma (requires (j >...
val construct_rhs_init_ignored: #hsz:pos -> #f:MTS.hash_fun_t #hsz -> lv:nat{lv <= 32} -> hs:hashess #hsz {S.length hs = 32} -> rhs:hashes #hsz {S.length rhs = 32} -> i:nat -> j:nat{ i <= j /\ j < pow2 (32 - lv) /\ hs_wf_elts lv hs i j} -> acc1:hash #hsz -> acc2:hash #hsz -> Lemma (requires (j >...
let rec construct_rhs_init_ignored #hsz #f lv hs rhs i j acc1 acc2 = if j % 2 = 0 then construct_rhs_init_ignored #_ #f (lv + 1) hs rhs (i / 2) (j / 2) acc1 acc2 else ()
{ "file_name": "src/MerkleTree.New.High.Correct.Rhs.fst", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 9, "end_line": 395, "start_col": 0, "start_line": 392 }
module MerkleTree.New.High.Correct.Rhs open FStar.Classical open FStar.Ghost open FStar.Seq module S = FStar.Seq module MTS = MerkleTree.Spec open MerkleTree.New.High open MerkleTree.New.High.Correct.Base #set-options "--z3rlimit 10 --initial_fuel 1 --max_fuel 1 --initial_ifuel 0 --max_ifuel 0" /// Correctness of...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.New.High.Correct.Base.fst.checked", "MerkleTree.New.High.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghos...
[ { "abbrev": false, "full_module": "MerkleTree.New.High.Correct.Base", "short_module": null }, { "abbrev": false, "full_module": "MerkleTree.New.High", "short_module": null }, { "abbrev": true, "full_module": "MerkleTree.Spec", "short_module": "MTS" }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
lv: Prims.nat{lv <= 32} -> hs: MerkleTree.New.High.hashess{FStar.Seq.Base.length hs = 32} -> rhs: MerkleTree.New.High.hashes{FStar.Seq.Base.length rhs = 32} -> i: Prims.nat -> j: Prims.nat{i <= j /\ j < Prims.pow2 (32 - lv) /\ MerkleTree.New.High.hs_wf_elts lv hs i j} -> acc1: MerkleTree.New.Hi...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.pos", "MerkleTree.Spec.hash_fun_t", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "MerkleTree.New.High.hashess", "Prims.op_Equality", "Prims.int", "FStar.Seq.Base.length", "MerkleTree.New.High.hashes", "MerkleTree.New.High.hash", "Prims.l_and", "Prims.op_LessThan", "Prims.po...
[ "recursion" ]
false
false
true
false
false
let rec construct_rhs_init_ignored #hsz #f lv hs rhs i j acc1 acc2 =
if j % 2 = 0 then construct_rhs_init_ignored #_ #f (lv + 1) hs rhs (i / 2) (j / 2) acc1 acc2
false
MerkleTree.New.High.Correct.Rhs.fst
MerkleTree.New.High.Correct.Rhs.rhs_equiv_inv_preserved
val rhs_equiv_inv_preserved: #hsz:pos -> #f:MTS.hash_fun_t #hsz -> j:nat -> smt:MTS.merkle_tree (log2c j) -> rhs1:hashes #hsz {S.length rhs1 = log2c j} -> rhs2:hashes #hsz {S.length rhs2 = log2c j} -> actd:bool -> Lemma (requires (mt_rhs_inv #_ #f j smt rhs1 actd /\ rhs_equiv #hsz j rhs1...
val rhs_equiv_inv_preserved: #hsz:pos -> #f:MTS.hash_fun_t #hsz -> j:nat -> smt:MTS.merkle_tree (log2c j) -> rhs1:hashes #hsz {S.length rhs1 = log2c j} -> rhs2:hashes #hsz {S.length rhs2 = log2c j} -> actd:bool -> Lemma (requires (mt_rhs_inv #_ #f j smt rhs1 actd /\ rhs_equiv #hsz j rhs1...
let rec rhs_equiv_inv_preserved #_ #f j smt rhs1 rhs2 actd = if j = 0 then () else if j % 2 = 0 then rhs_equiv_inv_preserved #_ #f (j / 2) (MTS.mt_next_lv #_ #f #(log2c j) smt) (S.tail rhs1) (S.tail rhs2) actd else begin (if actd then (assert (S.index smt j == MTS.HRaw (S.head rhs1)); ...
{ "file_name": "src/MerkleTree.New.High.Correct.Rhs.fst", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 5, "end_line": 209, "start_col": 0, "start_line": 197 }
module MerkleTree.New.High.Correct.Rhs open FStar.Classical open FStar.Ghost open FStar.Seq module S = FStar.Seq module MTS = MerkleTree.Spec open MerkleTree.New.High open MerkleTree.New.High.Correct.Base #set-options "--z3rlimit 10 --initial_fuel 1 --max_fuel 1 --initial_ifuel 0 --max_ifuel 0" /// Correctness of...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.New.High.Correct.Base.fst.checked", "MerkleTree.New.High.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghos...
[ { "abbrev": false, "full_module": "MerkleTree.New.High.Correct.Base", "short_module": null }, { "abbrev": false, "full_module": "MerkleTree.New.High", "short_module": null }, { "abbrev": true, "full_module": "MerkleTree.Spec", "short_module": "MTS" }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
j: Prims.nat -> smt: MerkleTree.Spec.merkle_tree (MerkleTree.New.High.Correct.Base.log2c j) -> rhs1: MerkleTree.New.High.hashes {FStar.Seq.Base.length rhs1 = MerkleTree.New.High.Correct.Base.log2c j} -> rhs2: MerkleTree.New.High.hashes {FStar.Seq.Base.length rhs2 = MerkleTre...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.pos", "MerkleTree.Spec.hash_fun_t", "Prims.nat", "MerkleTree.Spec.merkle_tree", "MerkleTree.New.High.Correct.Base.log2c", "MerkleTree.New.High.hashes", "Prims.b2t", "Prims.op_Equality", "FStar.Seq.Base.length", "MerkleTree.New.High.hash", "Prims.bool", "Prims.int", "Prims.op_Modulus",...
[ "recursion" ]
false
false
true
false
false
let rec rhs_equiv_inv_preserved #_ #f j smt rhs1 rhs2 actd =
if j = 0 then () else if j % 2 = 0 then rhs_equiv_inv_preserved #_ #f (j / 2) (MTS.mt_next_lv #_ #f #(log2c j) smt) (S.tail rhs1) (S.tail rhs2) actd else ((if actd then (assert (S.index smt j == MTS.HRaw (S.head rhs1)); assert (S.head rhs1 ...
false
MerkleTree.New.High.Correct.Rhs.fst
MerkleTree.New.High.Correct.Rhs.mt_get_root_inv_ok
val mt_get_root_inv_ok: #hsz:pos -> mt:merkle_tree #hsz {mt_wf_elts mt} -> drt:hash -> olds:hashess #hsz {S.length olds = 32 /\ mt_olds_inv #hsz 0 (MT?.i mt) olds} -> Lemma (requires (mt_inv mt olds)) (ensures (let nmt, rt = mt_get_root mt drt in // Only `MT?.rhs` and `MT?.mroot` are c...
val mt_get_root_inv_ok: #hsz:pos -> mt:merkle_tree #hsz {mt_wf_elts mt} -> drt:hash -> olds:hashess #hsz {S.length olds = 32 /\ mt_olds_inv #hsz 0 (MT?.i mt) olds} -> Lemma (requires (mt_inv mt olds)) (ensures (let nmt, rt = mt_get_root mt drt in // Only `MT?.rhs` and `MT?.mroot` are c...
let mt_get_root_inv_ok #hsz mt drt olds = if MT?.rhs_ok mt then () else if MT?.j mt = 0 then () else begin construct_rhs_base_inv_ok #_ #(MT?.hash_fun mt) (MT?.i mt) (MT?.j mt) olds (MT?.hs mt) (MT?.rhs mt) hash_init false; construct_rhs_init_ignored #_ #(MT?.hash_fun mt) 0 (MT?.hs mt) (...
{ "file_name": "src/MerkleTree.New.High.Correct.Rhs.fst", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 5, "end_line": 422, "start_col": 0, "start_line": 412 }
module MerkleTree.New.High.Correct.Rhs open FStar.Classical open FStar.Ghost open FStar.Seq module S = FStar.Seq module MTS = MerkleTree.Spec open MerkleTree.New.High open MerkleTree.New.High.Correct.Base #set-options "--z3rlimit 10 --initial_fuel 1 --max_fuel 1 --initial_ifuel 0 --max_ifuel 0" /// Correctness of...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.New.High.Correct.Base.fst.checked", "MerkleTree.New.High.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghos...
[ { "abbrev": false, "full_module": "MerkleTree.New.High.Correct.Base", "short_module": null }, { "abbrev": false, "full_module": "MerkleTree.New.High", "short_module": null }, { "abbrev": true, "full_module": "MerkleTree.Spec", "short_module": "MTS" }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mt: MerkleTree.New.High.merkle_tree{MerkleTree.New.High.mt_wf_elts mt} -> drt: MerkleTree.New.High.hash -> olds: MerkleTree.New.High.hashess { FStar.Seq.Base.length olds = 32 /\ MerkleTree.New.High.Correct.Base.mt_olds_inv 0 (MT?.i mt) olds } -> FStar.Pervasives.Lemma (requires Me...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.pos", "MerkleTree.New.High.merkle_tree", "MerkleTree.New.High.mt_wf_elts", "MerkleTree.New.High.hash", "MerkleTree.New.High.hashess", "Prims.l_and", "Prims.b2t", "Prims.op_Equality", "Prims.int", "FStar.Seq.Base.length", "MerkleTree.New.High.hashes", "MerkleTree.New.High.Correct.Base.mt...
[]
false
false
true
false
false
let mt_get_root_inv_ok #hsz mt drt olds =
if MT?.rhs_ok mt then () else if MT?.j mt = 0 then () else (construct_rhs_base_inv_ok #_ #(MT?.hash_fun mt) (MT?.i mt) (MT?.j mt) olds (MT?.hs mt) (MT?.rhs mt) hash_init false; construct_rhs_init_ignored #_ #(MT?.hash_fun mt) ...
false
Vale.AES.X64.GCMdecryptOpt.fsti
Vale.AES.X64.GCMdecryptOpt.aes_reqs
val aes_reqs (alg: algorithm) (key: seq nat32) (round_keys: seq quad32) (keys_b: buffer128) (key_ptr: int) (heap0: vale_heap) (layout: vale_heap_layout) : prop0
val aes_reqs (alg: algorithm) (key: seq nat32) (round_keys: seq quad32) (keys_b: buffer128) (key_ptr: int) (heap0: vale_heap) (layout: vale_heap_layout) : prop0
let aes_reqs (alg:algorithm) (key:seq nat32) (round_keys:seq quad32) (keys_b:buffer128) (key_ptr:int) (heap0:vale_heap) (layout:vale_heap_layout) : prop0 = aesni_enabled /\ avx_enabled /\ (alg = AES_128 \/ alg = AES_256) /\ is_aes_key_LE alg key /\ length(round_keys) == nr(alg) + 1 /\ round_keys == key_...
{ "file_name": "obj/Vale.AES.X64.GCMdecryptOpt.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 33, "end_line": 56, "start_col": 0, "start_line": 46 }
module Vale.AES.X64.GCMdecryptOpt open Vale.Def.Prop_s open Vale.Def.Opaque_s open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_s open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.AES.GCM open Vale.AES.GHash_s open Vale.AE...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.Stack_i.fsti.checked", "Vale.X64.Stack.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.In...
[ { "abbrev": false, "full_module": "Vale.AES.OptPublic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.X64.GCMencryptOpt", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Meta", "short_module": null }, { "abbrev": false, ...
{ "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
alg: Vale.AES.AES_common_s.algorithm -> key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 -> round_keys: FStar.Seq.Base.seq Vale.X64.Decls.quad32 -> keys_b: Vale.X64.Memory.buffer128 -> key_ptr: Prims.int -> heap0: Vale.X64.InsBasic.vale_heap -> layout: Vale.Arch.HeapImpl.vale_heap_layout -> ...
Prims.Tot
[ "total" ]
[]
[ "Vale.AES.AES_common_s.algorithm", "FStar.Seq.Base.seq", "Vale.X64.Memory.nat32", "Vale.X64.Decls.quad32", "Vale.X64.Memory.buffer128", "Prims.int", "Vale.X64.InsBasic.vale_heap", "Vale.Arch.HeapImpl.vale_heap_layout", "Prims.l_and", "Prims.b2t", "Vale.X64.CPU_Features_s.aesni_enabled", "Vale....
[]
false
false
false
true
false
let aes_reqs (alg: algorithm) (key: seq nat32) (round_keys: seq quad32) (keys_b: buffer128) (key_ptr: int) (heap0: vale_heap) (layout: vale_heap_layout) : prop0 =
aesni_enabled /\ avx_enabled /\ (alg = AES_128 \/ alg = AES_256) /\ is_aes_key_LE alg key /\ length (round_keys) == nr (alg) + 1 /\ round_keys == key_to_round_keys_LE alg key /\ validSrcAddrs128 heap0 key_ptr keys_b (nr alg + 1) layout Secret /\ s128 heap0 keys_b == round_keys
false
MerkleTree.New.High.Correct.Rhs.fst
MerkleTree.New.High.Correct.Rhs.construct_rhs_acc
val construct_rhs_acc: #hsz:pos -> #f:MTS.hash_fun_t #hsz -> j:nat -> fhs:hashess #hsz { S.length fhs = log2c j /\ mt_hashes_lth_inv_log #hsz j fhs} -> acc:hash #hsz -> actd:bool -> GTot (rhs:hashes #hsz {S.length rhs = log2c j} * hash #hsz) (decreases j)
val construct_rhs_acc: #hsz:pos -> #f:MTS.hash_fun_t #hsz -> j:nat -> fhs:hashess #hsz { S.length fhs = log2c j /\ mt_hashes_lth_inv_log #hsz j fhs} -> acc:hash #hsz -> actd:bool -> GTot (rhs:hashes #hsz {S.length rhs = log2c j} * hash #hsz) (decreases j)
let rec construct_rhs_acc #_ #f j fhs acc actd = if j = 0 then (S.empty, acc) else begin if j % 2 = 0 then (let nrhsh = construct_rhs_acc #_ #f(j / 2) (S.tail fhs) acc actd in (S.cons hash_init (fst nrhsh), snd nrhsh)) else (let rhd = if actd then acc else hash_init in let nacc = if ac...
{ "file_name": "src/MerkleTree.New.High.Correct.Rhs.fst", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 5, "end_line": 41, "start_col": 0, "start_line": 29 }
module MerkleTree.New.High.Correct.Rhs open FStar.Classical open FStar.Ghost open FStar.Seq module S = FStar.Seq module MTS = MerkleTree.Spec open MerkleTree.New.High open MerkleTree.New.High.Correct.Base #set-options "--z3rlimit 10 --initial_fuel 1 --max_fuel 1 --initial_ifuel 0 --max_ifuel 0" /// Correctness of...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.New.High.Correct.Base.fst.checked", "MerkleTree.New.High.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghos...
[ { "abbrev": false, "full_module": "MerkleTree.New.High.Correct.Base", "short_module": null }, { "abbrev": false, "full_module": "MerkleTree.New.High", "short_module": null }, { "abbrev": true, "full_module": "MerkleTree.Spec", "short_module": "MTS" }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
j: Prims.nat -> fhs: MerkleTree.New.High.hashess { FStar.Seq.Base.length fhs = MerkleTree.New.High.Correct.Base.log2c j /\ MerkleTree.New.High.Correct.Base.mt_hashes_lth_inv_log j fhs } -> acc: MerkleTree.New.High.hash -> actd: Prims.bool -> Prims.GTot (rhs: MerkleTr...
Prims.GTot
[ "sometrivial", "" ]
[]
[ "Prims.pos", "MerkleTree.Spec.hash_fun_t", "Prims.nat", "MerkleTree.New.High.hashess", "Prims.l_and", "Prims.b2t", "Prims.op_Equality", "FStar.Seq.Base.length", "MerkleTree.New.High.hashes", "MerkleTree.New.High.Correct.Base.log2c", "MerkleTree.New.High.Correct.Base.mt_hashes_lth_inv_log", "Me...
[ "recursion" ]
false
false
false
false
false
let rec construct_rhs_acc #_ #f j fhs acc actd =
if j = 0 then (S.empty, acc) else if j % 2 = 0 then (let nrhsh = construct_rhs_acc #_ #f (j / 2) (S.tail fhs) acc actd in (S.cons hash_init (fst nrhsh), snd nrhsh)) else (let rhd = if actd then acc else hash_init in let nacc = if actd then f (S.last (S.head fhs)) acc else S.last (S.head fhs) i...
false
Lib.UpdateMulti.Lemmas.fst
Lib.UpdateMulti.Lemmas.update_multi_is_repeat_blocks_multi
val update_multi_is_repeat_blocks_multi: #a:Type0 -> block_length:pos{ block_length < pow2 32 } -> update: (a -> s:S.seq uint8 { S.length s = block_length } -> a) -> acc:a -> input:S.seq uint8 -> Lemma (requires (S.length input % block_length == 0)) (ensures ( let repeat_f = repeat_f block_len...
val update_multi_is_repeat_blocks_multi: #a:Type0 -> block_length:pos{ block_length < pow2 32 } -> update: (a -> s:S.seq uint8 { S.length s = block_length } -> a) -> acc:a -> input:S.seq uint8 -> Lemma (requires (S.length input % block_length == 0)) (ensures ( let repeat_f = repeat_f block_len...
let rec update_multi_is_repeat_blocks_multi #a block_length update acc input = // Lib.UpdateMulti side let n_blocks = S.length input / block_length in // triggers! let blocks, rest = S.split input (n_blocks * block_length) in FStar.Math.Lemmas.nat_over_pos_is_nat (S.length input) block_length; // Lib.Seque...
{ "file_name": "lib/Lib.UpdateMulti.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 296, "start_col": 0, "start_line": 242 }
module Lib.UpdateMulti.Lemmas /// This first auxiliary lemma only manipulates the lengths of the sequences. #push-options "--z3cliopt smt.arith.nl=false" let split_at_last_lazy_nb_rem_spec (l : pos) (d n rest: nat) : Lemma (requires ( rest <= l /\ (rest = 0 ==> d = 0) /\ d = n * l + rest)) (ensures (...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Lib.UpdateMulti", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "S" }, { "abbrev": false, "full_module": "Lib.Upda...
{ "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
block_length: Prims.pos{block_length < Prims.pow2 32} -> update: ( _: a -> s: FStar.Seq.Base.seq Lib.UpdateMulti.Lemmas.uint8 {FStar.Seq.Base.length s = block_length} -> a) -> acc: a -> input: FStar.Seq.Base.seq Lib.UpdateMulti.Lemma...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Prims.pos", "Prims.b2t", "Prims.op_LessThan", "Prims.pow2", "FStar.Seq.Base.seq", "Lib.UpdateMulti.Lemmas.uint8", "Prims.op_Equality", "Prims.int", "Prims.l_or", "Prims.op_GreaterThanOrEqual", "Prims.l_and", "Prims.op_GreaterThan", "FStar.Seq.Base.length", "Lib.UpdateMulti.update_multi_ze...
[ "recursion" ]
false
false
true
false
false
let rec update_multi_is_repeat_blocks_multi #a block_length update acc input =
let n_blocks = S.length input / block_length in let blocks, rest = S.split input (n_blocks * block_length) in FStar.Math.Lemmas.nat_over_pos_is_nat (S.length input) block_length; let repeat_f = repeat_f block_length update in let repeat_blocks_f = Lib.Sequence.repeat_blocks_f in if S.length input = 0 then (Lib.Sequen...
false
Hacl.K256.Scalar.fst
Hacl.K256.Scalar.modq_before_final
val modq_before_final: t01:lbuffer uint64 2ul -> a:lbuffer uint64 (2ul *! qnlimb) -> out:qelem -> Stack (BB.carry U64) (requires fun h -> live h a /\ live h out /\ live h t01 /\ disjoint a out /\ disjoint a t01 /\ disjoint out t01 /\ as_seq h t01 == LSeq.create2 (u64 0x402da1732fc9bebf) (u64 0x4...
val modq_before_final: t01:lbuffer uint64 2ul -> a:lbuffer uint64 (2ul *! qnlimb) -> out:qelem -> Stack (BB.carry U64) (requires fun h -> live h a /\ live h out /\ live h t01 /\ disjoint a out /\ disjoint a t01 /\ disjoint out t01 /\ as_seq h t01 == LSeq.create2 (u64 0x402da1732fc9bebf) (u64 0x4...
let modq_before_final t01 a out = push_frame (); let m = create 7ul (u64 0) in let p = create 5ul (u64 0) in let c0 = mul_pow2_256_minus_q_add 4ul 7ul t01 (sub a 4ul 4ul) (sub a 0ul 4ul) m in let c1 = mul_pow2_256_minus_q_add 3ul 5ul t01 (sub m 4ul 3ul) (sub m 0ul 4ul) p in let c2 = mul_pow2_256_minus_q_add...
{ "file_name": "code/k256/Hacl.K256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 286, "start_col": 0, "start_line": 278 }
module Hacl.K256.Scalar open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module ST = FStar.HyperStack.ST module LSeq = Lib.Sequence module S = Spec.K256 module KL = Hacl.Spec.K256.Scalar.Lemmas module SG = Hacl.Spec.K256.GLV module SGL = Hacl.Spec.K...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.RawIntTypes.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Scalar.Lemmas.fst.checked", "...
[ { "abbrev": false, "full_module": "Hacl.Spec.K256.Scalar", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "SD" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum", "short_module": "SN" }, { "abbrev": tru...
{ "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
t01: Lib.Buffer.lbuffer Lib.IntTypes.uint64 2ul -> a: Lib.Buffer.lbuffer Lib.IntTypes.uint64 (2ul *! Hacl.K256.Scalar.qnlimb) -> out: Hacl.K256.Scalar.qelem -> FStar.HyperStack.ST.Stack (Hacl.Spec.Bignum.Base.carry Lib.IntTypes.U64)
FStar.HyperStack.ST.Stack
[]
[]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint64", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.op_Star_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.K256.Scalar.qnlimb", "Hacl.K256.Scalar.qelem", "Hacl.Spec.Bignum.Base.carry", "Lib.IntTypes.U64", "Prims.unit", "FStar.HyperStack.ST.pop_frame", ...
[]
false
true
false
false
false
let modq_before_final t01 a out =
push_frame (); let m = create 7ul (u64 0) in let p = create 5ul (u64 0) in let c0 = mul_pow2_256_minus_q_add 4ul 7ul t01 (sub a 4ul 4ul) (sub a 0ul 4ul) m in let c1 = mul_pow2_256_minus_q_add 3ul 5ul t01 (sub m 4ul 3ul) (sub m 0ul 4ul) p in let c2 = mul_pow2_256_minus_q_add 1ul 4ul t01 (sub p 4ul 1ul) (sub p 0ul 4ul) o...
false
Vale.AES.X64.GCMdecryptOpt.fsti
Vale.AES.X64.GCMdecryptOpt.va_quick_Gcm_blocks_decrypt_stdcall
val va_quick_Gcm_blocks_decrypt_stdcall (win: bool) (alg: algorithm) (auth_b: buffer128) (auth_bytes auth_num: nat64) (keys_b iv_b: buffer128) (iv: supported_iv_LE) (hkeys_b abytes_b in128x6_b out128x6_b: buffer128) (len128x6_num: nat64) (in128_b out128_b: buffer128...
val va_quick_Gcm_blocks_decrypt_stdcall (win: bool) (alg: algorithm) (auth_b: buffer128) (auth_bytes auth_num: nat64) (keys_b iv_b: buffer128) (iv: supported_iv_LE) (hkeys_b abytes_b in128x6_b out128x6_b: buffer128) (len128x6_num: nat64) (in128_b out128_b: buffer128...
let va_quick_Gcm_blocks_decrypt_stdcall (win:bool) (alg:algorithm) (auth_b:buffer128) (auth_bytes:nat64) (auth_num:nat64) (keys_b:buffer128) (iv_b:buffer128) (iv:supported_iv_LE) (hkeys_b:buffer128) (abytes_b:buffer128) (in128x6_b:buffer128) (out128x6_b:buffer128) (len128x6_num:nat64) (in128_b:buffer128) (out128_...
{ "file_name": "obj/Vale.AES.X64.GCMdecryptOpt.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 36, "end_line": 855, "start_col": 0, "start_line": 836 }
module Vale.AES.X64.GCMdecryptOpt open Vale.Def.Prop_s open Vale.Def.Opaque_s open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_s open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.AES.GCM open Vale.AES.GHash_s open Vale.AE...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.Stack_i.fsti.checked", "Vale.X64.Stack.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.In...
[ { "abbrev": false, "full_module": "Vale.Lib.Basic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.OptPublic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.X64.GCMencryptOpt", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
win: Prims.bool -> alg: Vale.AES.AES_common_s.algorithm -> auth_b: Vale.X64.Memory.buffer128 -> auth_bytes: Vale.X64.Memory.nat64 -> auth_num: Vale.X64.Memory.nat64 -> keys_b: Vale.X64.Memory.buffer128 -> iv_b: Vale.X64.Memory.buffer128 -> iv: Vale.AES.GCM_s.supported_iv_LE -> hkeys...
Prims.Tot
[ "total" ]
[]
[ "Prims.bool", "Vale.AES.AES_common_s.algorithm", "Vale.X64.Memory.buffer128", "Vale.X64.Memory.nat64", "Vale.AES.GCM_s.supported_iv_LE", "FStar.Seq.Base.seq", "Vale.X64.Memory.nat32", "Vale.X64.QuickCode.va_QProc", "Prims.unit", "Vale.AES.X64.GCMdecryptOpt.va_code_Gcm_blocks_decrypt_stdcall", "P...
[]
false
false
false
false
false
let va_quick_Gcm_blocks_decrypt_stdcall (win: bool) (alg: algorithm) (auth_b: buffer128) (auth_bytes auth_num: nat64) (keys_b iv_b: buffer128) (iv: supported_iv_LE) (hkeys_b abytes_b in128x6_b out128x6_b: buffer128) (len128x6_num: nat64) (in128_b out128_b: buffer128...
(va_QProc (va_code_Gcm_blocks_decrypt_stdcall win alg) ([ va_Mod_stackTaint; va_Mod_stack; va_Mod_flags; va_Mod_mem_layout; va_Mod_mem_heaplet 6; va_Mod_mem_heaplet 5; va_Mod_mem_heaplet 3; va_Mod_mem_heaplet 2; va_Mod_mem_heaplet 1; va_Mod_xmm 15; va_Mod_xmm 14; va_Mod_xmm 13; va_Mod_xmm 12...
false
Vale.AES.X64.GCMdecryptOpt.fsti
Vale.AES.X64.GCMdecryptOpt.va_ens_Gcm_blocks_decrypt_stdcall
val va_ens_Gcm_blocks_decrypt_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) (alg: algorithm) (auth_b: buffer128) (auth_bytes auth_num: nat64) (keys_b iv_b: buffer128) (iv: supported_iv_LE) (hkeys_b abytes_b in128x6_b out128x6_b: buffer128) (len128x6_n...
val va_ens_Gcm_blocks_decrypt_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) (alg: algorithm) (auth_b: buffer128) (auth_bytes auth_num: nat64) (keys_b iv_b: buffer128) (iv: supported_iv_LE) (hkeys_b abytes_b in128x6_b out128x6_b: buffer128) (len128x6_n...
let va_ens_Gcm_blocks_decrypt_stdcall (va_b0:va_code) (va_s0:va_state) (win:bool) (alg:algorithm) (auth_b:buffer128) (auth_bytes:nat64) (auth_num:nat64) (keys_b:buffer128) (iv_b:buffer128) (iv:supported_iv_LE) (hkeys_b:buffer128) (abytes_b:buffer128) (in128x6_b:buffer128) (out128x6_b:buffer128) (len128x6_num:nat6...
{ "file_name": "obj/Vale.AES.X64.GCMdecryptOpt.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 94, "end_line": 311, "start_col": 0, "start_line": 204 }
module Vale.AES.X64.GCMdecryptOpt open Vale.Def.Prop_s open Vale.Def.Opaque_s open FStar.Seq open Vale.Def.Words_s open Vale.Def.Words.Seq_s open Vale.Def.Types_s open Vale.Arch.Types open Vale.Arch.HeapImpl open Vale.AES.AES_s open Vale.AES.GCTR_s open Vale.AES.GCTR open Vale.AES.GCM open Vale.AES.GHash_s open Vale.AE...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.Stack_i.fsti.checked", "Vale.X64.Stack.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.In...
[ { "abbrev": false, "full_module": "Vale.Lib.Basic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.OptPublic", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.X64.GCMencryptOpt", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
va_b0: Vale.X64.Decls.va_code -> va_s0: Vale.X64.Decls.va_state -> win: Prims.bool -> alg: Vale.AES.AES_common_s.algorithm -> auth_b: Vale.X64.Memory.buffer128 -> auth_bytes: Vale.X64.Memory.nat64 -> auth_num: Vale.X64.Memory.nat64 -> keys_b: Vale.X64.Memory.buffer128 -> iv_b: Vale....
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Decls.va_code", "Vale.X64.Decls.va_state", "Prims.bool", "Vale.AES.AES_common_s.algorithm", "Vale.X64.Memory.buffer128", "Vale.X64.Memory.nat64", "Vale.AES.GCM_s.supported_iv_LE", "FStar.Seq.Base.seq", "Vale.X64.Memory.nat32", "Vale.X64.Decls.va_fuel", "Prims.l_and", "Vale.AES.X64.GC...
[]
false
false
false
true
true
let va_ens_Gcm_blocks_decrypt_stdcall (va_b0: va_code) (va_s0: va_state) (win: bool) (alg: algorithm) (auth_b: buffer128) (auth_bytes auth_num: nat64) (keys_b iv_b: buffer128) (iv: supported_iv_LE) (hkeys_b abytes_b in128x6_b out128x6_b: buffer128) (len128x6_n...
(va_req_Gcm_blocks_decrypt_stdcall va_b0 va_s0 win alg auth_b auth_bytes auth_num keys_b iv_b iv hkeys_b abytes_b in128x6_b out128x6_b len128x6_num in128_b out128_b len128_num inout_b cipher_num scratch_b tag_b key /\ va_ensure_total va_b0 va_s0 va_sM va_fM /\ va_get_ok va_sM /\ (let auth_ptr:(va_int_range 0 ...
false
MerkleTree.Low.Datastructures.fst
MerkleTree.Low.Datastructures.hash_region_of
val hash_region_of: #hsz:hash_size_t -> v:hash #hsz -> GTot HH.rid
val hash_region_of: #hsz:hash_size_t -> v:hash #hsz -> GTot HH.rid
let hash_region_of #_ v = B.frameOf v
{ "file_name": "src/MerkleTree.Low.Datastructures.fst", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 37, "end_line": 52, "start_col": 0, "start_line": 52 }
module MerkleTree.Low.Datastructures open FStar.All open FStar.Integers open FStar.Mul open LowStar.Buffer open LowStar.BufferOps open LowStar.Vector open LowStar.Regional open LowStar.RVector open LowStar.Regional.Instances module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MHS = FStar.Monotonic.H...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.New.High.fst.checked", "LowStar.Vector.fst.checked", "LowStar.RVector.fst.checked", "LowStar.Regional.Instances.fst.checked", "LowStar.Regional.fst.checked", "LowStar.ConstBuffer.fsti.checked", "LowStar.BufferO...
[ { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "EverCrypt.Helpers", "short_module": null }, { "abbrev": true, "full_module": "MerkleTree.New.High", "short_module": "MTH" }, { "abbrev": true, "full_mo...
{ "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
v: MerkleTree.Low.Datastructures.hash -> Prims.GTot FStar.Monotonic.HyperHeap.rid
Prims.GTot
[ "sometrivial" ]
[]
[ "MerkleTree.Low.Datastructures.hash_size_t", "MerkleTree.Low.Datastructures.hash", "LowStar.Monotonic.Buffer.frameOf", "Lib.IntTypes.uint8", "LowStar.Buffer.trivial_preorder", "FStar.Monotonic.HyperHeap.rid" ]
[]
false
false
false
false
false
let hash_region_of #_ v =
B.frameOf v
false
Hacl.Impl.K256.PointDouble.fst
Hacl.Impl.K256.PointDouble.calc_z3
val calc_z3 (y1 z1 z3 yy tmp:felem) : Stack unit (requires fun h -> live h y1 /\ live h z1 /\ live h z3 /\ live h yy /\ live h tmp /\ disjoint y1 z1 /\ disjoint y1 z3 /\ disjoint y1 yy /\ disjoint y1 tmp /\ eq_or_disjoint z1 z3 /\ disjoint z1 yy /\ disjoint z1 tmp /\ disjoint z3 yy /\ disjoint z3 ...
val calc_z3 (y1 z1 z3 yy tmp:felem) : Stack unit (requires fun h -> live h y1 /\ live h z1 /\ live h z3 /\ live h yy /\ live h tmp /\ disjoint y1 z1 /\ disjoint y1 z3 /\ disjoint y1 yy /\ disjoint y1 tmp /\ eq_or_disjoint z1 z3 /\ disjoint z1 yy /\ disjoint z1 tmp /\ disjoint z3 yy /\ disjoint z3 ...
let calc_z3 y1 z1 z3 yy tmp = fmul tmp yy y1; //tmp = yy*y fmul z3 tmp z1; //z3 = tmp*z = yy*y*z let h1 = ST.get () in //assert (inv_lazy_reduced2 h1 x3); //assert (inv_lazy_reduced2 h1 tmp); //assert (inv_lazy_reduced2 h1 z3); fmul_8_normalize_weak z3 z3
{ "file_name": "code/k256/Hacl.Impl.K256.PointDouble.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 42, "start_col": 0, "start_line": 34 }
module Hacl.Impl.K256.PointDouble open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module S = Spec.K256 module BL = Hacl.Spec.K256.Field52.Lemmas open Hacl.K256.Field open Hacl.Impl.K256.Point #set-options "--z3rlimit 300 --fuel 0 --if...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.K256.Field52.Lemmas.fsti.checked", "Hacl.K256.Field.fsti.checked", "Hacl.Impl.K256.Point.fsti.checked", "FStar.UInt32.fsti.checked...
[ { "abbrev": false, "full_module": "Hacl.Impl.K256.Point", "short_module": null }, { "abbrev": false, "full_module": "Hacl.K256.Field", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Lemmas", "short_module": "BL" }, { "abbrev": tru...
{ "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
y1: Hacl.K256.Field.felem -> z1: Hacl.K256.Field.felem -> z3: Hacl.K256.Field.felem -> yy: Hacl.K256.Field.felem -> tmp: Hacl.K256.Field.felem -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.K256.Field.felem", "Hacl.K256.Field.fmul_8_normalize_weak", "Prims.unit", "FStar.Monotonic.HyperStack.mem", "FStar.HyperStack.ST.get", "Hacl.K256.Field.fmul" ]
[]
false
true
false
false
false
let calc_z3 y1 z1 z3 yy tmp =
fmul tmp yy y1; fmul z3 tmp z1; let h1 = ST.get () in fmul_8_normalize_weak z3 z3
false
Vale.Math.Poly2_s.fst
Vale.Math.Poly2_s.degree
val degree (p:poly) : int
val degree (p:poly) : int
let degree p = D.degree p
{ "file_name": "vale/specs/math/Vale.Math.Poly2_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 6, "start_col": 0, "start_line": 6 }
module Vale.Math.Poly2_s open FStar.Mul open FStar.Seq
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": true, "source_file": "Vale.Math.Poly2_s.fst" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", ...
{ "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
p: Vale.Math.Poly2_s.poly -> Prims.int
Prims.Tot
[ "total" ]
[]
[ "Vale.Math.Poly2_s.poly", "Vale.Math.Poly2.Defs_s.degree", "Prims.int" ]
[]
false
false
false
true
false
let degree p =
D.degree p
false