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
FStar.UInt.fsti
FStar.UInt.to_uint_t
val to_uint_t (m: nat) (a: int) : Tot (uint_t m)
val to_uint_t (m: nat) (a: int) : Tot (uint_t m)
let to_uint_t (m:nat) (a:int) : Tot (uint_t m) = a % pow2 m
{ "file_name": "ulib/FStar.UInt.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 59, "end_line": 173, "start_col": 0, "start_line": 173 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.BitVector.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt.fsti" }
[ { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.BitVector", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "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
m: Prims.nat -> a: Prims.int -> FStar.UInt.uint_t m
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.int", "Prims.op_Modulus", "Prims.pow2", "FStar.UInt.uint_t" ]
[]
false
false
false
false
false
let to_uint_t (m: nat) (a: int) : Tot (uint_t m) =
a % pow2 m
false
FStar.UInt.fsti
FStar.UInt.nth
val nth (#n: pos) (a: uint_t n) (i: nat{i < n}) : Tot bool
val nth (#n: pos) (a: uint_t n) (i: nat{i < n}) : Tot bool
let nth (#n:pos) (a:uint_t n) (i:nat{i < n}) : Tot bool = index (to_vec #n a) i
{ "file_name": "ulib/FStar.UInt.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 23, "end_line": 270, "start_col": 0, "start_line": 269 }
(* 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.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.BitVector.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt.fsti" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> i: Prims.nat{i < n} -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "FStar.Seq.Base.index", "Prims.bool", "FStar.UInt.to_vec" ]
[]
false
false
false
false
false
let nth (#n: pos) (a: uint_t n) (i: nat{i < n}) : Tot bool =
index (to_vec #n a) i
false
FStar.UInt.fsti
FStar.UInt.to_vec
val to_vec (#n: nat) (num: uint_t n) : Tot (bv_t n)
val to_vec (#n: nat) (num: uint_t n) : Tot (bv_t n)
let rec to_vec (#n:nat) (num:uint_t n) : Tot (bv_t n) = if n = 0 then Seq.empty #bool else Seq.append (to_vec #(n - 1) (num / 2)) (Seq.create 1 (num % 2 = 1))
{ "file_name": "ulib/FStar.UInt.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 74, "end_line": 182, "start_col": 0, "start_line": 180 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.BitVector.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt.fsti" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.BitVector", "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
num: FStar.UInt.uint_t n -> FStar.BitVector.bv_t n
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "FStar.UInt.uint_t", "Prims.op_Equality", "Prims.int", "FStar.Seq.Base.empty", "Prims.bool", "FStar.Seq.Base.append", "FStar.UInt.to_vec", "Prims.op_Subtraction", "Prims.op_Division", "FStar.Seq.Base.create", "Prims.op_Modulus", "FStar.BitVector.bv_t" ]
[ "recursion" ]
false
false
false
false
false
let rec to_vec (#n: nat) (num: uint_t n) : Tot (bv_t n) =
if n = 0 then Seq.empty #bool else Seq.append (to_vec #(n - 1) (num / 2)) (Seq.create 1 (num % 2 = 1))
false
FStar.UInt.fsti
FStar.UInt.msb
val msb (#n: pos) (a: uint_t n) : Tot bool
val msb (#n: pos) (a: uint_t n) : Tot bool
let msb (#n:pos) (a:uint_t n) : Tot bool = nth a 0
{ "file_name": "ulib/FStar.UInt.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 50, "end_line": 537, "start_col": 0, "start_line": 537 }
(* 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.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.BitVector.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt.fsti" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.nth", "Prims.bool" ]
[]
false
false
false
false
false
let msb (#n: pos) (a: uint_t n) : Tot bool =
nth a 0
false
FStar.UInt.fsti
FStar.UInt.minus
val minus (#n: pos) (a: uint_t n) : Tot (uint_t n)
val minus (#n: pos) (a: uint_t n) : Tot (uint_t n)
let minus (#n:pos) (a:uint_t n) : Tot (uint_t n) = add_mod (lognot a) 1
{ "file_name": "ulib/FStar.UInt.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 22, "end_line": 334, "start_col": 0, "start_line": 333 }
(* 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.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.BitVector.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt.fsti" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> FStar.UInt.uint_t n
Prims.Tot
[ "total" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.add_mod", "FStar.UInt.lognot" ]
[]
false
false
false
false
false
let minus (#n: pos) (a: uint_t n) : Tot (uint_t n) =
add_mod (lognot a) 1
false
FStar.UInt.fsti
FStar.UInt.lognot
val lognot (#n: pos) (a: uint_t n) : Tot (uint_t n)
val lognot (#n: pos) (a: uint_t n) : Tot (uint_t n)
let lognot (#n:pos) (a:uint_t n) : Tot (uint_t n) = from_vec #n (lognot_vec #n (to_vec #n a))
{ "file_name": "ulib/FStar.UInt.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 43, "end_line": 308, "start_col": 0, "start_line": 307 }
(* 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.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.BitVector.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt.fsti" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> FStar.UInt.uint_t n
Prims.Tot
[ "total" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.from_vec", "FStar.BitVector.lognot_vec", "FStar.UInt.to_vec" ]
[]
false
false
false
false
false
let lognot (#n: pos) (a: uint_t n) : Tot (uint_t n) =
from_vec #n (lognot_vec #n (to_vec #n a))
false
FStar.UInt.fsti
FStar.UInt.zero_extend_vec
val zero_extend_vec (#n: pos) (a: BitVector.bv_t n) : Tot (BitVector.bv_t (n + 1))
val zero_extend_vec (#n: pos) (a: BitVector.bv_t n) : Tot (BitVector.bv_t (n + 1))
let zero_extend_vec (#n:pos) (a:BitVector.bv_t n): Tot (BitVector.bv_t (n+1)) = Seq.append (Seq.create 1 false) a
{ "file_name": "ulib/FStar.UInt.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 113, "end_line": 563, "start_col": 0, "start_line": 563 }
(* 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.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.BitVector.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt.fsti" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.BitVector.bv_t n -> FStar.BitVector.bv_t (n + 1)
Prims.Tot
[ "total" ]
[]
[ "Prims.pos", "FStar.BitVector.bv_t", "FStar.Seq.Base.append", "Prims.bool", "FStar.Seq.Base.create", "Prims.op_Addition" ]
[]
false
false
false
false
false
let zero_extend_vec (#n: pos) (a: BitVector.bv_t n) : Tot (BitVector.bv_t (n + 1)) =
Seq.append (Seq.create 1 false) a
false
FStar.UInt.fsti
FStar.UInt.logand
val logand (#n: pos) (a b: uint_t n) : Tot (uint_t n)
val logand (#n: pos) (a b: uint_t n) : Tot (uint_t n)
let logand (#n:pos) (a:uint_t n) (b:uint_t n) : Tot (uint_t n) = from_vec #n (logand_vec #n (to_vec #n a) (to_vec #n b))
{ "file_name": "ulib/FStar.UInt.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 57, "end_line": 299, "start_col": 0, "start_line": 298 }
(* 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.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.BitVector.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt.fsti" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> b: FStar.UInt.uint_t n -> FStar.UInt.uint_t n
Prims.Tot
[ "total" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.from_vec", "FStar.BitVector.logand_vec", "FStar.UInt.to_vec" ]
[]
false
false
false
false
false
let logand (#n: pos) (a b: uint_t n) : Tot (uint_t n) =
from_vec #n (logand_vec #n (to_vec #n a) (to_vec #n b))
false
FStar.UInt.fsti
FStar.UInt.one_extend_vec
val one_extend_vec (#n: pos) (a: BitVector.bv_t n) : Tot (BitVector.bv_t (n + 1))
val one_extend_vec (#n: pos) (a: BitVector.bv_t n) : Tot (BitVector.bv_t (n + 1))
let one_extend_vec (#n:pos) (a:BitVector.bv_t n): Tot (BitVector.bv_t (n+1)) = Seq.append (Seq.create 1 true) a
{ "file_name": "ulib/FStar.UInt.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 111, "end_line": 564, "start_col": 0, "start_line": 564 }
(* 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.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.BitVector.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt.fsti" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.BitVector.bv_t n -> FStar.BitVector.bv_t (n + 1)
Prims.Tot
[ "total" ]
[]
[ "Prims.pos", "FStar.BitVector.bv_t", "FStar.Seq.Base.append", "Prims.bool", "FStar.Seq.Base.create", "Prims.op_Addition" ]
[]
false
false
false
false
false
let one_extend_vec (#n: pos) (a: BitVector.bv_t n) : Tot (BitVector.bv_t (n + 1)) =
Seq.append (Seq.create 1 true) a
false
FStar.UInt.fsti
FStar.UInt.logxor
val logxor (#n: pos) (a b: uint_t n) : Tot (uint_t n)
val logxor (#n: pos) (a b: uint_t n) : Tot (uint_t n)
let logxor (#n:pos) (a:uint_t n) (b:uint_t n) : Tot (uint_t n) = from_vec #n (logxor_vec #n (to_vec #n a) (to_vec #n b))
{ "file_name": "ulib/FStar.UInt.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 57, "end_line": 302, "start_col": 0, "start_line": 301 }
(* 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.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.BitVector.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt.fsti" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> b: FStar.UInt.uint_t n -> FStar.UInt.uint_t n
Prims.Tot
[ "total" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.from_vec", "FStar.BitVector.logxor_vec", "FStar.UInt.to_vec" ]
[]
false
false
false
false
false
let logxor (#n: pos) (a b: uint_t n) : Tot (uint_t n) =
from_vec #n (logxor_vec #n (to_vec #n a) (to_vec #n b))
false
FStar.UInt.fsti
FStar.UInt.zero_extend
val zero_extend (#n: pos) (a: uint_t n) : Tot (uint_t (n + 1))
val zero_extend (#n: pos) (a: uint_t n) : Tot (uint_t (n + 1))
let zero_extend (#n:pos) (a:uint_t n): Tot (uint_t (n+1)) = from_vec (zero_extend_vec (to_vec a))
{ "file_name": "ulib/FStar.UInt.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 97, "end_line": 566, "start_col": 0, "start_line": 566 }
(* 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.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.BitVector.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt.fsti" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> FStar.UInt.uint_t (n + 1)
Prims.Tot
[ "total" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.from_vec", "Prims.op_Addition", "FStar.UInt.zero_extend_vec", "FStar.UInt.to_vec" ]
[]
false
false
false
false
false
let zero_extend (#n: pos) (a: uint_t n) : Tot (uint_t (n + 1)) =
from_vec (zero_extend_vec (to_vec a))
false
FStar.UInt.fsti
FStar.UInt.shift_left
val shift_left (#n: pos) (a: uint_t n) (s: nat) : Tot (uint_t n)
val shift_left (#n: pos) (a: uint_t n) (s: nat) : Tot (uint_t n)
let shift_left (#n:pos) (a:uint_t n) (s:nat) : Tot (uint_t n) = from_vec (shift_left_vec #n (to_vec #n a) s)
{ "file_name": "ulib/FStar.UInt.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 46, "end_line": 448, "start_col": 0, "start_line": 447 }
(* 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.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.BitVector.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt.fsti" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> s: Prims.nat -> FStar.UInt.uint_t n
Prims.Tot
[ "total" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.nat", "FStar.UInt.from_vec", "FStar.BitVector.shift_left_vec", "FStar.UInt.to_vec" ]
[]
false
false
false
false
false
let shift_left (#n: pos) (a: uint_t n) (s: nat) : Tot (uint_t n) =
from_vec (shift_left_vec #n (to_vec #n a) s)
false
FStar.UInt.fsti
FStar.UInt.logor
val logor (#n: pos) (a b: uint_t n) : Tot (uint_t n)
val logor (#n: pos) (a b: uint_t n) : Tot (uint_t n)
let logor (#n:pos) (a:uint_t n) (b:uint_t n) : Tot (uint_t n) = from_vec #n (logor_vec #n (to_vec #n a) (to_vec #n b))
{ "file_name": "ulib/FStar.UInt.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 56, "end_line": 305, "start_col": 0, "start_line": 304 }
(* 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.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.BitVector.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt.fsti" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> b: FStar.UInt.uint_t n -> FStar.UInt.uint_t n
Prims.Tot
[ "total" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.from_vec", "FStar.BitVector.logor_vec", "FStar.UInt.to_vec" ]
[]
false
false
false
false
false
let logor (#n: pos) (a b: uint_t n) : Tot (uint_t n) =
from_vec #n (logor_vec #n (to_vec #n a) (to_vec #n b))
false
FStar.UInt.fsti
FStar.UInt.one_extend
val one_extend (#n: pos) (a: uint_t n) : Tot (uint_t (n + 1))
val one_extend (#n: pos) (a: uint_t n) : Tot (uint_t (n + 1))
let one_extend (#n:pos) (a:uint_t n): Tot (uint_t (n+1)) = from_vec (one_extend_vec (to_vec a))
{ "file_name": "ulib/FStar.UInt.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 95, "end_line": 567, "start_col": 0, "start_line": 567 }
(* 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.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.BitVector.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt.fsti" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> FStar.UInt.uint_t (n + 1)
Prims.Tot
[ "total" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "FStar.UInt.from_vec", "Prims.op_Addition", "FStar.UInt.one_extend_vec", "FStar.UInt.to_vec" ]
[]
false
false
false
false
false
let one_extend (#n: pos) (a: uint_t n) : Tot (uint_t (n + 1)) =
from_vec (one_extend_vec (to_vec a))
false
FStar.UInt.fsti
FStar.UInt.shift_right
val shift_right (#n: pos) (a: uint_t n) (s: nat) : Tot (uint_t n)
val shift_right (#n: pos) (a: uint_t n) (s: nat) : Tot (uint_t n)
let shift_right (#n:pos) (a:uint_t n) (s:nat) : Tot (uint_t n) = from_vec (shift_right_vec #n (to_vec #n a) s)
{ "file_name": "ulib/FStar.UInt.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 47, "end_line": 451, "start_col": 0, "start_line": 450 }
(* 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.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Math.Lemmas.fst.checked", "FStar.BitVector.fst.checked" ], "interface_file": false, "source_file": "FStar.UInt.fsti" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FSta...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: FStar.UInt.uint_t n -> s: Prims.nat -> FStar.UInt.uint_t n
Prims.Tot
[ "total" ]
[]
[ "Prims.pos", "FStar.UInt.uint_t", "Prims.nat", "FStar.UInt.from_vec", "FStar.BitVector.shift_right_vec", "FStar.UInt.to_vec" ]
[]
false
false
false
false
false
let shift_right (#n: pos) (a: uint_t n) (s: nat) : Tot (uint_t n) =
from_vec (shift_right_vec #n (to_vec #n a) s)
false
Hacl.Impl.P256.PointMul.fst
Hacl.Impl.P256.PointMul.table_inv_w4
val table_inv_w4:BE.table_inv_t U64 12ul 16ul
val table_inv_w4:BE.table_inv_t U64 12ul 16ul
let table_inv_w4 : BE.table_inv_t U64 12ul 16ul = [@inline_let] let len = 12ul in [@inline_let] let ctx_len = 0ul in [@inline_let] let k = mk_p256_concrete_ops in [@inline_let] let l = 4ul in [@inline_let] let table_len = 16ul in BE.table_inv_precomp len ctx_len k l table_len
{ "file_name": "code/ecdsap256/Hacl.Impl.P256.PointMul.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 48, "end_line": 38, "start_col": 0, "start_line": 32 }
module Hacl.Impl.P256.PointMul open FStar.Mul open FStar.HyperStack.All open FStar.HyperStack module ST = FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Hacl.Impl.P256.Bignum open Hacl.Impl.P256.Field open Hacl.Impl.P256.Point module LE = Lib.Exponentiation module SE = Spec.Exponentiation module BE = Ha...
{ "checked_file": "/", "dependencies": [ "Spec.P256.Lemmas.fsti.checked", "Spec.P256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "LowStar.Ignore.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "H...
[ { "abbrev": false, "full_module": "Hacl.P256.PrecompTable", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.P256.Group", "short_module": null }, { "abbrev": true, "full_module": "Spec.P256.Lemmas", "short_module": "SL" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Impl.Exponentiation.table_inv_t Lib.IntTypes.U64 (12ul <: FStar.UInt32.t) (16ul <: FStar.UInt32.t)
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Exponentiation.table_inv_precomp", "Lib.IntTypes.U64", "FStar.UInt32.t", "FStar.UInt32.__uint_to_t", "Hacl.Impl.Exponentiation.Definitions.concrete_ops", "FStar.UInt32.uint_to_t", "Hacl.Impl.P256.Group.mk_p256_concrete_ops" ]
[]
false
false
false
false
false
let table_inv_w4:BE.table_inv_t U64 12ul 16ul =
[@@ inline_let ]let len = 12ul in [@@ inline_let ]let ctx_len = 0ul in [@@ inline_let ]let k = mk_p256_concrete_ops in [@@ inline_let ]let l = 4ul in [@@ inline_let ]let table_len = 16ul in BE.table_inv_precomp len ctx_len k l table_len
false
Hacl.Impl.P256.PointMul.fst
Hacl.Impl.P256.PointMul.point_mul
val point_mul: res:point -> scalar:felem -> p:point -> Stack unit (requires fun h -> live h p /\ live h res /\ live h scalar /\ disjoint p res /\ disjoint scalar res /\ disjoint p scalar /\ point_inv h p /\ as_nat h scalar < S.order) (ensures fun h0 _ h1 -> modifies (loc res) h0 h1 /\ point_inv h1 r...
val point_mul: res:point -> scalar:felem -> p:point -> Stack unit (requires fun h -> live h p /\ live h res /\ live h scalar /\ disjoint p res /\ disjoint scalar res /\ disjoint p scalar /\ point_inv h p /\ as_nat h scalar < S.order) (ensures fun h0 _ h1 -> modifies (loc res) h0 h1 /\ point_inv h1 r...
let point_mul res scalar p = let h0 = ST.get () in SE.exp_fw_lemma S.mk_p256_concrete_ops (from_mont_point (as_point_nat h0 p)) 256 (as_nat h0 scalar) 4; BE.lexp_fw_consttime 12ul 0ul mk_p256_concrete_ops 4ul (null uint64) p 4ul 256ul scalar res
{ "file_name": "code/ecdsap256/Hacl.Impl.P256.PointMul.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 93, "end_line": 57, "start_col": 0, "start_line": 53 }
module Hacl.Impl.P256.PointMul open FStar.Mul open FStar.HyperStack.All open FStar.HyperStack module ST = FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Hacl.Impl.P256.Bignum open Hacl.Impl.P256.Field open Hacl.Impl.P256.Point module LE = Lib.Exponentiation module SE = Spec.Exponentiation module BE = Ha...
{ "checked_file": "/", "dependencies": [ "Spec.P256.Lemmas.fsti.checked", "Spec.P256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "LowStar.Ignore.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "H...
[ { "abbrev": true, "full_module": "Spec.P256.Lemmas", "short_module": "SL" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "BD" }, { "abbrev": true, "full_module": "Hacl.Spec.PrecompBaseTable256", "short_module": "SPT256" }, { "a...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
res: Hacl.Impl.P256.Point.point -> scalar: Hacl.Impl.P256.Bignum.felem -> p: Hacl.Impl.P256.Point.point -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.P256.Point.point", "Hacl.Impl.P256.Bignum.felem", "Hacl.Impl.Exponentiation.lexp_fw_consttime", "Lib.IntTypes.U64", "FStar.UInt32.__uint_to_t", "Hacl.Impl.P256.Group.mk_p256_concrete_ops", "Lib.Buffer.null", "Lib.Buffer.MUT", "Lib.IntTypes.uint64", "Prims.unit", "Spec.Exponentiation.e...
[]
false
true
false
false
false
let point_mul res scalar p =
let h0 = ST.get () in SE.exp_fw_lemma S.mk_p256_concrete_ops (from_mont_point (as_point_nat h0 p)) 256 (as_nat h0 scalar) 4; BE.lexp_fw_consttime 12ul 0ul mk_p256_concrete_ops 4ul (null uint64) p 4ul 256ul scalar res
false
Hacl.Impl.P256.PointMul.fst
Hacl.Impl.P256.PointMul.table_inv_w5
val table_inv_w5:BE.table_inv_t U64 12ul 32ul
val table_inv_w5:BE.table_inv_t U64 12ul 32ul
let table_inv_w5 : BE.table_inv_t U64 12ul 32ul = [@inline_let] let len = 12ul in [@inline_let] let ctx_len = 0ul in [@inline_let] let k = mk_p256_concrete_ops in [@inline_let] let l = 5ul in [@inline_let] let table_len = 32ul in assert_norm (pow2 (v l) == v table_len); BE.table_inv_precomp len ctx_len k ...
{ "file_name": "code/ecdsap256/Hacl.Impl.P256.PointMul.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 48, "end_line": 49, "start_col": 0, "start_line": 42 }
module Hacl.Impl.P256.PointMul open FStar.Mul open FStar.HyperStack.All open FStar.HyperStack module ST = FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Hacl.Impl.P256.Bignum open Hacl.Impl.P256.Field open Hacl.Impl.P256.Point module LE = Lib.Exponentiation module SE = Spec.Exponentiation module BE = Ha...
{ "checked_file": "/", "dependencies": [ "Spec.P256.Lemmas.fsti.checked", "Spec.P256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "LowStar.Ignore.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "H...
[ { "abbrev": false, "full_module": "Hacl.P256.PrecompTable", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.P256.Group", "short_module": null }, { "abbrev": true, "full_module": "Spec.P256.Lemmas", "short_module": "SL" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Impl.Exponentiation.table_inv_t Lib.IntTypes.U64 (12ul <: FStar.UInt32.t) (32ul <: FStar.UInt32.t)
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Exponentiation.table_inv_precomp", "Lib.IntTypes.U64", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "Prims.l_or", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.range", "Lib.IntTypes.U32", "Prims.pow2", "Lib.IntTypes.v", "Lib.IntTypes.PUB", "FSta...
[]
false
false
false
false
false
let table_inv_w5:BE.table_inv_t U64 12ul 32ul =
[@@ inline_let ]let len = 12ul in [@@ inline_let ]let ctx_len = 0ul in [@@ inline_let ]let k = mk_p256_concrete_ops in [@@ inline_let ]let l = 5ul in [@@ inline_let ]let table_len = 32ul in assert_norm (pow2 (v l) == v table_len); BE.table_inv_precomp len ctx_len k l table_len
false
FStar.PredicateExtensionality.fst
FStar.PredicateExtensionality.peq
val peq : p1: FStar.PredicateExtensionality.predicate a -> p2: FStar.PredicateExtensionality.predicate a -> Prims.logical
let peq (#a:Type) (p1:predicate a) (p2:predicate a) = forall x. (p1 x <==> p2 x)
{ "file_name": "ulib/FStar.PredicateExtensionality.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 28, "end_line": 23, "start_col": 0, "start_line": 22 }
(* 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.PropositionalExtensionality.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked" ], "interface_file": false, "source_file": "FStar.PredicateExtensionality.fst" }
[ { "abbrev": true, "full_module": "FStar.PropositionalExtensionality", "short_module": "P" }, { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": fa...
{ "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
p1: FStar.PredicateExtensionality.predicate a -> p2: FStar.PredicateExtensionality.predicate a -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "FStar.PredicateExtensionality.predicate", "Prims.l_Forall", "Prims.l_iff", "Prims.logical" ]
[]
false
false
false
true
true
let peq (#a: Type) (p1 p2: predicate a) =
forall x. (p1 x <==> p2 x)
false
FStar.PredicateExtensionality.fst
FStar.PredicateExtensionality.predicate
val predicate : a: Type -> Type
let predicate (a:Type) = a -> Tot prop
{ "file_name": "ulib/FStar.PredicateExtensionality.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 38, "end_line": 20, "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.PropositionalExtensionality.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked" ], "interface_file": false, "source_file": "FStar.PredicateExtensionality.fst" }
[ { "abbrev": true, "full_module": "FStar.PropositionalExtensionality", "short_module": "P" }, { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": fa...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> Type
Prims.Tot
[ "total" ]
[]
[ "Prims.prop" ]
[]
false
false
false
true
true
let predicate (a: Type) =
a -> Tot prop
false
FStar.PredicateExtensionality.fst
FStar.PredicateExtensionality.predicateExtensionality
val predicateExtensionality (a: Type) (p1 p2: predicate a) : Lemma (requires (peq #a p1 p2)) (ensures (F.on_domain a p1 == F.on_domain a p2))
val predicateExtensionality (a: Type) (p1 p2: predicate a) : Lemma (requires (peq #a p1 p2)) (ensures (F.on_domain a p1 == F.on_domain a p2))
let predicateExtensionality (a:Type) (p1 p2:predicate a) : Lemma (requires (peq #a p1 p2)) (ensures (F.on_domain a p1==F.on_domain a p2)) = P.axiom(); assert (F.feq p1 p2)
{ "file_name": "ulib/FStar.PredicateExtensionality.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 24, "end_line": 29, "start_col": 0, "start_line": 25 }
(* 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.PropositionalExtensionality.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.FunctionalExtensionality.fsti.checked" ], "interface_file": false, "source_file": "FStar.PredicateExtensionality.fst" }
[ { "abbrev": true, "full_module": "FStar.PropositionalExtensionality", "short_module": "P" }, { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "FStar", "short_module": null }, { "abbrev": fa...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> p1: FStar.PredicateExtensionality.predicate a -> p2: FStar.PredicateExtensionality.predicate a -> FStar.Pervasives.Lemma (requires FStar.PredicateExtensionality.peq p1 p2) (ensures FStar.FunctionalExtensionality.on_domain a p1 == FStar.FunctionalExtensionality.on_domain a...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.PredicateExtensionality.predicate", "Prims._assert", "FStar.FunctionalExtensionality.feq", "Prims.prop", "Prims.unit", "FStar.PropositionalExtensionality.axiom", "FStar.PredicateExtensionality.peq", "Prims.squash", "Prims.eq2", "FStar.FunctionalExtensionality.arrow", "FStar.FunctionalExte...
[]
false
false
true
false
false
let predicateExtensionality (a: Type) (p1 p2: predicate a) : Lemma (requires (peq #a p1 p2)) (ensures (F.on_domain a p1 == F.on_domain a p2)) =
P.axiom (); assert (F.feq p1 p2)
false
Hacl.Impl.P256.PointMul.fst
Hacl.Impl.P256.PointMul.precomp_get_consttime
val precomp_get_consttime: BE.pow_a_to_small_b_st U64 12ul 0ul mk_p256_concrete_ops 4ul 16ul (BE.table_inv_precomp 12ul 0ul mk_p256_concrete_ops 4ul 16ul)
val precomp_get_consttime: BE.pow_a_to_small_b_st U64 12ul 0ul mk_p256_concrete_ops 4ul 16ul (BE.table_inv_precomp 12ul 0ul mk_p256_concrete_ops 4ul 16ul)
let precomp_get_consttime ctx a table bits_l tmp = [@inline_let] let len = 12ul in [@inline_let] let ctx_len = 0ul in [@inline_let] let k = mk_p256_concrete_ops in [@inline_let] let l = 4ul in [@inline_let] let table_len = 16ul in BE.lprecomp_get_consttime len ctx_len k l table_len ctx a table bits_l tmp
{ "file_name": "code/ecdsap256/Hacl.Impl.P256.PointMul.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 76, "end_line": 70, "start_col": 0, "start_line": 63 }
module Hacl.Impl.P256.PointMul open FStar.Mul open FStar.HyperStack.All open FStar.HyperStack module ST = FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Hacl.Impl.P256.Bignum open Hacl.Impl.P256.Field open Hacl.Impl.P256.Point module LE = Lib.Exponentiation module SE = Spec.Exponentiation module BE = Ha...
{ "checked_file": "/", "dependencies": [ "Spec.P256.Lemmas.fsti.checked", "Spec.P256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "LowStar.Ignore.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "H...
[ { "abbrev": false, "full_module": "Hacl.P256.PrecompTable", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.P256.Group", "short_module": null }, { "abbrev": true, "full_module": "Spec.P256.Lemmas", "short_module": "SL" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Hacl.Impl.Exponentiation.pow_a_to_small_b_st Lib.IntTypes.U64 12ul 0ul Hacl.Impl.P256.Group.mk_p256_concrete_ops 4ul 16ul (Hacl.Impl.Exponentiation.table_inv_precomp 12ul 0ul Hacl.Impl.P256.Group.mk_p256_concrete_ops 4ul 16ul)
Prims.Tot
[ "total" ]
[]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "FStar.UInt32.__uint_to_t", "FStar.Ghost.erased", "Lib.Sequence.lseq", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Lib.Buffer.clbuffer", "Lib.IntTypes.op_Star_Bang", "Prims.b2t", "Prims.op_L...
[]
false
false
false
false
false
let precomp_get_consttime ctx a table bits_l tmp =
[@@ inline_let ]let len = 12ul in [@@ inline_let ]let ctx_len = 0ul in [@@ inline_let ]let k = mk_p256_concrete_ops in [@@ inline_let ]let l = 4ul in [@@ inline_let ]let table_len = 16ul in BE.lprecomp_get_consttime len ctx_len k l table_len ctx a table bits_l tmp
false
Hacl.Impl.P256.PointMul.fst
Hacl.Impl.P256.PointMul.lemma_exp_four_fw_local
val lemma_exp_four_fw_local: b:BD.lbignum U64 4{BD.bn_v b < S.order} -> Lemma (let (b0, b1, b2, b3) = SPT256.decompose_nat256_as_four_u64 (BD.bn_v b) in LE.exp_four_fw S.mk_p256_comm_monoid g_aff 64 b0 g_pow2_64 b1 g_pow2_128 b2 g_pow2_192 b3 4 == S.to_aff_point (S.point_mul_g (BD.bn_v b)))
val lemma_exp_four_fw_local: b:BD.lbignum U64 4{BD.bn_v b < S.order} -> Lemma (let (b0, b1, b2, b3) = SPT256.decompose_nat256_as_four_u64 (BD.bn_v b) in LE.exp_four_fw S.mk_p256_comm_monoid g_aff 64 b0 g_pow2_64 b1 g_pow2_128 b2 g_pow2_192 b3 4 == S.to_aff_point (S.point_mul_g (BD.bn_v b)))
let lemma_exp_four_fw_local b = let cm = S.mk_p256_comm_monoid in let (b0, b1, b2, b3) = SPT256.decompose_nat256_as_four_u64 (BD.bn_v b) in let res = LE.exp_four_fw cm g_aff 64 b0 g_pow2_64 b1 g_pow2_128 b2 g_pow2_192 b3 4 in assert (res == SPT256.exp_as_exp_four_nat256_precomp cm g_aff (BD.bn_v b)); SPT256.l...
{ "file_name": "code/ecdsap256/Hacl.Impl.P256.PointMul.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 84, "end_line": 160, "start_col": 0, "start_line": 151 }
module Hacl.Impl.P256.PointMul open FStar.Mul open FStar.HyperStack.All open FStar.HyperStack module ST = FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Hacl.Impl.P256.Bignum open Hacl.Impl.P256.Field open Hacl.Impl.P256.Point module LE = Lib.Exponentiation module SE = Spec.Exponentiation module BE = Ha...
{ "checked_file": "/", "dependencies": [ "Spec.P256.Lemmas.fsti.checked", "Spec.P256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "LowStar.Ignore.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "H...
[ { "abbrev": false, "full_module": "Hacl.P256.PrecompTable", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.P256.Group", "short_module": null }, { "abbrev": true, "full_module": "Spec.P256.Lemmas", "short_module": "SL" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "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 Lib.IntTypes.U64 4 {Hacl.Spec.Bignum.Definitions.bn_v b < Spec.P256.PointOps.order} -> FStar.Pervasives.Lemma (ensures (let _ = Hacl.Spec.PrecompBaseTable256.decompose_nat256_as_four_u64 (Hacl.Spec.Bignum.Definitions.bn_v b...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.lbignum", "Lib.IntTypes.U64", "Prims.b2t", "Prims.op_LessThan", "Hacl.Spec.Bignum.Definitions.bn_v", "Spec.P256.PointOps.order", "Prims.int", "Prims._assert", "Prims.eq2", "Spec.P256.PointOps.aff_point", "Spec.P256.PointOps.to_aff_point", "Spec.P256.point_mul_g", ...
[]
false
false
true
false
false
let lemma_exp_four_fw_local b =
let cm = S.mk_p256_comm_monoid in let b0, b1, b2, b3 = SPT256.decompose_nat256_as_four_u64 (BD.bn_v b) in let res = LE.exp_four_fw cm g_aff 64 b0 g_pow2_64 b1 g_pow2_128 b2 g_pow2_192 b3 4 in assert (res == SPT256.exp_as_exp_four_nat256_precomp cm g_aff (BD.bn_v b)); SPT256.lemma_point_mul_base_precomp4 cm g_aff (BD.bn...
false
Hacl.Impl.Ed25519.Verify.fst
Hacl.Impl.Ed25519.Verify.verify_all_valid_hb
val verify_all_valid_hb (sb hb:lbuffer uint8 32ul) (a' r':point) : Stack bool (requires fun h -> live h sb /\ live h hb /\ live h a' /\ live h r' /\ point_inv_full_t h a' /\ point_inv_full_t h r') (ensures fun h0 z h1 -> modifies0 h0 h1 /\ (z == Spec.Ed25519.( let exp_d = point_negate_mul_double_g...
val verify_all_valid_hb (sb hb:lbuffer uint8 32ul) (a' r':point) : Stack bool (requires fun h -> live h sb /\ live h hb /\ live h a' /\ live h r' /\ point_inv_full_t h a' /\ point_inv_full_t h r') (ensures fun h0 z h1 -> modifies0 h0 h1 /\ (z == Spec.Ed25519.( let exp_d = point_negate_mul_double_g...
let verify_all_valid_hb sb hb a' r' = push_frame (); let exp_d = create 20ul (u64 0) in PM.point_negate_mul_double_g_vartime exp_d sb hb a'; let b = Hacl.Impl.Ed25519.PointEqual.point_equal exp_d r' in let h0 = ST.get () in Spec.Ed25519.Lemmas.point_equal_lemma (F51.point_eval h0 exp_d) (Spec.Ed2551...
{ "file_name": "code/ed25519/Hacl.Impl.Ed25519.Verify.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 45, "start_col": 0, "start_line": 34 }
module Hacl.Impl.Ed25519.Verify open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence open Hacl.Bignum25519 module F51 = Hacl.Impl.Ed25519.Field51 module PM = Hacl.Impl.Ed25519.Ladder #reset-options "--z3rlimi...
{ "checked_file": "/", "dependencies": [ "Spec.Ed25519.Lemmas.fsti.checked", "Spec.Ed25519.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Impl.SHA512.ModQ.fst.checked", "Hacl.Impl.Load56.fst.checked", ...
[ { "abbrev": true, "full_module": "Hacl.Impl.Ed25519.Ladder", "short_module": "PM" }, { "abbrev": true, "full_module": "Hacl.Impl.Ed25519.Field51", "short_module": "F51" }, { "abbrev": false, "full_module": "Hacl.Bignum25519", "short_module": null }, { "abbrev": tr...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
sb: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> hb: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> a': Hacl.Bignum25519.point -> r': Hacl.Bignum25519.point -> FStar.HyperStack.ST.Stack Prims.bool
FStar.HyperStack.ST.Stack
[]
[]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Hacl.Bignum25519.point", "Prims.bool", "Prims.unit", "FStar.HyperStack.ST.pop_frame", "Spec.Ed25519.Lemmas.point_equal_lemma", "Hacl.Impl.Ed25519.Field51.point_eval", "Spec.Ed25519.point_negate_mul_double_g", "Lib.Buffer.as...
[]
false
true
false
false
false
let verify_all_valid_hb sb hb a' r' =
push_frame (); let exp_d = create 20ul (u64 0) in PM.point_negate_mul_double_g_vartime exp_d sb hb a'; let b = Hacl.Impl.Ed25519.PointEqual.point_equal exp_d r' in let h0 = ST.get () in Spec.Ed25519.Lemmas.point_equal_lemma (F51.point_eval h0 exp_d) (Spec.Ed25519.point_negate_mul_double_g (as_seq h0 sb) (as_seq h0 hb...
false
Hacl.Impl.P256.PointMul.fst
Hacl.Impl.P256.PointMul.point_mul_g_double_vartime_noalloc
val point_mul_g_double_vartime_noalloc: out:point -> scalar1:felem -> q1:point -> scalar2:felem -> q2:point -> table2:lbuffer uint64 (32ul *! 12ul) -> Stack unit (requires fun h -> live h out /\ live h scalar1 /\ live h q1 /\ live h scalar2 /\ live h q2 /\ live h table2 /\ eq_or_disjoint q1 q...
val point_mul_g_double_vartime_noalloc: out:point -> scalar1:felem -> q1:point -> scalar2:felem -> q2:point -> table2:lbuffer uint64 (32ul *! 12ul) -> Stack unit (requires fun h -> live h out /\ live h scalar1 /\ live h q1 /\ live h scalar2 /\ live h q2 /\ live h table2 /\ eq_or_disjoint q1 q...
let point_mul_g_double_vartime_noalloc out scalar1 q1 scalar2 q2 table2 = [@inline_let] let len = 12ul in [@inline_let] let ctx_len = 0ul in [@inline_let] let k = mk_p256_concrete_ops in [@inline_let] let l = 5ul in [@inline_let] let table_len = 32ul in [@inline_let] let bLen = 4ul in [@inline_let] let bB...
{ "file_name": "code/ecdsap256/Hacl.Impl.P256.PointMul.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 64, "end_line": 234, "start_col": 0, "start_line": 208 }
module Hacl.Impl.P256.PointMul open FStar.Mul open FStar.HyperStack.All open FStar.HyperStack module ST = FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Hacl.Impl.P256.Bignum open Hacl.Impl.P256.Field open Hacl.Impl.P256.Point module LE = Lib.Exponentiation module SE = Spec.Exponentiation module BE = Ha...
{ "checked_file": "/", "dependencies": [ "Spec.P256.Lemmas.fsti.checked", "Spec.P256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "LowStar.Ignore.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "H...
[ { "abbrev": false, "full_module": "Hacl.P256.PrecompTable", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.P256.Group", "short_module": null }, { "abbrev": true, "full_module": "Spec.P256.Lemmas", "short_module": "SL" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
out: Hacl.Impl.P256.Point.point -> scalar1: Hacl.Impl.P256.Bignum.felem -> q1: Hacl.Impl.P256.Point.point -> scalar2: Hacl.Impl.P256.Bignum.felem -> q2: Hacl.Impl.P256.Point.point -> table2: Lib.Buffer.lbuffer Lib.IntTypes.uint64 (32ul *! 12ul) -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.P256.Point.point", "Hacl.Impl.P256.Bignum.felem", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint64", "Lib.IntTypes.op_Star_Bang", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "FStar.UInt32.__uint_to_t", "Spec.Exponentiation.exp_double_fw_lemma", "Spec.P256.PointOps.proj_point", "Spec.P256.mk_p25...
[]
false
true
false
false
false
let point_mul_g_double_vartime_noalloc out scalar1 q1 scalar2 q2 table2 =
[@@ inline_let ]let len = 12ul in [@@ inline_let ]let ctx_len = 0ul in [@@ inline_let ]let k = mk_p256_concrete_ops in [@@ inline_let ]let l = 5ul in [@@ inline_let ]let table_len = 32ul in [@@ inline_let ]let bLen = 4ul in [@@ inline_let ]let bBits = 256ul in assert_norm (pow2 (v l) == v table_len); let h0 = ST.get ()...
false
Hacl.Impl.Ed25519.PointAdd.fst
Hacl.Impl.Ed25519.PointAdd.point_add
val point_add: out:point -> p:point -> q:point -> Stack unit (requires fun h -> live h out /\ live h p /\ live h q /\ eq_or_disjoint p out /\ eq_or_disjoint q out /\ F51.point_inv_t h p /\ F51.point_inv_t h q) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ F51.point_inv_t h1 out /\ F51.poin...
val point_add: out:point -> p:point -> q:point -> Stack unit (requires fun h -> live h out /\ live h p /\ live h q /\ eq_or_disjoint p out /\ eq_or_disjoint q out /\ F51.point_inv_t h p /\ F51.point_inv_t h q) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ F51.point_inv_t h1 out /\ F51.poin...
let point_add out p q = push_frame(); let tmp = create 30ul (u64 0) in point_add_ out p q tmp; pop_frame()
{ "file_name": "code/ed25519/Hacl.Impl.Ed25519.PointAdd.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 13, "end_line": 145, "start_col": 0, "start_line": 141 }
module Hacl.Impl.Ed25519.PointAdd module ST = FStar.HyperStack.ST open FStar.HyperStack.All open Lib.IntTypes open Lib.Buffer open Hacl.Bignum25519 module F51 = Hacl.Impl.Ed25519.Field51 module SC = Spec.Curve25519 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract val point_add_step_...
{ "checked_file": "/", "dependencies": [ "Spec.Ed25519.fst.checked", "Spec.Curve25519.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Impl.Ed25519.Field51.fst.checked", "Hacl.Bignum25519.fsti.checked", "FStar.UInt32.fsti.checked", ...
[ { "abbrev": true, "full_module": "Spec.Curve25519", "short_module": "SC" }, { "abbrev": true, "full_module": "Hacl.Impl.Ed25519.Field51", "short_module": "F51" }, { "abbrev": false, "full_module": "Hacl.Bignum25519", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
out: Hacl.Bignum25519.point -> p: Hacl.Bignum25519.point -> q: Hacl.Bignum25519.point -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Bignum25519.point", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "Hacl.Impl.Ed25519.PointAdd.point_add_", "Lib.Buffer.lbuffer_t", "Lib.Buffer.MUT", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "FStar.UInt32.uint_to_t", "FStar.UInt32.t", "Lib.Buffer.create", "Lib.IntT...
[]
false
true
false
false
false
let point_add out p q =
push_frame (); let tmp = create 30ul (u64 0) in point_add_ out p q tmp; pop_frame ()
false
Hacl.Impl.Ed25519.PointAdd.fst
Hacl.Impl.Ed25519.PointAdd.point_add_
val point_add_: out:point -> p:point -> q:point -> tmp:lbuffer uint64 30ul -> Stack unit (requires fun h -> live h out /\ live h p /\ live h q /\ live h tmp /\ disjoint tmp p /\ disjoint tmp q /\ disjoint tmp out /\ eq_or_disjoint p out /\ eq_or_disjoint q out /\ F51.point_inv_t h p /\ F51.point_inv_t...
val point_add_: out:point -> p:point -> q:point -> tmp:lbuffer uint64 30ul -> Stack unit (requires fun h -> live h out /\ live h p /\ live h q /\ live h tmp /\ disjoint tmp p /\ disjoint tmp q /\ disjoint tmp out /\ eq_or_disjoint p out /\ eq_or_disjoint q out /\ F51.point_inv_t h p /\ F51.point_inv_t...
let point_add_ out p q tmp = point_add_step_1 p q tmp; point_add_step_2 p q tmp; let tmp_g = sub tmp 0ul 5ul in let tmp_h = sub tmp 5ul 5ul in let tmp_e = sub tmp 20ul 5ul in let tmp_f = sub tmp 25ul 5ul in let x3 = getx out in let y3 = gety out in let z3 = getz out in let t3 = gett out in fmul x3...
{ "file_name": "code/ed25519/Hacl.Impl.Ed25519.PointAdd.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 129, "start_col": 0, "start_line": 115 }
module Hacl.Impl.Ed25519.PointAdd module ST = FStar.HyperStack.ST open FStar.HyperStack.All open Lib.IntTypes open Lib.Buffer open Hacl.Bignum25519 module F51 = Hacl.Impl.Ed25519.Field51 module SC = Spec.Curve25519 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract val point_add_step_...
{ "checked_file": "/", "dependencies": [ "Spec.Ed25519.fst.checked", "Spec.Curve25519.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Impl.Ed25519.Field51.fst.checked", "Hacl.Bignum25519.fsti.checked", "FStar.UInt32.fsti.checked", ...
[ { "abbrev": true, "full_module": "Spec.Curve25519", "short_module": "SC" }, { "abbrev": true, "full_module": "Hacl.Impl.Ed25519.Field51", "short_module": "F51" }, { "abbrev": false, "full_module": "Hacl.Bignum25519", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
out: Hacl.Bignum25519.point -> p: Hacl.Bignum25519.point -> q: Hacl.Bignum25519.point -> tmp: Lib.Buffer.lbuffer Lib.IntTypes.uint64 30ul -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Bignum25519.point", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint64", "FStar.UInt32.__uint_to_t", "Hacl.Bignum25519.fmul", "Prims.unit", "Hacl.Bignum25519.felem", "Hacl.Bignum25519.gett", "Hacl.Bignum25519.getz", "Hacl.Bignum25519.gety", "Hacl.Bignum25519.getx", "Lib.Buffer.lbuffer_t", "Lib...
[]
false
true
false
false
false
let point_add_ out p q tmp =
point_add_step_1 p q tmp; point_add_step_2 p q tmp; let tmp_g = sub tmp 0ul 5ul in let tmp_h = sub tmp 5ul 5ul in let tmp_e = sub tmp 20ul 5ul in let tmp_f = sub tmp 25ul 5ul in let x3 = getx out in let y3 = gety out in let z3 = getz out in let t3 = gett out in fmul x3 tmp_e tmp_f; fmul y3 tmp_g tmp_h; fmul t3 tmp_e tm...
false
Hacl.Impl.P256.PointMul.fst
Hacl.Impl.P256.PointMul.point_mul_g_noalloc
val point_mul_g_noalloc: out:point -> scalar:felem -> q1:point -> q2:point -> q3:point -> q4:point -> Stack unit (requires fun h -> live h scalar /\ live h out /\ live h q1 /\ live h q2 /\ live h q3 /\ live h q4 /\ disjoint out scalar /\ disjoint out q1 /\ disjoint out q2 /\ disjoint out q3 /\ d...
val point_mul_g_noalloc: out:point -> scalar:felem -> q1:point -> q2:point -> q3:point -> q4:point -> Stack unit (requires fun h -> live h scalar /\ live h out /\ live h q1 /\ live h q2 /\ live h q3 /\ live h q4 /\ disjoint out scalar /\ disjoint out q1 /\ disjoint out q2 /\ disjoint out q3 /\ d...
let point_mul_g_noalloc out scalar q1 q2 q3 q4 = [@inline_let] let len = 12ul in [@inline_let] let ctx_len = 0ul in [@inline_let] let k = mk_p256_concrete_ops in [@inline_let] let l = 4ul in [@inline_let] let table_len = 16ul in [@inline_let] let bLen = 1ul in [@inline_let] let bBits = 64ul in let h0 =...
{ "file_name": "code/ecdsap256/Hacl.Impl.P256.PointMul.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 7, "end_line": 143, "start_col": 0, "start_line": 96 }
module Hacl.Impl.P256.PointMul open FStar.Mul open FStar.HyperStack.All open FStar.HyperStack module ST = FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Hacl.Impl.P256.Bignum open Hacl.Impl.P256.Field open Hacl.Impl.P256.Point module LE = Lib.Exponentiation module SE = Spec.Exponentiation module BE = Ha...
{ "checked_file": "/", "dependencies": [ "Spec.P256.Lemmas.fsti.checked", "Spec.P256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "LowStar.Ignore.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "H...
[ { "abbrev": false, "full_module": "Hacl.P256.PrecompTable", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.P256.Group", "short_module": null }, { "abbrev": true, "full_module": "Spec.P256.Lemmas", "short_module": "SL" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
out: Hacl.Impl.P256.Point.point -> scalar: Hacl.Impl.P256.Bignum.felem -> q1: Hacl.Impl.P256.Point.point -> q2: Hacl.Impl.P256.Point.point -> q3: Hacl.Impl.P256.Point.point -> q4: Hacl.Impl.P256.Point.point -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.P256.Point.point", "Hacl.Impl.P256.Bignum.felem", "Hacl.Impl.MultiExponentiation.mk_lexp_four_fw_tables", "Lib.IntTypes.U64", "Hacl.Impl.P256.PointMul.table_inv_w4", "Hacl.Impl.P256.PointMul.precomp_get_consttime", "Lib.Buffer.null", "Lib.Buffer.MUT", "Lib.IntTypes.uint64", "Lib.Buffer....
[]
false
true
false
false
false
let point_mul_g_noalloc out scalar q1 q2 q3 q4 =
[@@ inline_let ]let len = 12ul in [@@ inline_let ]let ctx_len = 0ul in [@@ inline_let ]let k = mk_p256_concrete_ops in [@@ inline_let ]let l = 4ul in [@@ inline_let ]let table_len = 16ul in [@@ inline_let ]let bLen = 1ul in [@@ inline_let ]let bBits = 64ul in let h0 = ST.get () in recall_contents precomp_basepoint_tabl...
false
Hacl.Impl.Ed25519.Verify.fst
Hacl.Impl.Ed25519.Verify.verify_valid_pk
val verify_valid_pk: public_key:lbuffer uint8 32ul -> msg_len:size_t -> msg:lbuffer uint8 msg_len -> signature:lbuffer uint8 64ul -> a':point -> Stack bool (requires fun h -> live h public_key /\ live h msg /\ live h signature /\ live h a' /\ (Some? (Spec.Ed25519.point_decompress (as_seq h...
val verify_valid_pk: public_key:lbuffer uint8 32ul -> msg_len:size_t -> msg:lbuffer uint8 msg_len -> signature:lbuffer uint8 64ul -> a':point -> Stack bool (requires fun h -> live h public_key /\ live h msg /\ live h signature /\ live h a' /\ (Some? (Spec.Ed25519.point_decompress (as_seq h...
let verify_valid_pk public_key msg_len msg signature a' = push_frame (); let r' = create 20ul (u64 0) in let rs = sub signature 0ul 32ul in let h0 = ST.get () in Spec.Ed25519.Lemmas.point_decompress_lemma (as_seq h0 rs); let b' = Hacl.Impl.Ed25519.PointDecompress.point_decompress r' rs in let res = if b' ...
{ "file_name": "code/ed25519/Hacl.Impl.Ed25519.Verify.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 121, "start_col": 0, "start_line": 112 }
module Hacl.Impl.Ed25519.Verify open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence open Hacl.Bignum25519 module F51 = Hacl.Impl.Ed25519.Field51 module PM = Hacl.Impl.Ed25519.Ladder #reset-options "--z3rlimi...
{ "checked_file": "/", "dependencies": [ "Spec.Ed25519.Lemmas.fsti.checked", "Spec.Ed25519.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Impl.SHA512.ModQ.fst.checked", "Hacl.Impl.Load56.fst.checked", ...
[ { "abbrev": true, "full_module": "Hacl.Impl.Ed25519.Ladder", "short_module": "PM" }, { "abbrev": true, "full_module": "Hacl.Impl.Ed25519.Field51", "short_module": "F51" }, { "abbrev": false, "full_module": "Hacl.Bignum25519", "short_module": null }, { "abbrev": tr...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
public_key: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> msg_len: Lib.IntTypes.size_t -> msg: Lib.Buffer.lbuffer Lib.IntTypes.uint8 msg_len -> signature: Lib.Buffer.lbuffer Lib.IntTypes.uint8 64ul -> a': Hacl.Bignum25519.point -> FStar.HyperStack.ST.Stack Prims.bool
FStar.HyperStack.ST.Stack
[]
[]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.size_t", "Hacl.Bignum25519.point", "Prims.bool", "Prims.unit", "FStar.HyperStack.ST.pop_frame", "Hacl.Impl.Ed25519.Verify.verify_valid_pk_rs", "Hacl.Impl.Ed25519.PointDecompress.point_decompress", "Spec.Ed25519...
[]
false
true
false
false
false
let verify_valid_pk public_key msg_len msg signature a' =
push_frame (); let r' = create 20ul (u64 0) in let rs = sub signature 0ul 32ul in let h0 = ST.get () in Spec.Ed25519.Lemmas.point_decompress_lemma (as_seq h0 rs); let b' = Hacl.Impl.Ed25519.PointDecompress.point_decompress r' rs in let res = if b' then verify_valid_pk_rs public_key msg_len msg signature a' r' else fals...
false
Hacl.Impl.Ed25519.PointAdd.fst
Hacl.Impl.Ed25519.PointAdd.point_add_step_1
val point_add_step_1: p:point -> q:point -> tmp:lbuffer uint64 30ul -> Stack unit (requires fun h -> live h p /\ live h q /\ live h tmp /\ disjoint tmp p /\ disjoint tmp q /\ F51.point_inv_t h p /\ F51.point_inv_t h q) (ensures fun h0 _ h1 -> modifies (loc tmp) h0 h1 /\ (let x1 = F51.fevalh h0 (gsub ...
val point_add_step_1: p:point -> q:point -> tmp:lbuffer uint64 30ul -> Stack unit (requires fun h -> live h p /\ live h q /\ live h tmp /\ disjoint tmp p /\ disjoint tmp q /\ F51.point_inv_t h p /\ F51.point_inv_t h q) (ensures fun h0 _ h1 -> modifies (loc tmp) h0 h1 /\ (let x1 = F51.fevalh h0 (gsub ...
let point_add_step_1 p q tmp = let tmp1 = sub tmp 0ul 5ul in let tmp2 = sub tmp 5ul 5ul in let tmp3 = sub tmp 10ul 5ul in let tmp4 = sub tmp 15ul 5ul in let x1 = getx p in let y1 = gety p in let x2 = getx q in let y2 = gety q in fdifference tmp1 y1 x1; // tmp1 = y1 - x1 fdifference tmp2 y2 x2; // ...
{ "file_name": "code/ed25519/Hacl.Impl.Ed25519.PointAdd.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 48, "start_col": 0, "start_line": 34 }
module Hacl.Impl.Ed25519.PointAdd module ST = FStar.HyperStack.ST open FStar.HyperStack.All open Lib.IntTypes open Lib.Buffer open Hacl.Bignum25519 module F51 = Hacl.Impl.Ed25519.Field51 module SC = Spec.Curve25519 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract val point_add_step_...
{ "checked_file": "/", "dependencies": [ "Spec.Ed25519.fst.checked", "Spec.Curve25519.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Impl.Ed25519.Field51.fst.checked", "Hacl.Bignum25519.fsti.checked", "FStar.UInt32.fsti.checked", ...
[ { "abbrev": true, "full_module": "Spec.Curve25519", "short_module": "SC" }, { "abbrev": true, "full_module": "Hacl.Impl.Ed25519.Field51", "short_module": "F51" }, { "abbrev": false, "full_module": "Hacl.Bignum25519", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Hacl.Bignum25519.point -> q: Hacl.Bignum25519.point -> tmp: Lib.Buffer.lbuffer Lib.IntTypes.uint64 30ul -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Bignum25519.point", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint64", "FStar.UInt32.__uint_to_t", "Hacl.Bignum25519.fmul", "Prims.unit", "Hacl.Bignum25519.fsum", "Hacl.Bignum25519.fdifference", "Hacl.Bignum25519.felem", "Hacl.Bignum25519.gety", "Hacl.Bignum25519.getx", "Lib.Buffer.lbuffer_t",...
[]
false
true
false
false
false
let point_add_step_1 p q tmp =
let tmp1 = sub tmp 0ul 5ul in let tmp2 = sub tmp 5ul 5ul in let tmp3 = sub tmp 10ul 5ul in let tmp4 = sub tmp 15ul 5ul in let x1 = getx p in let y1 = gety p in let x2 = getx q in let y2 = gety q in fdifference tmp1 y1 x1; fdifference tmp2 y2 x2; fmul tmp3 tmp1 tmp2; fsum tmp1 y1 x1; fsum tmp2 y2 x2; fmul tmp4 tmp1 tmp2
false
Hacl.Impl.P256.Sign.fst
Hacl.Impl.P256.Sign.lbytes
val lbytes : len: Lib.IntTypes.size_t -> Type0
let lbytes len = lbuffer uint8 len
{ "file_name": "code/ecdsap256/Hacl.Impl.P256.Sign.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 34, "end_line": 26, "start_col": 0, "start_line": 26 }
module Hacl.Impl.P256.Sign open FStar.Mul open FStar.HyperStack.All open FStar.HyperStack module ST = FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Hacl.Impl.P256.Bignum open Hacl.Impl.P256.Scalar open Hacl.Impl.P256.Point open Hacl.Impl.P256.PointMul module S = Spec.P256 module SM = Hacl.Spec.P256.Mo...
{ "checked_file": "/", "dependencies": [ "Spec.P256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.P256.Montgomery.fsti.checked", "Hacl.Impl.P256.Scalar.fsti.checked", "Hacl.Impl.P256.Qinv.fsti.ch...
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Impl.P256.Qinv", "short_module": "QI" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "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 -> Type0
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_t", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8" ]
[]
false
false
false
true
true
let lbytes len =
lbuffer uint8 len
false
Hacl.Impl.P256.PointMul.fst
Hacl.Impl.P256.PointMul.point_mul_double_g
val point_mul_double_g: res:point -> scalar1:felem -> scalar2:felem -> p:point -> Stack unit (requires fun h -> live h res /\ live h scalar1 /\ live h scalar2 /\ live h p /\ disjoint res scalar1 /\ disjoint res scalar2 /\ disjoint res p /\ disjoint p scalar1 /\ disjoint p scalar2 /\ point_inv h p /\ a...
val point_mul_double_g: res:point -> scalar1:felem -> scalar2:felem -> p:point -> Stack unit (requires fun h -> live h res /\ live h scalar1 /\ live h scalar2 /\ live h p /\ disjoint res scalar1 /\ disjoint res scalar2 /\ disjoint res p /\ disjoint p scalar1 /\ disjoint p scalar2 /\ point_inv h p /\ a...
let point_mul_double_g res scalar1 scalar2 q2 = push_frame (); [@inline_let] let len = 12ul in [@inline_let] let ctx_len = 0ul in [@inline_let] let k = mk_p256_concrete_ops in [@inline_let] let table_len = 32ul in assert_norm (pow2 5 == v table_len); let q1 = create_point () in make_base_point q1; l...
{ "file_name": "code/ecdsap256/Hacl.Impl.P256.PointMul.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 254, "start_col": 0, "start_line": 238 }
module Hacl.Impl.P256.PointMul open FStar.Mul open FStar.HyperStack.All open FStar.HyperStack module ST = FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Hacl.Impl.P256.Bignum open Hacl.Impl.P256.Field open Hacl.Impl.P256.Point module LE = Lib.Exponentiation module SE = Spec.Exponentiation module BE = Ha...
{ "checked_file": "/", "dependencies": [ "Spec.P256.Lemmas.fsti.checked", "Spec.P256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "LowStar.Ignore.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "H...
[ { "abbrev": true, "full_module": "Spec.P256.Lemmas", "short_module": "SL" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "BD" }, { "abbrev": true, "full_module": "Hacl.Spec.PrecompBaseTable256", "short_module": "SPT256" }, { "a...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
res: Hacl.Impl.P256.Point.point -> scalar1: Hacl.Impl.P256.Bignum.felem -> scalar2: Hacl.Impl.P256.Bignum.felem -> p: Hacl.Impl.P256.Point.point -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.P256.Point.point", "Hacl.Impl.P256.Bignum.felem", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "Hacl.Impl.P256.PointMul.point_mul_g_double_vartime_noalloc", "Prims._assert", "Hacl.Impl.P256.PointMul.table_inv_w5", "Lib.Buffer.as_seq", "Lib.Buffer.MUT", "Lib.IntTypes.uint64", "FStar....
[]
false
true
false
false
false
let point_mul_double_g res scalar1 scalar2 q2 =
push_frame (); [@@ inline_let ]let len = 12ul in [@@ inline_let ]let ctx_len = 0ul in [@@ inline_let ]let k = mk_p256_concrete_ops in [@@ inline_let ]let table_len = 32ul in assert_norm (pow2 5 == v table_len); let q1 = create_point () in make_base_point q1; let table2 = create (table_len *! len) (u64 0) in PT.lprecomp...
false
Hacl.Impl.P256.Sign.fst
Hacl.Impl.P256.Sign.ecdsa_sign_load
val ecdsa_sign_load (d_a k_q:felem) (private_key nonce:lbytes 32ul) : Stack uint64 (requires fun h -> live h private_key /\ live h nonce /\ live h d_a /\ live h k_q /\ disjoint d_a k_q /\ disjoint d_a private_key /\ disjoint d_a nonce /\ disjoint k_q private_key /\ disjoint k_q nonce) (ensures fun h0 m ...
val ecdsa_sign_load (d_a k_q:felem) (private_key nonce:lbytes 32ul) : Stack uint64 (requires fun h -> live h private_key /\ live h nonce /\ live h d_a /\ live h k_q /\ disjoint d_a k_q /\ disjoint d_a private_key /\ disjoint d_a nonce /\ disjoint k_q private_key /\ disjoint k_q nonce) (ensures fun h0 m ...
let ecdsa_sign_load d_a k_q private_key nonce = let is_sk_valid = load_qelem_conditional d_a private_key in let is_nonce_valid = load_qelem_conditional k_q nonce in let m = is_sk_valid &. is_nonce_valid in logand_lemma is_sk_valid is_nonce_valid; m
{ "file_name": "code/ecdsap256/Hacl.Impl.P256.Sign.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 108, "start_col": 0, "start_line": 103 }
module Hacl.Impl.P256.Sign open FStar.Mul open FStar.HyperStack.All open FStar.HyperStack module ST = FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Hacl.Impl.P256.Bignum open Hacl.Impl.P256.Scalar open Hacl.Impl.P256.Point open Hacl.Impl.P256.PointMul module S = Spec.P256 module SM = Hacl.Spec.P256.Mo...
{ "checked_file": "/", "dependencies": [ "Spec.P256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.P256.Montgomery.fsti.checked", "Hacl.Impl.P256.Scalar.fsti.checked", "Hacl.Impl.P256.Qinv.fsti.ch...
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Impl.P256.Qinv", "short_module": "QI" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
d_a: Hacl.Impl.P256.Bignum.felem -> k_q: Hacl.Impl.P256.Bignum.felem -> private_key: Hacl.Impl.P256.Sign.lbytes 32ul -> nonce: Hacl.Impl.P256.Sign.lbytes 32ul -> FStar.HyperStack.ST.Stack Lib.IntTypes.uint64
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.P256.Bignum.felem", "Hacl.Impl.P256.Sign.lbytes", "FStar.UInt32.__uint_to_t", "Prims.unit", "Lib.IntTypes.logand_lemma", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Lib.IntTypes.int_t", "Lib.IntTypes.op_Amp_Dot", "Lib.IntTypes.uint64", "Hacl.Impl.P256.Scalar.load_qelem_conditional" ]
[]
false
true
false
false
false
let ecdsa_sign_load d_a k_q private_key nonce =
let is_sk_valid = load_qelem_conditional d_a private_key in let is_nonce_valid = load_qelem_conditional k_q nonce in let m = is_sk_valid &. is_nonce_valid in logand_lemma is_sk_valid is_nonce_valid; m
false
Hacl.Impl.P256.Sign.fst
Hacl.Impl.P256.Sign.check_signature
val check_signature: are_sk_nonce_valid:uint64 -> r_q:felem -> s_q:felem -> Stack bool (requires fun h -> live h r_q /\ live h s_q /\ disjoint r_q s_q /\ (v are_sk_nonce_valid = ones_v U64 \/ v are_sk_nonce_valid = 0)) (ensures fun h0 res h1 -> modifies0 h0 h1 /\ res == ((v are_sk_nonce_valid = ones_v U...
val check_signature: are_sk_nonce_valid:uint64 -> r_q:felem -> s_q:felem -> Stack bool (requires fun h -> live h r_q /\ live h s_q /\ disjoint r_q s_q /\ (v are_sk_nonce_valid = ones_v U64 \/ v are_sk_nonce_valid = 0)) (ensures fun h0 res h1 -> modifies0 h0 h1 /\ res == ((v are_sk_nonce_valid = ones_v U...
let check_signature are_sk_nonce_valid r_q s_q = let h0 = ST.get () in let is_r_zero = bn_is_zero_mask4 r_q in let is_s_zero = bn_is_zero_mask4 s_q in [@inline_let] let m0 = lognot is_r_zero in [@inline_let] let m1 = lognot is_s_zero in [@inline_let] let m2 = m0 &. m1 in lognot_lemma is_r_zero; lognot_l...
{ "file_name": "code/ecdsap256/Hacl.Impl.P256.Sign.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 26, "end_line": 133, "start_col": 0, "start_line": 119 }
module Hacl.Impl.P256.Sign open FStar.Mul open FStar.HyperStack.All open FStar.HyperStack module ST = FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Hacl.Impl.P256.Bignum open Hacl.Impl.P256.Scalar open Hacl.Impl.P256.Point open Hacl.Impl.P256.PointMul module S = Spec.P256 module SM = Hacl.Spec.P256.Mo...
{ "checked_file": "/", "dependencies": [ "Spec.P256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.P256.Montgomery.fsti.checked", "Hacl.Impl.P256.Scalar.fsti.checked", "Hacl.Impl.P256.Qinv.fsti.ch...
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Impl.P256.Qinv", "short_module": "QI" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
are_sk_nonce_valid: Lib.IntTypes.uint64 -> r_q: Hacl.Impl.P256.Bignum.felem -> s_q: Hacl.Impl.P256.Bignum.felem -> FStar.HyperStack.ST.Stack Prims.bool
FStar.HyperStack.ST.Stack
[]
[]
[ "Lib.IntTypes.uint64", "Hacl.Impl.P256.Bignum.felem", "Hacl.Spec.Bignum.Base.unsafe_bool_of_limb", "Lib.IntTypes.U64", "Prims.unit", "Prims._assert", "Prims.l_iff", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Lib.IntTypes.v", "Lib.IntTypes.SEC", "Lib.IntTypes.ones_v", "Prims.op_AmpAmp"...
[]
false
true
false
false
false
let check_signature are_sk_nonce_valid r_q s_q =
let h0 = ST.get () in let is_r_zero = bn_is_zero_mask4 r_q in let is_s_zero = bn_is_zero_mask4 s_q in [@@ inline_let ]let m0 = lognot is_r_zero in [@@ inline_let ]let m1 = lognot is_s_zero in [@@ inline_let ]let m2 = m0 &. m1 in lognot_lemma is_r_zero; lognot_lemma is_s_zero; logand_lemma m0 m1; let m = are_sk_nonce_va...
false
Hacl.Impl.P256.Sign.fst
Hacl.Impl.P256.Sign.ecdsa_sign_r
val ecdsa_sign_r (r k:felem) : Stack unit (requires fun h -> live h r /\ live h k /\ disjoint r k /\ as_nat h k < S.order) (ensures fun h0 _ h1 -> modifies (loc r) h0 h1 /\ (let x, _ = S.to_aff_point (S.point_mul_g (as_nat h0 k)) in as_nat h1 r == x % S.order))
val ecdsa_sign_r (r k:felem) : Stack unit (requires fun h -> live h r /\ live h k /\ disjoint r k /\ as_nat h k < S.order) (ensures fun h0 _ h1 -> modifies (loc r) h0 h1 /\ (let x, _ = S.to_aff_point (S.point_mul_g (as_nat h0 k)) in as_nat h1 r == x % S.order))
let ecdsa_sign_r r k = push_frame (); let p = create_point () in point_mul_g p k; // p = [k]G to_aff_point_x r p; qmod_short r r; pop_frame ()
{ "file_name": "code/ecdsap256/Hacl.Impl.P256.Sign.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 43, "start_col": 0, "start_line": 37 }
module Hacl.Impl.P256.Sign open FStar.Mul open FStar.HyperStack.All open FStar.HyperStack module ST = FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Hacl.Impl.P256.Bignum open Hacl.Impl.P256.Scalar open Hacl.Impl.P256.Point open Hacl.Impl.P256.PointMul module S = Spec.P256 module SM = Hacl.Spec.P256.Mo...
{ "checked_file": "/", "dependencies": [ "Spec.P256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.P256.Montgomery.fsti.checked", "Hacl.Impl.P256.Scalar.fsti.checked", "Hacl.Impl.P256.Qinv.fsti.ch...
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Impl.P256.Qinv", "short_module": "QI" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "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: Hacl.Impl.P256.Bignum.felem -> k: Hacl.Impl.P256.Bignum.felem -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.P256.Bignum.felem", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "Hacl.Impl.P256.Scalar.qmod_short", "Hacl.Impl.P256.Point.to_aff_point_x", "Hacl.Impl.P256.PointMul.point_mul_g", "Hacl.Impl.P256.Point.point", "Hacl.Impl.P256.Point.create_point", "FStar.HyperStack.ST.push_frame" ]
[]
false
true
false
false
false
let ecdsa_sign_r r k =
push_frame (); let p = create_point () in point_mul_g p k; to_aff_point_x r p; qmod_short r r; pop_frame ()
false
Hacl.Impl.P256.Sign.fst
Hacl.Impl.P256.Sign.ecdsa_sign_s
val ecdsa_sign_s (s k r d_a m:felem) : Stack unit (requires fun h -> live h s /\ live h m /\ live h d_a /\ live h k /\ live h r /\ disjoint s r /\ disjoint s k /\ disjoint r k /\ disjoint s d_a /\ disjoint r d_a /\ disjoint m s /\ 0 < as_nat h k /\ as_nat h k < S.order /\ as_nat h r < S.order /\ ...
val ecdsa_sign_s (s k r d_a m:felem) : Stack unit (requires fun h -> live h s /\ live h m /\ live h d_a /\ live h k /\ live h r /\ disjoint s r /\ disjoint s k /\ disjoint r k /\ disjoint s d_a /\ disjoint r d_a /\ disjoint m s /\ 0 < as_nat h k /\ as_nat h k < S.order /\ as_nat h r < S.order /\ ...
let ecdsa_sign_s s k r d_a m = push_frame (); let h0 = ST.get () in let kinv = create_felem () in QI.qinv kinv k; let h1 = ST.get () in assert (qmont_as_nat h1 kinv == S.qinv (qmont_as_nat h0 k)); SM.qmont_inv_lemma (as_nat h0 k); assert (qmont_as_nat h1 kinv == S.qinv (as_nat h0 k) * SM.qmont_R % S.ord...
{ "file_name": "code/ecdsap256/Hacl.Impl.P256.Sign.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 84, "start_col": 0, "start_line": 60 }
module Hacl.Impl.P256.Sign open FStar.Mul open FStar.HyperStack.All open FStar.HyperStack module ST = FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Hacl.Impl.P256.Bignum open Hacl.Impl.P256.Scalar open Hacl.Impl.P256.Point open Hacl.Impl.P256.PointMul module S = Spec.P256 module SM = Hacl.Spec.P256.Mo...
{ "checked_file": "/", "dependencies": [ "Spec.P256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.P256.Montgomery.fsti.checked", "Hacl.Impl.P256.Scalar.fsti.checked", "Hacl.Impl.P256.Qinv.fsti.ch...
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Impl.P256.Qinv", "short_module": "QI" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Hacl.Impl.P256.Bignum.felem -> k: Hacl.Impl.P256.Bignum.felem -> r: Hacl.Impl.P256.Bignum.felem -> d_a: Hacl.Impl.P256.Bignum.felem -> m: Hacl.Impl.P256.Bignum.felem -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.P256.Bignum.felem", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "Hacl.Spec.P256.Montgomery.lemma_ecdsa_sign_s", "Hacl.Impl.P256.Bignum.as_nat", "Prims._assert", "Prims.eq2", "Prims.int", "Prims.op_Modulus", "FStar.Mul.op_Star", "Hacl.Spec.P256.Montgomery.qmont_R_inv", "Spec.P256....
[]
false
true
false
false
false
let ecdsa_sign_s s k r d_a m =
push_frame (); let h0 = ST.get () in let kinv = create_felem () in QI.qinv kinv k; let h1 = ST.get () in assert (qmont_as_nat h1 kinv == S.qinv (qmont_as_nat h0 k)); SM.qmont_inv_lemma (as_nat h0 k); assert (qmont_as_nat h1 kinv == S.qinv (as_nat h0 k) * SM.qmont_R % S.order); qmul s r d_a; let h2 = ST.get () in assert...
false
Hacl.Impl.P256.PointMul.fst
Hacl.Impl.P256.PointMul.point_mul_g
val point_mul_g: res:point -> scalar:felem -> Stack unit (requires fun h -> live h res /\ live h scalar /\ disjoint res scalar /\ as_nat h scalar < S.order) (ensures fun h0 _ h1 -> modifies (loc res) h0 h1 /\ point_inv h1 res /\ S.to_aff_point (from_mont_point (as_point_nat h1 res)) == S.to_aff_...
val point_mul_g: res:point -> scalar:felem -> Stack unit (requires fun h -> live h res /\ live h scalar /\ disjoint res scalar /\ as_nat h scalar < S.order) (ensures fun h0 _ h1 -> modifies (loc res) h0 h1 /\ point_inv h1 res /\ S.to_aff_point (from_mont_point (as_point_nat h1 res)) == S.to_aff_...
let point_mul_g res scalar = push_frame (); let h0 = ST.get () in let q1 = create_point () in make_base_point q1; let q2 = mk_proj_g_pow2_64 () in let q3 = mk_proj_g_pow2_128 () in let q4 = mk_proj_g_pow2_192 () in proj_g_pow2_64_lseq_lemma (); proj_g_pow2_128_lseq_lemma (); proj_g_pow2_192_lseq_lem...
{ "file_name": "code/ecdsap256/Hacl.Impl.P256.PointMul.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 181, "start_col": 0, "start_line": 164 }
module Hacl.Impl.P256.PointMul open FStar.Mul open FStar.HyperStack.All open FStar.HyperStack module ST = FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Hacl.Impl.P256.Bignum open Hacl.Impl.P256.Field open Hacl.Impl.P256.Point module LE = Lib.Exponentiation module SE = Spec.Exponentiation module BE = Ha...
{ "checked_file": "/", "dependencies": [ "Spec.P256.Lemmas.fsti.checked", "Spec.P256.fst.checked", "Spec.Exponentiation.fsti.checked", "prims.fst.checked", "LowStar.Ignore.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Exponentiation.fsti.checked", "Lib.Buffer.fsti.checked", "H...
[ { "abbrev": true, "full_module": "Spec.P256.Lemmas", "short_module": "SL" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "BD" }, { "abbrev": true, "full_module": "Hacl.Spec.PrecompBaseTable256", "short_module": "SPT256" }, { "a...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
res: Hacl.Impl.P256.Point.point -> scalar: Hacl.Impl.P256.Bignum.felem -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.P256.Point.point", "Hacl.Impl.P256.Bignum.felem", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "Hacl.Impl.P256.PointMul.lemma_exp_four_fw_local", "Lib.Buffer.as_seq", "Lib.Buffer.MUT", "Lib.IntTypes.uint64", "Lib.IntTypes.size", "LowStar.Ignore.ignore", "Lib.Buffer.lbuffer", "FSta...
[]
false
true
false
false
false
let point_mul_g res scalar =
push_frame (); let h0 = ST.get () in let q1 = create_point () in make_base_point q1; let q2 = mk_proj_g_pow2_64 () in let q3 = mk_proj_g_pow2_128 () in let q4 = mk_proj_g_pow2_192 () in proj_g_pow2_64_lseq_lemma (); proj_g_pow2_128_lseq_lemma (); proj_g_pow2_192_lseq_lemma (); point_mul_g_noalloc res scalar q1 q2 q3 q4...
false
Hacl.Impl.P256.Sign.fst
Hacl.Impl.P256.Sign.ecdsa_sign_msg_as_qelem
val ecdsa_sign_msg_as_qelem: signature:lbuffer uint8 64ul -> m_q:felem -> private_key:lbuffer uint8 32ul -> nonce:lbuffer uint8 32ul -> Stack bool (requires fun h -> live h signature /\ live h m_q /\ live h private_key /\ live h nonce /\ disjoint signature m_q /\ disjoint signature private_key /\ ...
val ecdsa_sign_msg_as_qelem: signature:lbuffer uint8 64ul -> m_q:felem -> private_key:lbuffer uint8 32ul -> nonce:lbuffer uint8 32ul -> Stack bool (requires fun h -> live h signature /\ live h m_q /\ live h private_key /\ live h nonce /\ disjoint signature m_q /\ disjoint signature private_key /\ ...
let ecdsa_sign_msg_as_qelem signature m_q private_key nonce = push_frame (); let rsdk_q = create 16ul (u64 0) in let r_q = sub rsdk_q 0ul 4ul in let s_q = sub rsdk_q 4ul 4ul in let d_a = sub rsdk_q 8ul 4ul in let k_q = sub rsdk_q 12ul 4ul in let are_sk_nonce_valid = ecdsa_sign_load d_a k_q private_key non...
{ "file_name": "code/ecdsap256/Hacl.Impl.P256.Sign.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 166, "start_col": 0, "start_line": 153 }
module Hacl.Impl.P256.Sign open FStar.Mul open FStar.HyperStack.All open FStar.HyperStack module ST = FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Hacl.Impl.P256.Bignum open Hacl.Impl.P256.Scalar open Hacl.Impl.P256.Point open Hacl.Impl.P256.PointMul module S = Spec.P256 module SM = Hacl.Spec.P256.Mo...
{ "checked_file": "/", "dependencies": [ "Spec.P256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.P256.Montgomery.fsti.checked", "Hacl.Impl.P256.Scalar.fsti.checked", "Hacl.Impl.P256.Qinv.fsti.ch...
[ { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": true, "full_module": "Hacl.Bignum.Base", "short_module": "BB" }, { "abbrev": true, "full_module": "Hacl.Impl.P256.Qinv", "short_module": "QI" }, { "abbrev": true, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
signature: Lib.Buffer.lbuffer Lib.IntTypes.uint8 64ul -> m_q: Hacl.Impl.P256.Bignum.felem -> private_key: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> nonce: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> FStar.HyperStack.ST.Stack Prims.bool
FStar.HyperStack.ST.Stack
[]
[]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Hacl.Impl.P256.Bignum.felem", "Prims.bool", "Prims.unit", "FStar.HyperStack.ST.pop_frame", "Hacl.Impl.P256.Sign.check_signature", "Hacl.Impl.P256.Bignum.bn2_to_bytes_be4", "Hacl.Impl.P256.Sign.ecdsa_sign_s", "Hacl.Impl.P256...
[]
false
true
false
false
false
let ecdsa_sign_msg_as_qelem signature m_q private_key nonce =
push_frame (); let rsdk_q = create 16ul (u64 0) in let r_q = sub rsdk_q 0ul 4ul in let s_q = sub rsdk_q 4ul 4ul in let d_a = sub rsdk_q 8ul 4ul in let k_q = sub rsdk_q 12ul 4ul in let are_sk_nonce_valid = ecdsa_sign_load d_a k_q private_key nonce in ecdsa_sign_r r_q k_q; ecdsa_sign_s s_q k_q r_q d_a m_q; bn2_to_bytes_b...
false
Hacl.Impl.Ed25519.PointAdd.fst
Hacl.Impl.Ed25519.PointAdd.point_add_step_2
val point_add_step_2: p:point -> q:point -> tmp:lbuffer uint64 30ul -> Stack unit (requires fun h -> live h p /\ live h q /\ live h tmp /\ disjoint tmp p /\ disjoint tmp q /\ F51.point_inv_t h p /\ F51.point_inv_t h q /\ F51.mul_inv_t h (gsub tmp 10ul 5ul) /\ F51.mul_inv_t h (gsub tmp 15ul 5ul)) ...
val point_add_step_2: p:point -> q:point -> tmp:lbuffer uint64 30ul -> Stack unit (requires fun h -> live h p /\ live h q /\ live h tmp /\ disjoint tmp p /\ disjoint tmp q /\ F51.point_inv_t h p /\ F51.point_inv_t h q /\ F51.mul_inv_t h (gsub tmp 10ul 5ul) /\ F51.mul_inv_t h (gsub tmp 15ul 5ul)) ...
let point_add_step_2 p q tmp = let tmp1 = sub tmp 0ul 5ul in // g let tmp2 = sub tmp 5ul 5ul in // h let tmp3 = sub tmp 10ul 5ul in // a let tmp4 = sub tmp 15ul 5ul in // b let tmp5 = sub tmp 20ul 5ul in // e let tmp6 = sub tmp 25ul 5ul in // f let z1 = getz p in let t1 = gett p in let z2 = getz q i...
{ "file_name": "code/ed25519/Hacl.Impl.Ed25519.PointAdd.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 101, "start_col": 0, "start_line": 81 }
module Hacl.Impl.Ed25519.PointAdd module ST = FStar.HyperStack.ST open FStar.HyperStack.All open Lib.IntTypes open Lib.Buffer open Hacl.Bignum25519 module F51 = Hacl.Impl.Ed25519.Field51 module SC = Spec.Curve25519 #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" inline_for_extraction noextract val point_add_step_...
{ "checked_file": "/", "dependencies": [ "Spec.Ed25519.fst.checked", "Spec.Curve25519.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Impl.Ed25519.Field51.fst.checked", "Hacl.Bignum25519.fsti.checked", "FStar.UInt32.fsti.checked", ...
[ { "abbrev": true, "full_module": "Spec.Curve25519", "short_module": "SC" }, { "abbrev": true, "full_module": "Hacl.Impl.Ed25519.Field51", "short_module": "F51" }, { "abbrev": false, "full_module": "Hacl.Bignum25519", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Hacl.Bignum25519.point -> q: Hacl.Bignum25519.point -> tmp: Lib.Buffer.lbuffer Lib.IntTypes.uint64 30ul -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Bignum25519.point", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint64", "FStar.UInt32.__uint_to_t", "Hacl.Bignum25519.fsum", "Prims.unit", "Hacl.Bignum25519.fdifference", "Hacl.Bignum25519.fmul", "Hacl.Bignum25519.times_2", "Hacl.Bignum25519.times_2d", "Hacl.Bignum25519.felem", "Hacl.Bignum2551...
[]
false
true
false
false
false
let point_add_step_2 p q tmp =
let tmp1 = sub tmp 0ul 5ul in let tmp2 = sub tmp 5ul 5ul in let tmp3 = sub tmp 10ul 5ul in let tmp4 = sub tmp 15ul 5ul in let tmp5 = sub tmp 20ul 5ul in let tmp6 = sub tmp 25ul 5ul in let z1 = getz p in let t1 = gett p in let z2 = getz q in let t2 = gett q in times_2d tmp1 t1; fmul tmp1 tmp1 t2; times_2 tmp2 z1; fmul t...
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.parse32_empty
val parse32_empty:parser32 parse_empty
val parse32_empty:parser32 parse_empty
let parse32_empty : parser32 parse_empty = parse32_ret ()
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 57, "end_line": 18, "start_col": 0, "start_line": 18 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
LowParse.SLow.Base.parser32 LowParse.Spec.Combinators.parse_empty
Prims.Tot
[ "total" ]
[]
[ "LowParse.SLow.Combinators.parse32_ret", "Prims.unit" ]
[]
false
false
false
true
false
let parse32_empty:parser32 parse_empty =
parse32_ret ()
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.parse32_ret
val parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x))
val parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x))
let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some (x, 0ul)) <: (res: option (t * U32.t) { parser32_correct (parse_ret x) input res } )))
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 109, "end_line": 15, "start_col": 0, "start_line": 11 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8"
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "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: t -> LowParse.SLow.Base.parser32 (LowParse.Spec.Combinators.parse_ret x)
Prims.Tot
[ "total" ]
[]
[ "LowParse.SLow.Base.bytes32", "FStar.Pervasives.Native.Some", "FStar.Pervasives.Native.tuple2", "FStar.UInt32.t", "FStar.Pervasives.Native.Mktuple2", "FStar.UInt32.__uint_to_t", "FStar.Pervasives.Native.option", "LowParse.SLow.Base.parser32_correct", "LowParse.Spec.Combinators.parse_ret_kind", "Lo...
[]
false
false
false
false
false
let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) =
(fun input -> ((Some (x, 0ul)) <: (res: option (t * U32.t) {parser32_correct (parse_ret x) input res})))
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.serialize32_synth'
val serialize32_synth' : p1: LowParse.Spec.Base.parser k t1 -> f2: (_: t1 -> Prims.GTot t2) -> s1: LowParse.Spec.Base.serializer p1 -> s1': LowParse.SLow.Base.serializer32 s1 -> g1: (_: t2 -> t1) -> u200: u203: Prims.unit { LowParse.Spec.Combinators.synth_inverse f2 g1 /\ ...
let serialize32_synth' (#k: parser_kind) (#t1: Type) (#t2: Type) (p1: parser k t1) (f2: t1 -> GTot t2) (s1: serializer p1) (s1' : serializer32 s1) (g1: t2 -> Tot t1) (u: unit { synth_inverse f2 g1 /\ synth_injective f2 }) = serialize32_synth p1 f2 s1 s1' g1 (fun x -> g1 x) u
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 53, "end_line": 288, "start_col": 0, "start_line": 275 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p1: LowParse.Spec.Base.parser k t1 -> f2: (_: t1 -> Prims.GTot t2) -> s1: LowParse.Spec.Base.serializer p1 -> s1': LowParse.SLow.Base.serializer32 s1 -> g1: (_: t2 -> t1) -> u200: u203: Prims.unit { LowParse.Spec.Combinators.synth_inverse f2 g1 /\ LowParse.Spec.Com...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.SLow.Base.serializer32", "Prims.unit", "Prims.l_and", "LowParse.Spec.Combinators.synth_inverse", "LowParse.Spec.Combinators.synth_injective", "LowParse.SLow.Combinators.serialize32_synth", "Pr...
[]
false
false
false
false
false
let serialize32_synth' (#k: parser_kind) (#t1 #t2: Type) (p1: parser k t1) (f2: (t1 -> GTot t2)) (s1: serializer p1) (s1': serializer32 s1) (g1: (t2 -> Tot t1)) (u: unit{synth_inverse f2 g1 /\ synth_injective f2}) =
serialize32_synth p1 f2 s1 s1' g1 (fun x -> g1 x) u
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.serialize32_kind_precond
val serialize32_kind_precond (k1 k2: parser_kind) : GTot bool
val serialize32_kind_precond (k1 k2: parser_kind) : GTot bool
let serialize32_kind_precond (k1 k2: parser_kind) : GTot bool = Some? k1.parser_kind_high && Some? k2.parser_kind_high && Some?.v k1.parser_kind_high + Some?.v k2.parser_kind_high < 4294967296
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 72, "end_line": 113, "start_col": 0, "start_line": 108 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k1: LowParse.Spec.Base.parser_kind -> k2: LowParse.Spec.Base.parser_kind -> Prims.GTot Prims.bool
Prims.GTot
[ "sometrivial" ]
[]
[ "LowParse.Spec.Base.parser_kind", "Prims.op_AmpAmp", "FStar.Pervasives.Native.uu___is_Some", "Prims.nat", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_high", "Prims.op_LessThan", "Prims.op_Addition", "FStar.Pervasives.Native.__proj__Some__item__v", "Prims.bool" ]
[]
false
false
false
false
false
let serialize32_kind_precond (k1 k2: parser_kind) : GTot bool =
Some? k1.parser_kind_high && Some? k2.parser_kind_high && Some?.v k1.parser_kind_high + Some?.v k2.parser_kind_high < 4294967296
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.serialize32_false
val serialize32_false:serializer32 #_ #_ #parse_false serialize_false
val serialize32_false:serializer32 #_ #_ #parse_false serialize_false
let serialize32_false : serializer32 #_ #_ #parse_false serialize_false = fun input -> B32.empty_bytes
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 102, "end_line": 52, "start_col": 0, "start_line": 52 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
LowParse.SLow.Base.serializer32 LowParse.Spec.Combinators.serialize_false
Prims.Tot
[ "total" ]
[]
[ "Prims.squash", "Prims.l_False", "FStar.Bytes.empty_bytes", "LowParse.SLow.Base.bytes32", "LowParse.SLow.Base.serializer32_correct", "LowParse.Spec.Combinators.parse_false_kind", "LowParse.Spec.Combinators.parse_false", "LowParse.Spec.Combinators.serialize_false" ]
[]
false
false
false
true
false
let serialize32_false:serializer32 #_ #_ #parse_false serialize_false =
fun input -> B32.empty_bytes
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.parse32_compose_context
val parse32_compose_context (#pk: parser_kind) (#kt1 #kt2: Type) (f: (kt2 -> Tot kt1)) (t: (kt1 -> Tot Type)) (p: (k: kt1 -> Tot (parser pk (t k)))) (p32: (k: kt1 -> Tot (parser32 (p k)))) (k: kt2) : Tot (parser32 (p (f k)))
val parse32_compose_context (#pk: parser_kind) (#kt1 #kt2: Type) (f: (kt2 -> Tot kt1)) (t: (kt1 -> Tot Type)) (p: (k: kt1 -> Tot (parser pk (t k)))) (p32: (k: kt1 -> Tot (parser32 (p k)))) (k: kt2) : Tot (parser32 (p (f k)))
let parse32_compose_context (#pk: parser_kind) (#kt1 #kt2: Type) (f: (kt2 -> Tot kt1)) (t: (kt1 -> Tot Type)) (p: ((k: kt1) -> Tot (parser pk (t k)))) (p32: ((k: kt1) -> Tot (parser32 (p k)))) (k: kt2) : Tot (parser32 (p (f k))) = fun input -> p32 (f k) input
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 30, "end_line": 470, "start_col": 0, "start_line": 461 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: kt2 -> kt1) -> t: (_: kt1 -> Type) -> p: (k: kt1 -> LowParse.Spec.Base.parser pk (t k)) -> p32: (k: kt1 -> LowParse.SLow.Base.parser32 (p k)) -> k: kt2 -> LowParse.SLow.Base.parser32 (p (f k))
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.SLow.Base.parser32", "LowParse.SLow.Base.bytes32", "FStar.Pervasives.Native.option", "FStar.Pervasives.Native.tuple2", "FStar.UInt32.t", "LowParse.SLow.Base.parser32_correct" ]
[]
false
false
false
false
false
let parse32_compose_context (#pk: parser_kind) (#kt1 #kt2: Type) (f: (kt2 -> Tot kt1)) (t: (kt1 -> Tot Type)) (p: (k: kt1 -> Tot (parser pk (t k)))) (p32: (k: kt1 -> Tot (parser32 (p k)))) (k: kt2) : Tot (parser32 (p (f k))) =
fun input -> p32 (f k) input
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.parse32_false
val parse32_false:parser32 parse_false
val parse32_false:parser32 parse_false
let parse32_false : parser32 parse_false = fun _ -> None
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 56, "end_line": 49, "start_col": 0, "start_line": 49 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
LowParse.SLow.Base.parser32 LowParse.Spec.Combinators.parse_false
Prims.Tot
[ "total" ]
[]
[ "LowParse.SLow.Base.bytes32", "FStar.Pervasives.Native.None", "FStar.Pervasives.Native.tuple2", "Prims.squash", "Prims.l_False", "FStar.UInt32.t", "FStar.Pervasives.Native.option", "LowParse.SLow.Base.parser32_correct", "LowParse.Spec.Combinators.parse_false_kind", "LowParse.Spec.Combinators.parse...
[]
false
false
false
true
false
let parse32_false:parser32 parse_false =
fun _ -> None
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.serialize32_compose_context
val serialize32_compose_context (#pk: parser_kind) (#kt1 #kt2: Type) (f: (kt2 -> Tot kt1)) (t: (kt1 -> Tot Type)) (p: (k: kt1 -> Tot (parser pk (t k)))) (s: (k: kt1 -> Tot (serializer (p k)))) (s32: (k: kt1 -> Tot (serializer32 (s k)))) (k: kt2) : Tot (serializer32 (s...
val serialize32_compose_context (#pk: parser_kind) (#kt1 #kt2: Type) (f: (kt2 -> Tot kt1)) (t: (kt1 -> Tot Type)) (p: (k: kt1 -> Tot (parser pk (t k)))) (s: (k: kt1 -> Tot (serializer (p k)))) (s32: (k: kt1 -> Tot (serializer32 (s k)))) (k: kt2) : Tot (serializer32 (s...
let serialize32_compose_context (#pk: parser_kind) (#kt1 #kt2: Type) (f: (kt2 -> Tot kt1)) (t: (kt1 -> Tot Type)) (p: ((k: kt1) -> Tot (parser pk (t k)))) (s: ((k: kt1) -> Tot (serializer (p k)))) (s32: ((k: kt1) -> Tot (serializer32 (s k)))) (k: kt2) : Tot (serializer32 (s (f k))) = fun input -> s32 (f...
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 30, "end_line": 483, "start_col": 0, "start_line": 473 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: kt2 -> kt1) -> t: (_: kt1 -> Type) -> p: (k: kt1 -> LowParse.Spec.Base.parser pk (t k)) -> s: (k: kt1 -> LowParse.Spec.Base.serializer (p k)) -> s32: (k: kt1 -> LowParse.SLow.Base.serializer32 (s k)) -> k: kt2 -> LowParse.SLow.Base.serializer32 (s (f k))
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.SLow.Base.serializer32", "LowParse.SLow.Base.bytes32", "LowParse.SLow.Base.serializer32_correct" ]
[]
false
false
false
false
false
let serialize32_compose_context (#pk: parser_kind) (#kt1 #kt2: Type) (f: (kt2 -> Tot kt1)) (t: (kt1 -> Tot Type)) (p: (k: kt1 -> Tot (parser pk (t k)))) (s: (k: kt1 -> Tot (serializer (p k)))) (s32: (k: kt1 -> Tot (serializer32 (s k)))) (k: kt2) : Tot (serializer32 (s...
fun input -> s32 (f k) input
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.size32_empty
val size32_empty:size32 #_ #_ #parse_empty serialize_empty
val size32_empty:size32 #_ #_ #parse_empty serialize_empty
let size32_empty : size32 #_ #_ #parse_empty serialize_empty = size32_ret () (fun _ -> ())
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 29, "end_line": 46, "start_col": 0, "start_line": 45 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
LowParse.SLow.Base.size32 LowParse.Spec.Combinators.serialize_empty
Prims.Tot
[ "total" ]
[]
[ "LowParse.SLow.Combinators.size32_ret", "Prims.unit" ]
[]
false
false
false
true
false
let size32_empty:size32 #_ #_ #parse_empty serialize_empty =
size32_ret () (fun _ -> ())
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.size32_compose_context
val size32_compose_context (#pk: parser_kind) (#kt1 #kt2: Type) (f: (kt2 -> Tot kt1)) (t: (kt1 -> Tot Type)) (p: (k: kt1 -> Tot (parser pk (t k)))) (s: (k: kt1 -> Tot (serializer (p k)))) (s32: (k: kt1 -> Tot (size32 (s k)))) (k: kt2) : Tot (size32 (s (f k)))
val size32_compose_context (#pk: parser_kind) (#kt1 #kt2: Type) (f: (kt2 -> Tot kt1)) (t: (kt1 -> Tot Type)) (p: (k: kt1 -> Tot (parser pk (t k)))) (s: (k: kt1 -> Tot (serializer (p k)))) (s32: (k: kt1 -> Tot (size32 (s k)))) (k: kt2) : Tot (size32 (s (f k)))
let size32_compose_context (#pk: parser_kind) (#kt1 #kt2: Type) (f: (kt2 -> Tot kt1)) (t: (kt1 -> Tot Type)) (p: ((k: kt1) -> Tot (parser pk (t k)))) (s: ((k: kt1) -> Tot (serializer (p k)))) (s32: ((k: kt1) -> Tot (size32 (s k)))) (k: kt2) : Tot (size32 (s (f k))) = fun input -> s32 (f k) input
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 30, "end_line": 496, "start_col": 0, "start_line": 486 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: kt2 -> kt1) -> t: (_: kt1 -> Type) -> p: (k: kt1 -> LowParse.Spec.Base.parser pk (t k)) -> s: (k: kt1 -> LowParse.Spec.Base.serializer (p k)) -> s32: (k: kt1 -> LowParse.SLow.Base.size32 (s k)) -> k: kt2 -> LowParse.SLow.Base.size32 (s (f k))
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.SLow.Base.size32", "FStar.UInt32.t", "LowParse.SLow.Base.size32_postcond" ]
[]
false
false
false
false
false
let size32_compose_context (#pk: parser_kind) (#kt1 #kt2: Type) (f: (kt2 -> Tot kt1)) (t: (kt1 -> Tot Type)) (p: (k: kt1 -> Tot (parser pk (t k)))) (s: (k: kt1 -> Tot (serializer (p k)))) (s32: (k: kt1 -> Tot (size32 (s k)))) (k: kt2) : Tot (size32 (s (f k))) =
fun input -> s32 (f k) input
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.serialize32_ret
val serialize32_ret (#t: Type) (v: t) (v_unique: (v': t -> Lemma (v == v'))) : Tot (serializer32 (serialize_ret v v_unique))
val serialize32_ret (#t: Type) (v: t) (v_unique: (v': t -> Lemma (v == v'))) : Tot (serializer32 (serialize_ret v v_unique))
let serialize32_ret (#t: Type) (v: t) (v_unique: (v' : t) -> Lemma (v == v')) : Tot (serializer32 (serialize_ret v v_unique)) = fun input -> [@inline_let] let b = B32.empty_bytes in assert (B32.reveal b `Seq.equal` Seq.empty); (b <: (b: bytes32 { serializer32_correct #_ #_ #(parse_ret v) (serialize_ret v ...
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 103, "end_line": 30, "start_col": 0, "start_line": 21 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
v: t -> v_unique: (v': t -> FStar.Pervasives.Lemma (ensures v == v')) -> LowParse.SLow.Base.serializer32 (LowParse.Spec.Combinators.serialize_ret v v_unique)
Prims.Tot
[ "total" ]
[]
[ "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.eq2", "Prims.Nil", "FStar.Pervasives.pattern", "LowParse.SLow.Base.bytes32", "LowParse.SLow.Base.serializer32_correct", "LowParse.Spec.Combinators.parse_ret_kind", "LowParse.Spec.Combinators.parse_ret", "LowParse.Spec.Combinators.serialize_ret...
[]
false
false
false
false
false
let serialize32_ret (#t: Type) (v: t) (v_unique: (v': t -> Lemma (v == v'))) : Tot (serializer32 (serialize_ret v v_unique)) =
fun input -> [@@ inline_let ]let b = B32.empty_bytes in assert ((B32.reveal b) `Seq.equal` Seq.empty); (b <: (b: bytes32{serializer32_correct #_ #_ #(parse_ret v) (serialize_ret v v_unique) input b}))
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.serialize32_dtuple2
val serialize32_dtuple2 (#k1: parser_kind) (#t1: Type) (#p1: parser k1 t1) (#s1: serializer p1) (s1': serializer32 s1 {k1.parser_kind_subkind == Some ParserStrong}) (#k2: parser_kind{serialize32_kind_precond k1 k2}) (#t2: (t1 -> Tot Type)) (#p2: (x: t1 -> Tot (parser k2 (...
val serialize32_dtuple2 (#k1: parser_kind) (#t1: Type) (#p1: parser k1 t1) (#s1: serializer p1) (s1': serializer32 s1 {k1.parser_kind_subkind == Some ParserStrong}) (#k2: parser_kind{serialize32_kind_precond k1 k2}) (#t2: (t1 -> Tot Type)) (#p2: (x: t1 -> Tot (parser k2 (...
let serialize32_dtuple2 (#k1: parser_kind) (#t1: Type) (#p1: parser k1 t1) (#s1: serializer p1) (s1' : serializer32 s1 { k1.parser_kind_subkind == Some ParserStrong } ) (#k2: parser_kind { serialize32_kind_precond k1 k2 }) (#t2: t1 -> Tot Type) (#p2: (x: t1) -> Tot (parser k2 (t2 x))) (#s2: (x: ...
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 81, "end_line": 196, "start_col": 0, "start_line": 170 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "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': LowParse.SLow.Base.serializer32 s1 { Mkparser_kind'?.parser_kind_subkind k1 == FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong } -> s2': (x: t1 -> LowParse.SLow.Base.serializer32 (s2 x)) -> LowParse.SLow.Base.serializer32 (LowParse.Spec.Combinators.serialize_dtuple2 ...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.SLow.Base.serializer32", "Prims.eq2", "FStar.Pervasives.Native.option", "LowParse.Spec.Base.parser_subkind", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind", "FStar.Pervas...
[]
false
false
false
false
false
let serialize32_dtuple2 (#k1: parser_kind) (#t1: Type) (#p1: parser k1 t1) (#s1: serializer p1) (s1': serializer32 s1 {k1.parser_kind_subkind == Some ParserStrong}) (#k2: parser_kind{serialize32_kind_precond k1 k2}) (#t2: (t1 -> Tot Type)) (#p2: (x: t1 -> Tot (parser k2 (...
fun (input: dtuple2 t1 t2) -> [@@ inline_let ]let _ = serialize_dtuple2_eq s1 s2 input in match input with | (| fs , sn |) -> let output1 = s1' fs in let output2 = s2' fs sn in [@@ inline_let ]let _ = assert (B32.length output1 == Seq.length (serialize s1 fs)) in [@@ inline_let ]let _ = assert (B3...
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.size32_ret
val size32_ret (#t: Type) (v: t) (v_unique: (v': t -> Lemma (v == v'))) : Tot (size32 #_ #_ #(parse_ret v) (serialize_ret v v_unique))
val size32_ret (#t: Type) (v: t) (v_unique: (v': t -> Lemma (v == v'))) : Tot (size32 #_ #_ #(parse_ret v) (serialize_ret v v_unique))
let size32_ret (#t: Type) (v: t) (v_unique: (v' : t) -> Lemma (v == v')) : Tot (size32 #_ #_ #(parse_ret v) (serialize_ret v v_unique)) = size32_constant #_ #_ #(parse_ret v) (serialize_ret v v_unique) 0ul ()
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 72, "end_line": 42, "start_col": 0, "start_line": 37 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
v: t -> v_unique: (v': t -> FStar.Pervasives.Lemma (ensures v == v')) -> LowParse.SLow.Base.size32 (LowParse.Spec.Combinators.serialize_ret v v_unique)
Prims.Tot
[ "total" ]
[]
[ "Prims.unit", "Prims.l_True", "Prims.squash", "Prims.eq2", "Prims.Nil", "FStar.Pervasives.pattern", "LowParse.SLow.Base.size32_constant", "LowParse.Spec.Combinators.parse_ret_kind", "LowParse.Spec.Combinators.parse_ret", "LowParse.Spec.Combinators.serialize_ret", "FStar.UInt32.__uint_to_t", "L...
[]
false
false
false
false
false
let size32_ret (#t: Type) (v: t) (v_unique: (v': t -> Lemma (v == v'))) : Tot (size32 #_ #_ #(parse_ret v) (serialize_ret v v_unique)) =
size32_constant #_ #_ #(parse_ret v) (serialize_ret v v_unique) 0ul ()
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.serialize32_empty
val serialize32_empty:serializer32 #_ #_ #parse_empty serialize_empty
val serialize32_empty:serializer32 #_ #_ #parse_empty serialize_empty
let serialize32_empty : serializer32 #_ #_ #parse_empty serialize_empty = serialize32_ret () (fun _ -> ())
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 34, "end_line": 34, "start_col": 0, "start_line": 33 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
LowParse.SLow.Base.serializer32 LowParse.Spec.Combinators.serialize_empty
Prims.Tot
[ "total" ]
[]
[ "LowParse.SLow.Combinators.serialize32_ret", "Prims.unit" ]
[]
false
false
false
true
false
let serialize32_empty:serializer32 #_ #_ #parse_empty serialize_empty =
serialize32_ret () (fun _ -> ())
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.size32_false
val size32_false:size32 #_ #_ #parse_false serialize_false
val size32_false:size32 #_ #_ #parse_false serialize_false
let size32_false : size32 #_ #_ #parse_false serialize_false = fun input -> 0ul
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 79, "end_line": 55, "start_col": 0, "start_line": 55 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
LowParse.SLow.Base.size32 LowParse.Spec.Combinators.serialize_false
Prims.Tot
[ "total" ]
[]
[ "Prims.squash", "Prims.l_False", "FStar.UInt32.__uint_to_t", "FStar.UInt32.t", "LowParse.SLow.Base.size32_postcond", "LowParse.Spec.Combinators.parse_false_kind", "LowParse.Spec.Combinators.parse_false", "LowParse.Spec.Combinators.serialize_false" ]
[]
false
false
false
true
false
let size32_false:size32 #_ #_ #parse_false serialize_false =
fun input -> 0ul
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.serialize32_nondep_then
val serialize32_nondep_then (#k1: parser_kind) (#t1: Type) (#p1: parser k1 t1) (#s1: serializer p1) (s1': serializer32 s1 {k1.parser_kind_subkind == Some ParserStrong}) (#k2: parser_kind) (#t2: Type) (#p2: parser k2 t2) (#s2: serializer p2) (s2': serializer32 ...
val serialize32_nondep_then (#k1: parser_kind) (#t1: Type) (#p1: parser k1 t1) (#s1: serializer p1) (s1': serializer32 s1 {k1.parser_kind_subkind == Some ParserStrong}) (#k2: parser_kind) (#t2: Type) (#p2: parser k2 t2) (#s2: serializer p2) (s2': serializer32 ...
let serialize32_nondep_then (#k1: parser_kind) (#t1: Type) (#p1: parser k1 t1) (#s1: serializer p1) (s1' : serializer32 s1 { k1.parser_kind_subkind == Some ParserStrong } ) (#k2: parser_kind) (#t2: Type) (#p2: parser k2 t2) (#s2: serializer p2) (s2' : serializer32 s2 { serialize32_kind_precond k...
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 85, "end_line": 142, "start_col": 0, "start_line": 116 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "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': LowParse.SLow.Base.serializer32 s1 { Mkparser_kind'?.parser_kind_subkind k1 == FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong } -> s2': LowParse.SLow.Base.serializer32 s2 {LowParse.SLow.Combinators.serialize32_kind_precond k1 k2} -> LowParse.SLow.Base.serializ...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.SLow.Base.serializer32", "Prims.eq2", "FStar.Pervasives.Native.option", "LowParse.Spec.Base.parser_subkind", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind", "FStar.Pervas...
[]
false
false
false
false
false
let serialize32_nondep_then (#k1: parser_kind) (#t1: Type) (#p1: parser k1 t1) (#s1: serializer p1) (s1': serializer32 s1 {k1.parser_kind_subkind == Some ParserStrong}) (#k2: parser_kind) (#t2: Type) (#p2: parser k2 t2) (#s2: serializer p2) (s2': serializer32 ...
fun (input: t1 * t2) -> [@@ inline_let ]let _ = serialize_nondep_then_eq s1 s2 input in match input with | fs, sn -> let output1 = s1' fs in let output2 = s2' sn in [@@ inline_let ]let _ = assert (B32.length output1 == Seq.length (serialize s1 fs)) in [@@ inline_let ]let _ = assert (B32.length out...
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.parse32_synth'
val parse32_synth' (#k: parser_kind) (#t1 #t2: Type) (p1: parser k t1) (f2: (t1 -> Tot t2)) (p1': parser32 p1) (u: unit{synth_injective f2}) : Tot (parser32 (parse_synth p1 f2))
val parse32_synth' (#k: parser_kind) (#t1 #t2: Type) (p1: parser k t1) (f2: (t1 -> Tot t2)) (p1': parser32 p1) (u: unit{synth_injective f2}) : Tot (parser32 (parse_synth p1 f2))
let parse32_synth' (#k: parser_kind) (#t1: Type) (#t2: Type) (p1: parser k t1) (f2: t1 -> Tot t2) (p1' : parser32 p1) (u: unit { synth_injective f2 }) : Tot (parser32 (parse_synth p1 f2)) = parse32_synth p1 f2 (fun x -> f2 x) p1' u
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 43, "end_line": 251, "start_col": 0, "start_line": 240 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p1: LowParse.Spec.Base.parser k t1 -> f2: (_: t1 -> t2) -> p1': LowParse.SLow.Base.parser32 p1 -> u160: u162: Prims.unit{LowParse.Spec.Combinators.synth_injective f2} -> LowParse.SLow.Base.parser32 (LowParse.Spec.Combinators.parse_synth p1 f2)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.SLow.Base.parser32", "Prims.unit", "LowParse.Spec.Combinators.synth_injective", "LowParse.SLow.Combinators.parse32_synth", "Prims.eq2", "LowParse.Spec.Combinators.parse_synth" ]
[]
false
false
false
false
false
let parse32_synth' (#k: parser_kind) (#t1 #t2: Type) (p1: parser k t1) (f2: (t1 -> Tot t2)) (p1': parser32 p1) (u: unit{synth_injective f2}) : Tot (parser32 (parse_synth p1 f2)) =
parse32_synth p1 f2 (fun x -> f2 x) p1' u
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.parse32_nondep_then
val parse32_nondep_then (#k1: parser_kind) (#t1: Type) (#p1: parser k1 t1) (p1': parser32 p1) (#k2: parser_kind) (#t2: Type) (#p2: parser k2 t2) (p2': parser32 p2) : Tot (parser32 (nondep_then p1 p2))
val parse32_nondep_then (#k1: parser_kind) (#t1: Type) (#p1: parser k1 t1) (p1': parser32 p1) (#k2: parser_kind) (#t2: Type) (#p2: parser k2 t2) (p2': parser32 p2) : Tot (parser32 (nondep_then p1 p2))
let parse32_nondep_then (#k1: parser_kind) (#t1: Type) (#p1: parser k1 t1) (p1' : parser32 p1) (#k2: parser_kind) (#t2: Type) (#p2: parser k2 t2) (p2' : parser32 p2) : Tot (parser32 (nondep_then p1 p2)) = fun (input: bytes32) -> (( [@inline_let] let _ = nondep_then_eq p1 p2 (B32.reveal input) in m...
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 95, "end_line": 106, "start_col": 0, "start_line": 84 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p1': LowParse.SLow.Base.parser32 p1 -> p2': LowParse.SLow.Base.parser32 p2 -> LowParse.SLow.Base.parser32 (LowParse.Spec.Combinators.nondep_then p1 p2)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.SLow.Base.parser32", "LowParse.SLow.Base.bytes32", "FStar.UInt32.t", "FStar.Pervasives.Native.Some", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.Mktuple2", "FStar.UInt32.add", "FStar.Pervasives.Native.option", ...
[]
false
false
false
false
false
let parse32_nondep_then (#k1: parser_kind) (#t1: Type) (#p1: parser k1 t1) (p1': parser32 p1) (#k2: parser_kind) (#t2: Type) (#p2: parser k2 t2) (p2': parser32 p2) : Tot (parser32 (nondep_then p1 p2)) =
fun (input: bytes32) -> (([@@ inline_let ]let _ = nondep_then_eq p1 p2 (B32.reveal input) in match p1' input with | Some (v, l) -> let input' = B32.slice input l (B32.len input) in (match p2' input' with | Some (v', l') -> Some ((v, v'), U32.add l l') | _ -> None) ...
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.parse32_and_then
val parse32_and_then (#k: parser_kind) (#t: Type) (#p: parser k t) (p32: parser32 p) (#k': parser_kind) (#t': Type) (p': (t -> Tot (parser k' t'))) (u: unit{and_then_cases_injective p'}) (p32': (x: t -> Tot (parser32 (p' x)))) : Tot (parser32 (p `and_then` p'))
val parse32_and_then (#k: parser_kind) (#t: Type) (#p: parser k t) (p32: parser32 p) (#k': parser_kind) (#t': Type) (p': (t -> Tot (parser k' t'))) (u: unit{and_then_cases_injective p'}) (p32': (x: t -> Tot (parser32 (p' x)))) : Tot (parser32 (p `and_then` p'))
let parse32_and_then (#k: parser_kind) (#t:Type) (#p:parser k t) (p32: parser32 p) (#k': parser_kind) (#t':Type) (p': (t -> Tot (parser k' t'))) (u: unit { and_then_cases_injective p' } ) (p32' : ((x: t) -> Tot (parser32 (p' x)))) : Tot (parser32 (p `and_then` p')) = fun (input: bytes32) -> (( [@i...
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 84, "end_line": 81, "start_col": 0, "start_line": 58 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "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 -> p': (_: t -> LowParse.Spec.Base.parser k' t') -> u43: u46: Prims.unit{LowParse.Spec.Combinators.and_then_cases_injective p'} -> p32': (x: t -> LowParse.SLow.Base.parser32 (p' x)) -> LowParse.SLow.Base.parser32 (LowParse.Spec.Combinators.and_then p p')
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.SLow.Base.parser32", "Prims.unit", "LowParse.Spec.Combinators.and_then_cases_injective", "LowParse.SLow.Base.bytes32", "FStar.UInt32.t", "FStar.Pervasives.Native.Some", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Nati...
[]
false
false
false
false
false
let parse32_and_then (#k: parser_kind) (#t: Type) (#p: parser k t) (p32: parser32 p) (#k': parser_kind) (#t': Type) (p': (t -> Tot (parser k' t'))) (u: unit{and_then_cases_injective p'}) (p32': (x: t -> Tot (parser32 (p' x)))) : Tot (parser32 (p `and_then` p')) ...
fun (input: bytes32) -> (([@@ inline_let ]let _ = and_then_eq p p' (B32.reveal input) in match p32 input with | Some (v, l) -> let input' = B32.slice input l (B32.len input) in (match p32' v input' with | Some (v', l') -> Some (v', U32.add l l') | _ -> None) | _ -...
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.parse32_synth
val parse32_synth (#k: parser_kind) (#t1 #t2: Type) (p1: parser k t1) (f2: (t1 -> GTot t2)) (f2': (x: t1 -> Tot (y: t2{y == f2 x}))) (p1': parser32 p1) (u: unit{synth_injective f2}) : Tot (parser32 (parse_synth p1 f2))
val parse32_synth (#k: parser_kind) (#t1 #t2: Type) (p1: parser k t1) (f2: (t1 -> GTot t2)) (f2': (x: t1 -> Tot (y: t2{y == f2 x}))) (p1': parser32 p1) (u: unit{synth_injective f2}) : Tot (parser32 (parse_synth p1 f2))
let parse32_synth (#k: parser_kind) (#t1: Type) (#t2: Type) (p1: parser k t1) (f2: t1 -> GTot t2) (f2': (x: t1) -> Tot (y: t2 { y == f2 x } )) (p1' : parser32 p1) (u: unit { synth_injective f2 }) : Tot (parser32 (parse_synth p1 f2)) = fun (input: bytes32) -> (( [@inline_let] let _ = parse_s...
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 87, "end_line": 237, "start_col": 0, "start_line": 219 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p1: LowParse.Spec.Base.parser k t1 -> f2: (_: t1 -> Prims.GTot t2) -> f2': (x: t1 -> y: t2{y == f2 x}) -> p1': LowParse.SLow.Base.parser32 p1 -> u147: u151: Prims.unit{LowParse.Spec.Combinators.synth_injective f2} -> LowParse.SLow.Base.parser32 (LowParse.Spec.Combinators.parse_synth p1 f2)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "Prims.eq2", "LowParse.SLow.Base.parser32", "Prims.unit", "LowParse.Spec.Combinators.synth_injective", "LowParse.SLow.Base.bytes32", "FStar.UInt32.t", "FStar.Pervasives.Native.Some", "FStar.Pervasives.Native.tuple2", "FStar.Pervasive...
[]
false
false
false
false
false
let parse32_synth (#k: parser_kind) (#t1 #t2: Type) (p1: parser k t1) (f2: (t1 -> GTot t2)) (f2': (x: t1 -> Tot (y: t2{y == f2 x}))) (p1': parser32 p1) (u: unit{synth_injective f2}) : Tot (parser32 (parse_synth p1 f2)) =
fun (input: bytes32) -> (([@@ inline_let ]let _ = parse_synth_eq p1 f2 (B32.reveal input) in match p1' input with | Some (v1, consumed) -> Some (f2' v1, consumed) | _ -> None) <: (res: option (t2 * U32.t) {parser32_correct (parse_synth p1 f2) input res}))
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.serialize32_filter
val serialize32_filter (#k: parser_kind) (#t: Type) (#p: parser k t) (#s: serializer p) (s32: serializer32 s) (f: (t -> GTot bool)) : Tot (serializer32 #_ #_ #(parse_filter p f) (serialize_filter s f))
val serialize32_filter (#k: parser_kind) (#t: Type) (#p: parser k t) (#s: serializer p) (s32: serializer32 s) (f: (t -> GTot bool)) : Tot (serializer32 #_ #_ #(parse_filter p f) (serialize_filter s f))
let serialize32_filter (#k: parser_kind) (#t: Type) (#p: parser k t) (#s: serializer p) (s32: serializer32 s) (f: (t -> GTot bool)) : Tot (serializer32 #_ #_ #(parse_filter p f) (serialize_filter s f)) = fun (input: t { f input == true } ) -> s32 input
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 50, "end_line": 323, "start_col": 0, "start_line": 315 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "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 -> f: (_: t -> Prims.GTot Prims.bool) -> LowParse.SLow.Base.serializer32 (LowParse.Spec.Combinators.serialize_filter s f)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.SLow.Base.serializer32", "Prims.bool", "Prims.eq2", "LowParse.SLow.Base.bytes32", "LowParse.SLow.Base.serializer32_correct", "LowParse.Spec.Combinators.parse_filter_kind", "LowParse.Spec.Combi...
[]
false
false
false
false
false
let serialize32_filter (#k: parser_kind) (#t: Type) (#p: parser k t) (#s: serializer p) (s32: serializer32 s) (f: (t -> GTot bool)) : Tot (serializer32 #_ #_ #(parse_filter p f) (serialize_filter s f)) =
fun (input: t{f input == true}) -> s32 input
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.serialize32_synth
val serialize32_synth (#k: parser_kind) (#t1 #t2: Type) (p1: parser k t1) (f2: (t1 -> GTot t2)) (s1: serializer p1) (s1': serializer32 s1) (g1: (t2 -> GTot t1)) (g1': (x: t2 -> Tot (y: t1{y == g1 x}))) (u: unit{synth_inverse f2 g1 /\ synth_injective f2}) : Tot (...
val serialize32_synth (#k: parser_kind) (#t1 #t2: Type) (p1: parser k t1) (f2: (t1 -> GTot t2)) (s1: serializer p1) (s1': serializer32 s1) (g1: (t2 -> GTot t1)) (g1': (x: t2 -> Tot (y: t1{y == g1 x}))) (u: unit{synth_inverse f2 g1 /\ synth_injective f2}) : Tot (...
let serialize32_synth (#k: parser_kind) (#t1: Type) (#t2: Type) (p1: parser k t1) (f2: t1 -> GTot t2) (s1: serializer p1) (s1' : serializer32 s1) (g1: t2 -> GTot t1) (g1': (x: t2) -> Tot (y: t1 { y == g1 x } ) ) (u: unit { synth_inverse f2 g1 /\ synth_injective f2 }) : Tot (serializer32 (s...
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 97, "end_line": 272, "start_col": 0, "start_line": 254 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p1: LowParse.Spec.Base.parser k t1 -> f2: (_: t1 -> Prims.GTot t2) -> s1: LowParse.Spec.Base.serializer p1 -> s1': LowParse.SLow.Base.serializer32 s1 -> g1: (_: t2 -> Prims.GTot t1) -> g1': (x: t2 -> y: t1{y == g1 x}) -> u183: u188: Prims.unit { LowParse.Spec.Combinators...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.SLow.Base.serializer32", "Prims.eq2", "Prims.unit", "Prims.l_and", "LowParse.Spec.Combinators.synth_inverse", "LowParse.Spec.Combinators.synth_injective", "LowParse.SLow.Base.bytes32", "LowP...
[]
false
false
false
false
false
let serialize32_synth (#k: parser_kind) (#t1 #t2: Type) (p1: parser k t1) (f2: (t1 -> GTot t2)) (s1: serializer p1) (s1': serializer32 s1) (g1: (t2 -> GTot t1)) (g1': (x: t2 -> Tot (y: t1{y == g1 x}))) (u: unit{synth_inverse f2 g1 /\ synth_injective f2}) : Tot (...
fun (input: t2) -> [@@ inline_let ]let _ = serialize_synth_eq p1 f2 s1 g1 u input in let x = g1' input in (s1' x <: (res: bytes32{serializer32_correct (serialize_synth p1 f2 s1 g1 u) input res}))
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.parse32_dtuple2
val parse32_dtuple2 (#k1: parser_kind) (#t1: Type) (#p1: parser k1 t1) (p1': parser32 p1) (#k2: parser_kind) (#t2: (t1 -> Tot Type)) (#p2: (x: t1 -> Tot (parser k2 (t2 x)))) (p2': (x: t1 -> Tot (parser32 (p2 x)))) : Tot (parser32 (parse_dtuple2 p1 p2))
val parse32_dtuple2 (#k1: parser_kind) (#t1: Type) (#p1: parser k1 t1) (p1': parser32 p1) (#k2: parser_kind) (#t2: (t1 -> Tot Type)) (#p2: (x: t1 -> Tot (parser k2 (t2 x)))) (p2': (x: t1 -> Tot (parser32 (p2 x)))) : Tot (parser32 (parse_dtuple2 p1 p2))
let parse32_dtuple2 (#k1: parser_kind) (#t1: Type) (#p1: parser k1 t1) (p1' : parser32 p1) (#k2: parser_kind) (#t2: (t1 -> Tot Type)) (#p2: (x: t1) -> Tot (parser k2 (t2 x))) (p2' : (x: t1) -> Tot (parser32 (p2 x))) : Tot (parser32 (parse_dtuple2 p1 p2)) = fun (input: bytes32) -> (( [@inline_let] le...
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 99, "end_line": 167, "start_col": 0, "start_line": 145 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p1': LowParse.SLow.Base.parser32 p1 -> p2': (x: t1 -> LowParse.SLow.Base.parser32 (p2 x)) -> LowParse.SLow.Base.parser32 (LowParse.Spec.Combinators.parse_dtuple2 p1 p2)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.SLow.Base.parser32", "LowParse.SLow.Base.bytes32", "FStar.UInt32.t", "FStar.Pervasives.Native.Some", "FStar.Pervasives.Native.tuple2", "Prims.dtuple2", "FStar.Pervasives.Native.Mktuple2", "Prims.Mkdtuple2", "FStar.UInt32.ad...
[]
false
false
false
false
false
let parse32_dtuple2 (#k1: parser_kind) (#t1: Type) (#p1: parser k1 t1) (p1': parser32 p1) (#k2: parser_kind) (#t2: (t1 -> Tot Type)) (#p2: (x: t1 -> Tot (parser k2 (t2 x)))) (p2': (x: t1 -> Tot (parser32 (p2 x)))) : Tot (parser32 (parse_dtuple2 p1 p2)) =
fun (input: bytes32) -> (([@@ inline_let ]let _ = parse_dtuple2_eq p1 p2 (B32.reveal input) in match p1' input with | Some (v, l) -> let input' = B32.slice input l (B32.len input) in (match p2' v input' with | Some (v', l') -> Some ((| v, v' |), U32.add l l') | _ -> Non...
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.size32_filter
val size32_filter (#k: parser_kind) (#t: Type) (#p: parser k t) (#s: serializer p) (s32: size32 s) (f: (t -> GTot bool)) : Tot (size32 #_ #_ #(parse_filter p f) (serialize_filter s f))
val size32_filter (#k: parser_kind) (#t: Type) (#p: parser k t) (#s: serializer p) (s32: size32 s) (f: (t -> GTot bool)) : Tot (size32 #_ #_ #(parse_filter p f) (serialize_filter s f))
let size32_filter (#k: parser_kind) (#t: Type) (#p: parser k t) (#s: serializer p) (s32: size32 s) (f: (t -> GTot bool)) : Tot (size32 #_ #_ #(parse_filter p f) (serialize_filter s f)) = fun x -> s32 x
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 16, "end_line": 419, "start_col": 0, "start_line": 411 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "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 -> f: (_: t -> Prims.GTot Prims.bool) -> LowParse.SLow.Base.size32 (LowParse.Spec.Combinators.serialize_filter s f)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.SLow.Base.size32", "Prims.bool", "LowParse.Spec.Combinators.parse_filter_refine", "FStar.UInt32.t", "LowParse.SLow.Base.size32_postcond", "LowParse.Spec.Combinators.parse_filter_kind", "LowPar...
[]
false
false
false
false
false
let size32_filter (#k: parser_kind) (#t: Type) (#p: parser k t) (#s: serializer p) (s32: size32 s) (f: (t -> GTot bool)) : Tot (size32 #_ #_ #(parse_filter p f) (serialize_filter s f)) =
fun x -> s32 x
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.size32_synth
val size32_synth (#k: parser_kind) (#t1 #t2: Type) (p1: parser k t1) (f2: (t1 -> GTot t2)) (s1: serializer p1) (s1': size32 s1) (g1: (t2 -> GTot t1)) (g1': (x: t2 -> Tot (y: t1{y == g1 x}))) (u: unit{synth_inverse f2 g1 /\ synth_injective f2}) : Tot (size32 (ser...
val size32_synth (#k: parser_kind) (#t1 #t2: Type) (p1: parser k t1) (f2: (t1 -> GTot t2)) (s1: serializer p1) (s1': size32 s1) (g1: (t2 -> GTot t1)) (g1': (x: t2 -> Tot (y: t1{y == g1 x}))) (u: unit{synth_inverse f2 g1 /\ synth_injective f2}) : Tot (size32 (ser...
let size32_synth (#k: parser_kind) (#t1: Type) (#t2: Type) (p1: parser k t1) (f2: t1 -> GTot t2) (s1: serializer p1) (s1' : size32 s1) (g1: t2 -> GTot t1) (g1': (x: t2) -> Tot (y: t1 { y == g1 x } ) ) (u: unit { synth_inverse f2 g1 /\ synth_injective f2 }) : Tot (size32 (serialize_synth p1...
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 86, "end_line": 441, "start_col": 0, "start_line": 422 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p1: LowParse.Spec.Base.parser k t1 -> f2: (_: t1 -> Prims.GTot t2) -> s1: LowParse.Spec.Base.serializer p1 -> s1': LowParse.SLow.Base.size32 s1 -> g1: (_: t2 -> Prims.GTot t1) -> g1': (x: t2 -> y: t1{y == g1 x}) -> u321: u326: Prims.unit { LowParse.Spec.Combinators.synth...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.SLow.Base.size32", "Prims.eq2", "Prims.unit", "Prims.l_and", "LowParse.Spec.Combinators.synth_inverse", "LowParse.Spec.Combinators.synth_injective", "FStar.UInt32.t", "LowParse.SLow.Base.siz...
[]
false
false
false
false
false
let size32_synth (#k: parser_kind) (#t1 #t2: Type) (p1: parser k t1) (f2: (t1 -> GTot t2)) (s1: serializer p1) (s1': size32 s1) (g1: (t2 -> GTot t1)) (g1': (x: t2 -> Tot (y: t1{y == g1 x}))) (u: unit{synth_inverse f2 g1 /\ synth_injective f2}) : Tot (size32 (ser...
fun (input: t2) -> [@@ inline_let ]let _ = serialize_synth_eq p1 f2 s1 g1 u input in [@@ inline_let ]let x = g1' input in [@@ inline_let ]let y = s1' x in (y <: (res: U32.t{size32_postcond (serialize_synth p1 f2 s1 g1 u) input res}))
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.make_total_constant_size_parser32
val make_total_constant_size_parser32 (sz: nat) (sz': U32.t{U32.v sz' == sz}) (#t: Type) (f: (s: bytes{Seq.length s == sz} -> GTot (t))) (u: unit{make_total_constant_size_parser_precond sz t f}) (f': (s: B32.lbytes sz -> Tot (y: t{y == f (B32.reveal s)}))) : Tot (parser32 (make_t...
val make_total_constant_size_parser32 (sz: nat) (sz': U32.t{U32.v sz' == sz}) (#t: Type) (f: (s: bytes{Seq.length s == sz} -> GTot (t))) (u: unit{make_total_constant_size_parser_precond sz t f}) (f': (s: B32.lbytes sz -> Tot (y: t{y == f (B32.reveal s)}))) : Tot (parser32 (make_t...
let make_total_constant_size_parser32 (sz: nat) (sz' : U32.t { U32.v sz' == sz } ) (#t: Type) (f: ((s: bytes {Seq.length s == sz}) -> GTot (t))) (u: unit { make_total_constant_size_parser_precond sz t f }) (f' : ((s: B32.lbytes sz) -> Tot (y: t { y == f (B32.reveal s) } ))) : Tot (parser32 (make_total...
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 106, "end_line": 364, "start_col": 0, "start_line": 348 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
sz: Prims.nat -> sz': FStar.UInt32.t{FStar.UInt32.v sz' == sz} -> f: (s: LowParse.Bytes.bytes{FStar.Seq.Base.length s == sz} -> Prims.GTot t) -> u244: u249: Prims.unit{LowParse.Spec.Combinators.make_total_constant_size_parser_precond sz t f} -> f': (s: FStar.Bytes.lbytes sz -> y: t{y == f (FStar.By...
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "FStar.UInt32.t", "Prims.eq2", "Prims.int", "Prims.l_or", "FStar.UInt.size", "FStar.UInt32.n", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "FStar.UInt32.v", "LowParse.Bytes.bytes", "FStar.Seq.Base.length", "LowParse.Bytes.byte", "Prims.unit", "LowParse.Spec.Combinators.make_...
[]
false
false
false
false
false
let make_total_constant_size_parser32 (sz: nat) (sz': U32.t{U32.v sz' == sz}) (#t: Type) (f: (s: bytes{Seq.length s == sz} -> GTot (t))) (u: unit{make_total_constant_size_parser_precond sz t f}) (f': (s: B32.lbytes sz -> Tot (y: t{y == f (B32.reveal s)}))) : Tot (parser32 (make_t...
fun (input: bytes32) -> ((if U32.lt (B32.len input) sz' then None else let s' = B32.slice input 0ul sz' in Some (f' s', sz')) <: (res: option (t * U32.t) {parser32_correct (make_total_constant_size_parser sz t f) input res}))
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.parse32_strengthen
val parse32_strengthen (#k: parser_kind) (#t1: Type) (#p1: parser k t1) (p1': parser32 p1) (p2: (t1 -> GTot Type0)) (prf: parse_strengthen_prf p1 p2) : Tot (parser32 (parse_strengthen p1 p2 prf))
val parse32_strengthen (#k: parser_kind) (#t1: Type) (#p1: parser k t1) (p1': parser32 p1) (p2: (t1 -> GTot Type0)) (prf: parse_strengthen_prf p1 p2) : Tot (parser32 (parse_strengthen p1 p2 prf))
let parse32_strengthen (#k: parser_kind) (#t1: Type) (#p1: parser k t1) (p1' : parser32 p1) (p2: t1 -> GTot Type0) (prf: parse_strengthen_prf p1 p2) : Tot (parser32 (parse_strengthen p1 p2 prf)) = fun (xbytes: bytes32) -> (( match p1' xbytes with | Some (x, consumed) -> [@inline_let] let _ = prf...
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 109, "end_line": 216, "start_col": 0, "start_line": 199 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p1': LowParse.SLow.Base.parser32 p1 -> p2: (_: t1 -> Prims.GTot Type0) -> prf: LowParse.Spec.Combinators.parse_strengthen_prf p1 p2 -> LowParse.SLow.Base.parser32 (LowParse.Spec.Combinators.parse_strengthen p1 p2 prf)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.SLow.Base.parser32", "LowParse.Spec.Combinators.parse_strengthen_prf", "LowParse.SLow.Base.bytes32", "FStar.UInt32.t", "FStar.Pervasives.Native.Some", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.Mktuple2", "Pri...
[]
false
false
false
false
false
let parse32_strengthen (#k: parser_kind) (#t1: Type) (#p1: parser k t1) (p1': parser32 p1) (p2: (t1 -> GTot Type0)) (prf: parse_strengthen_prf p1 p2) : Tot (parser32 (parse_strengthen p1 p2 prf)) =
fun (xbytes: bytes32) -> ((match p1' xbytes with | Some (x, consumed) -> [@@ inline_let ]let _ = prf (B32.reveal xbytes) (U32.v consumed) x in [@@ inline_let ]let x':x': t1{p2 x'} = x in Some (x', consumed) | _ -> None) <: (res: option ((x: t1{p2 x}) * U32.t) {parser32_corr...
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.make_constant_size_parser32
val make_constant_size_parser32 (sz: nat) (sz': U32.t{U32.v sz' == sz}) (#t: Type) (f: (s: bytes{Seq.length s == sz} -> GTot (option t))) (u: unit{make_constant_size_parser_precond sz t f}) (f': (s: B32.lbytes sz -> Tot (y: option t {y == f (B32.reveal s)}))) : Tot (parser32 (mak...
val make_constant_size_parser32 (sz: nat) (sz': U32.t{U32.v sz' == sz}) (#t: Type) (f: (s: bytes{Seq.length s == sz} -> GTot (option t))) (u: unit{make_constant_size_parser_precond sz t f}) (f': (s: B32.lbytes sz -> Tot (y: option t {y == f (B32.reveal s)}))) : Tot (parser32 (mak...
let make_constant_size_parser32 (sz: nat) (sz' : U32.t { U32.v sz' == sz } ) (#t: Type) (f: ((s: bytes {Seq.length s == sz}) -> GTot (option t))) (u: unit { make_constant_size_parser_precond sz t f } ) (f' : ((s: B32.lbytes sz) -> Tot (y: option t { y == f (B32.reveal s) } ))) : Tot (parser32 (make_co...
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 100, "end_line": 345, "start_col": 0, "start_line": 326 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
sz: Prims.nat -> sz': FStar.UInt32.t{FStar.UInt32.v sz' == sz} -> f: (s: LowParse.Bytes.bytes{FStar.Seq.Base.length s == sz} -> Prims.GTot (FStar.Pervasives.Native.option t)) -> u232: u237: Prims.unit{LowParse.Spec.Combinators.make_constant_size_parser_precond sz t f} -> f': (...
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "FStar.UInt32.t", "Prims.eq2", "Prims.int", "Prims.l_or", "FStar.UInt.size", "FStar.UInt32.n", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "FStar.UInt32.v", "LowParse.Bytes.bytes", "FStar.Seq.Base.length", "LowParse.Bytes.byte", "FStar.Pervasives.Native.option", "Prims.unit"...
[]
false
false
false
false
false
let make_constant_size_parser32 (sz: nat) (sz': U32.t{U32.v sz' == sz}) (#t: Type) (f: (s: bytes{Seq.length s == sz} -> GTot (option t))) (u: unit{make_constant_size_parser_precond sz t f}) (f': (s: B32.lbytes sz -> Tot (y: option t {y == f (B32.reveal s)}))) : Tot (parser32 (mak...
fun (input: bytes32) -> ((if U32.lt (B32.len input) sz' then None else let s' = B32.slice input 0ul sz' in match f' s' with | None -> None | Some v -> Some (v, sz')) <: (res: option (t * U32.t) {parser32_correct (make_constant_size_parser sz t f) input res}))
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.parse32_filter
val parse32_filter (#k: parser_kind) (#t: Type) (#p: parser k t) (p32: parser32 p) (f: (t -> GTot bool)) (g: (x: t -> Tot (b: bool{b == f x}))) : Tot (parser32 (parse_filter p f))
val parse32_filter (#k: parser_kind) (#t: Type) (#p: parser k t) (p32: parser32 p) (f: (t -> GTot bool)) (g: (x: t -> Tot (b: bool{b == f x}))) : Tot (parser32 (parse_filter p f))
let parse32_filter (#k: parser_kind) (#t: Type) (#p: parser k t) (p32: parser32 p) (f: (t -> GTot bool)) (g: ((x: t) -> Tot (b: bool { b == f x } ))) : Tot (parser32 (parse_filter p f)) = fun (input: bytes32) -> (( [@inline_let] let _ = parse_filter_eq p f (B32.reveal input) in match p32 input wit...
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 108, "end_line": 312, "start_col": 0, "start_line": 291 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "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 -> f: (_: t -> Prims.GTot Prims.bool) -> g: (x: t -> b: Prims.bool{b == f x}) -> LowParse.SLow.Base.parser32 (LowParse.Spec.Combinators.parse_filter p f)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.SLow.Base.parser32", "Prims.bool", "Prims.eq2", "LowParse.SLow.Base.bytes32", "FStar.UInt32.t", "FStar.Pervasives.Native.Some", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.Mktuple2", "FStar.Pervasives.Native....
[]
false
false
false
false
false
let parse32_filter (#k: parser_kind) (#t: Type) (#p: parser k t) (p32: parser32 p) (f: (t -> GTot bool)) (g: (x: t -> Tot (b: bool{b == f x}))) : Tot (parser32 (parse_filter p f)) =
fun (input: bytes32) -> (([@@ inline_let ]let _ = parse_filter_eq p f (B32.reveal input) in match p32 input with | Some (v, consumed) -> if g v then [@@ inline_let ]let v':v': t{f v' == true} = v in Some (v', consumed) else None | _ -> None) <: (re...
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.size32_nondep_then
val size32_nondep_then (#k1: parser_kind) (#t1: Type) (#p1: parser k1 t1) (#s1: serializer p1) (s1': size32 s1 {k1.parser_kind_subkind == Some ParserStrong}) (#k2: parser_kind) (#t2: Type) (#p2: parser k2 t2) (#s2: serializer p2) (s2': size32 s2) : Tot (si...
val size32_nondep_then (#k1: parser_kind) (#t1: Type) (#p1: parser k1 t1) (#s1: serializer p1) (s1': size32 s1 {k1.parser_kind_subkind == Some ParserStrong}) (#k2: parser_kind) (#t2: Type) (#p2: parser k2 t2) (#s2: serializer p2) (s2': size32 s2) : Tot (si...
let size32_nondep_then (#k1: parser_kind) (#t1: Type) (#p1: parser k1 t1) (#s1: serializer p1) (s1' : size32 s1 { k1.parser_kind_subkind == Some ParserStrong } ) (#k2: parser_kind) (#t2: Type) (#p2: parser k2 t2) (#s2: serializer p2) (s2' : size32 s2) : Tot (size32 (serialize_nondep_then s1 s2)) = f...
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 79, "end_line": 386, "start_col": 0, "start_line": 367 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "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': LowParse.SLow.Base.size32 s1 { Mkparser_kind'?.parser_kind_subkind k1 == FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong } -> s2': LowParse.SLow.Base.size32 s2 -> LowParse.SLow.Base.size32 (LowParse.Spec.Combinators.serialize_nondep_then s1 s2)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.SLow.Base.size32", "Prims.eq2", "FStar.Pervasives.Native.option", "LowParse.Spec.Base.parser_subkind", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind", "FStar.Pervasives.N...
[]
false
false
false
false
false
let size32_nondep_then (#k1: parser_kind) (#t1: Type) (#p1: parser k1 t1) (#s1: serializer p1) (s1': size32 s1 {k1.parser_kind_subkind == Some ParserStrong}) (#k2: parser_kind) (#t2: Type) (#p2: parser k2 t2) (#s2: serializer p2) (s2': size32 s2) : Tot (si...
fun x -> [@@ inline_let ]let _ = serialize_nondep_then_eq s1 s2 x in match x with | x1, x2 -> let v1 = s1' x1 in let v2 = s2' x2 in let res = add_overflow v1 v2 in (res <: (z: U32.t{size32_postcond (serialize_nondep_then s1 s2) x z}))
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.size32_synth'
val size32_synth' (#k: parser_kind) (#t1 #t2: Type) (p1: parser k t1) (f2: (t1 -> GTot t2)) (s1: serializer p1) (s1': size32 s1) (g1: (t2 -> Tot t1)) (u: unit{synth_inverse f2 g1 /\ synth_injective f2}) : Tot (size32 (serialize_synth p1 f2 s1 g1 u))
val size32_synth' (#k: parser_kind) (#t1 #t2: Type) (p1: parser k t1) (f2: (t1 -> GTot t2)) (s1: serializer p1) (s1': size32 s1) (g1: (t2 -> Tot t1)) (u: unit{synth_inverse f2 g1 /\ synth_injective f2}) : Tot (size32 (serialize_synth p1 f2 s1 g1 u))
let size32_synth' (#k: parser_kind) (#t1: Type) (#t2: Type) (p1: parser k t1) (f2: t1 -> GTot t2) (s1: serializer p1) (s1' : size32 s1) (g1: t2 -> Tot t1) (u: unit { synth_inverse f2 g1 /\ synth_injective f2 }) : Tot (size32 (serialize_synth p1 f2 s1 g1 u)) = size32_synth p1 f2 s1 s1' g1 (fu...
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 48, "end_line": 458, "start_col": 0, "start_line": 444 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p1: LowParse.Spec.Base.parser k t1 -> f2: (_: t1 -> Prims.GTot t2) -> s1: LowParse.Spec.Base.serializer p1 -> s1': LowParse.SLow.Base.size32 s1 -> g1: (_: t2 -> t1) -> u338: u341: Prims.unit { LowParse.Spec.Combinators.synth_inverse f2 g1 /\ LowParse.Spec.Combinato...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.SLow.Base.size32", "Prims.unit", "Prims.l_and", "LowParse.Spec.Combinators.synth_inverse", "LowParse.Spec.Combinators.synth_injective", "LowParse.SLow.Combinators.size32_synth", "Prims.eq2", ...
[]
false
false
false
false
false
let size32_synth' (#k: parser_kind) (#t1 #t2: Type) (p1: parser k t1) (f2: (t1 -> GTot t2)) (s1: serializer p1) (s1': size32 s1) (g1: (t2 -> Tot t1)) (u: unit{synth_inverse f2 g1 /\ synth_injective f2}) : Tot (size32 (serialize_synth p1 f2 s1 g1 u)) =
size32_synth p1 f2 s1 s1' g1 (fun x -> g1 x) u
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.size32_dtuple2
val size32_dtuple2 (#k1: parser_kind) (#t1: Type) (#p1: parser k1 t1) (#s1: serializer p1) (s1': size32 s1 {k1.parser_kind_subkind == Some ParserStrong}) (#k2: parser_kind) (#t2: (t1 -> Tot Type)) (#p2: (x: t1 -> Tot (parser k2 (t2 x)))) (#s2: (x: t1 -> Tot (seriali...
val size32_dtuple2 (#k1: parser_kind) (#t1: Type) (#p1: parser k1 t1) (#s1: serializer p1) (s1': size32 s1 {k1.parser_kind_subkind == Some ParserStrong}) (#k2: parser_kind) (#t2: (t1 -> Tot Type)) (#p2: (x: t1 -> Tot (parser k2 (t2 x)))) (#s2: (x: t1 -> Tot (seriali...
let size32_dtuple2 (#k1: parser_kind) (#t1: Type) (#p1: parser k1 t1) (#s1: serializer p1) (s1' : size32 s1 { k1.parser_kind_subkind == Some ParserStrong } ) (#k2: parser_kind) (#t2: t1 -> Tot Type) (#p2: (x: t1) -> Tot (parser k2 (t2 x))) (#s2: (x: t1) -> Tot (serializer (p2 x))) (s2' : (x: t1) -> ...
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 75, "end_line": 408, "start_col": 0, "start_line": 389 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "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': LowParse.SLow.Base.size32 s1 { Mkparser_kind'?.parser_kind_subkind k1 == FStar.Pervasives.Native.Some LowParse.Spec.Base.ParserStrong } -> s2': (x: t1 -> LowParse.SLow.Base.size32 (s2 x)) -> LowParse.SLow.Base.size32 (LowParse.Spec.Combinators.serialize_dtuple2 s1 s2)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.SLow.Base.size32", "Prims.eq2", "FStar.Pervasives.Native.option", "LowParse.Spec.Base.parser_subkind", "LowParse.Spec.Base.__proj__Mkparser_kind'__item__parser_kind_subkind", "FStar.Pervasives.N...
[]
false
false
false
false
false
let size32_dtuple2 (#k1: parser_kind) (#t1: Type) (#p1: parser k1 t1) (#s1: serializer p1) (s1': size32 s1 {k1.parser_kind_subkind == Some ParserStrong}) (#k2: parser_kind) (#t2: (t1 -> Tot Type)) (#p2: (x: t1 -> Tot (parser k2 (t2 x)))) (#s2: (x: t1 -> Tot (seriali...
fun x -> [@@ inline_let ]let _ = serialize_dtuple2_eq s1 s2 x in match x with | (| x1 , x2 |) -> let v1 = s1' x1 in let v2 = s2' x1 x2 in let res = add_overflow v1 v2 in (res <: (z: U32.t{size32_postcond (serialize_dtuple2 s1 s2) x z}))
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.parse32_weaken
val parse32_weaken (k1 #k2: parser_kind) (#t: Type) (#p2: parser k2 t) (p2': parser32 p2 {k1 `is_weaker_than` k2}) : Tot (parser32 (weaken k1 p2))
val parse32_weaken (k1 #k2: parser_kind) (#t: Type) (#p2: parser k2 t) (p2': parser32 p2 {k1 `is_weaker_than` k2}) : Tot (parser32 (weaken k1 p2))
let parse32_weaken (k1: parser_kind) (#k2: parser_kind) (#t: Type) (#p2: parser k2 t) (p2' : parser32 p2 { k1 `is_weaker_than` k2 }) : Tot (parser32 (weaken k1 p2)) = fun x -> p2' x
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 16, "end_line": 506, "start_col": 0, "start_line": 499 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k1: LowParse.Spec.Base.parser_kind -> p2': LowParse.SLow.Base.parser32 p2 {LowParse.Spec.Base.is_weaker_than k1 k2} -> LowParse.SLow.Base.parser32 (LowParse.Spec.Base.weaken k1 p2)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.SLow.Base.parser32", "LowParse.Spec.Base.is_weaker_than", "LowParse.SLow.Base.bytes32", "FStar.Pervasives.Native.option", "FStar.Pervasives.Native.tuple2", "FStar.UInt32.t", "LowParse.SLow.Base.parser32_correct", "LowParse.Sp...
[]
false
false
false
false
false
let parse32_weaken (k1 #k2: parser_kind) (#t: Type) (#p2: parser k2 t) (p2': parser32 p2 {k1 `is_weaker_than` k2}) : Tot (parser32 (weaken k1 p2)) =
fun x -> p2' x
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.lift_parser32
val lift_parser32 (#k: parser_kind) (#t: Type) (f: (unit -> GTot (parser k t))) (f32: parser32 (f ())) : Tot (parser32 (lift_parser f))
val lift_parser32 (#k: parser_kind) (#t: Type) (f: (unit -> GTot (parser k t))) (f32: parser32 (f ())) : Tot (parser32 (lift_parser f))
let lift_parser32 (#k: parser_kind) (#t: Type) (f: unit -> GTot (parser k t)) (f32: parser32 (f ())) : Tot (parser32 (lift_parser f)) = fun x -> f32 x
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 16, "end_line": 537, "start_col": 0, "start_line": 531 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.unit -> Prims.GTot (LowParse.Spec.Base.parser k t)) -> f32: LowParse.SLow.Base.parser32 (f ()) -> LowParse.SLow.Base.parser32 (LowParse.Spec.Combinators.lift_parser f)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "Prims.unit", "LowParse.Spec.Base.parser", "LowParse.SLow.Base.parser32", "LowParse.SLow.Base.bytes32", "FStar.Pervasives.Native.option", "FStar.Pervasives.Native.tuple2", "FStar.UInt32.t", "LowParse.SLow.Base.parser32_correct", "LowParse.Spec.Combinators.lift_par...
[]
false
false
false
false
false
let lift_parser32 (#k: parser_kind) (#t: Type) (f: (unit -> GTot (parser k t))) (f32: parser32 (f ())) : Tot (parser32 (lift_parser f)) =
fun x -> f32 x
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.size32_weaken
val size32_weaken (k1 #k2: parser_kind) (#t: Type) (#p2: parser k2 t) (#s2: serializer p2) (s2': size32 s2 {k1 `is_weaker_than` k2}) : Tot (size32 (serialize_weaken k1 s2))
val size32_weaken (k1 #k2: parser_kind) (#t: Type) (#p2: parser k2 t) (#s2: serializer p2) (s2': size32 s2 {k1 `is_weaker_than` k2}) : Tot (size32 (serialize_weaken k1 s2))
let size32_weaken (k1: parser_kind) (#k2: parser_kind) (#t: Type) (#p2: parser k2 t) (#s2: serializer p2) (s2' : size32 s2 { k1 `is_weaker_than` k2 }) : Tot (size32 (serialize_weaken k1 s2)) = fun x -> s2' x
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 16, "end_line": 528, "start_col": 0, "start_line": 520 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k1: LowParse.Spec.Base.parser_kind -> s2': LowParse.SLow.Base.size32 s2 {LowParse.Spec.Base.is_weaker_than k1 k2} -> LowParse.SLow.Base.size32 (LowParse.Spec.Combinators.serialize_weaken k1 s2)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.SLow.Base.size32", "LowParse.Spec.Base.is_weaker_than", "FStar.UInt32.t", "LowParse.SLow.Base.size32_postcond", "LowParse.Spec.Base.weaken", "LowParse.Spec.Combinators.serialize_weaken" ]
[]
false
false
false
false
false
let size32_weaken (k1 #k2: parser_kind) (#t: Type) (#p2: parser k2 t) (#s2: serializer p2) (s2': size32 s2 {k1 `is_weaker_than` k2}) : Tot (size32 (serialize_weaken k1 s2)) =
fun x -> s2' x
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.serialize32_weaken
val serialize32_weaken (k1 #k2: parser_kind) (#t: Type) (#p2: parser k2 t) (#s2: serializer p2) (s2': serializer32 s2 {k1 `is_weaker_than` k2}) : Tot (serializer32 (serialize_weaken k1 s2))
val serialize32_weaken (k1 #k2: parser_kind) (#t: Type) (#p2: parser k2 t) (#s2: serializer p2) (s2': serializer32 s2 {k1 `is_weaker_than` k2}) : Tot (serializer32 (serialize_weaken k1 s2))
let serialize32_weaken (k1: parser_kind) (#k2: parser_kind) (#t: Type) (#p2: parser k2 t) (#s2: serializer p2) (s2' : serializer32 s2 { k1 `is_weaker_than` k2 }) : Tot (serializer32 (serialize_weaken k1 s2)) = fun x -> s2' x
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 16, "end_line": 517, "start_col": 0, "start_line": 509 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k1: LowParse.Spec.Base.parser_kind -> s2': LowParse.SLow.Base.serializer32 s2 {LowParse.Spec.Base.is_weaker_than k1 k2} -> LowParse.SLow.Base.serializer32 (LowParse.Spec.Combinators.serialize_weaken k1 s2)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.SLow.Base.serializer32", "LowParse.Spec.Base.is_weaker_than", "LowParse.SLow.Base.bytes32", "LowParse.SLow.Base.serializer32_correct", "LowParse.Spec.Base.weaken", "LowParse.Spec.Combinators.ser...
[]
false
false
false
false
false
let serialize32_weaken (k1 #k2: parser_kind) (#t: Type) (#p2: parser k2 t) (#s2: serializer p2) (s2': serializer32 s2 {k1 `is_weaker_than` k2}) : Tot (serializer32 (serialize_weaken k1 s2)) =
fun x -> s2' x
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.lift_serializer32
val lift_serializer32 (#k: parser_kind) (#t: Type) (f: (unit -> GTot (parser k t))) (s: (unit -> GTot (serializer (f ())))) (s32: serializer32 (s ())) : Tot (serializer32 (lift_serializer #k #t #f s))
val lift_serializer32 (#k: parser_kind) (#t: Type) (f: (unit -> GTot (parser k t))) (s: (unit -> GTot (serializer (f ())))) (s32: serializer32 (s ())) : Tot (serializer32 (lift_serializer #k #t #f s))
let lift_serializer32 (#k: parser_kind) (#t: Type) (f: unit -> GTot (parser k t)) (s: unit -> GTot (serializer (f ()))) (s32: serializer32 (s ())) : Tot (serializer32 (lift_serializer #k #t #f s)) = fun x -> s32 x
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 16, "end_line": 547, "start_col": 0, "start_line": 540 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
f: (_: Prims.unit -> Prims.GTot (LowParse.Spec.Base.parser k t)) -> s: (_: Prims.unit -> Prims.GTot (LowParse.Spec.Base.serializer (f ()))) -> s32: LowParse.SLow.Base.serializer32 (s ()) -> LowParse.SLow.Base.serializer32 (LowParse.Spec.Combinators.lift_serializer s)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "Prims.unit", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.SLow.Base.serializer32", "LowParse.SLow.Base.bytes32", "LowParse.SLow.Base.serializer32_correct", "LowParse.Spec.Combinators.lift_parser", "LowParse.Spec.Combinators.lift_serialize...
[]
false
false
false
false
false
let lift_serializer32 (#k: parser_kind) (#t: Type) (f: (unit -> GTot (parser k t))) (s: (unit -> GTot (serializer (f ())))) (s32: serializer32 (s ())) : Tot (serializer32 (lift_serializer #k #t #f s)) =
fun x -> s32 x
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.serialize32_tagged_union
val serialize32_tagged_union (#kt: parser_kind) (#tag_t: Type) (#pt: parser kt tag_t) (#st: serializer pt) (st32: serializer32 st) (#data_t: Type) (tag_of_data: (data_t -> GTot tag_t)) (tag_of_data': (x: data_t -> Tot (y: tag_t{y == tag_of_data x}))) (#k: parser_kin...
val serialize32_tagged_union (#kt: parser_kind) (#tag_t: Type) (#pt: parser kt tag_t) (#st: serializer pt) (st32: serializer32 st) (#data_t: Type) (tag_of_data: (data_t -> GTot tag_t)) (tag_of_data': (x: data_t -> Tot (y: tag_t{y == tag_of_data x}))) (#k: parser_kin...
let serialize32_tagged_union (#kt: parser_kind) (#tag_t: Type) (#pt: parser kt tag_t) (#st: serializer pt) (st32: serializer32 st) (#data_t: Type) (tag_of_data: (data_t -> GTot tag_t)) (tag_of_data' : ((x: data_t) -> Tot (y: tag_t { y == tag_of_data x }))) (#k: parser_kind) (#p: (t: tag_t) -> Tot (p...
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 33, "end_line": 599, "start_col": 0, "start_line": 574 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
st32: LowParse.SLow.Base.serializer32 st -> tag_of_data: (_: data_t -> Prims.GTot tag_t) -> tag_of_data': (x: data_t -> y: tag_t{y == tag_of_data x}) -> s32: (t: tag_t -> LowParse.SLow.Base.serializer32 (s t)) -> x: Prims.squash (Mkparser_kind'?.parser_kind_subkind kt == FStar.Perva...
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.Spec.Base.serializer", "LowParse.SLow.Base.serializer32", "Prims.eq2", "LowParse.Spec.Base.refine_with_tag", "Prims.squash", "Prims.l_and", "FStar.Pervasives.Native.option", "LowParse.Spec.Base.parser_subkind", "LowParse.Sp...
[]
false
false
false
false
false
let serialize32_tagged_union (#kt: parser_kind) (#tag_t: Type) (#pt: parser kt tag_t) (#st: serializer pt) (st32: serializer32 st) (#data_t: Type) (tag_of_data: (data_t -> GTot tag_t)) (tag_of_data': (x: data_t -> Tot (y: tag_t{y == tag_of_data x}))) (#k: parser_kin...
fun x -> serialize_tagged_union_eq st tag_of_data s x; let tg = tag_of_data' x in (st32 tg) `B32.append` (s32 tg x)
false
LowParse.SLow.Combinators.fst
LowParse.SLow.Combinators.parse32_tagged_union
val parse32_tagged_union (#kt: parser_kind) (#tag_t: Type) (#pt: parser kt tag_t) (pt32: parser32 pt) (#data_t: Type) (tag_of_data: (data_t -> GTot tag_t)) (#k: parser_kind) (#p: (t: tag_t -> Tot (parser k (refine_with_tag tag_of_data t)))) (p32: (t: tag_t -> Tot (p...
val parse32_tagged_union (#kt: parser_kind) (#tag_t: Type) (#pt: parser kt tag_t) (pt32: parser32 pt) (#data_t: Type) (tag_of_data: (data_t -> GTot tag_t)) (#k: parser_kind) (#p: (t: tag_t -> Tot (parser k (refine_with_tag tag_of_data t)))) (p32: (t: tag_t -> Tot (p...
let parse32_tagged_union (#kt: parser_kind) (#tag_t: Type) (#pt: parser kt tag_t) (pt32: parser32 pt) (#data_t: Type) (tag_of_data: (data_t -> GTot tag_t)) (#k: parser_kind) (#p: (t: tag_t) -> Tot (parser k (refine_with_tag tag_of_data t))) (p32: (t: tag_t) -> Tot (parser32 (p t))) : Tot (parser32 (pa...
{ "file_name": "src/lowparse/LowParse.SLow.Combinators.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 9, "end_line": 571, "start_col": 0, "start_line": 550 }
module LowParse.SLow.Combinators include LowParse.SLow.Base include LowParse.Spec.Combinators module B32 = FStar.Bytes module U32 = FStar.UInt32 #reset-options "--z3rlimit 16 --max_fuel 8 --max_ifuel 8" inline_for_extraction let parse32_ret (#t: Type) (x: t) : Tot (parser32 (parse_ret x)) = (fun input -> ((Some ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Combinators.fsti.checked", "LowParse.SLow.Base.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Bytes.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "FStar.Bytes", "short_module": "B32" }, { "abbrev": false, "full_module": "LowParse.Spec.Combinators", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 8, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
pt32: LowParse.SLow.Base.parser32 pt -> tag_of_data: (_: data_t -> Prims.GTot tag_t) -> p32: (t: tag_t -> LowParse.SLow.Base.parser32 (p t)) -> LowParse.SLow.Base.parser32 (LowParse.Spec.Combinators.parse_tagged_union pt tag_of_data p)
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "LowParse.SLow.Base.parser32", "LowParse.Spec.Base.refine_with_tag", "LowParse.SLow.Base.bytes32", "FStar.Pervasives.Native.None", "FStar.Pervasives.Native.tuple2", "FStar.UInt32.t", "FStar.Pervasives.Native.Some", "FStar.Pervasives.Na...
[]
false
false
false
false
false
let parse32_tagged_union (#kt: parser_kind) (#tag_t: Type) (#pt: parser kt tag_t) (pt32: parser32 pt) (#data_t: Type) (tag_of_data: (data_t -> GTot tag_t)) (#k: parser_kind) (#p: (t: tag_t -> Tot (parser k (refine_with_tag tag_of_data t)))) (p32: (t: tag_t -> Tot (p...
fun input -> parse_tagged_union_eq pt tag_of_data p (B32.reveal input); match pt32 input with | None -> None | Some (tg, consumed_tg) -> let input_tg = B32.slice input consumed_tg (B32.len input) in match p32 tg input_tg with | None -> None | Some (x, consumed_x) -> Some ((x <: data_t), consumed...
false
Hacl.Impl.Ed25519.Verify.fst
Hacl.Impl.Ed25519.Verify.verify_valid_pk_rs
val verify_valid_pk_rs: public_key:lbuffer uint8 32ul -> msg_len:size_t -> msg:lbuffer uint8 msg_len -> signature:lbuffer uint8 64ul -> a':point -> r':point -> Stack bool (requires fun h -> live h public_key /\ live h msg /\ live h signature /\ live h a' /\ live h r' /\ (Some? (Spec.Ed25...
val verify_valid_pk_rs: public_key:lbuffer uint8 32ul -> msg_len:size_t -> msg:lbuffer uint8 msg_len -> signature:lbuffer uint8 64ul -> a':point -> r':point -> Stack bool (requires fun h -> live h public_key /\ live h msg /\ live h signature /\ live h a' /\ live h r' /\ (Some? (Spec.Ed25...
let verify_valid_pk_rs public_key msg_len msg signature a' r' = push_frame (); let hb = create 32ul (u8 0) in let rs = sub signature 0ul 32ul in let sb = sub signature 32ul 32ul in let b = verify_sb sb in let res = if b then false else begin Hacl.Impl.SHA512.ModQ.store_sha512_modq_pre_pre2 hb...
{ "file_name": "code/ed25519/Hacl.Impl.Ed25519.Verify.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 94, "start_col": 0, "start_line": 81 }
module Hacl.Impl.Ed25519.Verify open FStar.HyperStack open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer module ST = FStar.HyperStack.ST module BSeq = Lib.ByteSequence open Hacl.Bignum25519 module F51 = Hacl.Impl.Ed25519.Field51 module PM = Hacl.Impl.Ed25519.Ladder #reset-options "--z3rlimi...
{ "checked_file": "/", "dependencies": [ "Spec.Ed25519.Lemmas.fsti.checked", "Spec.Ed25519.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Impl.SHA512.ModQ.fst.checked", "Hacl.Impl.Load56.fst.checked", ...
[ { "abbrev": true, "full_module": "Hacl.Impl.Ed25519.Ladder", "short_module": "PM" }, { "abbrev": true, "full_module": "Hacl.Impl.Ed25519.Field51", "short_module": "F51" }, { "abbrev": false, "full_module": "Hacl.Bignum25519", "short_module": null }, { "abbrev": tr...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
public_key: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> msg_len: Lib.IntTypes.size_t -> msg: Lib.Buffer.lbuffer Lib.IntTypes.uint8 msg_len -> signature: Lib.Buffer.lbuffer Lib.IntTypes.uint8 64ul -> a': Hacl.Bignum25519.point -> r': Hacl.Bignum25519.point -> FStar.HyperStack.ST.Stack Prims....
FStar.HyperStack.ST.Stack
[]
[]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.size_t", "Hacl.Bignum25519.point", "Prims.bool", "Prims.unit", "FStar.HyperStack.ST.pop_frame", "Hacl.Impl.Ed25519.Verify.verify_all_valid_hb", "Hacl.Impl.SHA512.ModQ.store_sha512_modq_pre_pre2", "Hacl.Impl.Ed2...
[]
false
true
false
false
false
let verify_valid_pk_rs public_key msg_len msg signature a' r' =
push_frame (); let hb = create 32ul (u8 0) in let rs = sub signature 0ul 32ul in let sb = sub signature 32ul 32ul in let b = verify_sb sb in let res = if b then false else (Hacl.Impl.SHA512.ModQ.store_sha512_modq_pre_pre2 hb rs public_key msg_len msg; verify_all_valid_hb sb hb a' r') in pop_frame (); re...
false
FStar.ST.fst
FStar.ST.gst_post
val gst_post : a: Type -> Type
let gst_post (a:Type) = st_post_h heap a
{ "file_name": "ulib/FStar.ST.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 41, "end_line": 30, "start_col": 0, "start_line": 30 }
(* Copyright 2008-2014 Nikhil Swamy, Aseem Rastogi, and 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 r...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.TSet.fsti.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Witnessed.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_f...
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> Type
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.st_post_h", "FStar.Monotonic.Heap.heap" ]
[]
false
false
false
true
true
let gst_post (a: Type) =
st_post_h heap a
false
FStar.ST.fst
FStar.ST.gst_pre
val gst_pre : Type
let gst_pre = st_pre_h heap
{ "file_name": "ulib/FStar.ST.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 37, "end_line": 28, "start_col": 0, "start_line": 28 }
(* Copyright 2008-2014 Nikhil Swamy, Aseem Rastogi, and 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 r...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.TSet.fsti.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Witnessed.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_f...
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_mo...
{ "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
Type
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.st_pre_h", "FStar.Monotonic.Heap.heap" ]
[]
false
false
false
true
true
let gst_pre =
st_pre_h heap
false
FStar.ST.fst
FStar.ST.gst_post'
val gst_post' : a: Type -> pre: Type -> Type
let gst_post' (a:Type) (pre:Type) = st_post_h' heap a pre
{ "file_name": "ulib/FStar.ST.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 57, "end_line": 29, "start_col": 0, "start_line": 29 }
(* Copyright 2008-2014 Nikhil Swamy, Aseem Rastogi, and 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 r...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.TSet.fsti.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Witnessed.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_f...
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> pre: Type -> Type
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.st_post_h'", "FStar.Monotonic.Heap.heap" ]
[]
false
false
false
true
true
let gst_post' (a pre: Type) =
st_post_h' heap a pre
false
FStar.ST.fst
FStar.ST.gst_wp
val gst_wp : a: Type -> Type
let gst_wp (a:Type) = st_wp_h heap a
{ "file_name": "ulib/FStar.ST.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 38, "end_line": 31, "start_col": 0, "start_line": 31 }
(* Copyright 2008-2014 Nikhil Swamy, Aseem Rastogi, and 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 r...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.TSet.fsti.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Witnessed.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_f...
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> Type
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.st_wp_h", "FStar.Monotonic.Heap.heap" ]
[]
false
false
false
true
true
let gst_wp (a: Type) =
st_wp_h heap a
false
FStar.ST.fst
FStar.ST.heap_rel
val heap_rel : h1: FStar.Monotonic.Heap.heap -> h2: FStar.Monotonic.Heap.heap -> Prims.logical
let heap_rel (h1:heap) (h2:heap) = forall (a:Type0) (rel:preorder a) (r:mref a rel). h1 `contains` r ==> (h2 `contains` r /\ rel (sel h1 r) (sel h2 r))
{ "file_name": "ulib/FStar.ST.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 93, "end_line": 38, "start_col": 0, "start_line": 36 }
(* Copyright 2008-2014 Nikhil Swamy, Aseem Rastogi, and 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 r...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.TSet.fsti.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Witnessed.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_f...
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_mo...
{ "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
h1: FStar.Monotonic.Heap.heap -> h2: FStar.Monotonic.Heap.heap -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "FStar.Monotonic.Heap.heap", "Prims.l_Forall", "FStar.Preorder.preorder", "FStar.Monotonic.Heap.mref", "Prims.l_imp", "FStar.Monotonic.Heap.contains", "Prims.l_and", "FStar.Monotonic.Heap.sel", "Prims.logical" ]
[]
false
false
false
true
true
let heap_rel (h1 h2: heap) =
forall (a: Type0) (rel: preorder a) (r: mref a rel). h1 `contains` r ==> (h2 `contains` r /\ rel (sel h1 r) (sel h2 r))
false
FStar.ST.fst
FStar.ST.lift_div_gst
val lift_div_gst : a: Type -> wp: Prims.pure_wp a -> p: FStar.ST.gst_post a -> h: FStar.Monotonic.Heap.heap -> Prims.pure_pre
let lift_div_gst (a:Type) (wp:pure_wp a) (p:gst_post a) (h:heap) = wp (fun a -> p a h)
{ "file_name": "ulib/FStar.ST.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 93, "end_line": 33, "start_col": 7, "start_line": 33 }
(* Copyright 2008-2014 Nikhil Swamy, Aseem Rastogi, and 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 r...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.TSet.fsti.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Witnessed.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_f...
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> wp: Prims.pure_wp a -> p: FStar.ST.gst_post a -> h: FStar.Monotonic.Heap.heap -> Prims.pure_pre
Prims.Tot
[ "total" ]
[]
[ "Prims.pure_wp", "FStar.ST.gst_post", "FStar.Monotonic.Heap.heap", "Prims.l_True", "Prims.pure_pre" ]
[]
false
false
false
true
false
let lift_div_gst (a: Type) (wp: pure_wp a) (p: gst_post a) (h: heap) =
wp (fun a -> p a h)
false
FStar.ST.fst
FStar.ST.stable
val stable : p: FStar.ST.heap_predicate -> Prims.logical
let stable (p:heap_predicate) = forall (h1:heap) (h2:heap). (p h1 /\ heap_rel h1 h2) ==> p h2
{ "file_name": "ulib/FStar.ST.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 63, "end_line": 46, "start_col": 0, "start_line": 45 }
(* Copyright 2008-2014 Nikhil Swamy, Aseem Rastogi, and 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 r...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.TSet.fsti.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Witnessed.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_f...
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_mo...
{ "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: FStar.ST.heap_predicate -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "FStar.ST.heap_predicate", "Prims.l_Forall", "FStar.Monotonic.Heap.heap", "Prims.l_imp", "Prims.l_and", "FStar.ST.heap_rel", "Prims.logical" ]
[]
false
false
false
true
true
let stable (p: heap_predicate) =
forall (h1: heap) (h2: heap). (p h1 /\ heap_rel h1 h2) ==> p h2
false
FStar.ST.fst
FStar.ST.st_post'
val st_post' : a: Type -> pre: Type -> Type
let st_post' = gst_post'
{ "file_name": "ulib/FStar.ST.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 24, "end_line": 64, "start_col": 0, "start_line": 64 }
(* Copyright 2008-2014 Nikhil Swamy, Aseem Rastogi, and 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 r...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.TSet.fsti.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Witnessed.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_f...
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> pre: Type -> Type
Prims.Tot
[ "total" ]
[]
[ "FStar.ST.gst_post'" ]
[]
false
false
false
true
true
let st_post' =
gst_post'
false
FStar.ST.fst
FStar.ST.st_pre
val st_pre : Type
let st_pre = gst_pre
{ "file_name": "ulib/FStar.ST.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 22, "end_line": 63, "start_col": 0, "start_line": 63 }
(* Copyright 2008-2014 Nikhil Swamy, Aseem Rastogi, and 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 r...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.TSet.fsti.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Witnessed.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_f...
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_mo...
{ "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
Type
Prims.Tot
[ "total" ]
[]
[ "FStar.ST.gst_pre" ]
[]
false
false
false
true
true
let st_pre =
gst_pre
false
FStar.ST.fst
FStar.ST.st_wp
val st_wp : a: Type -> Type
let st_wp = gst_wp
{ "file_name": "ulib/FStar.ST.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 21, "end_line": 66, "start_col": 0, "start_line": 66 }
(* Copyright 2008-2014 Nikhil Swamy, Aseem Rastogi, and 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 r...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.TSet.fsti.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Witnessed.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_f...
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> Type
Prims.Tot
[ "total" ]
[]
[ "FStar.ST.gst_wp" ]
[]
false
false
false
true
true
let st_wp =
gst_wp
false
FStar.ST.fst
FStar.ST.lift_gst_state
val lift_gst_state : a: Type -> wp: FStar.ST.gst_wp a -> FStar.ST.gst_wp a
let lift_gst_state (a:Type) (wp:gst_wp a) = wp
{ "file_name": "ulib/FStar.ST.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 53, "end_line": 70, "start_col": 7, "start_line": 70 }
(* Copyright 2008-2014 Nikhil Swamy, Aseem Rastogi, and 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 r...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.TSet.fsti.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Witnessed.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_f...
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> wp: FStar.ST.gst_wp a -> FStar.ST.gst_wp a
Prims.Tot
[ "total" ]
[]
[ "FStar.ST.gst_wp" ]
[]
false
false
false
true
false
let lift_gst_state (a: Type) (wp: gst_wp a) =
wp
false
FStar.ST.fst
FStar.ST.st_post
val st_post : a: Type -> Type
let st_post = gst_post
{ "file_name": "ulib/FStar.ST.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 23, "end_line": 65, "start_col": 0, "start_line": 65 }
(* Copyright 2008-2014 Nikhil Swamy, Aseem Rastogi, and 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 r...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.TSet.fsti.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Witnessed.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_f...
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> Type
Prims.Tot
[ "total" ]
[]
[ "FStar.ST.gst_post" ]
[]
false
false
false
true
true
let st_post =
gst_post
false
FStar.ST.fst
FStar.ST.contains_pred
val contains_pred : r: FStar.Monotonic.Heap.mref a rel -> h: FStar.Monotonic.Heap.heap -> Type0
let contains_pred (#a:Type0) (#rel:preorder a) (r:mref a rel) = fun h -> h `contains` r
{ "file_name": "ulib/FStar.ST.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 87, "end_line": 79, "start_col": 0, "start_line": 79 }
(* Copyright 2008-2014 Nikhil Swamy, Aseem Rastogi, and 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 r...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.TSet.fsti.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Witnessed.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_f...
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.Monotonic.Heap.mref a rel -> h: FStar.Monotonic.Heap.heap -> Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.Preorder.preorder", "FStar.Monotonic.Heap.mref", "FStar.Monotonic.Heap.heap", "FStar.Monotonic.Heap.contains" ]
[]
false
false
false
false
true
let contains_pred (#a: Type0) (#rel: preorder a) (r: mref a rel) =
fun h -> h `contains` r
false
FStar.ST.fst
FStar.ST.op_Bang
val ( ! ) (#a: Type) (#rel: preorder a) (r: mref a rel) : STATE a (fun p h -> p (sel h r) h)
val ( ! ) (#a: Type) (#rel: preorder a) (r: mref a rel) : STATE a (fun p h -> p (sel h r) h)
let op_Bang (#a:Type) (#rel:preorder a) (r:mref a rel) : STATE a (fun p h -> p (sel h r) h) = read #a #rel r
{ "file_name": "ulib/FStar.ST.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 16, "end_line": 120, "start_col": 0, "start_line": 118 }
(* Copyright 2008-2014 Nikhil Swamy, Aseem Rastogi, and 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 r...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.TSet.fsti.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Witnessed.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_f...
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.ST.mref a rel -> FStar.ST.STATE a
FStar.ST.STATE
[]
[]
[ "FStar.Preorder.preorder", "FStar.ST.mref", "FStar.ST.read", "FStar.Pervasives.st_post_h", "FStar.Monotonic.Heap.heap", "FStar.Monotonic.Heap.sel" ]
[]
false
true
false
false
false
let ( ! ) (#a: Type) (#rel: preorder a) (r: mref a rel) : STATE a (fun p h -> p (sel h r) h) =
read #a #rel r
false
FStar.ST.fst
FStar.ST.lemma_functoriality
val lemma_functoriality (p:heap_predicate{stable p /\ witnessed p}) (q:heap_predicate{stable q /\ (forall (h:heap). p h ==> q h)}) :Lemma (ensures (witnessed q))
val lemma_functoriality (p:heap_predicate{stable p /\ witnessed p}) (q:heap_predicate{stable q /\ (forall (h:heap). p h ==> q h)}) :Lemma (ensures (witnessed q))
let lemma_functoriality p q = reveal_opaque (`%witnessed) witnessed; W.lemma_witnessed_weakening heap_rel p q
{ "file_name": "ulib/FStar.ST.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 42, "end_line": 59, "start_col": 0, "start_line": 57 }
(* Copyright 2008-2014 Nikhil Swamy, Aseem Rastogi, and 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 r...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.TSet.fsti.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Witnessed.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_f...
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_mo...
{ "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: FStar.ST.heap_predicate{FStar.ST.stable p /\ FStar.ST.witnessed p} -> q: FStar.ST.heap_predicate {FStar.ST.stable q /\ (forall (h: FStar.Monotonic.Heap.heap). p h ==> q h)} -> FStar.Pervasives.Lemma (ensures FStar.ST.witnessed q)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "FStar.ST.heap_predicate", "Prims.l_and", "FStar.ST.stable", "FStar.ST.witnessed", "Prims.l_Forall", "FStar.Monotonic.Heap.heap", "Prims.l_imp", "FStar.Monotonic.Witnessed.lemma_witnessed_weakening", "FStar.ST.heap_rel", "Prims.unit", "FStar.Pervasives.reveal_opaque" ]
[]
true
false
true
false
false
let lemma_functoriality p q =
reveal_opaque (`%witnessed) witnessed; W.lemma_witnessed_weakening heap_rel p q
false
FStar.ST.fst
FStar.ST.witnessed
val witnessed (p: heap_predicate{stable p}) : Type0
val witnessed (p: heap_predicate{stable p}) : Type0
let witnessed (p:heap_predicate{stable p}) : Type0 = W.witnessed heap_rel p
{ "file_name": "ulib/FStar.ST.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 75, "end_line": 49, "start_col": 0, "start_line": 49 }
(* Copyright 2008-2014 Nikhil Swamy, Aseem Rastogi, and 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 r...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.TSet.fsti.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Witnessed.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_f...
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_mo...
{ "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: FStar.ST.heap_predicate{FStar.ST.stable p} -> Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.ST.heap_predicate", "FStar.ST.stable", "FStar.Monotonic.Witnessed.witnessed", "FStar.Monotonic.Heap.heap", "FStar.ST.heap_rel" ]
[]
false
false
false
false
true
let witnessed (p: heap_predicate{stable p}) : Type0 =
W.witnessed heap_rel p
false
FStar.ST.fst
FStar.ST.read
val read (#a: Type) (#rel: preorder a) (r: mref a rel) : STATE a (fun p h -> p (sel h r) h)
val read (#a: Type) (#rel: preorder a) (r: mref a rel) : STATE a (fun p h -> p (sel h r) h)
let read (#a:Type) (#rel:preorder a) (r:mref a rel) :STATE a (fun p h -> p (sel h r) h) = let h0 = gst_get () in gst_recall (contains_pred r); Heap.lemma_sel_equals_sel_tot_for_contained_refs h0 r; sel_tot h0 r
{ "file_name": "ulib/FStar.ST.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 16, "end_line": 100, "start_col": 0, "start_line": 96 }
(* Copyright 2008-2014 Nikhil Swamy, Aseem Rastogi, and 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 r...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.TSet.fsti.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Witnessed.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_f...
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.ST.mref a rel -> FStar.ST.STATE a
FStar.ST.STATE
[]
[]
[ "FStar.Preorder.preorder", "FStar.ST.mref", "FStar.Monotonic.Heap.sel_tot", "Prims.unit", "FStar.Monotonic.Heap.lemma_sel_equals_sel_tot_for_contained_refs", "FStar.ST.gst_recall", "FStar.ST.contains_pred", "FStar.Monotonic.Heap.heap", "FStar.ST.gst_get", "FStar.Pervasives.st_post_h", "FStar.Mon...
[]
false
true
false
false
false
let read (#a: Type) (#rel: preorder a) (r: mref a rel) : STATE a (fun p h -> p (sel h r) h) =
let h0 = gst_get () in gst_recall (contains_pred r); Heap.lemma_sel_equals_sel_tot_for_contained_refs h0 r; sel_tot h0 r
false
FStar.ST.fst
FStar.ST.alloc
val alloc (#a: Type) (#rel: preorder a) (init: a) : ST (mref a rel) (fun h -> True) (fun h0 r h1 -> fresh r h0 h1 /\ modifies Set.empty h0 h1 /\ sel h1 r == init)
val alloc (#a: Type) (#rel: preorder a) (init: a) : ST (mref a rel) (fun h -> True) (fun h0 r h1 -> fresh r h0 h1 /\ modifies Set.empty h0 h1 /\ sel h1 r == init)
let alloc (#a:Type) (#rel:preorder a) (init:a) :ST (mref a rel) (fun h -> True) (fun h0 r h1 -> fresh r h0 h1 /\ modifies Set.empty h0 h1 /\ sel h1 r == init) = let h0 = gst_get () in let r, h1 = alloc rel h0 init false in gst_put h1; gst_witness (contains_pred r); r
{ "file_name": "ulib/FStar.ST.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 94, "start_col": 0, "start_line": 86 }
(* Copyright 2008-2014 Nikhil Swamy, Aseem Rastogi, and 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 r...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.TSet.fsti.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Witnessed.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_f...
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_mo...
{ "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
init: a -> FStar.ST.ST (FStar.ST.mref a rel)
FStar.ST.ST
[]
[]
[ "FStar.Preorder.preorder", "FStar.Monotonic.Heap.mref", "FStar.Monotonic.Heap.heap", "FStar.ST.mref", "Prims.unit", "FStar.ST.gst_witness", "FStar.ST.contains_pred", "FStar.ST.gst_put", "FStar.Pervasives.Native.tuple2", "FStar.Monotonic.Heap.alloc", "FStar.ST.gst_get", "Prims.l_True", "Prims...
[]
false
true
false
false
false
let alloc (#a: Type) (#rel: preorder a) (init: a) : ST (mref a rel) (fun h -> True) (fun h0 r h1 -> fresh r h0 h1 /\ modifies Set.empty h0 h1 /\ sel h1 r == init) =
let h0 = gst_get () in let r, h1 = alloc rel h0 init false in gst_put h1; gst_witness (contains_pred r); r
false
FStar.ST.fst
FStar.ST.recall
val recall (#a: Type) (#rel: preorder a) (r: mref a rel) : STATE unit (fun p h -> Heap.contains h r ==> p () h)
val recall (#a: Type) (#rel: preorder a) (r: mref a rel) : STATE unit (fun p h -> Heap.contains h r ==> p () h)
let recall (#a:Type) (#rel:preorder a) (r:mref a rel) :STATE unit (fun p h -> Heap.contains h r ==> p () h) = gst_recall (contains_pred r)
{ "file_name": "ulib/FStar.ST.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 32, "end_line": 84, "start_col": 0, "start_line": 83 }
(* Copyright 2008-2014 Nikhil Swamy, Aseem Rastogi, and 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 r...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.TSet.fsti.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Witnessed.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_f...
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.ST.mref a rel -> FStar.ST.STATE Prims.unit
FStar.ST.STATE
[]
[]
[ "FStar.Preorder.preorder", "FStar.ST.mref", "FStar.ST.gst_recall", "FStar.ST.contains_pred", "Prims.unit", "FStar.Pervasives.st_post_h", "FStar.Monotonic.Heap.heap", "Prims.l_imp", "FStar.Monotonic.Heap.contains" ]
[]
false
true
false
false
false
let recall (#a: Type) (#rel: preorder a) (r: mref a rel) : STATE unit (fun p h -> Heap.contains h r ==> p () h) =
gst_recall (contains_pred r)
false
FStar.ST.fst
FStar.ST.get
val get (u: unit) : ST heap (fun h -> True) (fun h0 h h1 -> h0 == h1 /\ h == h1)
val get (u: unit) : ST heap (fun h -> True) (fun h0 h h1 -> h0 == h1 /\ h == h1)
let get (u:unit) :ST heap (fun h -> True) (fun h0 h h1 -> h0==h1 /\ h==h1) = gst_get ()
{ "file_name": "ulib/FStar.ST.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 87, "end_line": 116, "start_col": 0, "start_line": 116 }
(* Copyright 2008-2014 Nikhil Swamy, Aseem Rastogi, and 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 r...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.TSet.fsti.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Witnessed.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_f...
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_mo...
{ "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
u88: Prims.unit -> FStar.ST.ST FStar.Monotonic.Heap.heap
FStar.ST.ST
[]
[]
[ "Prims.unit", "FStar.ST.gst_get", "FStar.Monotonic.Heap.heap", "Prims.l_True", "Prims.l_and", "Prims.eq2" ]
[]
false
true
false
false
false
let get (u: unit) : ST heap (fun h -> True) (fun h0 h h1 -> h0 == h1 /\ h == h1) =
gst_get ()
false
FStar.ST.fst
FStar.ST.op_Colon_Equals
val ( := ) (#a: Type) (#rel: preorder a) (r: mref a rel) (v: a) : ST unit (fun h -> rel (sel h r) v) (fun h0 x h1 -> rel (sel h0 r) v /\ h0 `contains` r /\ modifies (Set.singleton (addr_of r)) h0 h1 /\ equal_dom h0 h1 /\ sel h1 r == v)
val ( := ) (#a: Type) (#rel: preorder a) (r: mref a rel) (v: a) : ST unit (fun h -> rel (sel h r) v) (fun h0 x h1 -> rel (sel h0 r) v /\ h0 `contains` r /\ modifies (Set.singleton (addr_of r)) h0 h1 /\ equal_dom h0 h1 /\ sel h1 r == v)
let op_Colon_Equals (#a:Type) (#rel:preorder a) (r:mref a rel) (v:a) : ST unit (fun h -> rel (sel h r) v) (fun h0 x h1 -> rel (sel h0 r) v /\ h0 `contains` r /\ modifies (Set.singleton (addr_of r)) h0 h1 /\ equal_dom h0 h1 /\ sel h1 r == v) = write #a #rel r v
{ "file_name": "ulib/FStar.ST.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 19, "end_line": 128, "start_col": 0, "start_line": 122 }
(* Copyright 2008-2014 Nikhil Swamy, Aseem Rastogi, and 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 r...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.TSet.fsti.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Witnessed.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_f...
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: FStar.ST.mref a rel -> v: a -> FStar.ST.ST Prims.unit
FStar.ST.ST
[]
[]
[ "FStar.Preorder.preorder", "FStar.ST.mref", "FStar.ST.write", "Prims.unit", "FStar.Monotonic.Heap.heap", "FStar.Monotonic.Heap.sel", "Prims.l_and", "FStar.Monotonic.Heap.contains", "FStar.Monotonic.Heap.modifies", "FStar.Set.singleton", "Prims.nat", "FStar.Monotonic.Heap.addr_of", "FStar.Mon...
[]
false
true
false
false
false
let ( := ) (#a: Type) (#rel: preorder a) (r: mref a rel) (v: a) : ST unit (fun h -> rel (sel h r) v) (fun h0 x h1 -> rel (sel h0 r) v /\ h0 `contains` r /\ modifies (Set.singleton (addr_of r)) h0 h1 /\ equal_dom h0 h1 /\ sel h1 r == v) =
write #a #rel r v
false