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
LowStar.PrefixFreezableBuffer.fsti
LowStar.PrefixFreezableBuffer.malloc_pre
val malloc_pre : r: FStar.Monotonic.HyperHeap.rid -> len: LowStar.PrefixFreezableBuffer.u32 -> Prims.logical
let malloc_pre (r:HS.rid) (len:u32) = UInt.size (U32.v len + 4) 32 /\ malloc_pre r len
{ "file_name": "ulib/LowStar.PrefixFreezableBuffer.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 50, "end_line": 121, "start_col": 7, "start_line": 120 }
(* 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", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Perva...
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Monotonic.HyperHeap.rid -> len: LowStar.PrefixFreezableBuffer.u32 -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "FStar.Monotonic.HyperHeap.rid", "LowStar.PrefixFreezableBuffer.u32", "Prims.l_and", "FStar.UInt.size", "Prims.op_Addition", "FStar.UInt32.v", "LowStar.Monotonic.Buffer.malloc_pre", "Prims.logical" ]
[]
false
false
false
true
true
let malloc_pre (r: HS.rid) (len: u32) =
UInt.size (U32.v len + 4) 32 /\ malloc_pre r len
false
LowStar.PrefixFreezableBuffer.fsti
LowStar.PrefixFreezableBuffer.alloca_pre
val alloca_pre : len: FStar.UInt32.t -> Prims.logical
let alloca_pre (len:U32.t) = //precondition for stack allocated prefix freezable buffers UInt.size (U32.v len + 4) 32 /\ alloca_pre len
{ "file_name": "ulib/LowStar.PrefixFreezableBuffer.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 48, "end_line": 151, "start_col": 7, "start_line": 150 }
(* 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", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Perva...
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: FStar.UInt32.t -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "FStar.UInt32.t", "Prims.l_and", "FStar.UInt.size", "Prims.op_Addition", "FStar.UInt32.v", "Prims.b2t", "LowStar.Monotonic.Buffer.alloca_pre", "Prims.logical" ]
[]
false
false
false
true
true
let alloca_pre (len: U32.t) =
UInt.size (U32.v len + 4) 32 /\ alloca_pre len
false
Steel.ST.HigherArray.fst
Steel.ST.HigherArray.free0
val free0 (#elt: Type) (#s: Ghost.erased (Seq.seq elt)) (a: array elt) : ST unit (pts_to a P.full_perm s) (fun _ -> emp) (length a == base_len (base (ptr_of a))) (fun _ -> True)
val free0 (#elt: Type) (#s: Ghost.erased (Seq.seq elt)) (a: array elt) : ST unit (pts_to a P.full_perm s) (fun _ -> emp) (length a == base_len (base (ptr_of a))) (fun _ -> True)
let free0 (#elt: Type) (#s: Ghost.erased (Seq.seq elt)) (a: array elt) : ST unit (pts_to a P.full_perm s) (fun _ -> emp) ( length a == base_len (base (ptr_of a)) ) (fun _ -> True) = drop (pts_to a _ _)
{ "file_name": "lib/steel/Steel.ST.HigherArray.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 21, "end_line": 311, "start_col": 0, "start_line": 300 }
(* Copyright 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.ST.PCMReference.fsti.checked", "Steel.ST.Loops.fsti.checked", "Steel.PCMMap.fst.checked", "Steel.PCMFrac.fst.checked", "Steel.Memory.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Rea...
[ { "abbrev": true, "full_module": "Steel.PCMMap", "short_module": "PM" }, { "abbrev": true, "full_module": "FStar.Map", "short_module": "M" }, { "abbrev": true, "full_module": "Steel.ST.PCMReference", "short_module": "R" }, { "abbrev": true, "full_module": "Ste...
{ "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: Steel.ST.HigherArray.array elt -> Steel.ST.Effect.ST Prims.unit
Steel.ST.Effect.ST
[]
[]
[ "FStar.Ghost.erased", "FStar.Seq.Base.seq", "Steel.ST.HigherArray.array", "Steel.ST.Util.drop", "FStar.Ghost.hide", "FStar.Set.set", "Steel.Memory.iname", "FStar.Set.empty", "Steel.ST.HigherArray.pts_to", "Steel.FractionalPermission.full_perm", "FStar.Ghost.reveal", "Prims.unit", "Steel.Effe...
[]
false
true
false
false
false
let free0 (#elt: Type) (#s: Ghost.erased (Seq.seq elt)) (a: array elt) : ST unit (pts_to a P.full_perm s) (fun _ -> emp) (length a == base_len (base (ptr_of a))) (fun _ -> True) =
drop (pts_to a _ _)
false
LowStar.PrefixFreezableBuffer.fsti
LowStar.PrefixFreezableBuffer.frozen_until
val frozen_until : s: FStar.Seq.Base.seq LowStar.PrefixFreezableBuffer.u8 {FStar.Seq.Base.length s >= 4} -> Prims.nat
let frozen_until (s:Seq.seq u8{Seq.length s >= 4}) = le_to_n (Seq.slice s 0 4)
{ "file_name": "ulib/LowStar.PrefixFreezableBuffer.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 78, "end_line": 55, "start_col": 0, "start_line": 55 }
(* 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", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Perva...
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: FStar.Seq.Base.seq LowStar.PrefixFreezableBuffer.u8 {FStar.Seq.Base.length s >= 4} -> Prims.nat
Prims.Tot
[ "total" ]
[]
[ "FStar.Seq.Base.seq", "LowStar.PrefixFreezableBuffer.u8", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "FStar.Seq.Base.length", "LowStar.PrefixFreezableBuffer.le_to_n", "FStar.Seq.Base.slice", "Prims.nat" ]
[]
false
false
false
false
false
let frozen_until (s: Seq.seq u8 {Seq.length s >= 4}) =
le_to_n (Seq.slice s 0 4)
false
LowStar.PrefixFreezableBuffer.fsti
LowStar.PrefixFreezableBuffer.pre
val pre : s1: FStar.Seq.Base.seq LowStar.PrefixFreezableBuffer.u8 -> s2: FStar.Seq.Base.seq LowStar.PrefixFreezableBuffer.u8 -> Prims.logical
let pre (s1 s2:Seq.seq u8) = Seq.length s1 == Seq.length s2 /\ //lengths are same (let len = Seq.length s1 in len >= 4 ==> //if length >= 4 then (let frozen_until1 = frozen_until s1 in let frozen_until2 = frozen_until s2 in (4 <= frozen_until1 /\ frozen_until1 <= len) ==> //if frozen_until1 is in t...
{ "file_name": "ulib/LowStar.PrefixFreezableBuffer.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 78, "end_line": 69, "start_col": 15, "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", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Perva...
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s1: FStar.Seq.Base.seq LowStar.PrefixFreezableBuffer.u8 -> s2: FStar.Seq.Base.seq LowStar.PrefixFreezableBuffer.u8 -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "FStar.Seq.Base.seq", "LowStar.PrefixFreezableBuffer.u8", "Prims.l_and", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "Prims.l_imp", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "Prims.op_LessThanOrEqual", "Prims.l_Forall", "Prims.op_LessThan", "FStar.Seq.Base.index", "LowStar.PrefixF...
[]
false
false
false
true
true
let pre (s1 s2: Seq.seq u8) =
Seq.length s1 == Seq.length s2 /\ (let len = Seq.length s1 in len >= 4 ==> (let frozen_until1 = frozen_until s1 in let frozen_until2 = frozen_until s2 in (4 <= frozen_until1 /\ frozen_until1 <= len) ==> (frozen_until1 <= frozen_until2 /\ frozen_until2 <= len /\ (forall (i: nat). {:pattern Seq.inde...
false
LowStar.PrefixFreezableBuffer.fsti
LowStar.PrefixFreezableBuffer.frozen_until_at_least
val frozen_until_at_least (n: nat) : spred u8
val frozen_until_at_least (n: nat) : spred u8
let frozen_until_at_least (n:nat) : spred u8 = fun s -> Seq.length s >= 4 /\ //it follows from the inequalities below, but we need it for typing of frozen_until 4 <= n /\ n <= frozen_until s /\ frozen_until s <= Seq.length s
{ "file_name": "ulib/LowStar.PrefixFreezableBuffer.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 65, "end_line": 87, "start_col": 0, "start_line": 84 }
(* 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", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Perva...
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Prims.nat -> LowStar.Monotonic.Buffer.spred LowStar.PrefixFreezableBuffer.u8
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "FStar.Seq.Base.seq", "LowStar.PrefixFreezableBuffer.u8", "Prims.l_and", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "FStar.Seq.Base.length", "Prims.op_LessThanOrEqual", "LowStar.PrefixFreezableBuffer.frozen_until", "LowStar.Monotonic.Buffer.spred" ]
[]
false
false
false
true
false
let frozen_until_at_least (n: nat) : spred u8 =
fun s -> Seq.length s >= 4 /\ 4 <= n /\ n <= frozen_until s /\ frozen_until s <= Seq.length s
false
Steel.ST.HigherArray.fst
Steel.ST.HigherArray.change_r_pts_to
val change_r_pts_to (#opened: _) (#carrier: Type u#1) (#pcm: P.pcm carrier) (p: ref carrier pcm) (v: carrier) (#carrier': Type u#1) (#pcm': P.pcm carrier') (p': ref carrier' pcm') (v': carrier') : STGhost unit opened (R.pts_to p v) (fun _ -> R....
val change_r_pts_to (#opened: _) (#carrier: Type u#1) (#pcm: P.pcm carrier) (p: ref carrier pcm) (v: carrier) (#carrier': Type u#1) (#pcm': P.pcm carrier') (p': ref carrier' pcm') (v': carrier') : STGhost unit opened (R.pts_to p v) (fun _ -> R....
let change_r_pts_to (#opened: _) (#carrier: Type u#1) (#pcm: P.pcm carrier) (p: ref carrier pcm) (v: carrier) (#carrier': Type u#1) (#pcm': P.pcm carrier') (p': ref carrier' pcm') (v': carrier') : STGhost unit opened (R.pts_to p v) (fun _ -> R.pts_to p' v') (// keep on distinct lines for e...
{ "file_name": "lib/steel/Steel.ST.HigherArray.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 20, "end_line": 150, "start_col": 0, "start_line": 129 }
(* Copyright 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.ST.PCMReference.fsti.checked", "Steel.ST.Loops.fsti.checked", "Steel.PCMMap.fst.checked", "Steel.PCMFrac.fst.checked", "Steel.Memory.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Rea...
[ { "abbrev": true, "full_module": "Steel.PCMMap", "short_module": "PM" }, { "abbrev": true, "full_module": "FStar.Map", "short_module": "M" }, { "abbrev": true, "full_module": "Steel.ST.PCMReference", "short_module": "R" }, { "abbrev": true, "full_module": "Ste...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Steel.Memory.ref carrier pcm -> v: carrier -> p': Steel.Memory.ref carrier' pcm' -> v': carrier' -> Steel.ST.Effect.Ghost.STGhost Prims.unit
Steel.ST.Effect.Ghost.STGhost
[]
[]
[ "Steel.Memory.inames", "FStar.PCM.pcm", "Steel.Memory.ref", "Steel.ST.Util.rewrite", "Steel.ST.PCMReference.pts_to", "Prims.unit", "Steel.Effect.Common.vprop", "Prims.l_and", "Prims.eq2", "Prims.l_True" ]
[]
false
true
false
false
false
let change_r_pts_to (#opened: _) (#carrier: Type u#1) (#pcm: P.pcm carrier) (p: ref carrier pcm) (v: carrier) (#carrier': Type u#1) (#pcm': P.pcm carrier') (p': ref carrier' pcm') (v': carrier') : STGhost unit opened (R.pts_to p v) (fun _ -> R....
rewrite (R.pts_to p v) (R.pts_to p' v')
false
LowStar.PrefixFreezableBuffer.fsti
LowStar.PrefixFreezableBuffer.slice_is
val slice_is (i j: u32) (snap: G.erased (Seq.seq u8)) : spred u8
val slice_is (i j: u32) (snap: G.erased (Seq.seq u8)) : spred u8
let slice_is (i j:u32) (snap:G.erased (Seq.seq u8)) : spred u8 = fun s -> let len = Seq.length s in len >= 4 /\ //for typing of frozen_until (let frozen_until = frozen_until s in let i = U32.v i in let j = U32.v j in let snap = G.reveal snap in 4 <= i /\ i <= j /\ j <= frozen_until /\ frozen_until <= l...
{ "file_name": "ulib/LowStar.PrefixFreezableBuffer.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 36, "end_line": 102, "start_col": 0, "start_line": 94 }
(* 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", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Perva...
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: LowStar.PrefixFreezableBuffer.u32 -> j: LowStar.PrefixFreezableBuffer.u32 -> snap: FStar.Ghost.erased (FStar.Seq.Base.seq LowStar.PrefixFreezableBuffer.u8) -> LowStar.Monotonic.Buffer.spred LowStar.PrefixFreezableBuffer.u8
Prims.Tot
[ "total" ]
[]
[ "LowStar.PrefixFreezableBuffer.u32", "FStar.Ghost.erased", "FStar.Seq.Base.seq", "LowStar.PrefixFreezableBuffer.u8", "Prims.l_and", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "Prims.op_LessThanOrEqual", "Prims.eq2", "Prims.int", "FStar.Seq.Base.length", "Prims.op_Subtraction", "FStar.Seq.Ba...
[]
false
false
false
true
false
let slice_is (i j: u32) (snap: G.erased (Seq.seq u8)) : spred u8 =
fun s -> let len = Seq.length s in len >= 4 /\ (let frozen_until = frozen_until s in let i = U32.v i in let j = U32.v j in let snap = G.reveal snap in 4 <= i /\ i <= j /\ j <= frozen_until /\ frozen_until <= len /\ Seq.length snap == j - i /\ Seq.equal (Seq.slice s i j) snap)
false
LowStar.PrefixFreezableBuffer.fsti
LowStar.PrefixFreezableBuffer.alloc_post_mem_common
val alloc_post_mem_common : h0: FStar.Monotonic.HyperStack.mem -> b: LowStar.PrefixFreezableBuffer.buffer -> h1: FStar.Monotonic.HyperStack.mem -> Prims.logical
let alloc_post_mem_common (h0:HS.mem) (b:buffer) (h1:HS.mem) = live h1 b /\ unused_in b h0 /\ Map.domain (HS.get_hmap h1) `Set.equal` Map.domain (HS.get_hmap h0) /\ HS.get_tip h1 == HS.get_tip h0 /\ modifies loc_none h0 h1 /\ frozen_until (as_seq h1 b) == 4
{ "file_name": "ulib/LowStar.PrefixFreezableBuffer.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 35, "end_line": 134, "start_col": 7, "start_line": 127 }
(* 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", "LowStar.Monotonic.Buffer.fsti.checked", "FStar.UInt8.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Set.fsti.checked", "FStar.Seq.fst.checked", "FStar.Preorder.fst.checked", "FStar.Perva...
[ { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "full_module": "FStar.HyperStack", "short_module": "HS" }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module":...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h0: FStar.Monotonic.HyperStack.mem -> b: LowStar.PrefixFreezableBuffer.buffer -> h1: FStar.Monotonic.HyperStack.mem -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "FStar.Monotonic.HyperStack.mem", "LowStar.PrefixFreezableBuffer.buffer", "Prims.l_and", "LowStar.Monotonic.Buffer.live", "LowStar.PrefixFreezableBuffer.u8", "LowStar.PrefixFreezableBuffer.prefix_freezable_preorder", "LowStar.Monotonic.Buffer.unused_in", "FStar.Set.equal", "FStar.Monotonic.HyperHeap...
[]
false
false
false
true
true
let alloc_post_mem_common (h0: HS.mem) (b: buffer) (h1: HS.mem) =
live h1 b /\ unused_in b h0 /\ (Map.domain (HS.get_hmap h1)) `Set.equal` (Map.domain (HS.get_hmap h0)) /\ HS.get_tip h1 == HS.get_tip h0 /\ modifies loc_none h0 h1 /\ frozen_until (as_seq h1 b) == 4
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_add
val bn_add: #t:limb_t -> #aLen:size_nat -> #bLen:size_nat{bLen <= aLen} -> a:lbignum t aLen -> b:lbignum t bLen -> carry t & lbignum t aLen
val bn_add: #t:limb_t -> #aLen:size_nat -> #bLen:size_nat{bLen <= aLen} -> a:lbignum t aLen -> b:lbignum t bLen -> carry t & lbignum t aLen
let bn_add #t #aLen #bLen a b = Hacl.Spec.Bignum.Addition.bn_add a b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 21, "start_col": 0, "start_line": 20 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> b: Hacl.Spec.Bignum.Definitions.lbignum t bLen -> Hacl.Spec.Bignum.Base.carry t * Hacl.Spec.Bignum.Definitions.lbignum t aLen
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Addition.bn_add", "FStar.Pervasives.Native.tuple2", "Hacl.Spec.Bignum.Base.carry" ]
[]
false
false
false
false
false
let bn_add #t #aLen #bLen a b =
Hacl.Spec.Bignum.Addition.bn_add a b
false
Steel.MonotonicHigherReference.fst
Steel.MonotonicHigherReference.read_refine
val read_refine (#a:Type) (#q:perm) (#p:Preorder.preorder a) (#frame:a -> vprop) (r:ref a p) : SteelT a (h_exists (fun (v:a) -> pts_to r q v `star` frame v)) (fun v -> pts_to r q v `star` frame v)
val read_refine (#a:Type) (#q:perm) (#p:Preorder.preorder a) (#frame:a -> vprop) (r:ref a p) : SteelT a (h_exists (fun (v:a) -> pts_to r q v `star` frame v)) (fun v -> pts_to r q v `star` frame v)
let read_refine (#a:Type) (#q:perm) (#p:Preorder.preorder a) (#f:a -> vprop) (r:ref a p) : SteelT a (h_exists (fun (v:a) -> pts_to r q v `star` f v)) (fun v -> pts_to r q v `star` f v) = let v = witness_exists () in rewrite_slprop (pts_to r q (Ghost.hide (Ghost.reveal v)) `star` f v...
{ "file_name": "lib/steel/Steel.MonotonicHigherReference.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 12, "end_line": 142, "start_col": 0, "start_line": 116 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.Preorder.fst.checked", "Steel.PCMReference.fsti.checked", "Steel.Memory.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.Real.fsti.chec...
[ { "abbrev": false, "full_module": "FStar.Real", "short_module": null }, { "abbrev": true, "full_module": "Steel.PCMReference", "short_module": "PR" }, { "abbrev": true, "full_module": "Steel.Memory", "short_module": "M" }, { "abbrev": true, "full_module": "Ste...
{ "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: Steel.MonotonicHigherReference.ref a p -> Steel.Effect.SteelT a
Steel.Effect.SteelT
[]
[]
[ "Steel.FractionalPermission.perm", "FStar.Preorder.preorder", "Steel.Effect.Common.vprop", "Steel.MonotonicHigherReference.ref", "Steel.Effect.Atomic.return", "FStar.Ghost.hide", "FStar.Set.set", "Steel.Memory.iname", "FStar.Set.empty", "Steel.Effect.Common.VStar", "Steel.MonotonicHigherReferenc...
[]
false
true
false
false
false
let read_refine (#a: Type) (#q: perm) (#p: Preorder.preorder a) (#f: (a -> vprop)) (r: ref a p) : SteelT a (h_exists (fun (v: a) -> (pts_to r q v) `star` (f v))) (fun v -> (pts_to r q v) `star` (f v)) =
let v = witness_exists () in rewrite_slprop ((pts_to r q (Ghost.hide (Ghost.reveal v))) `star` (f v)) ((h_exists (pts_to_body r q v)) `star` (f v)) (fun _ -> ()); let h = witness_exists () in let _ = elim_pure r v h in let hv = read r h in let _:squash (compatible pcm_history h hv) = () in rewrite_slprop (PR.pts_to...
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_sub
val bn_sub: #t:limb_t -> #aLen:size_nat -> #bLen:size_nat{bLen <= aLen} -> a:lbignum t aLen -> b:lbignum t bLen -> carry t & lbignum t aLen
val bn_sub: #t:limb_t -> #aLen:size_nat -> #bLen:size_nat{bLen <= aLen} -> a:lbignum t aLen -> b:lbignum t bLen -> carry t & lbignum t aLen
let bn_sub #t #aLen #bLen a b = Hacl.Spec.Bignum.Addition.bn_sub a b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 27, "start_col": 0, "start_line": 26 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> b: Hacl.Spec.Bignum.Definitions.lbignum t bLen -> Hacl.Spec.Bignum.Base.carry t * Hacl.Spec.Bignum.Definitions.lbignum t aLen
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Addition.bn_sub", "FStar.Pervasives.Native.tuple2", "Hacl.Spec.Bignum.Base.carry" ]
[]
false
false
false
false
false
let bn_sub #t #aLen #bLen a b =
Hacl.Spec.Bignum.Addition.bn_sub a b
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_add1
val bn_add1: #t:limb_t -> #aLen:size_pos -> a:lbignum t aLen -> b1:limb t -> carry t & lbignum t aLen
val bn_add1: #t:limb_t -> #aLen:size_pos -> a:lbignum t aLen -> b1:limb t -> carry t & lbignum t aLen
let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 40, "end_line": 9, "start_col": 0, "start_line": 8 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0"
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> b1: Hacl.Spec.Bignum.Definitions.limb t -> Hacl.Spec.Bignum.Base.carry t * Hacl.Spec.Bignum.Definitions.lbignum t aLen
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_pos", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.limb", "Hacl.Spec.Bignum.Addition.bn_add1", "FStar.Pervasives.Native.tuple2", "Hacl.Spec.Bignum.Base.carry" ]
[]
false
false
false
false
false
let bn_add1 #t #aLen a b1 =
Hacl.Spec.Bignum.Addition.bn_add1 a b1
false
LList.ST.fst
LList.ST.cons
val cons (#a:Type0) (#l:G.erased (list a)) (x:a) (ll:llist a) : STT (llist a) (ll `is_list` l) (fun ll -> ll `is_list` (x::l))
val cons (#a:Type0) (#l:G.erased (list a)) (x:a) (ll:llist a) : STT (llist a) (ll `is_list` l) (fun ll -> ll `is_list` (x::l))
let cons #_ #l x ll = let node = { data = x; next = ll; } in let head = alloc node in rewrite (ll `is_list` l) (node.next `is_list` l); intro (x::l) node head (); return head
{ "file_name": "share/steel/examples/steel/LList.ST.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 13, "end_line": 120, "start_col": 0, "start_line": 111 }
(* Copyright 2021 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.Reference.fsti.checked", "Steel.ST.Effect.fsti.checked", "Steel.Memory.fsti.checked", "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked...
[ { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.Reference", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST.Util", "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
x: a -> ll: LList.ST.llist a -> Steel.ST.Effect.STT (LList.ST.llist a)
Steel.ST.Effect.STT
[]
[]
[ "FStar.Ghost.erased", "Prims.list", "LList.ST.llist", "Steel.ST.Util.return", "FStar.Ghost.hide", "FStar.Set.set", "Steel.Memory.iname", "FStar.Set.empty", "LList.ST.is_list", "Prims.Cons", "FStar.Ghost.reveal", "Steel.Effect.Common.vprop", "Prims.unit", "LList.ST.intro", "Steel.ST.Util....
[]
false
true
false
false
false
let cons #_ #l x ll =
let node = { data = x; next = ll } in let head = alloc node in rewrite (ll `is_list` l) (node.next `is_list` l); intro (x :: l) node head (); return head
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_add1_lemma
val bn_add1_lemma: #t:limb_t -> #aLen:size_pos -> a:lbignum t aLen -> b1:limb t -> Lemma (let (c, res) = bn_add1 a b1 in v c * pow2 (bits t * aLen) + bn_v res == bn_v a + v b1)
val bn_add1_lemma: #t:limb_t -> #aLen:size_pos -> a:lbignum t aLen -> b1:limb t -> Lemma (let (c, res) = bn_add1 a b1 in v c * pow2 (bits t * aLen) + bn_v res == bn_v a + v b1)
let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 46, "end_line": 12, "start_col": 0, "start_line": 11 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> b1: Hacl.Spec.Bignum.Definitions.limb t -> FStar.Pervasives.Lemma (ensures (let _ = Hacl.Spec.Bignum.bn_add1 a b1 in (let FStar.Pervasives.Native.Mktuple2 #_ #_ c res = _ in Lib.IntTypes.v c * Prims.pow2 (Lib.IntTypes.bits t * aLen) + ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_pos", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.limb", "Hacl.Spec.Bignum.Addition.bn_add1_lemma", "Prims.unit" ]
[]
true
false
true
false
false
let bn_add1_lemma #t #aLen a b1 =
Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_sub1
val bn_sub1: #t:limb_t -> #aLen:size_pos -> a:lbignum t aLen -> b1:limb t -> carry t & lbignum t aLen
val bn_sub1: #t:limb_t -> #aLen:size_pos -> a:lbignum t aLen -> b1:limb t -> carry t & lbignum t aLen
let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_sub1 a b1
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 40, "end_line": 15, "start_col": 0, "start_line": 14 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> b1: Hacl.Spec.Bignum.Definitions.limb t -> Hacl.Spec.Bignum.Base.carry t * Hacl.Spec.Bignum.Definitions.lbignum t aLen
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_pos", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.limb", "Hacl.Spec.Bignum.Addition.bn_sub1", "FStar.Pervasives.Native.tuple2", "Hacl.Spec.Bignum.Base.carry" ]
[]
false
false
false
false
false
let bn_sub1 #t #aLen a b1 =
Hacl.Spec.Bignum.Addition.bn_sub1 a b1
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_mul1
val bn_mul1: #t:limb_t -> #aLen:size_nat -> a:lbignum t aLen -> b1:limb t -> limb t & lbignum t aLen
val bn_mul1: #t:limb_t -> #aLen:size_nat -> a:lbignum t aLen -> b1:limb t -> limb t & lbignum t aLen
let bn_mul1 #t #aLen a b1 = Hacl.Spec.Bignum.Multiplication.bn_mul1 a b1
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 46, "end_line": 118, "start_col": 0, "start_line": 117 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> b1: Hacl.Spec.Bignum.Definitions.limb t -> Hacl.Spec.Bignum.Definitions.limb t * Hacl.Spec.Bignum.Definitions.lbignum t aLen
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.limb", "Hacl.Spec.Bignum.Multiplication.bn_mul1", "FStar.Pervasives.Native.tuple2" ]
[]
false
false
false
false
false
let bn_mul1 #t #aLen a b1 =
Hacl.Spec.Bignum.Multiplication.bn_mul1 a b1
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_sub1_lemma
val bn_sub1_lemma: #t:limb_t -> #aLen:size_pos -> a:lbignum t aLen -> b1:limb t -> Lemma (let (c, res) = bn_sub1 a b1 in bn_v res - v c * pow2 (bits t * aLen) == bn_v a - v b1)
val bn_sub1_lemma: #t:limb_t -> #aLen:size_pos -> a:lbignum t aLen -> b1:limb t -> Lemma (let (c, res) = bn_sub1 a b1 in bn_v res - v c * pow2 (bits t * aLen) == bn_v a - v b1)
let bn_sub1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_sub1_lemma a b1
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 46, "end_line": 18, "start_col": 0, "start_line": 17 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> b1: Hacl.Spec.Bignum.Definitions.limb t -> FStar.Pervasives.Lemma (ensures (let _ = Hacl.Spec.Bignum.bn_sub1 a b1 in (let FStar.Pervasives.Native.Mktuple2 #_ #_ c res = _ in Hacl.Spec.Bignum.Definitions.bn_v res - Lib.IntTypes.v c...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_pos", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.limb", "Hacl.Spec.Bignum.Addition.bn_sub1_lemma", "Prims.unit" ]
[]
true
false
true
false
false
let bn_sub1_lemma #t #aLen a b1 =
Hacl.Spec.Bignum.Addition.bn_sub1_lemma a b1
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_add_lemma
val bn_add_lemma: #t:limb_t -> #aLen:size_nat -> #bLen:size_nat{bLen <= aLen} -> a:lbignum t aLen -> b:lbignum t bLen -> Lemma (let (c_out, res) = bn_add a b in bn_v res + v c_out * pow2 (bits t * aLen) == bn_v a + bn_v b)
val bn_add_lemma: #t:limb_t -> #aLen:size_nat -> #bLen:size_nat{bLen <= aLen} -> a:lbignum t aLen -> b:lbignum t bLen -> Lemma (let (c_out, res) = bn_add a b in bn_v res + v c_out * pow2 (bits t * aLen) == bn_v a + bn_v b)
let bn_add_lemma #t #aLen #bLen a b = Hacl.Spec.Bignum.Addition.bn_add_lemma a b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 44, "end_line": 24, "start_col": 0, "start_line": 23 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> b: Hacl.Spec.Bignum.Definitions.lbignum t bLen -> FStar.Pervasives.Lemma (ensures (let _ = Hacl.Spec.Bignum.bn_add a b in (let FStar.Pervasives.Native.Mktuple2 #_ #_ c_out res = _ in Hacl.Spec.Bignum.Definitions.bn_v res + Lib.Int...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Addition.bn_add_lemma", "Prims.unit" ]
[]
true
false
true
false
false
let bn_add_lemma #t #aLen #bLen a b =
Hacl.Spec.Bignum.Addition.bn_add_lemma a b
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_add_mod_n
val bn_add_mod_n: #t:limb_t -> #len:size_nat -> n:lbignum t len -> a:lbignum t len -> b:lbignum t len -> lbignum t len
val bn_add_mod_n: #t:limb_t -> #len:size_nat -> n:lbignum t len -> a:lbignum t len -> b:lbignum t len -> lbignum t len
let bn_add_mod_n #t #len n a b = let c0, res0 = bn_add a b in bn_reduce_once n c0 res0
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 26, "end_line": 70, "start_col": 0, "start_line": 68 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.Spec.Bignum.Definitions.lbignum t len -> a: Hacl.Spec.Bignum.Definitions.lbignum t len -> b: Hacl.Spec.Bignum.Definitions.lbignum t len -> Hacl.Spec.Bignum.Definitions.lbignum t len
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Base.carry", "Hacl.Spec.Bignum.bn_reduce_once", "FStar.Pervasives.Native.tuple2", "Hacl.Spec.Bignum.bn_add" ]
[]
false
false
false
false
false
let bn_add_mod_n #t #len n a b =
let c0, res0 = bn_add a b in bn_reduce_once n c0 res0
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_sub_lemma
val bn_sub_lemma: #t:limb_t -> #aLen:size_nat -> #bLen:size_nat{bLen <= aLen} -> a:lbignum t aLen -> b:lbignum t bLen -> Lemma (let (c_out, res) = bn_sub a b in bn_v res - v c_out * pow2 (bits t * aLen) == bn_v a - bn_v b)
val bn_sub_lemma: #t:limb_t -> #aLen:size_nat -> #bLen:size_nat{bLen <= aLen} -> a:lbignum t aLen -> b:lbignum t bLen -> Lemma (let (c_out, res) = bn_sub a b in bn_v res - v c_out * pow2 (bits t * aLen) == bn_v a - bn_v b)
let bn_sub_lemma #t #aLen #bLen a b = Hacl.Spec.Bignum.Addition.bn_sub_lemma a b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 44, "end_line": 30, "start_col": 0, "start_line": 29 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> b: Hacl.Spec.Bignum.Definitions.lbignum t bLen -> FStar.Pervasives.Lemma (ensures (let _ = Hacl.Spec.Bignum.bn_sub a b in (let FStar.Pervasives.Native.Mktuple2 #_ #_ c_out res = _ in Hacl.Spec.Bignum.Definitions.bn_v res - Lib.Int...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Addition.bn_sub_lemma", "Prims.unit" ]
[]
true
false
true
false
false
let bn_sub_lemma #t #aLen #bLen a b =
Hacl.Spec.Bignum.Addition.bn_sub_lemma a b
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_reduce_once
val bn_reduce_once: #t:limb_t -> #len:size_nat -> n:lbignum t len -> c:carry t -> a:lbignum t len -> lbignum t len
val bn_reduce_once: #t:limb_t -> #len:size_nat -> n:lbignum t len -> c:carry t -> a:lbignum t len -> lbignum t len
let bn_reduce_once #t #len n c0 a = let c1, res = bn_sub a n in let c = c0 -. c1 in map2 (mask_select c) a res
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 28, "end_line": 35, "start_col": 0, "start_line": 32 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.Spec.Bignum.Definitions.lbignum t len -> c: Hacl.Spec.Bignum.Base.carry t -> a: Hacl.Spec.Bignum.Definitions.lbignum t len -> Hacl.Spec.Bignum.Definitions.lbignum t len
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Base.carry", "Lib.Sequence.map2", "Hacl.Spec.Bignum.Definitions.limb", "Hacl.Spec.Bignum.Base.mask_select", "Lib.IntTypes.int_t", "Lib.IntTypes.SEC", "Lib.IntTypes.op_Subtracti...
[]
false
false
false
false
false
let bn_reduce_once #t #len n c0 a =
let c1, res = bn_sub a n in let c = c0 -. c1 in map2 (mask_select c) a res
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_sub_mod_n
val bn_sub_mod_n: #t:limb_t -> #len:size_nat -> n:lbignum t len -> a:lbignum t len -> b:lbignum t len -> lbignum t len
val bn_sub_mod_n: #t:limb_t -> #len:size_nat -> n:lbignum t len -> a:lbignum t len -> b:lbignum t len -> lbignum t len
let bn_sub_mod_n #t #len n a b = let c0, res0 = bn_sub a b in let c1, res1 = bn_add res0 n in let c = uint #t 0 -. c0 in map2 (mask_select c) res1 res0
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 32, "end_line": 83, "start_col": 0, "start_line": 79 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.Spec.Bignum.Definitions.lbignum t len -> a: Hacl.Spec.Bignum.Definitions.lbignum t len -> b: Hacl.Spec.Bignum.Definitions.lbignum t len -> Hacl.Spec.Bignum.Definitions.lbignum t len
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Base.carry", "Lib.Sequence.map2", "Hacl.Spec.Bignum.Definitions.limb", "Hacl.Spec.Bignum.Base.mask_select", "Lib.IntTypes.int_t", "Lib.IntTypes.SEC", "Lib.IntTypes.op_Subtracti...
[]
false
false
false
false
false
let bn_sub_mod_n #t #len n a b =
let c0, res0 = bn_sub a b in let c1, res1 = bn_add res0 n in let c = uint #t 0 -. c0 in map2 (mask_select c) res1 res0
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_add_mod_n_lemma
val bn_add_mod_n_lemma: #t:limb_t -> #len:size_nat -> n:lbignum t len -> a:lbignum t len -> b:lbignum t len -> Lemma (requires bn_v a < bn_v n /\ bn_v b < bn_v n) (ensures bn_v (bn_add_mod_n n a b) == (bn_v a + bn_v b) % bn_v n)
val bn_add_mod_n_lemma: #t:limb_t -> #len:size_nat -> n:lbignum t len -> a:lbignum t len -> b:lbignum t len -> Lemma (requires bn_v a < bn_v n /\ bn_v b < bn_v n) (ensures bn_v (bn_add_mod_n n a b) == (bn_v a + bn_v b) % bn_v n)
let bn_add_mod_n_lemma #t #len n a b = let c0, res0 = bn_add a b in bn_add_lemma a b; bn_reduce_once_lemma n c0 res0
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 32, "end_line": 76, "start_col": 0, "start_line": 73 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.Spec.Bignum.Definitions.lbignum t len -> a: Hacl.Spec.Bignum.Definitions.lbignum t len -> b: Hacl.Spec.Bignum.Definitions.lbignum t len -> FStar.Pervasives.Lemma (requires Hacl.Spec.Bignum.Definitions.bn_v a < Hacl.Spec.Bignum.Definitions.bn_v n /\ Hacl.Spec.Bignum.Definitio...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Base.carry", "Hacl.Spec.Bignum.bn_reduce_once_lemma", "Prims.unit", "Hacl.Spec.Bignum.bn_add_lemma", "FStar.Pervasives.Native.tuple2", "Hacl.Spec.Bignum.bn_add" ]
[]
false
false
true
false
false
let bn_add_mod_n_lemma #t #len n a b =
let c0, res0 = bn_add a b in bn_add_lemma a b; bn_reduce_once_lemma n c0 res0
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_mul
val bn_mul: #t:limb_t -> #aLen:size_nat -> #bLen:size_nat{aLen + bLen <= max_size_t} -> a:lbignum t aLen -> b:lbignum t bLen -> lbignum t (aLen + bLen)
val bn_mul: #t:limb_t -> #aLen:size_nat -> #bLen:size_nat{aLen + bLen <= max_size_t} -> a:lbignum t aLen -> b:lbignum t bLen -> lbignum t (aLen + bLen)
let bn_mul #t #aLen #bLen a b = Hacl.Spec.Bignum.Multiplication.bn_mul a b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 44, "end_line": 124, "start_col": 0, "start_line": 123 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> b: Hacl.Spec.Bignum.Definitions.lbignum t bLen -> Hacl.Spec.Bignum.Definitions.lbignum t (aLen + bLen)
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Lib.IntTypes.max_size_t", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Multiplication.bn_mul" ]
[]
false
false
false
false
false
let bn_mul #t #aLen #bLen a b =
Hacl.Spec.Bignum.Multiplication.bn_mul a b
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_mul1_lshift_add
val bn_mul1_lshift_add: #t:limb_t -> #aLen:size_nat -> #resLen:size_nat -> a:lbignum t aLen -> b:limb t -> j:size_nat{j + aLen <= resLen} -> acc:lbignum t resLen -> limb t & lbignum t resLen
val bn_mul1_lshift_add: #t:limb_t -> #aLen:size_nat -> #resLen:size_nat -> a:lbignum t aLen -> b:limb t -> j:size_nat{j + aLen <= resLen} -> acc:lbignum t resLen -> limb t & lbignum t resLen
let bn_mul1_lshift_add #t #aLen #resLen a b j acc = Hacl.Spec.Bignum.Multiplication.bn_mul1_lshift_add a b j acc
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 62, "end_line": 148, "start_col": 0, "start_line": 147 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> b: Hacl.Spec.Bignum.Definitions.limb t -> j: Lib.IntTypes.size_nat{j + aLen <= resLen} -> acc: Hacl.Spec.Bignum.Definitions.lbignum t resLen -> Hacl.Spec.Bignum.Definitions.limb t * Hacl.Spec.Bignum.Definitions.lbignum t resLen
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.limb", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Hacl.Spec.Bignum.Multiplication.bn_mul1_lshift_add", "FStar.Pervasives.Native.tuple2" ]
[]
false
false
false
false
false
let bn_mul1_lshift_add #t #aLen #resLen a b j acc =
Hacl.Spec.Bignum.Multiplication.bn_mul1_lshift_add a b j acc
false
Steel.ST.HigherArray.fst
Steel.ST.HigherArray.pts_to_length
val pts_to_length (#opened: _) (#elt: Type u#1) (#p: P.perm) (a: array elt) (s: Seq.seq elt) : STGhost unit opened (pts_to a p s) (fun _ -> pts_to a p s) (True) (fun _ -> Seq.length s == length a)
val pts_to_length (#opened: _) (#elt: Type u#1) (#p: P.perm) (a: array elt) (s: Seq.seq elt) : STGhost unit opened (pts_to a p s) (fun _ -> pts_to a p s) (True) (fun _ -> Seq.length s == length a)
let pts_to_length a s = elim_pts_to a _ s; intro_pts_to a _ s
{ "file_name": "lib/steel/Steel.ST.HigherArray.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 20, "end_line": 184, "start_col": 0, "start_line": 180 }
(* Copyright 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.ST.PCMReference.fsti.checked", "Steel.ST.Loops.fsti.checked", "Steel.PCMMap.fst.checked", "Steel.PCMFrac.fst.checked", "Steel.Memory.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Rea...
[ { "abbrev": true, "full_module": "Steel.PCMMap", "short_module": "PM" }, { "abbrev": true, "full_module": "FStar.Map", "short_module": "M" }, { "abbrev": true, "full_module": "Steel.ST.PCMReference", "short_module": "R" }, { "abbrev": true, "full_module": "Ste...
{ "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: Steel.ST.HigherArray.array elt -> s: FStar.Seq.Base.seq elt -> Steel.ST.Effect.Ghost.STGhost Prims.unit
Steel.ST.Effect.Ghost.STGhost
[]
[]
[ "Steel.Memory.inames", "Steel.FractionalPermission.perm", "Steel.ST.HigherArray.array", "FStar.Seq.Base.seq", "Steel.ST.HigherArray.intro_pts_to", "Steel.ST.HigherArray.mk_carrier", "FStar.SizeT.v", "FStar.Ghost.reveal", "FStar.SizeT.t", "Steel.ST.HigherArray.__proj__Mkptr__item__base_len", "Ste...
[]
false
true
false
false
false
let pts_to_length a s =
elim_pts_to a _ s; intro_pts_to a _ s
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_mul1_lemma
val bn_mul1_lemma: #t:limb_t -> #aLen:size_nat -> a:lbignum t aLen -> b1:limb t -> Lemma (let (c, res) = bn_mul1 a b1 in v c * pow2 (bits t * aLen) + bn_v res == bn_v a * v b1)
val bn_mul1_lemma: #t:limb_t -> #aLen:size_nat -> a:lbignum t aLen -> b1:limb t -> Lemma (let (c, res) = bn_mul1 a b1 in v c * pow2 (bits t * aLen) + bn_v res == bn_v a * v b1)
let bn_mul1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Multiplication.bn_mul1_lemma a b1
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 52, "end_line": 121, "start_col": 0, "start_line": 120 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> b1: Hacl.Spec.Bignum.Definitions.limb t -> FStar.Pervasives.Lemma (ensures (let _ = Hacl.Spec.Bignum.bn_mul1 a b1 in (let FStar.Pervasives.Native.Mktuple2 #_ #_ c res = _ in Lib.IntTypes.v c * Prims.pow2 (Lib.IntTypes.bits t * aLen) + ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.limb", "Hacl.Spec.Bignum.Multiplication.bn_mul1_lemma", "Prims.unit" ]
[]
true
false
true
false
false
let bn_mul1_lemma #t #aLen a b1 =
Hacl.Spec.Bignum.Multiplication.bn_mul1_lemma a b1
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_sub_mod_n_lemma
val bn_sub_mod_n_lemma: #t:limb_t -> #len:size_nat -> n:lbignum t len -> a:lbignum t len -> b:lbignum t len -> Lemma (requires bn_v a < bn_v n /\ bn_v b < bn_v n) (ensures bn_v (bn_sub_mod_n n a b) == (bn_v a - bn_v b) % bn_v n)
val bn_sub_mod_n_lemma: #t:limb_t -> #len:size_nat -> n:lbignum t len -> a:lbignum t len -> b:lbignum t len -> Lemma (requires bn_v a < bn_v n /\ bn_v b < bn_v n) (ensures bn_v (bn_sub_mod_n n a b) == (bn_v a - bn_v b) % bn_v n)
let bn_sub_mod_n_lemma #t #len n a b = let c0, res0 = bn_sub a b in bn_sub_lemma a b; assert (bn_v res0 - v c0 * pow2 (bits t * len) == bn_v a - bn_v b); let c1, res1 = bn_add res0 n in let c = uint #t 0 -. c0 in assert (v c == 0 \/ v c == v (ones t SEC)); let res = map2 (mask_select c) res1 res0 in lse...
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 10, "end_line": 114, "start_col": 0, "start_line": 86 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.Spec.Bignum.Definitions.lbignum t len -> a: Hacl.Spec.Bignum.Definitions.lbignum t len -> b: Hacl.Spec.Bignum.Definitions.lbignum t len -> FStar.Pervasives.Lemma (requires Hacl.Spec.Bignum.Definitions.bn_v a < Hacl.Spec.Bignum.Definitions.bn_v n /\ Hacl.Spec.Bignum.Definitio...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Base.carry", "Prims.op_Equality", "Prims.int", "Lib.IntTypes.v", "Lib.IntTypes.SEC", "Prims.unit", "Prims._assert", "Prims.eq2", "Hacl.Spec.Bignum.Definitions.bn_v", "Pri...
[]
false
false
true
false
false
let bn_sub_mod_n_lemma #t #len n a b =
let c0, res0 = bn_sub a b in bn_sub_lemma a b; assert (bn_v res0 - v c0 * pow2 (bits t * len) == bn_v a - bn_v b); let c1, res1 = bn_add res0 n in let c = uint #t 0 -. c0 in assert (v c == 0 \/ v c == v (ones t SEC)); let res = map2 (mask_select c) res1 res0 in lseq_mask_select_lemma res1 res0 c; if v c0 = 0 then (as...
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_mul_lemma
val bn_mul_lemma: #t:limb_t -> #aLen:size_nat -> #bLen:size_nat{aLen + bLen <= max_size_t} -> a:lbignum t aLen -> b:lbignum t bLen -> Lemma (bn_v (bn_mul a b) == bn_v a * bn_v b)
val bn_mul_lemma: #t:limb_t -> #aLen:size_nat -> #bLen:size_nat{aLen + bLen <= max_size_t} -> a:lbignum t aLen -> b:lbignum t bLen -> Lemma (bn_v (bn_mul a b) == bn_v a * bn_v b)
let bn_mul_lemma #t #aLen #bLen a b = Hacl.Spec.Bignum.Multiplication.bn_mul_lemma a b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 50, "end_line": 127, "start_col": 0, "start_line": 126 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> b: Hacl.Spec.Bignum.Definitions.lbignum t bLen -> FStar.Pervasives.Lemma (ensures Hacl.Spec.Bignum.Definitions.bn_v (Hacl.Spec.Bignum.bn_mul a b) == Hacl.Spec.Bignum.Definitions.bn_v a * Hacl.Spec.Bignum.Definitions.bn_v b)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Lib.IntTypes.max_size_t", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Multiplication.bn_mul_lemma", "Prims.unit" ]
[]
true
false
true
false
false
let bn_mul_lemma #t #aLen #bLen a b =
Hacl.Spec.Bignum.Multiplication.bn_mul_lemma a b
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_karatsuba_mul
val bn_karatsuba_mul: #t:limb_t -> #aLen:size_nat{aLen + aLen <= max_size_t} -> a:lbignum t aLen -> b:lbignum t aLen -> lbignum t (aLen + aLen)
val bn_karatsuba_mul: #t:limb_t -> #aLen:size_nat{aLen + aLen <= max_size_t} -> a:lbignum t aLen -> b:lbignum t aLen -> lbignum t (aLen + aLen)
let bn_karatsuba_mul #t #aLen a b = Hacl.Spec.Bignum.Karatsuba.bn_karatsuba_mul a b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 49, "end_line": 130, "start_col": 0, "start_line": 129 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> b: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> Hacl.Spec.Bignum.Definitions.lbignum t (aLen + aLen)
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Lib.IntTypes.max_size_t", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Karatsuba.bn_karatsuba_mul" ]
[]
false
false
false
false
false
let bn_karatsuba_mul #t #aLen a b =
Hacl.Spec.Bignum.Karatsuba.bn_karatsuba_mul a b
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_sqr
val bn_sqr: #t:limb_t -> #aLen:size_nat{aLen + aLen <= max_size_t} -> a:lbignum t aLen -> lbignum t (aLen + aLen)
val bn_sqr: #t:limb_t -> #aLen:size_nat{aLen + aLen <= max_size_t} -> a:lbignum t aLen -> lbignum t (aLen + aLen)
let bn_sqr #t #aLen a = Hacl.Spec.Bignum.Squaring.bn_sqr a
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 36, "end_line": 136, "start_col": 0, "start_line": 135 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> Hacl.Spec.Bignum.Definitions.lbignum t (aLen + aLen)
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Lib.IntTypes.max_size_t", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Squaring.bn_sqr" ]
[]
false
false
false
false
false
let bn_sqr #t #aLen a =
Hacl.Spec.Bignum.Squaring.bn_sqr a
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_reduce_once_lemma
val bn_reduce_once_lemma: #t:limb_t -> #len:size_nat -> n:lbignum t len -> c:carry t -> a:lbignum t len -> Lemma (requires v c * pow2 (bits t * len) + bn_v a < 2 * bn_v n) (ensures bn_v (bn_reduce_once n c a) == (v c * pow2 (bits t * len) + bn_v a) % bn_v n)
val bn_reduce_once_lemma: #t:limb_t -> #len:size_nat -> n:lbignum t len -> c:carry t -> a:lbignum t len -> Lemma (requires v c * pow2 (bits t * len) + bn_v a < 2 * bn_v n) (ensures bn_v (bn_reduce_once n c a) == (v c * pow2 (bits t * len) + bn_v a) % bn_v n)
let bn_reduce_once_lemma #t #len n c0 res0 = let pbits = bits t in let tmp = bn_v res0 + v c0 * pow2 (pbits * len) in let c1, res1 = bn_sub res0 n in bn_sub_lemma res0 n; assert (bn_v res1 - v c1 * pow2 (pbits * len) == bn_v res0 - bn_v n); let c = c0 -. c1 in assert (bn_v res1 + (v c0 - v c1) * pow2 (pbi...
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 49, "end_line": 65, "start_col": 0, "start_line": 38 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.Spec.Bignum.Definitions.lbignum t len -> c: Hacl.Spec.Bignum.Base.carry t -> a: Hacl.Spec.Bignum.Definitions.lbignum t len -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v c * Prims.pow2 (Lib.IntTypes.bits t * len) + Hacl.Spec.Bignum.Definitions.bn_v a < 2 * Hacl.S...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Base.carry", "Prims.op_LessThan", "Hacl.Spec.Bignum.Definitions.bn_v", "Prims._assert", "Prims.eq2", "Prims.int", "Prims.op_Modulus", "Prims.unit", "FStar.Math.Lemmas.small...
[]
false
false
true
false
false
let bn_reduce_once_lemma #t #len n c0 res0 =
let pbits = bits t in let tmp = bn_v res0 + v c0 * pow2 (pbits * len) in let c1, res1 = bn_sub res0 n in bn_sub_lemma res0 n; assert (bn_v res1 - v c1 * pow2 (pbits * len) == bn_v res0 - bn_v n); let c = c0 -. c1 in assert (bn_v res1 + (v c0 - v c1) * pow2 (pbits * len) == tmp - bn_v n); let res = map2 (mask_select c) ...
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_karatsuba_sqr
val bn_karatsuba_sqr: #t:limb_t -> #aLen:size_nat{aLen + aLen <= max_size_t} -> a:lbignum t aLen -> lbignum t (aLen + aLen)
val bn_karatsuba_sqr: #t:limb_t -> #aLen:size_nat{aLen + aLen <= max_size_t} -> a:lbignum t aLen -> lbignum t (aLen + aLen)
let bn_karatsuba_sqr #t #aLen a = Hacl.Spec.Bignum.Karatsuba.bn_karatsuba_sqr a
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 142, "start_col": 0, "start_line": 141 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> Hacl.Spec.Bignum.Definitions.lbignum t (aLen + aLen)
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Lib.IntTypes.max_size_t", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Karatsuba.bn_karatsuba_sqr" ]
[]
false
false
false
false
false
let bn_karatsuba_sqr #t #aLen a =
Hacl.Spec.Bignum.Karatsuba.bn_karatsuba_sqr a
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_sqr_lemma
val bn_sqr_lemma: #t:limb_t -> #aLen:size_nat{aLen + aLen <= max_size_t} -> a:lbignum t aLen -> Lemma (bn_sqr a == bn_mul a a /\ bn_v (bn_sqr a) == bn_v a * bn_v a)
val bn_sqr_lemma: #t:limb_t -> #aLen:size_nat{aLen + aLen <= max_size_t} -> a:lbignum t aLen -> Lemma (bn_sqr a == bn_mul a a /\ bn_v (bn_sqr a) == bn_v a * bn_v a)
let bn_sqr_lemma #t #aLen a = Hacl.Spec.Bignum.Squaring.bn_sqr_lemma a
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 42, "end_line": 139, "start_col": 0, "start_line": 138 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> FStar.Pervasives.Lemma (ensures Hacl.Spec.Bignum.bn_sqr a == Hacl.Spec.Bignum.bn_mul a a /\ Hacl.Spec.Bignum.Definitions.bn_v (Hacl.Spec.Bignum.bn_sqr a) == Hacl.Spec.Bignum.Definitions.bn_v a * Hacl.Spec.Bignum.Definitions.bn_v a)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Lib.IntTypes.max_size_t", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Squaring.bn_sqr_lemma", "Prims.unit" ]
[]
true
false
true
false
false
let bn_sqr_lemma #t #aLen a =
Hacl.Spec.Bignum.Squaring.bn_sqr_lemma a
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_karatsuba_mul_lemma
val bn_karatsuba_mul_lemma: #t:limb_t -> #aLen:size_nat{aLen + aLen <= max_size_t} -> a:lbignum t aLen -> b:lbignum t aLen -> Lemma (bn_karatsuba_mul a b == bn_mul a b /\ bn_v (bn_karatsuba_mul a b) == bn_v a * bn_v b)
val bn_karatsuba_mul_lemma: #t:limb_t -> #aLen:size_nat{aLen + aLen <= max_size_t} -> a:lbignum t aLen -> b:lbignum t aLen -> Lemma (bn_karatsuba_mul a b == bn_mul a b /\ bn_v (bn_karatsuba_mul a b) == bn_v a * bn_v b)
let bn_karatsuba_mul_lemma #t #aLen a b = Hacl.Spec.Bignum.Karatsuba.bn_karatsuba_mul_lemma a b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 55, "end_line": 133, "start_col": 0, "start_line": 132 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> b: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> FStar.Pervasives.Lemma (ensures Hacl.Spec.Bignum.bn_karatsuba_mul a b == Hacl.Spec.Bignum.bn_mul a b /\ Hacl.Spec.Bignum.Definitions.bn_v (Hacl.Spec.Bignum.bn_karatsuba_mul a b) == Hacl.Spec.Bignu...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Lib.IntTypes.max_size_t", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Karatsuba.bn_karatsuba_mul_lemma", "Prims.unit" ]
[]
true
false
true
false
false
let bn_karatsuba_mul_lemma #t #aLen a b =
Hacl.Spec.Bignum.Karatsuba.bn_karatsuba_mul_lemma a b
false
Steel.ST.HigherArray.fst
Steel.ST.HigherArray.blit_ptr
val blit_ptr (#t:_) (#p0:perm) (#s0 #s1:Ghost.erased (Seq.seq t)) (src:ptr t) (len_src: Ghost.erased nat { offset src + len_src <= base_len (base src) }) (idx_src: US.t) (dst:ptr t) (len_dst: Ghost.erased nat { offset dst + len_dst <= base_len (base dst) }) ...
val blit_ptr (#t:_) (#p0:perm) (#s0 #s1:Ghost.erased (Seq.seq t)) (src:ptr t) (len_src: Ghost.erased nat { offset src + len_src <= base_len (base src) }) (idx_src: US.t) (dst:ptr t) (len_dst: Ghost.erased nat { offset dst + len_dst <= base_len (base dst) }) ...
let blit_ptr src len_src idx_src dst len_dst idx_dst len = blit0 _ idx_src _ idx_dst len
{ "file_name": "lib/steel/Steel.ST.HigherArray.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 31, "end_line": 690, "start_col": 0, "start_line": 688 }
(* Copyright 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.ST.PCMReference.fsti.checked", "Steel.ST.Loops.fsti.checked", "Steel.PCMMap.fst.checked", "Steel.PCMFrac.fst.checked", "Steel.Memory.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Rea...
[ { "abbrev": true, "full_module": "Steel.PCMMap", "short_module": "PM" }, { "abbrev": true, "full_module": "FStar.Map", "short_module": "M" }, { "abbrev": true, "full_module": "Steel.ST.PCMReference", "short_module": "R" }, { "abbrev": true, "full_module": "Ste...
{ "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
src: Steel.ST.HigherArray.ptr t -> len_src: FStar.Ghost.erased Prims.nat { Steel.ST.HigherArray.offset src + FStar.Ghost.reveal len_src <= Steel.ST.HigherArray.base_len (Steel.ST.HigherArray.base src) } -> idx_src: FStar.SizeT.t -> dst: Steel.ST.HigherArray.ptr t -> len_dst:...
Steel.ST.Effect.ST
[]
[]
[ "Steel.FractionalPermission.perm", "FStar.Ghost.erased", "FStar.Seq.Base.seq", "Steel.ST.HigherArray.ptr", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Steel.ST.HigherArray.offset", "FStar.Ghost.reveal", "Steel.ST.HigherArray.base_len", "Steel.ST.HigherArray.base...
[]
false
true
false
false
false
let blit_ptr src len_src idx_src dst len_dst idx_dst len =
blit0 _ idx_src _ idx_dst len
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_karatsuba_sqr_lemma
val bn_karatsuba_sqr_lemma: #t:limb_t -> #aLen:size_nat{aLen + aLen <= max_size_t} -> a:lbignum t aLen -> Lemma (bn_karatsuba_sqr a == bn_mul a a /\ bn_v (bn_karatsuba_sqr a) == bn_v a * bn_v a)
val bn_karatsuba_sqr_lemma: #t:limb_t -> #aLen:size_nat{aLen + aLen <= max_size_t} -> a:lbignum t aLen -> Lemma (bn_karatsuba_sqr a == bn_mul a a /\ bn_v (bn_karatsuba_sqr a) == bn_v a * bn_v a)
let bn_karatsuba_sqr_lemma #t #aLen a = Hacl.Spec.Bignum.Karatsuba.bn_karatsuba_sqr_lemma a
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 53, "end_line": 145, "start_col": 0, "start_line": 144 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> FStar.Pervasives.Lemma (ensures Hacl.Spec.Bignum.bn_karatsuba_sqr a == Hacl.Spec.Bignum.bn_mul a a /\ Hacl.Spec.Bignum.Definitions.bn_v (Hacl.Spec.Bignum.bn_karatsuba_sqr a) == Hacl.Spec.Bignum.Definitions.bn_v a * Hacl.Spec.Bignum.Definitions.bn...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Lib.IntTypes.max_size_t", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Karatsuba.bn_karatsuba_sqr_lemma", "Prims.unit" ]
[]
true
false
true
false
false
let bn_karatsuba_sqr_lemma #t #aLen a =
Hacl.Spec.Bignum.Karatsuba.bn_karatsuba_sqr_lemma a
false
Steel.ST.HigherArray.fst
Steel.ST.HigherArray.ptrdiff_ptr
val ptrdiff_ptr (#t:_) (#p0 #p1:perm) (#s0 #s1:Ghost.erased (Seq.seq t)) (a0:ptr t) (len0: Ghost.erased nat { offset a0 + len0 <= base_len (base a0) }) (a1:ptr t) (len1: Ghost.erased nat { offset a1 + len1 <= base_len (base a1) }) : ST UP.t (pts_to (| a0, len0 |) p0 s0 ...
val ptrdiff_ptr (#t:_) (#p0 #p1:perm) (#s0 #s1:Ghost.erased (Seq.seq t)) (a0:ptr t) (len0: Ghost.erased nat { offset a0 + len0 <= base_len (base a0) }) (a1:ptr t) (len1: Ghost.erased nat { offset a1 + len1 <= base_len (base a1) }) : ST UP.t (pts_to (| a0, len0 |) p0 s0 ...
let ptrdiff_ptr a0 len0 a1 len1 = let res = a0.offset - a1.offset in return (UP.int_to_t res)
{ "file_name": "lib/steel/Steel.ST.HigherArray.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 26, "end_line": 700, "start_col": 0, "start_line": 698 }
(* Copyright 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.ST.PCMReference.fsti.checked", "Steel.ST.Loops.fsti.checked", "Steel.PCMMap.fst.checked", "Steel.PCMFrac.fst.checked", "Steel.Memory.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Rea...
[ { "abbrev": true, "full_module": "Steel.PCMMap", "short_module": "PM" }, { "abbrev": true, "full_module": "FStar.Map", "short_module": "M" }, { "abbrev": true, "full_module": "Steel.ST.PCMReference", "short_module": "R" }, { "abbrev": true, "full_module": "Ste...
{ "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
a0: Steel.ST.HigherArray.ptr t -> len0: FStar.Ghost.erased Prims.nat { Steel.ST.HigherArray.offset a0 + FStar.Ghost.reveal len0 <= Steel.ST.HigherArray.base_len (Steel.ST.HigherArray.base a0) } -> a1: Steel.ST.HigherArray.ptr t -> len1: FStar.Ghost.erased Prims.nat ...
Steel.ST.Effect.ST
[]
[]
[ "Steel.FractionalPermission.perm", "FStar.Ghost.erased", "FStar.Seq.Base.seq", "Steel.ST.HigherArray.ptr", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Steel.ST.HigherArray.offset", "FStar.Ghost.reveal", "Steel.ST.HigherArray.base_len", "Steel.ST.HigherArray.base...
[]
false
true
false
false
false
let ptrdiff_ptr a0 len0 a1 len1 =
let res = a0.offset - a1.offset in return (UP.int_to_t res)
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_rshift
val bn_rshift: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i < len} -> lbignum t (len - i)
val bn_rshift: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i < len} -> lbignum t (len - i)
let bn_rshift #t #len b i = Hacl.Spec.Bignum.Lib.bn_div_pow2 b i
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 154, "start_col": 0, "start_line": 153 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Hacl.Spec.Bignum.Definitions.lbignum t len -> i: Lib.IntTypes.size_nat{i < len} -> Hacl.Spec.Bignum.Definitions.lbignum t (len - i)
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.b2t", "Prims.op_LessThan", "Hacl.Spec.Bignum.Lib.bn_div_pow2", "Prims.op_Subtraction" ]
[]
false
false
false
false
false
let bn_rshift #t #len b i =
Hacl.Spec.Bignum.Lib.bn_div_pow2 b i
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.cswap2
val cswap2: #t:limb_t -> #len:size_nat -> bit:limb t -> b1:lbignum t len -> b2:lbignum t len -> tuple2 (lbignum t len) (lbignum t len)
val cswap2: #t:limb_t -> #len:size_nat -> bit:limb t -> b1:lbignum t len -> b2:lbignum t len -> tuple2 (lbignum t len) (lbignum t len)
let cswap2 #t #len bit b1 b2 = Hacl.Spec.Bignum.Lib.cswap2 bit b1 b2
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 39, "end_line": 205, "start_col": 0, "start_line": 204 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "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
bit: Hacl.Spec.Bignum.Definitions.limb t -> b1: Hacl.Spec.Bignum.Definitions.lbignum t len -> b2: Hacl.Spec.Bignum.Definitions.lbignum t len -> Hacl.Spec.Bignum.Definitions.lbignum t len * Hacl.Spec.Bignum.Definitions.lbignum t len
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.limb", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Lib.cswap2", "FStar.Pervasives.Native.tuple2" ]
[]
false
false
false
false
false
let cswap2 #t #len bit b1 b2 =
Hacl.Spec.Bignum.Lib.cswap2 bit b1 b2
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_eq_mask
val bn_eq_mask: #t:limb_t -> #len:size_nat -> a:lbignum t len -> b:lbignum t len -> limb t
val bn_eq_mask: #t:limb_t -> #len:size_nat -> a:lbignum t len -> b:lbignum t len -> limb t
let bn_eq_mask #t #len a b = Hacl.Spec.Bignum.Comparison.bn_eq_mask a b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 44, "end_line": 219, "start_col": 0, "start_line": 218 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t len -> b: Hacl.Spec.Bignum.Definitions.lbignum t len -> Hacl.Spec.Bignum.Definitions.limb t
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Comparison.bn_eq_mask", "Hacl.Spec.Bignum.Definitions.limb" ]
[]
false
false
false
false
false
let bn_eq_mask #t #len a b =
Hacl.Spec.Bignum.Comparison.bn_eq_mask a b
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_rshift_lemma
val bn_rshift_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i < len} -> Lemma (bn_v (bn_rshift b i) == bn_v b / pow2 (bits t * i))
val bn_rshift_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i < len} -> Lemma (bn_v (bn_rshift b i) == bn_v b / pow2 (bits t * i))
let bn_rshift_lemma #t #len c i = Hacl.Spec.Bignum.Lib.bn_div_pow2_lemma c i
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 44, "end_line": 157, "start_col": 0, "start_line": 156 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Hacl.Spec.Bignum.Definitions.lbignum t len -> i: Lib.IntTypes.size_nat{i < len} -> FStar.Pervasives.Lemma (ensures Hacl.Spec.Bignum.Definitions.bn_v (Hacl.Spec.Bignum.bn_rshift b i) == Hacl.Spec.Bignum.Definitions.bn_v b / Prims.pow2 (Lib.IntTypes.bits t * i))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.b2t", "Prims.op_LessThan", "Hacl.Spec.Bignum.Lib.bn_div_pow2_lemma", "Prims.unit" ]
[]
true
false
true
false
false
let bn_rshift_lemma #t #len c i =
Hacl.Spec.Bignum.Lib.bn_div_pow2_lemma c i
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_is_zero_mask
val bn_is_zero_mask: #t:limb_t -> #len:size_nat -> a:lbignum t len -> limb t
val bn_is_zero_mask: #t:limb_t -> #len:size_nat -> a:lbignum t len -> limb t
let bn_is_zero_mask #t #len b = Hacl.Spec.Bignum.Comparison.bn_is_zero_mask b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 225, "start_col": 0, "start_line": 224 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t len -> Hacl.Spec.Bignum.Definitions.limb t
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Comparison.bn_is_zero_mask", "Hacl.Spec.Bignum.Definitions.limb" ]
[]
false
false
false
false
false
let bn_is_zero_mask #t #len b =
Hacl.Spec.Bignum.Comparison.bn_is_zero_mask b
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_mul1_lshift_add_lemma
val bn_mul1_lshift_add_lemma: #t:limb_t -> #aLen:size_nat -> #resLen:size_nat -> a:lbignum t aLen -> b:limb t -> j:size_nat{j + aLen <= resLen} -> acc:lbignum t resLen -> Lemma (let (c_out, res) = bn_mul1_lshift_add a b j acc in v c_out * pow2 (bits t * (aLen + j)) + eval_ resLen res (aLen + j) ==...
val bn_mul1_lshift_add_lemma: #t:limb_t -> #aLen:size_nat -> #resLen:size_nat -> a:lbignum t aLen -> b:limb t -> j:size_nat{j + aLen <= resLen} -> acc:lbignum t resLen -> Lemma (let (c_out, res) = bn_mul1_lshift_add a b j acc in v c_out * pow2 (bits t * (aLen + j)) + eval_ resLen res (aLen + j) ==...
let bn_mul1_lshift_add_lemma #t #aLen #resLen a b j acc = Hacl.Spec.Bignum.Multiplication.bn_mul1_lshift_add_lemma a b j acc
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 68, "end_line": 151, "start_col": 0, "start_line": 150 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t aLen -> b: Hacl.Spec.Bignum.Definitions.limb t -> j: Lib.IntTypes.size_nat{j + aLen <= resLen} -> acc: Hacl.Spec.Bignum.Definitions.lbignum t resLen -> FStar.Pervasives.Lemma (ensures (let _ = Hacl.Spec.Bignum.bn_mul1_lshift_add a b j acc in ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Definitions.limb", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Hacl.Spec.Bignum.Multiplication.bn_mul1_lshift_add_lemma", "Prims.unit" ]
[]
true
false
true
false
false
let bn_mul1_lshift_add_lemma #t #aLen #resLen a b j acc =
Hacl.Spec.Bignum.Multiplication.bn_mul1_lshift_add_lemma a b j acc
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_lt_mask
val bn_lt_mask: #t:limb_t -> #len:size_nat -> a:lbignum t len -> b:lbignum t len -> limb t
val bn_lt_mask: #t:limb_t -> #len:size_nat -> a:lbignum t len -> b:lbignum t len -> limb t
let bn_lt_mask #t #len a b = Hacl.Spec.Bignum.Comparison.bn_lt_mask a b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 44, "end_line": 231, "start_col": 0, "start_line": 230 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t len -> b: Hacl.Spec.Bignum.Definitions.lbignum t len -> Hacl.Spec.Bignum.Definitions.limb t
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Comparison.bn_lt_mask", "Hacl.Spec.Bignum.Definitions.limb" ]
[]
false
false
false
false
false
let bn_lt_mask #t #len a b =
Hacl.Spec.Bignum.Comparison.bn_lt_mask a b
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_sub_mask
val bn_sub_mask: #t:limb_t -> #len:size_nat -> n:lbignum t len -> a:lbignum t len -> lbignum t len
val bn_sub_mask: #t:limb_t -> #len:size_nat -> n:lbignum t len -> a:lbignum t len -> lbignum t len
let bn_sub_mask #t #len n a = let mask = BSeq.seq_eq_mask n a len in let mod_mask = map (logand mask) n in let c, res = Hacl.Spec.Bignum.Addition.bn_sub a mod_mask in res
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 163, "start_col": 0, "start_line": 159 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.Spec.Bignum.Definitions.lbignum t len -> a: Hacl.Spec.Bignum.Definitions.lbignum t len -> Hacl.Spec.Bignum.Definitions.lbignum t len
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Base.carry", "FStar.Pervasives.Native.tuple2", "Hacl.Spec.Bignum.Addition.bn_sub", "Lib.Sequence.lseq", "Hacl.Spec.Bignum.Definitions.limb", "Prims.l_Forall", "Prims.nat", "P...
[]
false
false
false
false
false
let bn_sub_mask #t #len n a =
let mask = BSeq.seq_eq_mask n a len in let mod_mask = map (logand mask) n in let c, res = Hacl.Spec.Bignum.Addition.bn_sub a mod_mask in res
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_get_bits
val bn_get_bits: #t:limb_t -> #nLen:size_nat -> n:lbignum t nLen -> i:size_nat -> l:size_nat{l < bits t /\ i / bits t < nLen} -> limb t
val bn_get_bits: #t:limb_t -> #nLen:size_nat -> n:lbignum t nLen -> i:size_nat -> l:size_nat{l < bits t /\ i / bits t < nLen} -> limb t
let bn_get_bits #t #nLen n i l = Hacl.Spec.Bignum.Lib.bn_get_bits #t #nLen n i l
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 49, "end_line": 191, "start_col": 0, "start_line": 190 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.Spec.Bignum.Definitions.lbignum t nLen -> i: Lib.IntTypes.size_nat -> l: Lib.IntTypes.size_nat{l < Lib.IntTypes.bits t /\ i / Lib.IntTypes.bits t < nLen} -> Hacl.Spec.Bignum.Definitions.limb t
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.l_and", "Prims.b2t", "Prims.op_LessThan", "Lib.IntTypes.bits", "Prims.op_Division", "Hacl.Spec.Bignum.Lib.bn_get_bits", "Hacl.Spec.Bignum.Definitions.limb" ]
[]
false
false
false
false
false
let bn_get_bits #t #nLen n i l =
Hacl.Spec.Bignum.Lib.bn_get_bits #t #nLen n i l
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_get_ith_bit_lemma
val bn_get_ith_bit_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i / bits t < len} -> Lemma (v (bn_get_ith_bit b i) == (bn_v b / pow2 i % 2))
val bn_get_ith_bit_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i / bits t < len} -> Lemma (v (bn_get_ith_bit b i) == (bn_v b / pow2 i % 2))
let bn_get_ith_bit_lemma #t #len b ind = Hacl.Spec.Bignum.Lib.bn_get_ith_bit_lemma b ind
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 49, "end_line": 188, "start_col": 0, "start_line": 187 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Hacl.Spec.Bignum.Definitions.lbignum t len -> i: Lib.IntTypes.size_nat{i / Lib.IntTypes.bits t < len} -> FStar.Pervasives.Lemma (ensures Lib.IntTypes.v (Hacl.Spec.Bignum.bn_get_ith_bit b i) == Hacl.Spec.Bignum.Definitions.bn_v b / Prims.pow2 i % 2)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.b2t", "Prims.op_LessThan", "Prims.op_Division", "Lib.IntTypes.bits", "Hacl.Spec.Bignum.Lib.bn_get_ith_bit_lemma", "Prims.unit" ]
[]
true
false
true
false
false
let bn_get_ith_bit_lemma #t #len b ind =
Hacl.Spec.Bignum.Lib.bn_get_ith_bit_lemma b ind
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_lt_pow2_mask
val bn_lt_pow2_mask: #t:limb_t -> #len:size_nat -> b:lbignum t len -> x:size_nat{x < bits t * len} -> limb t
val bn_lt_pow2_mask: #t:limb_t -> #len:size_nat -> b:lbignum t len -> x:size_nat{x < bits t * len} -> limb t
let bn_lt_pow2_mask #t #len b x = Hacl.Spec.Bignum.Comparison.bn_lt_pow2_mask b x
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 49, "end_line": 237, "start_col": 0, "start_line": 236 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Hacl.Spec.Bignum.Definitions.lbignum t len -> x: Lib.IntTypes.size_nat{x < Lib.IntTypes.bits t * len} -> Hacl.Spec.Bignum.Definitions.limb t
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.b2t", "Prims.op_LessThan", "FStar.Mul.op_Star", "Lib.IntTypes.bits", "Hacl.Spec.Bignum.Comparison.bn_lt_pow2_mask", "Hacl.Spec.Bignum.Definitions.limb" ]
[]
false
false
false
false
false
let bn_lt_pow2_mask #t #len b x =
Hacl.Spec.Bignum.Comparison.bn_lt_pow2_mask b x
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_is_odd
val bn_is_odd: #t:limb_t -> #len:size_pos -> a:lbignum t len -> limb t
val bn_is_odd: #t:limb_t -> #len:size_pos -> a:lbignum t len -> limb t
let bn_is_odd #t #len b = Hacl.Spec.Bignum.Comparison.bn_is_odd b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 41, "end_line": 213, "start_col": 0, "start_line": 212 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t len -> Hacl.Spec.Bignum.Definitions.limb t
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_pos", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Comparison.bn_is_odd", "Hacl.Spec.Bignum.Definitions.limb" ]
[]
false
false
false
false
false
let bn_is_odd #t #len b =
Hacl.Spec.Bignum.Comparison.bn_is_odd b
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.cswap2_lemma
val cswap2_lemma: #t:limb_t -> #len:size_nat -> bit:limb t{v bit <= 1} -> b1:lbignum t len -> b2:lbignum t len -> Lemma (let (p1, p2) = cswap2 bit b1 b2 in (if v bit = 1 then p1 == b2 /\ p2 == b1 else p1 == b1 /\ p2 == b2))
val cswap2_lemma: #t:limb_t -> #len:size_nat -> bit:limb t{v bit <= 1} -> b1:lbignum t len -> b2:lbignum t len -> Lemma (let (p1, p2) = cswap2 bit b1 b2 in (if v bit = 1 then p1 == b2 /\ p2 == b1 else p1 == b1 /\ p2 == b2))
let cswap2_lemma #t #len bit b1 b2 = Hacl.Spec.Bignum.Lib.cswap2_lemma bit b1 b2
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 45, "end_line": 208, "start_col": 0, "start_line": 207 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "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
bit: Hacl.Spec.Bignum.Definitions.limb t {Lib.IntTypes.v bit <= 1} -> b1: Hacl.Spec.Bignum.Definitions.lbignum t len -> b2: Hacl.Spec.Bignum.Definitions.lbignum t len -> FStar.Pervasives.Lemma (ensures (let _ = Hacl.Spec.Bignum.cswap2 bit b1 b2 in (let FStar.Pervasives.Native.Mktuple2 #...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.limb", "Prims.b2t", "Prims.op_LessThanOrEqual", "Lib.IntTypes.v", "Lib.IntTypes.SEC", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Lib.cswap2_lemma", "Prims.unit" ]
[]
true
false
true
false
false
let cswap2_lemma #t #len bit b1 b2 =
Hacl.Spec.Bignum.Lib.cswap2_lemma bit b1 b2
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_get_ith_bit
val bn_get_ith_bit: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i / bits t < len} -> limb t
val bn_get_ith_bit: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i / bits t < len} -> limb t
let bn_get_ith_bit #t #len input ind = Hacl.Spec.Bignum.Lib.bn_get_ith_bit input ind
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 185, "start_col": 0, "start_line": 184 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Hacl.Spec.Bignum.Definitions.lbignum t len -> i: Lib.IntTypes.size_nat{i / Lib.IntTypes.bits t < len} -> Hacl.Spec.Bignum.Definitions.limb t
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.b2t", "Prims.op_LessThan", "Prims.op_Division", "Lib.IntTypes.bits", "Hacl.Spec.Bignum.Lib.bn_get_ith_bit", "Hacl.Spec.Bignum.Definitions.limb" ]
[]
false
false
false
false
false
let bn_get_ith_bit #t #len input ind =
Hacl.Spec.Bignum.Lib.bn_get_ith_bit input ind
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_gt_pow2_mask
val bn_gt_pow2_mask: #t:limb_t -> #len:size_nat -> b:lbignum t len -> x:size_nat{x < bits t * len} -> limb t
val bn_gt_pow2_mask: #t:limb_t -> #len:size_nat -> b:lbignum t len -> x:size_nat{x < bits t * len} -> limb t
let bn_gt_pow2_mask #t #len b x = Hacl.Spec.Bignum.Comparison.bn_gt_pow2_mask b x
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 49, "end_line": 243, "start_col": 0, "start_line": 242 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Hacl.Spec.Bignum.Definitions.lbignum t len -> x: Lib.IntTypes.size_nat{x < Lib.IntTypes.bits t * len} -> Hacl.Spec.Bignum.Definitions.limb t
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.b2t", "Prims.op_LessThan", "FStar.Mul.op_Star", "Lib.IntTypes.bits", "Hacl.Spec.Bignum.Comparison.bn_gt_pow2_mask", "Hacl.Spec.Bignum.Definitions.limb" ]
[]
false
false
false
false
false
let bn_gt_pow2_mask #t #len b x =
Hacl.Spec.Bignum.Comparison.bn_gt_pow2_mask b x
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_is_odd_lemma
val bn_is_odd_lemma: #t:limb_t -> #len:size_pos -> a:lbignum t len -> Lemma (v (bn_is_odd a) == (bn_v a % 2))
val bn_is_odd_lemma: #t:limb_t -> #len:size_pos -> a:lbignum t len -> Lemma (v (bn_is_odd a) == (bn_v a % 2))
let bn_is_odd_lemma #t #len b = Hacl.Spec.Bignum.Comparison.bn_is_odd_lemma b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 216, "start_col": 0, "start_line": 215 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t len -> FStar.Pervasives.Lemma (ensures Lib.IntTypes.v (Hacl.Spec.Bignum.bn_is_odd a) == Hacl.Spec.Bignum.Definitions.bn_v a % 2)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_pos", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Comparison.bn_is_odd_lemma", "Prims.unit" ]
[]
true
false
true
false
false
let bn_is_odd_lemma #t #len b =
Hacl.Spec.Bignum.Comparison.bn_is_odd_lemma b
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_eq_mask_lemma
val bn_eq_mask_lemma: #t:limb_t -> #len:size_nat -> a:lbignum t len -> b:lbignum t len -> Lemma (mask_values (bn_eq_mask a b) /\ (if v (bn_eq_mask a b) = 0 then bn_v a <> bn_v b else bn_v a = bn_v b))
val bn_eq_mask_lemma: #t:limb_t -> #len:size_nat -> a:lbignum t len -> b:lbignum t len -> Lemma (mask_values (bn_eq_mask a b) /\ (if v (bn_eq_mask a b) = 0 then bn_v a <> bn_v b else bn_v a = bn_v b))
let bn_eq_mask_lemma #t #len a b = Hacl.Spec.Bignum.Comparison.bn_eq_mask_lemma a b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 50, "end_line": 222, "start_col": 0, "start_line": 221 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t len -> b: Hacl.Spec.Bignum.Definitions.lbignum t len -> FStar.Pervasives.Lemma (ensures Hacl.Spec.Bignum.Base.mask_values (Hacl.Spec.Bignum.bn_eq_mask a b) /\ (match Lib.IntTypes.v (Hacl.Spec.Bignum.bn_eq_mask a b) = 0 with | true -> Hacl.Spec.Bignum.D...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Comparison.bn_eq_mask_lemma", "Prims.unit" ]
[]
true
false
true
false
false
let bn_eq_mask_lemma #t #len a b =
Hacl.Spec.Bignum.Comparison.bn_eq_mask_lemma a b
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_set_ith_bit_lemma
val bn_set_ith_bit_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i / bits t < len} -> Lemma (requires bn_v b < pow2 i) (ensures bn_v (bn_set_ith_bit b i) == bn_v b + pow2 i)
val bn_set_ith_bit_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i / bits t < len} -> Lemma (requires bn_v b < pow2 i) (ensures bn_v (bn_set_ith_bit b i) == bn_v b + pow2 i)
let bn_set_ith_bit_lemma #t #len input ind = Hacl.Spec.Bignum.Lib.bn_set_ith_bit_lemma input ind
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 53, "end_line": 200, "start_col": 0, "start_line": 199 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Hacl.Spec.Bignum.Definitions.lbignum t len -> i: Lib.IntTypes.size_nat{i / Lib.IntTypes.bits t < len} -> FStar.Pervasives.Lemma (requires Hacl.Spec.Bignum.Definitions.bn_v b < Prims.pow2 i) (ensures Hacl.Spec.Bignum.Definitions.bn_v (Hacl.Spec.Bignum.bn_set_ith_bit b i) == Hacl.Spec....
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.b2t", "Prims.op_LessThan", "Prims.op_Division", "Lib.IntTypes.bits", "Hacl.Spec.Bignum.Lib.bn_set_ith_bit_lemma", "Prims.unit" ]
[]
true
false
true
false
false
let bn_set_ith_bit_lemma #t #len input ind =
Hacl.Spec.Bignum.Lib.bn_set_ith_bit_lemma input ind
false
LList.ST.fst
LList.ST.peek
val peek (#a:Type0) (#l:G.erased (list a)) (ll:llist a) (_:squash (Cons? l)) : ST a (ll `is_list` l) (fun _ -> ll `is_list` l) (requires True) (ensures fun x -> x == Cons?.hd l)
val peek (#a:Type0) (#l:G.erased (list a)) (ll:llist a) (_:squash (Cons? l)) : ST a (ll `is_list` l) (fun _ -> ll `is_list` l) (requires True) (ensures fun x -> x == Cons?.hd l)
let peek #_ #l ll p = let w = elim l ll p in let node = read ll in intro l w ll p; return node.data
{ "file_name": "share/steel/examples/steel/LList.ST.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 18, "end_line": 126, "start_col": 0, "start_line": 122 }
(* Copyright 2021 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.Reference.fsti.checked", "Steel.ST.Effect.fsti.checked", "Steel.Memory.fsti.checked", "prims.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Tactics.fst.checked", "FStar.Pervasives.fsti.checked...
[ { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.Reference", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST.Util", "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
ll: LList.ST.llist a -> p: Prims.squash (Cons? (FStar.Ghost.reveal l)) -> Steel.ST.Effect.ST a
Steel.ST.Effect.ST
[]
[]
[ "FStar.Ghost.erased", "Prims.list", "LList.ST.llist", "Prims.squash", "Prims.b2t", "Prims.uu___is_Cons", "FStar.Ghost.reveal", "Steel.ST.Util.return", "FStar.Ghost.hide", "FStar.Set.set", "Steel.Memory.iname", "FStar.Set.empty", "LList.ST.is_list", "Steel.Effect.Common.vprop", "LList.ST....
[]
false
true
false
false
false
let peek #_ #l ll p =
let w = elim l ll p in let node = read ll in intro l w ll p; return node.data
false
SteelFramingTestSuite.fst
SteelFramingTestSuite.test8
val test8 (b1 b2 b3: ref) : SteelT unit (((ptr b1) `star` (ptr b2)) `star` (ptr b3)) (fun _ -> ((ptr b2) `star` (ptr b1)) `star` (ptr b3))
val test8 (b1 b2 b3: ref) : SteelT unit (((ptr b1) `star` (ptr b2)) `star` (ptr b3)) (fun _ -> ((ptr b2) `star` (ptr b1)) `star` (ptr b3))
let test8 (b1 b2 b3:ref) : SteelT unit (ptr b1 `star` ptr b2 `star` ptr b3) (fun _ -> ptr b2 `star` ptr b1 `star` ptr b3) = write b2 0
{ "file_name": "share/steel/tests/SteelFramingTestSuite.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 14, "end_line": 108, "start_col": 0, "start_line": 105 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.Memory.fsti.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SteelFramingTestSuite.fst" }
[ { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_module": "Steel.Memory", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "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
b1: SteelFramingTestSuite.ref -> b2: SteelFramingTestSuite.ref -> b3: SteelFramingTestSuite.ref -> Steel.Effect.SteelT Prims.unit
Steel.Effect.SteelT
[]
[]
[ "SteelFramingTestSuite.ref", "SteelFramingTestSuite.write", "Prims.unit", "Steel.Effect.Common.star", "SteelFramingTestSuite.ptr", "Steel.Effect.Common.vprop" ]
[]
false
true
false
false
false
let test8 (b1 b2 b3: ref) : SteelT unit (((ptr b1) `star` (ptr b2)) `star` (ptr b3)) (fun _ -> ((ptr b2) `star` (ptr b1)) `star` (ptr b3)) =
write b2 0
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_is_zero_mask_lemma
val bn_is_zero_mask_lemma: #t:limb_t -> #len:size_nat -> a:lbignum t len -> Lemma (mask_values (bn_is_zero_mask a) /\ (if v (bn_is_zero_mask a) = 0 then bn_v a <> 0 else bn_v a = 0))
val bn_is_zero_mask_lemma: #t:limb_t -> #len:size_nat -> a:lbignum t len -> Lemma (mask_values (bn_is_zero_mask a) /\ (if v (bn_is_zero_mask a) = 0 then bn_v a <> 0 else bn_v a = 0))
let bn_is_zero_mask_lemma #t #len b = Hacl.Spec.Bignum.Comparison.bn_is_zero_mask_lemma b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 53, "end_line": 228, "start_col": 0, "start_line": 227 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t len -> FStar.Pervasives.Lemma (ensures Hacl.Spec.Bignum.Base.mask_values (Hacl.Spec.Bignum.bn_is_zero_mask a) /\ (match Lib.IntTypes.v (Hacl.Spec.Bignum.bn_is_zero_mask a) = 0 with | true -> Hacl.Spec.Bignum.Definitions.bn_v a <> 0 | _ -> Hacl....
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Comparison.bn_is_zero_mask_lemma", "Prims.unit" ]
[]
true
false
true
false
false
let bn_is_zero_mask_lemma #t #len b =
Hacl.Spec.Bignum.Comparison.bn_is_zero_mask_lemma b
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_get_bits_lemma
val bn_get_bits_lemma: #t:limb_t -> #nLen:size_nat -> n:lbignum t nLen -> i:size_nat -> l:size_nat{l < bits t /\ i / bits t < nLen} -> Lemma (v (bn_get_bits n i l) == (bn_v n / pow2 i) % pow2 l)
val bn_get_bits_lemma: #t:limb_t -> #nLen:size_nat -> n:lbignum t nLen -> i:size_nat -> l:size_nat{l < bits t /\ i / bits t < nLen} -> Lemma (v (bn_get_bits n i l) == (bn_v n / pow2 i) % pow2 l)
let bn_get_bits_lemma #t #nLen n i l = Hacl.Spec.Bignum.Lib.bn_get_bits_lemma #t #nLen n i l
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 55, "end_line": 194, "start_col": 0, "start_line": 193 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.Spec.Bignum.Definitions.lbignum t nLen -> i: Lib.IntTypes.size_nat -> l: Lib.IntTypes.size_nat{l < Lib.IntTypes.bits t /\ i / Lib.IntTypes.bits t < nLen} -> FStar.Pervasives.Lemma (ensures Lib.IntTypes.v (Hacl.Spec.Bignum.bn_get_bits n i l) == Hacl.Spec.Bignum.Definitions.bn_v n /...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.l_and", "Prims.b2t", "Prims.op_LessThan", "Lib.IntTypes.bits", "Prims.op_Division", "Hacl.Spec.Bignum.Lib.bn_get_bits_lemma", "Prims.unit" ]
[]
true
false
true
false
false
let bn_get_bits_lemma #t #nLen n i l =
Hacl.Spec.Bignum.Lib.bn_get_bits_lemma #t #nLen n i l
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_set_ith_bit
val bn_set_ith_bit: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i / bits t < len} -> lbignum t len
val bn_set_ith_bit: #t:limb_t -> #len:size_nat -> b:lbignum t len -> i:size_nat{i / bits t < len} -> lbignum t len
let bn_set_ith_bit #t #len input ind = Hacl.Spec.Bignum.Lib.bn_set_ith_bit input ind
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 197, "start_col": 0, "start_line": 196 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Hacl.Spec.Bignum.Definitions.lbignum t len -> i: Lib.IntTypes.size_nat{i / Lib.IntTypes.bits t < len} -> Hacl.Spec.Bignum.Definitions.lbignum t len
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.b2t", "Prims.op_LessThan", "Prims.op_Division", "Lib.IntTypes.bits", "Hacl.Spec.Bignum.Lib.bn_set_ith_bit" ]
[]
false
false
false
false
false
let bn_set_ith_bit #t #len input ind =
Hacl.Spec.Bignum.Lib.bn_set_ith_bit input ind
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_lt_mask_lemma
val bn_lt_mask_lemma: #t:limb_t -> #len:size_nat -> a:lbignum t len -> b:lbignum t len -> Lemma (mask_values (bn_lt_mask a b) /\ (if v (bn_lt_mask a b) = 0 then bn_v a >= bn_v b else bn_v a < bn_v b))
val bn_lt_mask_lemma: #t:limb_t -> #len:size_nat -> a:lbignum t len -> b:lbignum t len -> Lemma (mask_values (bn_lt_mask a b) /\ (if v (bn_lt_mask a b) = 0 then bn_v a >= bn_v b else bn_v a < bn_v b))
let bn_lt_mask_lemma #t #len a b = Hacl.Spec.Bignum.Comparison.bn_lt_mask_lemma a b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 50, "end_line": 234, "start_col": 0, "start_line": 233 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t len -> b: Hacl.Spec.Bignum.Definitions.lbignum t len -> FStar.Pervasives.Lemma (ensures Hacl.Spec.Bignum.Base.mask_values (Hacl.Spec.Bignum.bn_lt_mask a b) /\ (match Lib.IntTypes.v (Hacl.Spec.Bignum.bn_lt_mask a b) = 0 with | true -> Hacl.Spec.Bignum.D...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Comparison.bn_lt_mask_lemma", "Prims.unit" ]
[]
true
false
true
false
false
let bn_lt_mask_lemma #t #len a b =
Hacl.Spec.Bignum.Comparison.bn_lt_mask_lemma a b
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_lt_pow2_mask_lemma
val bn_lt_pow2_mask_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> x:size_nat{x < bits t * len} -> Lemma (mask_values (bn_lt_pow2_mask b x) /\ (if v (bn_lt_pow2_mask b x) = 0 then bn_v b >= pow2 x else bn_v b < pow2 x))
val bn_lt_pow2_mask_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> x:size_nat{x < bits t * len} -> Lemma (mask_values (bn_lt_pow2_mask b x) /\ (if v (bn_lt_pow2_mask b x) = 0 then bn_v b >= pow2 x else bn_v b < pow2 x))
let bn_lt_pow2_mask_lemma #t #len b x = Hacl.Spec.Bignum.Comparison.bn_lt_pow2_mask_lemma b x
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 55, "end_line": 240, "start_col": 0, "start_line": 239 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Hacl.Spec.Bignum.Definitions.lbignum t len -> x: Lib.IntTypes.size_nat{x < Lib.IntTypes.bits t * len} -> FStar.Pervasives.Lemma (ensures Hacl.Spec.Bignum.Base.mask_values (Hacl.Spec.Bignum.bn_lt_pow2_mask b x) /\ (match Lib.IntTypes.v (Hacl.Spec.Bignum.bn_lt_pow2_mask b x) = 0 with ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.b2t", "Prims.op_LessThan", "FStar.Mul.op_Star", "Lib.IntTypes.bits", "Hacl.Spec.Bignum.Comparison.bn_lt_pow2_mask_lemma", "Prims.unit" ]
[]
true
false
true
false
false
let bn_lt_pow2_mask_lemma #t #len b x =
Hacl.Spec.Bignum.Comparison.bn_lt_pow2_mask_lemma b x
false
Bane.Test.fst
Bane.Test.test
val test : Prims.unit
let test = assert for_you by Bane.Lib.mytac ()
{ "file_name": "examples/tactics/Bane.Test.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 38, "end_line": 21, "start_col": 0, "start_line": 20 }
(* 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.V2.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Pervasives.fsti.checked", "Bane.Lib.fst.checked" ], "interface_file": false, "source_file": "Bane.Test.fst" }
[ { "abbrev": false, "full_module": "Bane.Lib", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "Bane", "short_module": null }, { "abbrev": false, "full_module": "Bane", ...
{ "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
Prims.unit
Prims.Tot
[ "total" ]
[]
[ "FStar.Tactics.Effect.assert_by_tactic", "Bane.Lib.for_you", "Prims.unit", "Bane.Lib.mytac" ]
[]
false
false
false
true
false
let test =
FStar.Tactics.Effect.assert_by_tactic for_you (fun _ -> (); Bane.Lib.mytac ())
false
LList.Invariant.fsti
LList.Invariant.t
val t : a: Type0 -> Type0
let t (a:Type0) = ref (cell a)
{ "file_name": "share/steel/examples/steel/LList.Invariant.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 30, "end_line": 26, "start_col": 0, "start_line": 26 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.Reference.fsti.checked", "Steel.Memory.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Steel.Reference", "short_module": null }, { "abbrev": false, "full_module": "Steel.FractionalPermission", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type0 -> Type0
Prims.Tot
[ "total" ]
[]
[ "Steel.Reference.ref", "LList.Invariant.cell" ]
[]
false
false
false
true
true
let t (a: Type0) =
ref (cell a)
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_gt_pow2_mask_lemma
val bn_gt_pow2_mask_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> x:size_nat{x < bits t * len} -> Lemma (mask_values (bn_gt_pow2_mask b x) /\ (if v (bn_gt_pow2_mask b x) = 0 then pow2 x >= bn_v b else pow2 x < bn_v b))
val bn_gt_pow2_mask_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> x:size_nat{x < bits t * len} -> Lemma (mask_values (bn_gt_pow2_mask b x) /\ (if v (bn_gt_pow2_mask b x) = 0 then pow2 x >= bn_v b else pow2 x < bn_v b))
let bn_gt_pow2_mask_lemma #t #len b x = Hacl.Spec.Bignum.Comparison.bn_gt_pow2_mask_lemma b x
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 55, "end_line": 246, "start_col": 0, "start_line": 245 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Hacl.Spec.Bignum.Definitions.lbignum t len -> x: Lib.IntTypes.size_nat{x < Lib.IntTypes.bits t * len} -> FStar.Pervasives.Lemma (ensures Hacl.Spec.Bignum.Base.mask_values (Hacl.Spec.Bignum.bn_gt_pow2_mask b x) /\ (match Lib.IntTypes.v (Hacl.Spec.Bignum.bn_gt_pow2_mask b x) = 0 with ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.b2t", "Prims.op_LessThan", "FStar.Mul.op_Star", "Lib.IntTypes.bits", "Hacl.Spec.Bignum.Comparison.bn_gt_pow2_mask_lemma", "Prims.unit" ]
[]
true
false
true
false
false
let bn_gt_pow2_mask_lemma #t #len b x =
Hacl.Spec.Bignum.Comparison.bn_gt_pow2_mask_lemma b x
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_from_uint
val bn_from_uint: #t:limb_t -> len:size_pos -> x:limb t -> lbignum t len
val bn_from_uint: #t:limb_t -> len:size_pos -> x:limb t -> lbignum t len
let bn_from_uint #t len x = Hacl.Spec.Bignum.Convert.bn_from_uint len x
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 45, "end_line": 251, "start_col": 0, "start_line": 250 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "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_pos -> x: Hacl.Spec.Bignum.Definitions.limb t -> Hacl.Spec.Bignum.Definitions.lbignum t len
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_pos", "Hacl.Spec.Bignum.Definitions.limb", "Hacl.Spec.Bignum.Convert.bn_from_uint", "Hacl.Spec.Bignum.Definitions.lbignum" ]
[]
false
false
false
false
false
let bn_from_uint #t len x =
Hacl.Spec.Bignum.Convert.bn_from_uint len x
false
Vale.Transformers.PrefetchElim.fst
Vale.Transformers.PrefetchElim.prefetch_elim_ph
val prefetch_elim_ph : Vale.Transformers.PeepHole.pre_peephole
let prefetch_elim_ph = { ph = (function | [Instr i oprs (AnnotatePrefetchnta ())] -> Some [] | _ -> None); input_hint = 1; }
{ "file_name": "vale/code/lib/transformers/Vale.Transformers.PrefetchElim.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 1, "end_line": 20, "start_col": 0, "start_line": 14 }
module Vale.Transformers.PrefetchElim open Vale.X64.Bytes_Code_s open Vale.X64.Instruction_s open Vale.X64.Instructions_s open Vale.X64.Machine_Semantics_s open Vale.X64.Machine_s open Vale.X64.Print_s open Vale.Transformers.InstructionReorder open Vale.X64.InsLemmas open Vale.Transformers.PeepHole
{ "checked_file": "/", "dependencies": [ "Vale.X64.Print_s.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instructions_s.fsti.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.InsLemmas.fsti.checked", "Vale.X64.Bytes_Code_s....
[ { "abbrev": false, "full_module": "Vale.Transformers.PeepHole", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.InsLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.Transformers.InstructionReorder", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Vale.Transformers.PeepHole.pre_peephole
Prims.Tot
[ "total" ]
[]
[ "Vale.Transformers.PeepHole.Mkpre_peephole", "Prims.list", "Vale.X64.Machine_Semantics_s.ins", "Vale.X64.Instruction_s.instr_t_record", "Vale.X64.Instruction_s.instr_operands_t", "Vale.X64.Instruction_s.__proj__InstrTypeRecord__item__outs", "Vale.X64.Instruction_s.__proj__InstrTypeRecord__item__args", ...
[]
false
false
false
true
false
let prefetch_elim_ph =
{ ph = (function | [Instr i oprs (AnnotatePrefetchnta ())] -> Some [] | _ -> None); input_hint = 1 }
false
Steel.ST.HigherArray.fst
Steel.ST.HigherArray.upd_ptr
val upd_ptr (#t: Type) (a: ptr t) (#len: Ghost.erased nat { offset a + len <= base_len (base a) }) (#s: Ghost.erased (Seq.seq t)) (i: US.t { US.v i < Seq.length s }) (v: t) : STT unit (pts_to (| a, len |) P.full_perm s) (fun res -> pts_to (| a, len |) P.full_perm (Seq.upd s (US.v i) v))
val upd_ptr (#t: Type) (a: ptr t) (#len: Ghost.erased nat { offset a + len <= base_len (base a) }) (#s: Ghost.erased (Seq.seq t)) (i: US.t { US.v i < Seq.length s }) (v: t) : STT unit (pts_to (| a, len |) P.full_perm s) (fun res -> pts_to (| a, len |) P.full_perm (Seq.upd s (US.v i) v))
let upd_ptr a i v = upd0 _ i v; rewrite (pts_to _ _ _) (pts_to _ _ _)
{ "file_name": "lib/steel/Steel.ST.HigherArray.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 18, "end_line": 487, "start_col": 0, "start_line": 483 }
(* Copyright 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.ST.PCMReference.fsti.checked", "Steel.ST.Loops.fsti.checked", "Steel.PCMMap.fst.checked", "Steel.PCMFrac.fst.checked", "Steel.Memory.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Rea...
[ { "abbrev": true, "full_module": "Steel.PCMMap", "short_module": "PM" }, { "abbrev": true, "full_module": "FStar.Map", "short_module": "M" }, { "abbrev": true, "full_module": "Steel.ST.PCMReference", "short_module": "R" }, { "abbrev": true, "full_module": "Ste...
{ "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: Steel.ST.HigherArray.ptr t -> i: FStar.SizeT.t{FStar.SizeT.v i < FStar.Seq.Base.length (FStar.Ghost.reveal s)} -> v: t -> Steel.ST.Effect.STT Prims.unit
Steel.ST.Effect.STT
[]
[]
[ "Steel.ST.HigherArray.ptr", "FStar.Ghost.erased", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "Steel.ST.HigherArray.offset", "FStar.Ghost.reveal", "Steel.ST.HigherArray.base_len", "Steel.ST.HigherArray.base", "FStar.Seq.Base.seq", "FStar.SizeT.t", "Prims.op_Les...
[]
false
true
false
false
false
let upd_ptr a i v =
upd0 _ i v; rewrite (pts_to _ _ _) (pts_to _ _ _)
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_from_uint_lemma
val bn_from_uint_lemma: #t:limb_t -> len:size_pos -> x:limb t -> Lemma (bn_v (bn_from_uint len x) == uint_v x)
val bn_from_uint_lemma: #t:limb_t -> len:size_pos -> x:limb t -> Lemma (bn_v (bn_from_uint len x) == uint_v x)
let bn_from_uint_lemma #t len x = Hacl.Spec.Bignum.Convert.bn_from_uint_lemma len x
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 51, "end_line": 254, "start_col": 0, "start_line": 253 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "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_pos -> x: Hacl.Spec.Bignum.Definitions.limb t -> FStar.Pervasives.Lemma (ensures Hacl.Spec.Bignum.Definitions.bn_v (Hacl.Spec.Bignum.bn_from_uint len x) == Lib.IntTypes.uint_v x)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_pos", "Hacl.Spec.Bignum.Definitions.limb", "Hacl.Spec.Bignum.Convert.bn_from_uint_lemma", "Prims.unit" ]
[]
true
false
true
false
false
let bn_from_uint_lemma #t len x =
Hacl.Spec.Bignum.Convert.bn_from_uint_lemma len x
false
Selectors.LList2.fst
Selectors.LList2.intro_llist_cons
val intro_llist_cons (#a:Type0) (ptr1 ptr2:t a) : Steel unit (vptr ptr1 `star` llist ptr2) (fun _ -> llist ptr1) (requires fun h -> next (sel ptr1 h) == ptr2) (ensures fun h0 _ h1 -> v_llist ptr1 h1 == (data (sel ptr1 h0)) :: v_llist ptr2 h0)
val intro_llist_cons (#a:Type0) (ptr1 ptr2:t a) : Steel unit (vptr ptr1 `star` llist ptr2) (fun _ -> llist ptr1) (requires fun h -> next (sel ptr1 h) == ptr2) (ensures fun h0 _ h1 -> v_llist ptr1 h1 == (data (sel ptr1 h0)) :: v_llist ptr2 h0)
let intro_llist_cons #a ptr1 ptr2 = llist0_of_llist ptr2; let n = nllist_of_llist0 ptr2 in (* set the fuel of the new cons cell *) let c = read ptr1 in let c' = {c with tail_fuel = n} in write ptr1 c' ; (* actually cons the cell *) vptr_not_null ptr1; intro_vdep (vptr ptr1) (nllist a n ptr2)...
{ "file_name": "share/steel/examples/steel/Selectors.LList2.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 22, "end_line": 293, "start_col": 0, "start_line": 272 }
module Selectors.LList2 open Steel.FractionalPermission module Mem = Steel.Memory #push-options "--__no_positivity" noeq type cell (a: Type0) = { tail_fuel: Ghost.erased nat; next: ref (cell a); data: a; } #pop-options let next #a (c:cell a) : t a = c.next let data #a (c:cell a) : a = c.data let mk_cell #a (n:...
{ "checked_file": "/", "dependencies": [ "Steel.Memory.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked" ], "interface_file": true, "source_file": "Selectors.LList2.fst" }
[ { "abbrev": true, "full_module": "Steel.Memory", "short_module": "Mem" }, { "abbrev": false, "full_module": "Steel.FractionalPermission", "short_module": null }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full...
{ "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
ptr1: Selectors.LList2.t a -> ptr2: Selectors.LList2.t a -> Steel.Effect.Steel Prims.unit
Steel.Effect.Steel
[]
[]
[ "Selectors.LList2.t", "Selectors.LList2.llist_of_llist0", "FStar.Ghost.hide", "FStar.Set.set", "Steel.Memory.iname", "FStar.Set.empty", "Prims.unit", "Steel.Effect.Atomic.change_equal_slprop", "Steel.Effect.Common.vrewrite", "Steel.Effect.Common.vdep", "Steel.Reference.vptr", "Selectors.LList2...
[]
false
true
false
false
false
let intro_llist_cons #a ptr1 ptr2 =
llist0_of_llist ptr2; let n = nllist_of_llist0 ptr2 in let c = read ptr1 in let c' = { c with tail_fuel = n } in write ptr1 c'; vptr_not_null ptr1; intro_vdep (vptr ptr1) (nllist a n ptr2) (llist_vdep ptr1); intro_vrewrite ((vptr ptr1) `vdep` (llist_vdep ptr1)) (llist_vrewrite ptr1); change_equal_slprop (((vptr ptr1) `...
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_from_bytes_be_lemma
val bn_from_bytes_be_lemma: #t:limb_t -> len:size_pos{numbytes t * (blocks len (numbytes t)) <= max_size_t} -> b:lseq uint8 len -> Lemma (bn_v (bn_from_bytes_be #t len b) == BSeq.nat_from_bytes_be b)
val bn_from_bytes_be_lemma: #t:limb_t -> len:size_pos{numbytes t * (blocks len (numbytes t)) <= max_size_t} -> b:lseq uint8 len -> Lemma (bn_v (bn_from_bytes_be #t len b) == BSeq.nat_from_bytes_be b)
let bn_from_bytes_be_lemma #t len b = Hacl.Spec.Bignum.Convert.bn_from_bytes_be_lemma #t len b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 58, "end_line": 260, "start_col": 0, "start_line": 259 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "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_pos { Lib.IntTypes.numbytes t * Hacl.Spec.Bignum.Definitions.blocks len (Lib.IntTypes.numbytes t) <= Lib.IntTypes.max_size_t } -> b: Lib.Sequence.lseq Lib.IntTypes.uint8 len -> FStar.Pervasives.Lemma (ensures Hacl.Spec.Bignum.Definitions.bn_v...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_pos", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.numbytes", "Hacl.Spec.Bignum.Definitions.blocks", "Lib.IntTypes.max_size_t", "Lib.Sequence.lseq", "Lib.IntTypes.uint8", "Hacl.Spec.Bignum.Convert.bn_from_by...
[]
true
false
true
false
false
let bn_from_bytes_be_lemma #t len b =
Hacl.Spec.Bignum.Convert.bn_from_bytes_be_lemma #t len b
false
LowParse.SLow.Enum.fst
LowParse.SLow.Enum.parse32_maybe_enum_key
val parse32_maybe_enum_key (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (p32: parser32 p) (e: enum key repr) (f: maybe_enum_key_of_repr'_t e) : Tot (parser32 (parse_maybe_enum_key p e))
val parse32_maybe_enum_key (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (p32: parser32 p) (e: enum key repr) (f: maybe_enum_key_of_repr'_t e) : Tot (parser32 (parse_maybe_enum_key p e))
let parse32_maybe_enum_key (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (p32: parser32 p) (e: enum key repr) (f: maybe_enum_key_of_repr'_t e) : Tot (parser32 (parse_maybe_enum_key p e)) = parse32_maybe_enum_key_gen p32 e _ _ (parse_maybe_enum_key p e) () () () f
{ "file_name": "src/lowparse/LowParse.SLow.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 76, "end_line": 36, "start_col": 0, "start_line": 28 }
module LowParse.SLow.Enum include LowParse.Spec.Enum include LowParse.SLow.Combinators module L = FStar.List.Tot module U32 = FStar.UInt32 (* Parser for enums *) inline_for_extraction let parse32_maybe_enum_key_gen (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (p32: parser32 p) (e: enum key re...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "LowParse.SLow.Combinators.fst.checked", "LowParse.Bytes32.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.To...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.SLow.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "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
p32: LowParse.SLow.Base.parser32 p -> e: LowParse.Spec.Enum.enum key repr -> f: LowParse.Spec.Enum.maybe_enum_key_of_repr'_t e -> LowParse.SLow.Base.parser32 (LowParse.Spec.Enum.parse_maybe_enum_key p e)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "Prims.eqtype", "LowParse.Spec.Base.parser", "LowParse.SLow.Base.parser32", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.maybe_enum_key_of_repr'_t", "LowParse.SLow.Enum.parse32_maybe_enum_key_gen", "LowParse.Spec.Enum.maybe_enum_key", "LowParse.Spec.Enum.parse_may...
[]
false
false
false
false
false
let parse32_maybe_enum_key (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (p32: parser32 p) (e: enum key repr) (f: maybe_enum_key_of_repr'_t e) : Tot (parser32 (parse_maybe_enum_key p e)) =
parse32_maybe_enum_key_gen p32 e _ _ (parse_maybe_enum_key p e) () () () f
false
Pulse.Lib.PCM.Array.fst
Pulse.Lib.PCM.Array.index_t
val index_t (len: Ghost.erased nat) : Type0
val index_t (len: Ghost.erased nat) : Type0
let index_t (len: Ghost.erased nat) : Type0 = i: nat { i < len }
{ "file_name": "share/steel/examples/pulse/lib/Pulse.Lib.PCM.Array.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 20, "end_line": 10, "start_col": 0, "start_line": 8 }
module Pulse.Lib.PCM.Array module P = Pulse.Lib.PCM.Fraction module M = FStar.Map module PM = Pulse.Lib.PCM.Map module Seq = FStar.Seq open PulseCore.FractionalPermission
{ "checked_file": "/", "dependencies": [ "PulseCore.FractionalPermission.fst.checked", "Pulse.Lib.PCM.Map.fst.checked", "Pulse.Lib.PCM.Fraction.fst.checked", "prims.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.P...
[ { "abbrev": false, "full_module": "PulseCore.FractionalPermission", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Pulse.Lib.PCM.Map", "short_module": "PM" }, { "abbrev": true, "...
{ "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
len: FStar.Ghost.erased Prims.nat -> Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.Ghost.erased", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "FStar.Ghost.reveal" ]
[]
false
false
false
true
true
let index_t (len: Ghost.erased nat) : Type0 =
i: nat{i < len}
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_to_bytes_be
val bn_to_bytes_be: #t:limb_t -> len:size_pos{numbytes t * (blocks len (numbytes t)) <= max_size_t} -> b:lbignum t (blocks len (numbytes t)) -> lseq uint8 len
val bn_to_bytes_be: #t:limb_t -> len:size_pos{numbytes t * (blocks len (numbytes t)) <= max_size_t} -> b:lbignum t (blocks len (numbytes t)) -> lseq uint8 len
let bn_to_bytes_be #t len b = Hacl.Spec.Bignum.Convert.bn_to_bytes_be len b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 269, "start_col": 0, "start_line": 268 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "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_pos { Lib.IntTypes.numbytes t * Hacl.Spec.Bignum.Definitions.blocks len (Lib.IntTypes.numbytes t) <= Lib.IntTypes.max_size_t } -> b: Hacl.Spec.Bignum.Definitions.lbignum t (Hacl.Spec.Bignum.Definitions.blocks len (Lib.IntTypes.numbytes t)) ...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_pos", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.numbytes", "Hacl.Spec.Bignum.Definitions.blocks", "Lib.IntTypes.max_size_t", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Convert.bn_to_bytes_be"...
[]
false
false
false
false
false
let bn_to_bytes_be #t len b =
Hacl.Spec.Bignum.Convert.bn_to_bytes_be len b
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_from_bytes_be
val bn_from_bytes_be: #t:limb_t -> len:size_pos{numbytes t * (blocks len (numbytes t)) <= max_size_t} -> b:lseq uint8 len -> lbignum t (blocks len (numbytes t))
val bn_from_bytes_be: #t:limb_t -> len:size_pos{numbytes t * (blocks len (numbytes t)) <= max_size_t} -> b:lseq uint8 len -> lbignum t (blocks len (numbytes t))
let bn_from_bytes_be #t len b = Hacl.Spec.Bignum.Convert.bn_from_bytes_be len b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 49, "end_line": 257, "start_col": 0, "start_line": 256 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "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_pos { Lib.IntTypes.numbytes t * Hacl.Spec.Bignum.Definitions.blocks len (Lib.IntTypes.numbytes t) <= Lib.IntTypes.max_size_t } -> b: Lib.Sequence.lseq Lib.IntTypes.uint8 len -> Hacl.Spec.Bignum.Definitions.lbignum t (Hacl.Spec.Bignum.Definitions....
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_pos", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.numbytes", "Hacl.Spec.Bignum.Definitions.blocks", "Lib.IntTypes.max_size_t", "Lib.Sequence.lseq", "Lib.IntTypes.uint8", "Hacl.Spec.Bignum.Convert.bn_from_by...
[]
false
false
false
false
false
let bn_from_bytes_be #t len b =
Hacl.Spec.Bignum.Convert.bn_from_bytes_be len b
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_from_bytes_le_lemma
val bn_from_bytes_le_lemma: #t:limb_t -> len:size_pos{numbytes t * (blocks len (numbytes t)) <= max_size_t} -> b:lseq uint8 len -> Lemma (bn_v (bn_from_bytes_le #t len b) == BSeq.nat_from_bytes_le b)
val bn_from_bytes_le_lemma: #t:limb_t -> len:size_pos{numbytes t * (blocks len (numbytes t)) <= max_size_t} -> b:lseq uint8 len -> Lemma (bn_v (bn_from_bytes_le #t len b) == BSeq.nat_from_bytes_le b)
let bn_from_bytes_le_lemma #t len b = Hacl.Spec.Bignum.Convert.bn_from_bytes_le_lemma #t len b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 58, "end_line": 266, "start_col": 0, "start_line": 265 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "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_pos { Lib.IntTypes.numbytes t * Hacl.Spec.Bignum.Definitions.blocks len (Lib.IntTypes.numbytes t) <= Lib.IntTypes.max_size_t } -> b: Lib.Sequence.lseq Lib.IntTypes.uint8 len -> FStar.Pervasives.Lemma (ensures Hacl.Spec.Bignum.Definitions.bn_v...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_pos", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.numbytes", "Hacl.Spec.Bignum.Definitions.blocks", "Lib.IntTypes.max_size_t", "Lib.Sequence.lseq", "Lib.IntTypes.uint8", "Hacl.Spec.Bignum.Convert.bn_from_by...
[]
true
false
true
false
false
let bn_from_bytes_le_lemma #t len b =
Hacl.Spec.Bignum.Convert.bn_from_bytes_le_lemma #t len b
false
LowParse.SLow.Enum.fst
LowParse.SLow.Enum.parse32_enum_key
val parse32_enum_key (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (p32: parser32 p) (e: enum key repr) (f: maybe_enum_key_of_repr'_t e) : Tot (parser32 (parse_enum_key p e))
val parse32_enum_key (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (p32: parser32 p) (e: enum key repr) (f: maybe_enum_key_of_repr'_t e) : Tot (parser32 (parse_enum_key p e))
let parse32_enum_key (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (p32: parser32 p) (e: enum key repr) (f: maybe_enum_key_of_repr'_t e) : Tot (parser32 (parse_enum_key p e)) = parse32_enum_key_gen p e _ _ (parse_enum_key p e) () () () (parse32_maybe_enum_key p32 e f)
{ "file_name": "src/lowparse/LowParse.SLow.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 93, "end_line": 78, "start_col": 0, "start_line": 70 }
module LowParse.SLow.Enum include LowParse.Spec.Enum include LowParse.SLow.Combinators module L = FStar.List.Tot module U32 = FStar.UInt32 (* Parser for enums *) inline_for_extraction let parse32_maybe_enum_key_gen (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (p32: parser32 p) (e: enum key re...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "LowParse.SLow.Combinators.fst.checked", "LowParse.Bytes32.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.To...
[ { "abbrev": true, "full_module": "LowParse.Bytes32", "short_module": "B32" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "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
p32: LowParse.SLow.Base.parser32 p -> e: LowParse.Spec.Enum.enum key repr -> f: LowParse.Spec.Enum.maybe_enum_key_of_repr'_t e -> LowParse.SLow.Base.parser32 (LowParse.Spec.Enum.parse_enum_key p e)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "Prims.eqtype", "LowParse.Spec.Base.parser", "LowParse.SLow.Base.parser32", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.maybe_enum_key_of_repr'_t", "LowParse.SLow.Enum.parse32_enum_key_gen", "LowParse.Spec.Combinators.parse_filter_kind", "LowParse.Spec.Enum.enum_...
[]
false
false
false
false
false
let parse32_enum_key (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (p32: parser32 p) (e: enum key repr) (f: maybe_enum_key_of_repr'_t e) : Tot (parser32 (parse_enum_key p e)) =
parse32_enum_key_gen p e _ _ (parse_enum_key p e) () () () (parse32_maybe_enum_key p32 e f)
false
LowParse.SLow.Enum.fst
LowParse.SLow.Enum.serialize32_enum_key
val serialize32_enum_key (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (#s: serializer p) (s32: serializer32 s) (e: enum key repr) (f: enum_repr_of_key'_t e) : Tot (serializer32 (serialize_enum_key p s e))
val serialize32_enum_key (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (#s: serializer p) (s32: serializer32 s) (e: enum key repr) (f: enum_repr_of_key'_t e) : Tot (serializer32 (serialize_enum_key p s e))
let serialize32_enum_key (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (#s: serializer p) (s32: serializer32 s) (e: enum key repr) (f: enum_repr_of_key'_t e) : Tot (serializer32 (serialize_enum_key p s e)) = serialize32_enum_key_gen s32 e _ _ _ (serialize_enum_key p s e) () () () () f
{ "file_name": "src/lowparse/LowParse.SLow.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 79, "end_line": 113, "start_col": 0, "start_line": 104 }
module LowParse.SLow.Enum include LowParse.Spec.Enum include LowParse.SLow.Combinators module L = FStar.List.Tot module U32 = FStar.UInt32 (* Parser for enums *) inline_for_extraction let parse32_maybe_enum_key_gen (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (p32: parser32 p) (e: enum key re...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "LowParse.SLow.Combinators.fst.checked", "LowParse.Bytes32.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.To...
[ { "abbrev": true, "full_module": "LowParse.Bytes32", "short_module": "B32" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "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
s32: LowParse.SLow.Base.serializer32 s -> e: LowParse.Spec.Enum.enum key repr -> f: LowParse.Spec.Enum.enum_repr_of_key'_t e -> LowParse.SLow.Base.serializer32 (LowParse.Spec.Enum.serialize_enum_key p s e)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "Prims.eqtype", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.SLow.Base.serializer32", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.enum_repr_of_key'_t", "LowParse.SLow.Enum.serialize32_enum_key_gen", "LowParse.Spec.Combinators.parse_filt...
[]
false
false
false
false
false
let serialize32_enum_key (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (#s: serializer p) (s32: serializer32 s) (e: enum key repr) (f: enum_repr_of_key'_t e) : Tot (serializer32 (serialize_enum_key p s e)) =
serialize32_enum_key_gen s32 e _ _ _ (serialize_enum_key p s e) () () () () f
false
Pulse.Lib.PCM.Array.fst
Pulse.Lib.PCM.Array.one
val one : Pulse.Lib.PCM.Array.carrier elt len
let one (#elt: Type) (#len: Ghost.erased nat) = (pcm elt len).p.one
{ "file_name": "share/steel/examples/pulse/lib/Pulse.Lib.PCM.Array.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 67, "end_line": 20, "start_col": 0, "start_line": 20 }
module Pulse.Lib.PCM.Array module P = Pulse.Lib.PCM.Fraction module M = FStar.Map module PM = Pulse.Lib.PCM.Map module Seq = FStar.Seq open PulseCore.FractionalPermission let index_t (len: Ghost.erased nat) : Type0 = i: nat { i < len } let carrier (elt: Type u#a) (len: Ghost.erased nat) : Type u#a = PM.map (index_t l...
{ "checked_file": "/", "dependencies": [ "PulseCore.FractionalPermission.fst.checked", "Pulse.Lib.PCM.Map.fst.checked", "Pulse.Lib.PCM.Fraction.fst.checked", "prims.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.P...
[ { "abbrev": false, "full_module": "PulseCore.FractionalPermission", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Pulse.Lib.PCM.Map", "short_module": "PM" }, { "abbrev": true, "...
{ "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
Pulse.Lib.PCM.Array.carrier elt len
Prims.Tot
[ "total" ]
[]
[ "FStar.Ghost.erased", "Prims.nat", "FStar.PCM.__proj__Mkpcm'__item__one", "Pulse.Lib.PCM.Array.carrier", "FStar.PCM.__proj__Mkpcm__item__p", "Pulse.Lib.PCM.Array.pcm" ]
[]
false
false
false
false
false
let one (#elt: Type) (#len: Ghost.erased nat) =
(pcm elt len).p.one
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_to_bytes_le
val bn_to_bytes_le: #t:limb_t -> len:size_pos{numbytes t * (blocks len (numbytes t)) <= max_size_t} -> b:lbignum t (blocks len (numbytes t)) -> lseq uint8 len
val bn_to_bytes_le: #t:limb_t -> len:size_pos{numbytes t * (blocks len (numbytes t)) <= max_size_t} -> b:lbignum t (blocks len (numbytes t)) -> lseq uint8 len
let bn_to_bytes_le #t len b = Hacl.Spec.Bignum.Convert.bn_to_bytes_le len b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 47, "end_line": 275, "start_col": 0, "start_line": 274 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "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_pos { Lib.IntTypes.numbytes t * Hacl.Spec.Bignum.Definitions.blocks len (Lib.IntTypes.numbytes t) <= Lib.IntTypes.max_size_t } -> b: Hacl.Spec.Bignum.Definitions.lbignum t (Hacl.Spec.Bignum.Definitions.blocks len (Lib.IntTypes.numbytes t)) ...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_pos", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.numbytes", "Hacl.Spec.Bignum.Definitions.blocks", "Lib.IntTypes.max_size_t", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Convert.bn_to_bytes_le"...
[]
false
false
false
false
false
let bn_to_bytes_le #t len b =
Hacl.Spec.Bignum.Convert.bn_to_bytes_le len b
false
Pulse.Lib.PCM.Array.fst
Pulse.Lib.PCM.Array.compose
val compose : x: Pulse.Lib.PCM.Array.carrier elt len -> y: Pulse.Lib.PCM.Array.carrier elt len {Mkpcm'?.composable (Mkpcm?.p (Pulse.Lib.PCM.Array.pcm elt len)) x y} -> Pulse.Lib.PCM.Array.carrier elt len
let compose (#elt: Type) (#len: Ghost.erased nat) = (pcm elt len).p.op
{ "file_name": "share/steel/examples/pulse/lib/Pulse.Lib.PCM.Array.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 70, "end_line": 24, "start_col": 0, "start_line": 24 }
module Pulse.Lib.PCM.Array module P = Pulse.Lib.PCM.Fraction module M = FStar.Map module PM = Pulse.Lib.PCM.Map module Seq = FStar.Seq open PulseCore.FractionalPermission let index_t (len: Ghost.erased nat) : Type0 = i: nat { i < len } let carrier (elt: Type u#a) (len: Ghost.erased nat) : Type u#a = PM.map (index_t l...
{ "checked_file": "/", "dependencies": [ "PulseCore.FractionalPermission.fst.checked", "Pulse.Lib.PCM.Map.fst.checked", "Pulse.Lib.PCM.Fraction.fst.checked", "prims.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.P...
[ { "abbrev": false, "full_module": "PulseCore.FractionalPermission", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Pulse.Lib.PCM.Map", "short_module": "PM" }, { "abbrev": true, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Pulse.Lib.PCM.Array.carrier elt len -> y: Pulse.Lib.PCM.Array.carrier elt len {Mkpcm'?.composable (Mkpcm?.p (Pulse.Lib.PCM.Array.pcm elt len)) x y} -> Pulse.Lib.PCM.Array.carrier elt len
Prims.Tot
[ "total" ]
[]
[ "FStar.Ghost.erased", "Prims.nat", "FStar.PCM.__proj__Mkpcm'__item__op", "Pulse.Lib.PCM.Array.carrier", "FStar.PCM.__proj__Mkpcm__item__p", "Pulse.Lib.PCM.Array.pcm", "FStar.PCM.__proj__Mkpcm'__item__composable" ]
[]
false
false
false
false
false
let compose (#elt: Type) (#len: Ghost.erased nat) =
(pcm elt len).p.op
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_from_bytes_le
val bn_from_bytes_le: #t:limb_t -> len:size_pos{numbytes t * (blocks len (numbytes t)) <= max_size_t} -> b:lseq uint8 len -> lbignum t (blocks len (numbytes t))
val bn_from_bytes_le: #t:limb_t -> len:size_pos{numbytes t * (blocks len (numbytes t)) <= max_size_t} -> b:lseq uint8 len -> lbignum t (blocks len (numbytes t))
let bn_from_bytes_le #t len b = Hacl.Spec.Bignum.Convert.bn_from_bytes_le #t len b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 52, "end_line": 263, "start_col": 0, "start_line": 262 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "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_pos { Lib.IntTypes.numbytes t * Hacl.Spec.Bignum.Definitions.blocks len (Lib.IntTypes.numbytes t) <= Lib.IntTypes.max_size_t } -> b: Lib.Sequence.lseq Lib.IntTypes.uint8 len -> Hacl.Spec.Bignum.Definitions.lbignum t (Hacl.Spec.Bignum.Definitions....
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_pos", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.numbytes", "Hacl.Spec.Bignum.Definitions.blocks", "Lib.IntTypes.max_size_t", "Lib.Sequence.lseq", "Lib.IntTypes.uint8", "Hacl.Spec.Bignum.Convert.bn_from_by...
[]
false
false
false
false
false
let bn_from_bytes_le #t len b =
Hacl.Spec.Bignum.Convert.bn_from_bytes_le #t len b
false
Pulse.Lib.PCM.Array.fst
Pulse.Lib.PCM.Array.composable
val composable : FStar.PCM.symrel (Pulse.Lib.PCM.Array.carrier elt len)
let composable (#elt: Type) (#len: Ghost.erased nat) = (pcm elt len).p.composable
{ "file_name": "share/steel/examples/pulse/lib/Pulse.Lib.PCM.Array.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 81, "end_line": 22, "start_col": 0, "start_line": 22 }
module Pulse.Lib.PCM.Array module P = Pulse.Lib.PCM.Fraction module M = FStar.Map module PM = Pulse.Lib.PCM.Map module Seq = FStar.Seq open PulseCore.FractionalPermission let index_t (len: Ghost.erased nat) : Type0 = i: nat { i < len } let carrier (elt: Type u#a) (len: Ghost.erased nat) : Type u#a = PM.map (index_t l...
{ "checked_file": "/", "dependencies": [ "PulseCore.FractionalPermission.fst.checked", "Pulse.Lib.PCM.Map.fst.checked", "Pulse.Lib.PCM.Fraction.fst.checked", "prims.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.P...
[ { "abbrev": false, "full_module": "PulseCore.FractionalPermission", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Pulse.Lib.PCM.Map", "short_module": "PM" }, { "abbrev": true, "...
{ "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
FStar.PCM.symrel (Pulse.Lib.PCM.Array.carrier elt len)
Prims.Tot
[ "total" ]
[]
[ "FStar.Ghost.erased", "Prims.nat", "FStar.PCM.__proj__Mkpcm'__item__composable", "Pulse.Lib.PCM.Array.carrier", "FStar.PCM.__proj__Mkpcm__item__p", "Pulse.Lib.PCM.Array.pcm", "FStar.PCM.symrel" ]
[]
false
false
false
false
false
let composable (#elt: Type) (#len: Ghost.erased nat) =
(pcm elt len).p.composable
false
LowParse.SLow.Enum.fst
LowParse.SLow.Enum.serialize32_maybe_enum_key
val serialize32_maybe_enum_key (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (#s: serializer p) (s32: serializer32 s) (e: enum key repr) (f: enum_repr_of_key'_t e) : Tot (serializer32 (serialize_maybe_enum_key p s e))
val serialize32_maybe_enum_key (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (#s: serializer p) (s32: serializer32 s) (e: enum key repr) (f: enum_repr_of_key'_t e) : Tot (serializer32 (serialize_maybe_enum_key p s e))
let serialize32_maybe_enum_key (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (#s: serializer p) (s32: serializer32 s) (e: enum key repr) (f: enum_repr_of_key'_t e) : Tot (serializer32 (serialize_maybe_enum_key p s e)) = serialize32_maybe_enum_key_gen s32 e _ _ _ (serialize_maybe_enum_key p s ...
{ "file_name": "src/lowparse/LowParse.SLow.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 91, "end_line": 202, "start_col": 0, "start_line": 193 }
module LowParse.SLow.Enum include LowParse.Spec.Enum include LowParse.SLow.Combinators module L = FStar.List.Tot module U32 = FStar.UInt32 (* Parser for enums *) inline_for_extraction let parse32_maybe_enum_key_gen (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (p32: parser32 p) (e: enum key re...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "LowParse.SLow.Combinators.fst.checked", "LowParse.Bytes32.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.To...
[ { "abbrev": true, "full_module": "LowParse.Bytes32", "short_module": "B32" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "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
s32: LowParse.SLow.Base.serializer32 s -> e: LowParse.Spec.Enum.enum key repr -> f: LowParse.Spec.Enum.enum_repr_of_key'_t e -> LowParse.SLow.Base.serializer32 (LowParse.Spec.Enum.serialize_maybe_enum_key p s e)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "Prims.eqtype", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.SLow.Base.serializer32", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.enum_repr_of_key'_t", "LowParse.SLow.Enum.serialize32_maybe_enum_key_gen", "LowParse.Spec.Enum.maybe_enum_...
[]
false
false
false
false
false
let serialize32_maybe_enum_key (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (#s: serializer p) (s32: serializer32 s) (e: enum key repr) (f: enum_repr_of_key'_t e) : Tot (serializer32 (serialize_maybe_enum_key p s e)) =
serialize32_maybe_enum_key_gen s32 e _ _ _ (serialize_maybe_enum_key p s e) () () () () f
false
LowParse.SLow.Enum.fst
LowParse.SLow.Enum.size32_enum_key
val size32_enum_key (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (#s: serializer p) (s32: size32 s) (e: enum key repr) (f: enum_repr_of_key'_t e) : Tot (size32 (serialize_enum_key p s e))
val size32_enum_key (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (#s: serializer p) (s32: size32 s) (e: enum key repr) (f: enum_repr_of_key'_t e) : Tot (size32 (serialize_enum_key p s e))
let size32_enum_key (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (#s: serializer p) (s32: size32 s) (e: enum key repr) (f: enum_repr_of_key'_t e) : Tot (size32 (serialize_enum_key p s e)) = size32_enum_key_gen s32 e _ _ _ (serialize_enum_key p s e) () () () () f
{ "file_name": "src/lowparse/LowParse.SLow.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 74, "end_line": 148, "start_col": 0, "start_line": 139 }
module LowParse.SLow.Enum include LowParse.Spec.Enum include LowParse.SLow.Combinators module L = FStar.List.Tot module U32 = FStar.UInt32 (* Parser for enums *) inline_for_extraction let parse32_maybe_enum_key_gen (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (p32: parser32 p) (e: enum key re...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "LowParse.SLow.Combinators.fst.checked", "LowParse.Bytes32.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.To...
[ { "abbrev": true, "full_module": "LowParse.Bytes32", "short_module": "B32" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "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
s32: LowParse.SLow.Base.size32 s -> e: LowParse.Spec.Enum.enum key repr -> f: LowParse.Spec.Enum.enum_repr_of_key'_t e -> LowParse.SLow.Base.size32 (LowParse.Spec.Enum.serialize_enum_key p s e)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "Prims.eqtype", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.SLow.Base.size32", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.enum_repr_of_key'_t", "LowParse.SLow.Enum.size32_enum_key_gen", "LowParse.Spec.Combinators.parse_filter_kind", ...
[]
false
false
false
false
false
let size32_enum_key (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (#s: serializer p) (s32: size32 s) (e: enum key repr) (f: enum_repr_of_key'_t e) : Tot (size32 (serialize_enum_key p s e)) =
size32_enum_key_gen s32 e _ _ _ (serialize_enum_key p s e) () () () () f
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_to_bytes_le_lemma
val bn_to_bytes_le_lemma: #t:limb_t -> len:size_pos{numbytes t * (blocks len (numbytes t)) <= max_size_t} -> b:lbignum t (blocks len (numbytes t)){bn_v b < pow2 (8 * len)} -> Lemma (bn_to_bytes_le len b == BSeq.nat_to_intseq_le #U8 len (bn_v b))
val bn_to_bytes_le_lemma: #t:limb_t -> len:size_pos{numbytes t * (blocks len (numbytes t)) <= max_size_t} -> b:lbignum t (blocks len (numbytes t)){bn_v b < pow2 (8 * len)} -> Lemma (bn_to_bytes_le len b == BSeq.nat_to_intseq_le #U8 len (bn_v b))
let bn_to_bytes_le_lemma #t len b = Hacl.Spec.Bignum.Convert.bn_to_bytes_le_lemma len b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 53, "end_line": 278, "start_col": 0, "start_line": 277 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "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_pos { Lib.IntTypes.numbytes t * Hacl.Spec.Bignum.Definitions.blocks len (Lib.IntTypes.numbytes t) <= Lib.IntTypes.max_size_t } -> b: Hacl.Spec.Bignum.Definitions.lbignum t (Hacl.Spec.Bignum.Definitions.blocks len (Lib.IntTypes.numbytes t)) ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_pos", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.numbytes", "Hacl.Spec.Bignum.Definitions.blocks", "Lib.IntTypes.max_size_t", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.op_LessThan", "Hacl.Spec.Bignum....
[]
true
false
true
false
false
let bn_to_bytes_le_lemma #t len b =
Hacl.Spec.Bignum.Convert.bn_to_bytes_le_lemma len b
false
Pulse.Lib.PCM.Array.fst
Pulse.Lib.PCM.Array.carrier
val carrier (elt: Type u#a) (len: Ghost.erased nat) : Type u#a
val carrier (elt: Type u#a) (len: Ghost.erased nat) : Type u#a
let carrier (elt: Type u#a) (len: Ghost.erased nat) : Type u#a = PM.map (index_t len) (P.fractional elt)
{ "file_name": "share/steel/examples/pulse/lib/Pulse.Lib.PCM.Array.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 41, "end_line": 14, "start_col": 0, "start_line": 12 }
module Pulse.Lib.PCM.Array module P = Pulse.Lib.PCM.Fraction module M = FStar.Map module PM = Pulse.Lib.PCM.Map module Seq = FStar.Seq open PulseCore.FractionalPermission let index_t (len: Ghost.erased nat) : Type0 = i: nat { i < len }
{ "checked_file": "/", "dependencies": [ "PulseCore.FractionalPermission.fst.checked", "Pulse.Lib.PCM.Map.fst.checked", "Pulse.Lib.PCM.Fraction.fst.checked", "prims.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.P...
[ { "abbrev": false, "full_module": "PulseCore.FractionalPermission", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Pulse.Lib.PCM.Map", "short_module": "PM" }, { "abbrev": true, "...
{ "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
elt: Type -> len: FStar.Ghost.erased Prims.nat -> Type
Prims.Tot
[ "total" ]
[]
[ "FStar.Ghost.erased", "Prims.nat", "Pulse.Lib.PCM.Map.map", "Pulse.Lib.PCM.Array.index_t", "Pulse.Lib.PCM.Fraction.fractional" ]
[]
false
false
false
true
true
let carrier (elt: Type u#a) (len: Ghost.erased nat) : Type u#a =
PM.map (index_t len) (P.fractional elt)
false
Pulse.Lib.PCM.Array.fst
Pulse.Lib.PCM.Array.pcm
val pcm (elt: Type u#a) (len: Ghost.erased nat) : FStar.PCM.pcm (carrier elt len)
val pcm (elt: Type u#a) (len: Ghost.erased nat) : FStar.PCM.pcm (carrier elt len)
let pcm (elt: Type u#a) (len: Ghost.erased nat) : FStar.PCM.pcm (carrier elt len) = PM.pointwise (index_t len) (P.pcm_frac #elt)
{ "file_name": "share/steel/examples/pulse/lib/Pulse.Lib.PCM.Array.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 46, "end_line": 18, "start_col": 0, "start_line": 16 }
module Pulse.Lib.PCM.Array module P = Pulse.Lib.PCM.Fraction module M = FStar.Map module PM = Pulse.Lib.PCM.Map module Seq = FStar.Seq open PulseCore.FractionalPermission let index_t (len: Ghost.erased nat) : Type0 = i: nat { i < len } let carrier (elt: Type u#a) (len: Ghost.erased nat) : Type u#a = PM.map (index_t l...
{ "checked_file": "/", "dependencies": [ "PulseCore.FractionalPermission.fst.checked", "Pulse.Lib.PCM.Map.fst.checked", "Pulse.Lib.PCM.Fraction.fst.checked", "prims.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.P...
[ { "abbrev": false, "full_module": "PulseCore.FractionalPermission", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Pulse.Lib.PCM.Map", "short_module": "PM" }, { "abbrev": true, "...
{ "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
elt: Type -> len: FStar.Ghost.erased Prims.nat -> FStar.PCM.pcm (Pulse.Lib.PCM.Array.carrier elt len)
Prims.Tot
[ "total" ]
[]
[ "FStar.Ghost.erased", "Prims.nat", "Pulse.Lib.PCM.Map.pointwise", "Pulse.Lib.PCM.Fraction.fractional", "Pulse.Lib.PCM.Array.index_t", "Pulse.Lib.PCM.Fraction.pcm_frac", "FStar.PCM.pcm", "Pulse.Lib.PCM.Array.carrier" ]
[]
false
false
false
false
false
let pcm (elt: Type u#a) (len: Ghost.erased nat) : FStar.PCM.pcm (carrier elt len) =
PM.pointwise (index_t len) (P.pcm_frac #elt)
false
LowParse.SLow.Enum.fst
LowParse.SLow.Enum.size32_maybe_enum_key
val size32_maybe_enum_key (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (#s: serializer p) (s32: size32 s) (e: enum key repr) (f: enum_repr_of_key'_t e) : Tot (size32 (serialize_maybe_enum_key p s e))
val size32_maybe_enum_key (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (#s: serializer p) (s32: size32 s) (e: enum key repr) (f: enum_repr_of_key'_t e) : Tot (size32 (serialize_maybe_enum_key p s e))
let size32_maybe_enum_key (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (#s: serializer p) (s32: size32 s) (e: enum key repr) (f: enum_repr_of_key'_t e) : Tot (size32 (serialize_maybe_enum_key p s e)) = size32_maybe_enum_key_gen s32 e _ _ _ (serialize_maybe_enum_key p s e) () () () () f
{ "file_name": "src/lowparse/LowParse.SLow.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 87, "end_line": 256, "start_col": 0, "start_line": 247 }
module LowParse.SLow.Enum include LowParse.Spec.Enum include LowParse.SLow.Combinators module L = FStar.List.Tot module U32 = FStar.UInt32 (* Parser for enums *) inline_for_extraction let parse32_maybe_enum_key_gen (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (p32: parser32 p) (e: enum key re...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "LowParse.SLow.Combinators.fst.checked", "LowParse.Bytes32.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.To...
[ { "abbrev": true, "full_module": "LowParse.Bytes32", "short_module": "B32" }, { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "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
s32: LowParse.SLow.Base.size32 s -> e: LowParse.Spec.Enum.enum key repr -> f: LowParse.Spec.Enum.enum_repr_of_key'_t e -> LowParse.SLow.Base.size32 (LowParse.Spec.Enum.serialize_maybe_enum_key p s e)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "Prims.eqtype", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.SLow.Base.size32", "LowParse.Spec.Enum.enum", "LowParse.Spec.Enum.enum_repr_of_key'_t", "LowParse.SLow.Enum.size32_maybe_enum_key_gen", "LowParse.Spec.Enum.maybe_enum_key", "Lo...
[]
false
false
false
false
false
let size32_maybe_enum_key (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (#s: serializer p) (s32: size32 s) (e: enum key repr) (f: enum_repr_of_key'_t e) : Tot (size32 (serialize_maybe_enum_key p s e)) =
size32_maybe_enum_key_gen s32 e _ _ _ (serialize_maybe_enum_key p s e) () () () () f
false
Hacl.Spec.Bignum.fst
Hacl.Spec.Bignum.bn_to_bytes_be_lemma
val bn_to_bytes_be_lemma: #t:limb_t -> len:size_pos{numbytes t * (blocks len (numbytes t)) <= max_size_t} -> b:lbignum t (blocks len (numbytes t)){bn_v b < pow2 (8 * len)} -> Lemma (bn_to_bytes_be #t len b == BSeq.nat_to_intseq_be #U8 len (bn_v b))
val bn_to_bytes_be_lemma: #t:limb_t -> len:size_pos{numbytes t * (blocks len (numbytes t)) <= max_size_t} -> b:lbignum t (blocks len (numbytes t)){bn_v b < pow2 (8 * len)} -> Lemma (bn_to_bytes_be #t len b == BSeq.nat_to_intseq_be #U8 len (bn_v b))
let bn_to_bytes_be_lemma #t len b = Hacl.Spec.Bignum.Convert.bn_to_bytes_be_lemma len b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 53, "end_line": 272, "start_col": 0, "start_line": 271 }
module Hacl.Spec.Bignum module Loops = Lib.LoopCombinators #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" let bn_add1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1 a b1 let bn_add1_lemma #t #aLen a b1 = Hacl.Spec.Bignum.Addition.bn_add1_lemma a b1 let bn_sub1 #t #aLen a b1 = Hacl.Spec.Bignum.Addition...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Squaring.fst.checked", "Hacl.Spec.Bignum.Multiplication.fst.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Karatsuba.fst.c...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": ...
{ "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_pos { Lib.IntTypes.numbytes t * Hacl.Spec.Bignum.Definitions.blocks len (Lib.IntTypes.numbytes t) <= Lib.IntTypes.max_size_t } -> b: Hacl.Spec.Bignum.Definitions.lbignum t (Hacl.Spec.Bignum.Definitions.blocks len (Lib.IntTypes.numbytes t)) ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_pos", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.numbytes", "Hacl.Spec.Bignum.Definitions.blocks", "Lib.IntTypes.max_size_t", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.op_LessThan", "Hacl.Spec.Bignum....
[]
true
false
true
false
false
let bn_to_bytes_be_lemma #t len b =
Hacl.Spec.Bignum.Convert.bn_to_bytes_be_lemma len b
false
SteelFramingTestSuite.fst
SteelFramingTestSuite.test
val test: Prims.unit -> SteelT unit ((p `star` p) `star` p) (fun _ -> (p `star` p) `star` p)
val test: Prims.unit -> SteelT unit ((p `star` p) `star` p) (fun _ -> (p `star` p) `star` p)
let test () : SteelT unit (p `star` p `star` p) (fun _ -> p `star` p `star` p) = f 0; ()
{ "file_name": "share/steel/tests/SteelFramingTestSuite.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 11, "end_line": 28, "start_col": 0, "start_line": 27 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.Memory.fsti.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SteelFramingTestSuite.fst" }
[ { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_module": "Steel.Memory", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "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
_: Prims.unit -> Steel.Effect.SteelT Prims.unit
Steel.Effect.SteelT
[]
[]
[ "Prims.unit", "SteelFramingTestSuite.f", "Steel.Effect.Common.star", "SteelFramingTestSuite.p", "Steel.Effect.Common.vprop" ]
[]
false
true
false
false
false
let test () : SteelT unit ((p `star` p) `star` p) (fun _ -> (p `star` p) `star` p) =
f 0; ()
false
Vale.Transformers.PrefetchElim.fst
Vale.Transformers.PrefetchElim.prefetch_elim_correct
val prefetch_elim_correct (is: list ins) (s: machine_state) : Lemma (peephole_correct prefetch_elim_ph is s) [SMTPat (peephole_correct prefetch_elim_ph is s)]
val prefetch_elim_correct (is: list ins) (s: machine_state) : Lemma (peephole_correct prefetch_elim_ph is s) [SMTPat (peephole_correct prefetch_elim_ph is s)]
let prefetch_elim_correct (is:list ins) (s:machine_state) : Lemma (peephole_correct prefetch_elim_ph is s) [SMTPat (peephole_correct prefetch_elim_ph is s)] = match is with | [Instr i oprs (AnnotatePrefetchnta ())] -> () | _ -> ()
{ "file_name": "vale/code/lib/transformers/Vale.Transformers.PrefetchElim.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 28, "start_col": 0, "start_line": 23 }
module Vale.Transformers.PrefetchElim open Vale.X64.Bytes_Code_s open Vale.X64.Instruction_s open Vale.X64.Instructions_s open Vale.X64.Machine_Semantics_s open Vale.X64.Machine_s open Vale.X64.Print_s open Vale.Transformers.InstructionReorder open Vale.X64.InsLemmas open Vale.Transformers.PeepHole let prefetch_elim...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Print_s.fst.checked", "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Instructions_s.fsti.checked", "Vale.X64.Instruction_s.fsti.checked", "Vale.X64.InsLemmas.fsti.checked", "Vale.X64.Bytes_Code_s....
[ { "abbrev": false, "full_module": "Vale.Transformers.PeepHole", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.InsLemmas", "short_module": null }, { "abbrev": false, "full_module": "Vale.Transformers.InstructionReorder", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 3, "max_fuel": 2, "max_ifuel": 3, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
is: Prims.list Vale.X64.Machine_Semantics_s.ins -> s: Vale.X64.Machine_Semantics_s.machine_state -> FStar.Pervasives.Lemma (ensures Vale.Transformers.PeepHole.peephole_correct Vale.Transformers.PrefetchElim.prefetch_elim_ph is s) [ SMTPat (Vale.Transformers.PeepHole.pee...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "Vale.X64.Machine_Semantics_s.ins", "Vale.X64.Machine_Semantics_s.machine_state", "Vale.X64.Instruction_s.instr_t_record", "Vale.X64.Instruction_s.instr_operands_t", "Vale.X64.Instruction_s.__proj__InstrTypeRecord__item__outs", "Vale.X64.Instruction_s.__proj__InstrTypeRecord__item__args", ...
[]
false
false
true
false
false
let prefetch_elim_correct (is: list ins) (s: machine_state) : Lemma (peephole_correct prefetch_elim_ph is s) [SMTPat (peephole_correct prefetch_elim_ph is s)] =
match is with | [Instr i oprs (AnnotatePrefetchnta ())] -> () | _ -> ()
false
Pulse.Lib.PCM.Array.fst
Pulse.Lib.PCM.Array.mk_carrier_inj
val mk_carrier_inj (#elt: Type) (len offset: nat) (s1 s2: Seq.seq elt) (p1 p2: perm) : Lemma (requires (mk_carrier len offset s1 p1 == mk_carrier len offset s2 p2 /\ offset + Seq.length s1 <= len /\ offset + Seq.length s2 <= len)) (ensures (s1 `Seq.equal` s2 /\ (Seq.length s1 > 0 ==> p...
val mk_carrier_inj (#elt: Type) (len offset: nat) (s1 s2: Seq.seq elt) (p1 p2: perm) : Lemma (requires (mk_carrier len offset s1 p1 == mk_carrier len offset s2 p2 /\ offset + Seq.length s1 <= len /\ offset + Seq.length s2 <= len)) (ensures (s1 `Seq.equal` s2 /\ (Seq.length s1 > 0 ==> p...
let mk_carrier_inj (#elt: Type) (len: nat) (offset: nat) (s1 s2: Seq.seq elt) (p1 p2: perm) : Lemma (requires ( mk_carrier len offset s1 p1 == mk_carrier len offset s2 p2 /\ offset + Seq.length s1 <= len /\ offset + Seq.length s2 <= len )) (ensures ( s1 `Seq.equal` s2 /\ ...
{ "file_name": "share/steel/examples/pulse/lib/Pulse.Lib.PCM.Array.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 83, "end_line": 59, "start_col": 0, "start_line": 40 }
module Pulse.Lib.PCM.Array module P = Pulse.Lib.PCM.Fraction module M = FStar.Map module PM = Pulse.Lib.PCM.Map module Seq = FStar.Seq open PulseCore.FractionalPermission let index_t (len: Ghost.erased nat) : Type0 = i: nat { i < len } let carrier (elt: Type u#a) (len: Ghost.erased nat) : Type u#a = PM.map (index_t l...
{ "checked_file": "/", "dependencies": [ "PulseCore.FractionalPermission.fst.checked", "Pulse.Lib.PCM.Map.fst.checked", "Pulse.Lib.PCM.Fraction.fst.checked", "prims.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.P...
[ { "abbrev": false, "full_module": "PulseCore.FractionalPermission", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Pulse.Lib.PCM.Map", "short_module": "PM" }, { "abbrev": true, "...
{ "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
len: Prims.nat -> offset: Prims.nat -> s1: FStar.Seq.Base.seq elt -> s2: FStar.Seq.Base.seq elt -> p1: PulseCore.FractionalPermission.perm -> p2: PulseCore.FractionalPermission.perm -> FStar.Pervasives.Lemma (requires Pulse.Lib.PCM.Array.mk_carrier len offset s1 p1 == Pu...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "FStar.Seq.Base.seq", "PulseCore.FractionalPermission.perm", "Prims._assert", "Prims.l_Forall", "Prims.l_imp", "Prims.b2t", "Prims.op_LessThan", "FStar.Seq.Base.length", "Prims.eq2", "FStar.Pervasives.Native.option", "FStar.Pervasives.Native.tuple2", "FStar.Map.sel", "Pulse.Li...
[]
false
false
true
false
false
let mk_carrier_inj (#elt: Type) (len offset: nat) (s1 s2: Seq.seq elt) (p1 p2: perm) : Lemma (requires (mk_carrier len offset s1 p1 == mk_carrier len offset s2 p2 /\ offset + Seq.length s1 <= len /\ offset + Seq.length s2 <= len)) (ensures (s1 `Seq.equal` s2 /\ (Seq.length s1 > 0 ==> p...
assert (forall (i: nat). i < Seq.length s1 ==> (M.sel (mk_carrier len offset s1 p1) (offset + i) == Some (Seq.index s1 i, p1))); assert (forall (i: nat). i < Seq.length s2 ==> M.sel (mk_carrier len offset s2 p2) (offset + i) == Some (Seq.index s2 i, p2))
false
SteelFramingTestSuite.fst
SteelFramingTestSuite.test_subcomp_dep
val test_subcomp_dep (n: int) : SteelT unit (int_sl n) (fun _ -> int_sl n)
val test_subcomp_dep (n: int) : SteelT unit (int_sl n) (fun _ -> int_sl n)
let test_subcomp_dep (n:int) : SteelT unit (int_sl n) (fun _ -> int_sl n) = int_f (n - 1 + 1); int_f n
{ "file_name": "share/steel/tests/SteelFramingTestSuite.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 9, "end_line": 189, "start_col": 0, "start_line": 187 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.Memory.fsti.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "SteelFramingTestSuite.fst" }
[ { "abbrev": false, "full_module": "Steel.Effect.Atomic", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_module": "Steel.Memory", "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
n: Prims.int -> Steel.Effect.SteelT Prims.unit
Steel.Effect.SteelT
[]
[]
[ "Prims.int", "SteelFramingTestSuite.int_f", "Prims.unit", "Prims.op_Addition", "Prims.op_Subtraction", "SteelFramingTestSuite.int_sl", "Steel.Effect.Common.vprop" ]
[]
false
true
false
false
false
let test_subcomp_dep (n: int) : SteelT unit (int_sl n) (fun _ -> int_sl n) =
int_f (n - 1 + 1); int_f n
false
Steel.ST.HigherArray.fst
Steel.ST.HigherArray.elim_pts_to
val elim_pts_to (#opened: _) (#elt: Type u#1) (a: array elt) (p: P.perm) (s: Seq.seq elt) : STGhost unit opened (pts_to a p s) (fun _ -> R.pts_to (ptr_of a).base (mk_carrier (US.v (ptr_of a).base_len) (ptr_of a).offset s p)) (True) (fun _ -> valid_perm (US.v (ptr_of...
val elim_pts_to (#opened: _) (#elt: Type u#1) (a: array elt) (p: P.perm) (s: Seq.seq elt) : STGhost unit opened (pts_to a p s) (fun _ -> R.pts_to (ptr_of a).base (mk_carrier (US.v (ptr_of a).base_len) (ptr_of a).offset s p)) (True) (fun _ -> valid_perm (US.v (ptr_of...
let elim_pts_to (#opened: _) (#elt: Type u#1) (a: array elt) (p: P.perm) (s: Seq.seq elt) : STGhost unit opened (pts_to a p s) (fun _ -> R.pts_to (ptr_of a).base (mk_carrier (US.v (ptr_of a).base_len) (ptr_of a).offset s p)) (True) (fun _ -> valid_perm (US.v (ptr_of a).base_len) (ptr_of a).offset (Seq.lengt...
{ "file_name": "lib/steel/Steel.ST.HigherArray.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 13, "end_line": 178, "start_col": 0, "start_line": 167 }
(* Copyright 2022 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.ST.PCMReference.fsti.checked", "Steel.ST.Loops.fsti.checked", "Steel.PCMMap.fst.checked", "Steel.PCMFrac.fst.checked", "Steel.Memory.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Rea...
[ { "abbrev": true, "full_module": "Steel.PCMMap", "short_module": "PM" }, { "abbrev": true, "full_module": "FStar.Map", "short_module": "M" }, { "abbrev": true, "full_module": "Steel.ST.PCMReference", "short_module": "R" }, { "abbrev": true, "full_module": "Ste...
{ "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: Steel.ST.HigherArray.array elt -> p: Steel.FractionalPermission.perm -> s: FStar.Seq.Base.seq elt -> Steel.ST.Effect.Ghost.STGhost Prims.unit
Steel.ST.Effect.Ghost.STGhost
[]
[]
[ "Steel.Memory.inames", "Steel.ST.HigherArray.array", "Steel.FractionalPermission.perm", "FStar.Seq.Base.seq", "Steel.ST.Util.elim_pure", "Prims.l_and", "Steel.ST.HigherArray.valid_perm", "FStar.SizeT.v", "FStar.Ghost.reveal", "FStar.SizeT.t", "Steel.ST.HigherArray.__proj__Mkptr__item__base_len",...
[]
false
true
false
false
false
let elim_pts_to (#opened: _) (#elt: Type u#1) (a: array elt) (p: P.perm) (s: Seq.seq elt) : STGhost unit opened (pts_to a p s) (fun _ -> R.pts_to (ptr_of a).base (mk_carrier (US.v (ptr_of a).base_len) (ptr_of a).offset s p)) (True) (fun _ -> valid_perm (US.v (ptr_of...
rewrite (pts_to a p s) (pts_to0 a p s); elim_pure _
false
Pulse.Lib.PCM.Array.fst
Pulse.Lib.PCM.Array.mk_carrier
val mk_carrier (#elt: Type) (len offset: nat) (s: Seq.seq elt) (p: perm) : Tot (carrier elt len)
val mk_carrier (#elt: Type) (len offset: nat) (s: Seq.seq elt) (p: perm) : Tot (carrier elt len)
let mk_carrier (#elt: Type) (len: nat) (offset: nat) (s: Seq.seq elt) (p: perm) : Tot (carrier elt len) = let f (i: nat) : Tot (P.fractional elt) = if offset + Seq.length s > len || i < offset || i >= offset + Seq.length s then None else Some (Seq.index s (i - offset), p) in M.map_...
{ "file_name": "share/steel/examples/pulse/lib/Pulse.Lib.PCM.Array.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 17, "end_line": 38, "start_col": 0, "start_line": 26 }
module Pulse.Lib.PCM.Array module P = Pulse.Lib.PCM.Fraction module M = FStar.Map module PM = Pulse.Lib.PCM.Map module Seq = FStar.Seq open PulseCore.FractionalPermission let index_t (len: Ghost.erased nat) : Type0 = i: nat { i < len } let carrier (elt: Type u#a) (len: Ghost.erased nat) : Type u#a = PM.map (index_t l...
{ "checked_file": "/", "dependencies": [ "PulseCore.FractionalPermission.fst.checked", "Pulse.Lib.PCM.Map.fst.checked", "Pulse.Lib.PCM.Fraction.fst.checked", "prims.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.P...
[ { "abbrev": false, "full_module": "PulseCore.FractionalPermission", "short_module": null }, { "abbrev": true, "full_module": "FStar.Seq", "short_module": "Seq" }, { "abbrev": true, "full_module": "Pulse.Lib.PCM.Map", "short_module": "PM" }, { "abbrev": true, "...
{ "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
len: Prims.nat -> offset: Prims.nat -> s: FStar.Seq.Base.seq elt -> p: PulseCore.FractionalPermission.perm -> Pulse.Lib.PCM.Array.carrier elt (FStar.Ghost.hide len)
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "FStar.Seq.Base.seq", "PulseCore.FractionalPermission.perm", "FStar.Map.map_literal", "Pulse.Lib.PCM.Array.index_t", "FStar.Ghost.hide", "Pulse.Lib.PCM.Fraction.fractional", "Prims.op_BarBar", "Prims.op_GreaterThan", "Prims.op_Addition", "FStar.Seq.Base.length", "Prims.op_LessThan...
[]
false
false
false
false
false
let mk_carrier (#elt: Type) (len offset: nat) (s: Seq.seq elt) (p: perm) : Tot (carrier elt len) =
let f (i: nat) : Tot (P.fractional elt) = if offset + Seq.length s > len || i < offset || i >= offset + Seq.length s then None else Some (Seq.index s (i - offset), p) in M.map_literal f
false
Hacl.Bignum.Lib.fst
Hacl.Bignum.Lib.bn_get_top_index_u32
val bn_get_top_index_u32 (len: _) : bn_get_top_index_st U32 len
val bn_get_top_index_u32 (len: _) : bn_get_top_index_st U32 len
let bn_get_top_index_u32 len: bn_get_top_index_st U32 len = mk_bn_get_top_index #U32 len
{ "file_name": "code/bignum/Hacl.Bignum.Lib.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 88, "end_line": 136, "start_col": 0, "start_line": 136 }
module Hacl.Bignum.Lib open FStar.HyperStack open FStar.HyperStack.ST open FStar.Mul open Lib.IntTypes open Lib.Buffer open Hacl.Bignum.Base open Hacl.Bignum.Definitions module S = Hacl.Spec.Bignum.Lib module ST = FStar.HyperStack.ST module Loops = Lib.LoopCombinators module LSeq = Lib.Sequence #set-options "--z3...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.Loops.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Bignum.Definitions.fst.checked", ...
[ { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "ST" }, { "abbrev": true, "ful...
{ "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{0 < Lib.IntTypes.v len} -> Hacl.Bignum.Lib.bn_get_top_index_st Lib.IntTypes.U32 len
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_t", "Prims.b2t", "Prims.op_LessThan", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Hacl.Bignum.Lib.mk_bn_get_top_index", "Hacl.Bignum.Lib.bn_get_top_index_st" ]
[]
false
false
false
false
false
let bn_get_top_index_u32 len : bn_get_top_index_st U32 len =
mk_bn_get_top_index #U32 len
false
LowParse.SLow.Enum.fst
LowParse.SLow.Enum.parse32_maybe_enum_key_gen
val parse32_maybe_enum_key_gen (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (p32: parser32 p) (e: enum key repr) (k': parser_kind) (t': Type) (p': parser k' t') (u1: unit{k' == k}) (u15: unit{t' == maybe_enum_key e}) (u2: unit{p' == parse_m...
val parse32_maybe_enum_key_gen (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (p32: parser32 p) (e: enum key repr) (k': parser_kind) (t': Type) (p': parser k' t') (u1: unit{k' == k}) (u15: unit{t' == maybe_enum_key e}) (u2: unit{p' == parse_m...
let parse32_maybe_enum_key_gen (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (p32: parser32 p) (e: enum key repr) (k' : parser_kind) (t' : Type) (p' : parser k' t') (u1: unit { k' == k }) (u15: unit { t' == maybe_enum_key e } ) (u2: unit { p' == parse_maybe_enum_key p e } ) (f: mayb...
{ "file_name": "src/lowparse/LowParse.SLow.Enum.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 53, "end_line": 25, "start_col": 0, "start_line": 11 }
module LowParse.SLow.Enum include LowParse.Spec.Enum include LowParse.SLow.Combinators module L = FStar.List.Tot module U32 = FStar.UInt32 (* Parser for enums *)
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Enum.fst.checked", "LowParse.SLow.Combinators.fst.checked", "LowParse.Bytes32.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.List.To...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "LowParse.SLow.Combinators", "short_module": null }, { "abbrev": false, "full_...
{ "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
p32: LowParse.SLow.Base.parser32 p -> e: LowParse.Spec.Enum.enum key repr -> k': LowParse.Spec.Base.parser_kind -> t': Type0 -> p': LowParse.Spec.Base.parser k' t' -> u1: Prims.unit{k' == k} -> u15: Prims.unit{t' == LowParse.Spec.Enum.maybe_enum_key e} -> u2: Prims.unit{p' == LowParse.S...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "Prims.eqtype", "LowParse.Spec.Base.parser", "LowParse.SLow.Base.parser32", "LowParse.Spec.Enum.enum", "Prims.unit", "Prims.eq2", "LowParse.Spec.Enum.maybe_enum_key", "LowParse.Spec.Enum.parse_maybe_enum_key", "LowParse.Spec.Enum.maybe_enum_key_of_repr'_t", "Low...
[]
false
false
false
false
false
let parse32_maybe_enum_key_gen (#k: parser_kind) (#key #repr: eqtype) (#p: parser k repr) (p32: parser32 p) (e: enum key repr) (k': parser_kind) (t': Type) (p': parser k' t') (u1: unit{k' == k}) (u15: unit{t' == maybe_enum_key e}) (u2: unit{p' == parse_m...
parse32_synth p (maybe_enum_key_of_repr e) f p32 ()
false