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
Binding.fst
Binding.initial_global_env
val initial_global_env (_:unit) : ML global_env
val initial_global_env (_:unit) : ML global_env
let initial_global_env () = let cfg = Deps.get_config () in let e = { ge_h = H.create 10; ge_out_t = H.create 10; ge_extern_t = H.create 10; ge_extern_fn = H.create 10; ge_probe_fn = H.create 10; ge_cfg = cfg } in let nullary_decl i = let td_name = ...
{ "file_name": "src/3d/Binding.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 3, "end_line": 2019, "start_col": 0, "start_line": 1820 }
(* Copyright 2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain as copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed t...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "GlobalEnv.fst.checked", "FStar.UInt.fsti.checked", "FStar.String.fsti.checked", "FStar.ST.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checke...
[ { "abbrev": true, "full_module": "Hashtable", "short_module": "H" }, { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "GlobalEnv...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> FStar.All.ML GlobalEnv.global_env
FStar.All.ML
[ "ml" ]
[]
[ "Prims.unit", "GlobalEnv.global_env", "Config.config", "Prims.string", "FStar.List.iter", "Binding.add_global", "Ast.Inr", "GlobalEnv.decl_attributes", "GlobalEnv.macro_signature", "Ast.decl", "Ast.mk_decl", "Ast.ExternFn", "Ast.tbool", "Prims.Nil", "Ast.param", "Ast.dummy_range", "A...
[]
false
true
false
false
false
let initial_global_env () =
let cfg = Deps.get_config () in let e = { ge_h = H.create 10; ge_out_t = H.create 10; ge_extern_t = H.create 10; ge_extern_fn = H.create 10; ge_probe_fn = H.create 10; ge_cfg = cfg } in let nullary_decl i = let td_name = { typedef_name = i; typedef_abbrev = i; typedef_ptr_abbrev = i; t...
false
Spec.Matrix.fst
Spec.Matrix.mget_s
val mget_s: #n1:size_nat -> #n2:size_nat{n1 * n2 <= max_size_t} -> a:matrix n1 n2 -> i:size_nat{i < n1} -> j:size_nat{j < n2} -> elem
val mget_s: #n1:size_nat -> #n2:size_nat{n1 * n2 <= max_size_t} -> a:matrix n1 n2 -> i:size_nat{i < n1} -> j:size_nat{j < n2} -> elem
let mget_s #n1 #n2 a i j = index_lt n2 n1 j i; a.[j * n1 + i]
{ "file_name": "specs/frodo/Spec.Matrix.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 340, "start_col": 0, "start_line": 338 }
module Spec.Matrix open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence module LSeq = Lib.Sequence module Lemmas = Spec.Frodo.Lemmas module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Auxiliary lemmas val index_lt: n1:size_nat -> n2:size_nat -> i:siz...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Lemmas.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Spec.Frodo.Lemmas", "short_module": "Lemmas" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Matrix.matrix n1 n2 -> i: Lib.IntTypes.size_nat{i < n1} -> j: Lib.IntTypes.size_nat{j < n2} -> Spec.Matrix.elem
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Spec.Matrix.matrix", "Prims.op_LessThan", "Lib.Sequence.op_String_Access", "Spec.Matrix.elem", "Prims.op_Addition", "Prims.unit", "Spec.Matrix.index_lt" ]
[]
false
false
false
false
false
let mget_s #n1 #n2 a i j =
index_lt n2 n1 j i; a.[ j * n1 + i ]
false
Spec.Matrix.fst
Spec.Matrix.mul_inner
val mul_inner: #n1:size_nat -> #n2:size_nat{n1 * n2 <= max_size_t} -> #n3:size_nat{n1 * n3 <= max_size_t /\ n2 * n3 <= max_size_t} -> a:matrix n1 n2 -> b:matrix n2 n3 -> i:size_nat{i < n1} -> k:size_nat{k < n3} -> res:uint16{res == sum #n2 (fun l -> a.(i, l) *. b.(l, k))}
val mul_inner: #n1:size_nat -> #n2:size_nat{n1 * n2 <= max_size_t} -> #n3:size_nat{n1 * n3 <= max_size_t /\ n2 * n3 <= max_size_t} -> a:matrix n1 n2 -> b:matrix n2 n3 -> i:size_nat{i < n1} -> k:size_nat{k < n3} -> res:uint16{res == sum #n2 (fun l -> a.(i, l) *. b.(l, k))}
let mul_inner #n1 #n2 #n3 a b i k = let f l = a.(i, l) *. b.(l, k) in let res = Loops.repeati_inductive n2 (fun j res -> res == sum_ #n2 f j) (fun j res -> res +. a.(i, j) *. b.(j, k) ) (u16 0) in sum_extensionality n2 f (fun l -> a.(i, l) *. b.(l, k)) n2; res
{ "file_name": "specs/frodo/Spec.Matrix.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 304, "start_col": 0, "start_line": 295 }
module Spec.Matrix open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence module LSeq = Lib.Sequence module Lemmas = Spec.Frodo.Lemmas module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Auxiliary lemmas val index_lt: n1:size_nat -> n2:size_nat -> i:siz...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Lemmas.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Spec.Frodo.Lemmas", "short_module": "Lemmas" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Matrix.matrix n1 n2 -> b: Spec.Matrix.matrix n2 n3 -> i: Lib.IntTypes.size_nat{i < n1} -> k: Lib.IntTypes.size_nat{k < n3} -> res: Lib.IntTypes.uint16{res == Spec.Matrix.sum (fun l -> a.(i, l) *. b.(l, k))}
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Prims.l_and", "Spec.Matrix.matrix", "Prims.op_LessThan", "Prims.unit", "Spec.Matrix.sum_extensionality", "Lib.IntTypes.op_Star_Dot", "Lib.IntTypes.U16", "Lib.IntTypes.SEC", "S...
[]
false
false
false
false
false
let mul_inner #n1 #n2 #n3 a b i k =
let f l = a.(i, l) *. b.(l, k) in let res = Loops.repeati_inductive n2 (fun j res -> res == sum_ #n2 f j) (fun j res -> res +. a.(i, j) *. b.(j, k)) (u16 0) in sum_extensionality n2 f (fun l -> a.(i, l) *. b.(l, k)) n2; res
false
Spec.Matrix.fst
Spec.Matrix.sum_extensionality
val sum_extensionality: n:size_nat -> f:(i:size_nat{i < n} -> GTot uint16) -> g:(i:size_nat{i < n} -> GTot uint16) -> i:size_nat{i <= n} -> Lemma (requires forall (i:size_nat{i < n}). f i == g i) (ensures sum_ #n f i == sum_ #n g i) (decreases i)
val sum_extensionality: n:size_nat -> f:(i:size_nat{i < n} -> GTot uint16) -> g:(i:size_nat{i < n} -> GTot uint16) -> i:size_nat{i <= n} -> Lemma (requires forall (i:size_nat{i < n}). f i == g i) (ensures sum_ #n f i == sum_ #n g i) (decreases i)
let rec sum_extensionality n f g i = if i = 0 then () else sum_extensionality n f g (i - 1)
{ "file_name": "specs/frodo/Spec.Matrix.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 39, "end_line": 282, "start_col": 0, "start_line": 280 }
module Spec.Matrix open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence module LSeq = Lib.Sequence module Lemmas = Spec.Frodo.Lemmas module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Auxiliary lemmas val index_lt: n1:size_nat -> n2:size_nat -> i:siz...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Lemmas.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Spec.Frodo.Lemmas", "short_module": "Lemmas" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Lib.IntTypes.size_nat -> f: (i: Lib.IntTypes.size_nat{i < n} -> Prims.GTot Lib.IntTypes.uint16) -> g: (i: Lib.IntTypes.size_nat{i < n} -> Prims.GTot Lib.IntTypes.uint16) -> i: Lib.IntTypes.size_nat{i <= n} -> FStar.Pervasives.Lemma (requires forall (i: Lib.IntTypes.size_nat{i < n}). f i == g i) ...
FStar.Pervasives.Lemma
[ "lemma", "" ]
[]
[ "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThan", "Lib.IntTypes.uint16", "Prims.op_LessThanOrEqual", "Prims.op_Equality", "Prims.int", "Prims.bool", "Spec.Matrix.sum_extensionality", "Prims.op_Subtraction", "Prims.unit" ]
[ "recursion" ]
false
false
true
false
false
let rec sum_extensionality n f g i =
if i = 0 then () else sum_extensionality n f g (i - 1)
false
Spec.Matrix.fst
Spec.Matrix.sum_
val sum_: #n:size_nat -> f:(j:size_nat{j < n} -> GTot uint16) -> i:size_nat{i <= n} -> GTot uint16 (decreases i)
val sum_: #n:size_nat -> f:(j:size_nat{j < n} -> GTot uint16) -> i:size_nat{i <= n} -> GTot uint16 (decreases i)
let rec sum_ #n f i = if i = 0 then u16 0 else sum_ #n f (i - 1) +. f (i - 1)
{ "file_name": "specs/frodo/Spec.Matrix.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 37, "end_line": 264, "start_col": 0, "start_line": 262 }
module Spec.Matrix open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence module LSeq = Lib.Sequence module Lemmas = Spec.Frodo.Lemmas module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Auxiliary lemmas val index_lt: n1:size_nat -> n2:size_nat -> i:siz...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Lemmas.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Spec.Frodo.Lemmas", "short_module": "Lemmas" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "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
f: (j: Lib.IntTypes.size_nat{j < n} -> Prims.GTot Lib.IntTypes.uint16) -> i: Lib.IntTypes.size_nat{i <= n} -> Prims.GTot Lib.IntTypes.uint16
Prims.GTot
[ "sometrivial", "" ]
[]
[ "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThan", "Lib.IntTypes.uint16", "Prims.op_LessThanOrEqual", "Prims.op_Equality", "Prims.int", "Lib.IntTypes.u16", "Prims.bool", "Lib.IntTypes.op_Plus_Dot", "Lib.IntTypes.U16", "Lib.IntTypes.SEC", "Spec.Matrix.sum_", "Prims.op_Subtraction" ]
[ "recursion" ]
false
false
false
false
false
let rec sum_ #n f i =
if i = 0 then u16 0 else sum_ #n f (i - 1) +. f (i - 1)
false
Spec.Matrix.fst
Spec.Matrix.map2
val map2: #n1:size_nat -> #n2:size_nat{n1 * n2 <= max_size_t} -> f:(elem -> elem -> elem) -> a:matrix n1 n2 -> b:matrix n1 n2 -> c:matrix n1 n2{ forall i j. c.(i,j) == f a.(i,j) b.(i,j) }
val map2: #n1:size_nat -> #n2:size_nat{n1 * n2 <= max_size_t} -> f:(elem -> elem -> elem) -> a:matrix n1 n2 -> b:matrix n1 n2 -> c:matrix n1 n2{ forall i j. c.(i,j) == f a.(i,j) b.(i,j) }
let map2 #n1 #n2 f a b = let c = create n1 n2 in Loops.repeati_inductive n1 (fun i c -> forall (i0:size_nat{i0 < i}) (j:size_nat{j < n2}). c.(i0,j) == f a.(i0,j) b.(i0,j)) (fun i c -> Loops.repeati_inductive n2 (fun j c0 -> (forall (i0:size_nat{i0 < i}) (j:size_nat{j < n2}). c0.(i0,j...
{ "file_name": "specs/frodo/Spec.Matrix.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 230, "start_col": 0, "start_line": 219 }
module Spec.Matrix open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence module LSeq = Lib.Sequence module Lemmas = Spec.Frodo.Lemmas module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Auxiliary lemmas val index_lt: n1:size_nat -> n2:size_nat -> i:siz...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Lemmas.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Spec.Frodo.Lemmas", "short_module": "Lemmas" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "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
f: (_: Spec.Matrix.elem -> _: Spec.Matrix.elem -> Spec.Matrix.elem) -> a: Spec.Matrix.matrix n1 n2 -> b: Spec.Matrix.matrix n1 n2 -> c: Spec.Matrix.matrix n1 n2 { forall (i: Lib.IntTypes.size_nat{i < n1 /\ i < n1 /\ i < n1}) (j: Lib.IntTypes.size_nat{j < n2 /\ j < n2 /\ j < n2}). ...
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Spec.Matrix.elem", "Spec.Matrix.matrix", "Lib.LoopCombinators.repeati_inductive", "Prims.nat", "Prims.l_Forall", "Prims.op_LessThan", "Prims.eq2", "Spec.Matrix.op_Array_Access",...
[]
false
false
false
false
false
let map2 #n1 #n2 f a b =
let c = create n1 n2 in Loops.repeati_inductive n1 (fun i c -> forall (i0: size_nat{i0 < i}) (j: size_nat{j < n2}). c.(i0, j) == f a.(i0, j) b.(i0, j)) (fun i c -> Loops.repeati_inductive n2 (fun j c0 -> (forall (i0: size_nat{i0 < i}) (j: size_nat{j < n2}). c0.(i0, j) == c.(i0, j)) /...
false
Spec.Matrix.fst
Spec.Matrix.map
val map: #n1:size_nat -> #n2:size_nat{n1 * n2 <= max_size_t} -> f:(elem -> elem) -> a:matrix n1 n2 -> c:matrix n1 n2{ forall i j. c.(i,j) == f a.(i,j) }
val map: #n1:size_nat -> #n2:size_nat{n1 * n2 <= max_size_t} -> f:(elem -> elem) -> a:matrix n1 n2 -> c:matrix n1 n2{ forall i j. c.(i,j) == f a.(i,j) }
let map #n1 #n2 f a = let c = create n1 n2 in Loops.repeati_inductive n1 (fun i c -> forall (i0:size_nat{i0 < i}) (j:size_nat{j < n2}). c.(i0,j) == f a.(i0,j)) (fun i c -> Loops.repeati_inductive n2 (fun j c0 -> (forall (i0:size_nat{i0 < i}) (j:size_nat{j < n2}). c0.(i0,j) == c.(i0,j...
{ "file_name": "specs/frodo/Spec.Matrix.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 183, "start_col": 0, "start_line": 172 }
module Spec.Matrix open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence module LSeq = Lib.Sequence module Lemmas = Spec.Frodo.Lemmas module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Auxiliary lemmas val index_lt: n1:size_nat -> n2:size_nat -> i:siz...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Lemmas.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Spec.Frodo.Lemmas", "short_module": "Lemmas" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "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
f: (_: Spec.Matrix.elem -> Spec.Matrix.elem) -> a: Spec.Matrix.matrix n1 n2 -> c: Spec.Matrix.matrix n1 n2 { forall (i: Lib.IntTypes.size_nat{i < n1 /\ i < n1}) (j: Lib.IntTypes.size_nat{j < n2 /\ j < n2}). c.(i, j) == f a.(i, j) }
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Spec.Matrix.elem", "Spec.Matrix.matrix", "Lib.LoopCombinators.repeati_inductive", "Prims.nat", "Prims.l_Forall", "Prims.op_LessThan", "Prims.eq2", "Spec.Matrix.op_Array_Access",...
[]
false
false
false
false
false
let map #n1 #n2 f a =
let c = create n1 n2 in Loops.repeati_inductive n1 (fun i c -> forall (i0: size_nat{i0 < i}) (j: size_nat{j < n2}). c.(i0, j) == f a.(i0, j)) (fun i c -> Loops.repeati_inductive n2 (fun j c0 -> (forall (i0: size_nat{i0 < i}) (j: size_nat{j < n2}). c0.(i0, j) == c.(i0, j)) /\ (f...
false
Spec.Matrix.fst
Spec.Matrix.mul_inner_s
val mul_inner_s: #n1:size_nat -> #n2:size_nat{n1 * n2 <= max_size_t} -> #n3:size_nat{n1 * n3 <= max_size_t /\ n2 * n3 <= max_size_t} -> a:matrix n1 n2 -> b:matrix n2 n3 -> i:size_nat{i < n1} -> k:size_nat{k < n3} -> res:uint16{res == sum #n2 (fun l -> a.(i, l) *. mget_s b l k)}
val mul_inner_s: #n1:size_nat -> #n2:size_nat{n1 * n2 <= max_size_t} -> #n3:size_nat{n1 * n3 <= max_size_t /\ n2 * n3 <= max_size_t} -> a:matrix n1 n2 -> b:matrix n2 n3 -> i:size_nat{i < n1} -> k:size_nat{k < n3} -> res:uint16{res == sum #n2 (fun l -> a.(i, l) *. mget_s b l k)}
let mul_inner_s #n1 #n2 #n3 a b i k = let f l = a.(i, l) *. mget_s b l k in let res = Loops.repeati_inductive n2 (fun j res -> res == sum_ #n2 f j) (fun j res -> res +. a.(i, j) *. mget_s b j k ) (u16 0) in sum_extensionality n2 f (fun l -> a.(i, l) *. mget_s b l k) n2; res
{ "file_name": "specs/frodo/Spec.Matrix.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 363, "start_col": 0, "start_line": 354 }
module Spec.Matrix open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence module LSeq = Lib.Sequence module Lemmas = Spec.Frodo.Lemmas module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Auxiliary lemmas val index_lt: n1:size_nat -> n2:size_nat -> i:siz...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Lemmas.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Spec.Frodo.Lemmas", "short_module": "Lemmas" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Matrix.matrix n1 n2 -> b: Spec.Matrix.matrix n2 n3 -> i: Lib.IntTypes.size_nat{i < n1} -> k: Lib.IntTypes.size_nat{k < n3} -> res: Lib.IntTypes.uint16{res == Spec.Matrix.sum (fun l -> a.(i, l) *. Spec.Matrix.mget_s b l k)}
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Prims.l_and", "Spec.Matrix.matrix", "Prims.op_LessThan", "Prims.unit", "Spec.Matrix.sum_extensionality", "Lib.IntTypes.op_Star_Dot", "Lib.IntTypes.U16", "Lib.IntTypes.SEC", "S...
[]
false
false
false
false
false
let mul_inner_s #n1 #n2 #n3 a b i k =
let f l = a.(i, l) *. mget_s b l k in let res = Loops.repeati_inductive n2 (fun j res -> res == sum_ #n2 f j) (fun j res -> res +. a.(i, j) *. mget_s b j k) (u16 0) in sum_extensionality n2 f (fun l -> a.(i, l) *. mget_s b l k) n2; res
false
Spec.Matrix.fst
Spec.Matrix.matrix_eq
val matrix_eq: #n1:size_nat -> #n2:size_nat{n1 * n2 <= max_size_t} -> a:matrix n1 n2 -> b:matrix n1 n2 -> Pure uint16 (requires True) (ensures fun r -> (a == b ==> v r == v (ones U16 SEC)) /\ (a =!= b ==> v r == 0))
val matrix_eq: #n1:size_nat -> #n2:size_nat{n1 * n2 <= max_size_t} -> a:matrix n1 n2 -> b:matrix n1 n2 -> Pure uint16 (requires True) (ensures fun r -> (a == b ==> v r == v (ones U16 SEC)) /\ (a =!= b ==> v r == 0))
let matrix_eq #n1 #n2 a b = seq_eq_mask a b (n1 * n2)
{ "file_name": "specs/frodo/Spec.Matrix.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 27, "end_line": 401, "start_col": 0, "start_line": 400 }
module Spec.Matrix open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence module LSeq = Lib.Sequence module Lemmas = Spec.Frodo.Lemmas module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Auxiliary lemmas val index_lt: n1:size_nat -> n2:size_nat -> i:siz...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Lemmas.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Spec.Frodo.Lemmas", "short_module": "Lemmas" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Matrix.matrix n1 n2 -> b: Spec.Matrix.matrix n1 n2 -> Prims.Pure Lib.IntTypes.uint16
Prims.Pure
[]
[]
[ "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Spec.Matrix.matrix", "Lib.ByteSequence.seq_eq_mask", "Lib.IntTypes.U16", "Lib.IntTypes.uint16" ]
[]
false
false
false
false
false
let matrix_eq #n1 #n2 a b =
seq_eq_mask a b (n1 * n2)
false
LowParse.Low.Int32le.fst
LowParse.Low.Int32le.validate_int32le
val validate_int32le:validator parse_int32le
val validate_int32le:validator parse_int32le
let validate_int32le : validator parse_int32le = validate_total_constant_size parse_int32le 4uL ()
{ "file_name": "src/lowparse/LowParse.Low.Int32le.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 51, "end_line": 29, "start_col": 0, "start_line": 28 }
module LowParse.Low.Int32le (* LowParse implementation module for 32 bits little endian integers *) include LowParse.Low.Combinators include LowParse.Spec.Int32le module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast inline_for...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.Int32le.fst.checked", "LowParse.Low.Combinators.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked"...
[ { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
LowParse.Low.Base.validator LowParse.Spec.Int32le.parse_int32le
Prims.Tot
[ "total" ]
[]
[ "LowParse.Low.Base.validate_total_constant_size", "LowParse.Spec.Base.total_constant_size_parser_kind", "FStar.UInt32.t", "LowParse.Spec.Int32le.parse_int32le", "FStar.UInt64.__uint_to_t" ]
[]
false
false
false
false
false
let validate_int32le:validator parse_int32le =
validate_total_constant_size parse_int32le 4uL ()
false
Spec.Matrix.fst
Spec.Matrix.matrix_to_lbytes
val matrix_to_lbytes: #n1:size_nat -> #n2:size_nat{2 * n1 * n2 <= max_size_t} -> m:matrix n1 n2 -> lbytes (2 * n1 * n2)
val matrix_to_lbytes: #n1:size_nat -> #n2:size_nat{2 * n1 * n2 <= max_size_t} -> m:matrix n1 n2 -> lbytes (2 * n1 * n2)
let matrix_to_lbytes #n1 #n2 m = generate_blocks_simple 2 (n1 * n2) (n1 * n2) (matrix_to_lbytes_f m)
{ "file_name": "specs/frodo/Spec.Matrix.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 69, "end_line": 422, "start_col": 0, "start_line": 421 }
module Spec.Matrix open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence module LSeq = Lib.Sequence module Lemmas = Spec.Frodo.Lemmas module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Auxiliary lemmas val index_lt: n1:size_nat -> n2:size_nat -> i:siz...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Lemmas.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Spec.Frodo.Lemmas", "short_module": "Lemmas" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "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
m: Spec.Matrix.matrix n1 n2 -> Lib.ByteSequence.lbytes ((2 * n1) * n2)
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Spec.Matrix.matrix", "Lib.Sequence.generate_blocks_simple", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "Spec.Matrix.matrix_to_lbytes_f", "Lib.ByteSequence.lbyte...
[]
false
false
false
false
false
let matrix_to_lbytes #n1 #n2 m =
generate_blocks_simple 2 (n1 * n2) (n1 * n2) (matrix_to_lbytes_f m)
false
Spec.Matrix.fst
Spec.Matrix.matrix_from_lbytes_f
val matrix_from_lbytes_f: n1:size_nat -> n2:size_nat{2 * n1 * n2 <= max_size_t} -> b:lbytes (2 * n1 * n2) -> i:size_nat{i < n1 * n2} -> elem
val matrix_from_lbytes_f: n1:size_nat -> n2:size_nat{2 * n1 * n2 <= max_size_t} -> b:lbytes (2 * n1 * n2) -> i:size_nat{i < n1 * n2} -> elem
let matrix_from_lbytes_f n1 n2 b i = uint_from_bytes_le (LSeq.sub b (2 * i) 2)
{ "file_name": "specs/frodo/Spec.Matrix.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 43, "end_line": 433, "start_col": 0, "start_line": 432 }
module Spec.Matrix open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence module LSeq = Lib.Sequence module Lemmas = Spec.Frodo.Lemmas module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Auxiliary lemmas val index_lt: n1:size_nat -> n2:size_nat -> i:siz...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Lemmas.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Spec.Frodo.Lemmas", "short_module": "Lemmas" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "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
n1: Lib.IntTypes.size_nat -> n2: Lib.IntTypes.size_nat{(2 * n1) * n2 <= Lib.IntTypes.max_size_t} -> b: Lib.ByteSequence.lbytes ((2 * n1) * n2) -> i: Lib.IntTypes.size_nat{i < n1 * n2} -> Spec.Matrix.elem
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Lib.ByteSequence.lbytes", "Prims.op_LessThan", "Lib.ByteSequence.uint_from_bytes_le", "Lib.IntTypes.U16", "Lib.IntTypes.SEC", "Lib.Sequence.sub", "Lib.IntTypes.uint_t", "Lib.Int...
[]
false
false
false
false
false
let matrix_from_lbytes_f n1 n2 b i =
uint_from_bytes_le (LSeq.sub b (2 * i) 2)
false
Spec.Matrix.fst
Spec.Matrix.matrix_from_lbytes
val matrix_from_lbytes: n1:size_nat -> n2:size_nat{2 * n1 * n2 <= max_size_t} -> b:lbytes (2 * n1 * n2) -> matrix n1 n2
val matrix_from_lbytes: n1:size_nat -> n2:size_nat{2 * n1 * n2 <= max_size_t} -> b:lbytes (2 * n1 * n2) -> matrix n1 n2
let matrix_from_lbytes n1 n2 b = createi (n1 * n2) (matrix_from_lbytes_f n1 n2 b)
{ "file_name": "specs/frodo/Spec.Matrix.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 50, "end_line": 443, "start_col": 0, "start_line": 442 }
module Spec.Matrix open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence module LSeq = Lib.Sequence module Lemmas = Spec.Frodo.Lemmas module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Auxiliary lemmas val index_lt: n1:size_nat -> n2:size_nat -> i:siz...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Lemmas.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Spec.Frodo.Lemmas", "short_module": "Lemmas" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "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
n1: Lib.IntTypes.size_nat -> n2: Lib.IntTypes.size_nat{(2 * n1) * n2 <= Lib.IntTypes.max_size_t} -> b: Lib.ByteSequence.lbytes ((2 * n1) * n2) -> Spec.Matrix.matrix n1 n2
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Lib.ByteSequence.lbytes", "Lib.Sequence.createi", "Spec.Matrix.elem", "Spec.Matrix.matrix_from_lbytes_f", "Spec.Matrix.matrix" ]
[]
false
false
false
false
false
let matrix_from_lbytes n1 n2 b =
createi (n1 * n2) (matrix_from_lbytes_f n1 n2 b)
false
Spec.Matrix.fst
Spec.Matrix.mul
val mul: #n1:size_nat -> #n2:size_nat{n1 * n2 <= max_size_t} -> #n3:size_nat{n1 * n3 <= max_size_t /\ n2 * n3 <= max_size_t} -> a:matrix n1 n2 -> b:matrix n2 n3 -> c:matrix n1 n3{ forall i k. c.(i, k) == sum #n2 (fun l -> a.(i, l) *. b.(l, k))}
val mul: #n1:size_nat -> #n2:size_nat{n1 * n2 <= max_size_t} -> #n3:size_nat{n1 * n3 <= max_size_t /\ n2 * n3 <= max_size_t} -> a:matrix n1 n2 -> b:matrix n2 n3 -> c:matrix n1 n3{ forall i k. c.(i, k) == sum #n2 (fun l -> a.(i, l) *. b.(l, k))}
let mul #n1 #n2 #n3 a b = let c = create n1 n3 in Loops.repeati_inductive n1 (fun i c -> forall (i1:size_nat{i1 < i}) (k:size_nat{k < n3}). c.(i1, k) == sum #n2 (fun l -> a.(i1, l) *. b.(l, k))) (fun i c -> Loops.repeati_inductive n3 (fun k c0 -> (forall (k1:size_nat{k1 < k}). c0.(i, k1) == su...
{ "file_name": "specs/frodo/Spec.Matrix.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 7, "end_line": 327, "start_col": 0, "start_line": 316 }
module Spec.Matrix open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence module LSeq = Lib.Sequence module Lemmas = Spec.Frodo.Lemmas module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Auxiliary lemmas val index_lt: n1:size_nat -> n2:size_nat -> i:siz...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Lemmas.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Spec.Frodo.Lemmas", "short_module": "Lemmas" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Matrix.matrix n1 n2 -> b: Spec.Matrix.matrix n2 n3 -> c: Spec.Matrix.matrix n1 n3 { forall (i: Lib.IntTypes.size_nat{i < n1}) (k: j: Lib.IntTypes.size_nat{j < n3}). c.(i, k) == Spec.Matrix.sum (fun l -> a.(i, l) *. b.(l, k)) }
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Prims.l_and", "Spec.Matrix.matrix", "Lib.LoopCombinators.repeati_inductive", "Prims.nat", "Prims.l_Forall", "Prims.op_LessThan", "Prims.eq2", "Lib.IntTypes.uint16", "Spec.Matr...
[]
false
false
false
false
false
let mul #n1 #n2 #n3 a b =
let c = create n1 n3 in Loops.repeati_inductive n1 (fun i c -> forall (i1: size_nat{i1 < i}) (k: size_nat{k < n3}). c.(i1, k) == sum #n2 (fun l -> a.(i1, l) *. b.(l, k))) (fun i c -> Loops.repeati_inductive n3 (fun k c0 -> (forall (k1: size_nat{k1 < k}). c0.(i, k1) == sum #n2...
false
Spec.Matrix.fst
Spec.Matrix.matrix_to_lbytes_f
val matrix_to_lbytes_f: #n1:size_nat -> #n2:size_nat{2 * n1 * n2 <= max_size_t} -> m:matrix n1 n2 -> i:size_nat{i < n1 * n2} -> lbytes 2
val matrix_to_lbytes_f: #n1:size_nat -> #n2:size_nat{2 * n1 * n2 <= max_size_t} -> m:matrix n1 n2 -> i:size_nat{i < n1 * n2} -> lbytes 2
let matrix_to_lbytes_f #n1 #n2 m i = uint_to_bytes_le m.[i]
{ "file_name": "specs/frodo/Spec.Matrix.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 24, "end_line": 412, "start_col": 0, "start_line": 411 }
module Spec.Matrix open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence module LSeq = Lib.Sequence module Lemmas = Spec.Frodo.Lemmas module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Auxiliary lemmas val index_lt: n1:size_nat -> n2:size_nat -> i:siz...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Lemmas.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Spec.Frodo.Lemmas", "short_module": "Lemmas" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "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
m: Spec.Matrix.matrix n1 n2 -> i: Lib.IntTypes.size_nat{i < n1 * n2} -> Lib.ByteSequence.lbytes 2
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Spec.Matrix.matrix", "Prims.op_LessThan", "Lib.ByteSequence.uint_to_bytes_le", "Lib.IntTypes.U16", "Lib.IntTypes.SEC", "Lib.Sequence.op_String_Access", "Spec.Matrix.elem", "Lib....
[]
false
false
false
false
false
let matrix_to_lbytes_f #n1 #n2 m i =
uint_to_bytes_le m.[ i ]
false
Spec.Matrix.fst
Spec.Matrix.mul_s
val mul_s: #n1:size_nat -> #n2:size_nat{n1 * n2 <= max_size_t} -> #n3:size_nat{n1 * n3 <= max_size_t /\ n2 * n3 <= max_size_t} -> a:matrix n1 n2 -> b:matrix n2 n3 -> c:matrix n1 n3{ forall i k. c.(i, k) == sum #n2 (fun l -> a.(i, l) *. mget_s b l k)}
val mul_s: #n1:size_nat -> #n2:size_nat{n1 * n2 <= max_size_t} -> #n3:size_nat{n1 * n3 <= max_size_t /\ n2 * n3 <= max_size_t} -> a:matrix n1 n2 -> b:matrix n2 n3 -> c:matrix n1 n3{ forall i k. c.(i, k) == sum #n2 (fun l -> a.(i, l) *. mget_s b l k)}
let mul_s #n1 #n2 #n3 a b = let c = create n1 n3 in Loops.repeati_inductive n1 (fun i c -> forall (i1:size_nat{i1 < i}) (k:size_nat{k < n3}). c.(i1, k) == sum #n2 (fun l -> a.(i1, l) *. mget_s b l k)) (fun i c -> Loops.repeati_inductive n3 (fun k c0 -> (forall (k1:size_nat{k1 < k}). c0.(i, k1)...
{ "file_name": "specs/frodo/Spec.Matrix.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 7, "end_line": 386, "start_col": 0, "start_line": 375 }
module Spec.Matrix open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.ByteSequence module LSeq = Lib.Sequence module Lemmas = Spec.Frodo.Lemmas module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// Auxiliary lemmas val index_lt: n1:size_nat -> n2:size_nat -> i:siz...
{ "checked_file": "/", "dependencies": [ "Spec.Frodo.Lemmas.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti....
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Spec.Frodo.Lemmas", "short_module": "Lemmas" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Matrix.matrix n1 n2 -> b: Spec.Matrix.matrix n2 n3 -> c: Spec.Matrix.matrix n1 n3 { forall (i: Lib.IntTypes.size_nat{i < n1}) (k: j: Lib.IntTypes.size_nat{j < n3}). c.(i, k) == Spec.Matrix.sum (fun l -> a.(i, l) *. Spec.Matrix.mget_s b l k) }
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.size_nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Prims.l_and", "Spec.Matrix.matrix", "Lib.LoopCombinators.repeati_inductive", "Prims.nat", "Prims.l_Forall", "Prims.op_LessThan", "Prims.eq2", "Lib.IntTypes.uint16", "Spec.Matr...
[]
false
false
false
false
false
let mul_s #n1 #n2 #n3 a b =
let c = create n1 n3 in Loops.repeati_inductive n1 (fun i c -> forall (i1: size_nat{i1 < i}) (k: size_nat{k < n3}). c.(i1, k) == sum #n2 (fun l -> a.(i1, l) *. mget_s b l k)) (fun i c -> Loops.repeati_inductive n3 (fun k c0 -> (forall (k1: size_nat{k1 < k}). c...
false
LowParse.Low.Int32le.fst
LowParse.Low.Int32le.read_int32le
val read_int32le:leaf_reader parse_int32le
val read_int32le:leaf_reader parse_int32le
let read_int32le : leaf_reader parse_int32le = make_total_constant_size_reader 4 4ul decode_int32le (decode_int32le_total_constant ()) (fun #rrel #rel b pos -> let h = HST.get () in assert ((U32.v pos + 4) <= Seq.length (B.as_seq h b)); [@inline_let] let _ = decode_int32le_eq (Seq.slice (B.as_seq h b) (U32....
{ "file_name": "src/lowparse/LowParse.Low.Int32le.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 3, "end_line": 25, "start_col": 0, "start_line": 15 }
module LowParse.Low.Int32le (* LowParse implementation module for 32 bits little endian integers *) include LowParse.Low.Combinators include LowParse.Spec.Int32le module U32 = FStar.UInt32 module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module B = LowStar.Buffer module Cast = FStar.Int.Cast
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.Int32le.fst.checked", "LowParse.Low.Combinators.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked"...
[ { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "FStar.HyperStack.ST", "short_module": "HST" }, { "abbrev": true, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
LowParse.Low.Base.leaf_reader LowParse.Spec.Int32le.parse_int32le
Prims.Tot
[ "total" ]
[]
[ "LowParse.Low.Combinators.make_total_constant_size_reader", "FStar.UInt32.__uint_to_t", "FStar.UInt32.t", "LowParse.Spec.Int32le.decode_int32le", "LowParse.Spec.Int32le.decode_int32le_total_constant", "LowStar.Monotonic.Buffer.srel", "LowParse.Bytes.byte", "LowStar.Monotonic.Buffer.mbuffer", "FStar....
[]
false
false
false
false
false
let read_int32le:leaf_reader parse_int32le =
make_total_constant_size_reader 4 4ul decode_int32le (decode_int32le_total_constant ()) (fun #rrel #rel b pos -> let h = HST.get () in assert ((U32.v pos + 4) <= Seq.length (B.as_seq h b)); [@@ inline_let ]let _ = decode_int32le_eq (Seq.slice (B.as_seq h b) (U32.v pos) (U32.v pos + 4))...
false
Binding.fst
Binding.check_expr
val check_expr (env: env) (e: expr) : ML (expr & typ)
val check_expr (env: env) (e: expr) : ML (expr & typ)
let rec check_typ (pointer_ok:bool) (env:env) (t:typ) : ML typ = match t.v with | Pointer t0 -> if pointer_ok then { t with v = Pointer (check_typ pointer_ok env t0) } else error (Printf.sprintf "Pointer types are not permissible here; got %s" (print_typ t)) t.range | Type_app s K...
{ "file_name": "src/3d/Binding.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 76, "end_line": 954, "start_col": 0, "start_line": 625 }
(* Copyright 2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain as copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed t...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "GlobalEnv.fst.checked", "FStar.UInt.fsti.checked", "FStar.String.fsti.checked", "FStar.ST.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checke...
[ { "abbrev": false, "full_module": "GlobalEnv", "short_module": null }, { "abbrev": true, "full_module": "Hashtable", "short_module": "H" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Ast", "sho...
{ "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
env: Binding.env -> e: Ast.expr -> FStar.All.ML (Ast.expr * Ast.typ)
FStar.All.ML
[ "ml" ]
[ "check_typ", "check_ident", "check_expr", "check_typ_param" ]
[ "Binding.env", "Ast.expr", "Ast.__proj__Mkwith_meta_t__item__v", "Ast.expr'", "Ast.constant", "FStar.Pervasives.Native.Mktuple2", "Ast.typ", "FStar.Pervasives.Native.tuple2", "Binding.type_of_constant", "Ast.__proj__Mkwith_meta_t__item__range", "Ast.ident", "Ast.Mkwith_meta_t", "Ast.Identifi...
[ "mutual recursion" ]
false
true
false
false
false
let rec check_expr (env: env) (e: expr) : ML (expr & typ) =
let w e' = with_range e' e.range in let arith_op_t op t : ML Ast.op = let t = tag_of_integral_typ env t in match op with | Plus _ -> Plus t | Minus _ -> Minus t | Mul _ -> Mul t | Division _ -> Division t | Remainder _ -> Remainder t | BitwiseNot _ -> BitwiseNot t | BitwiseAnd _ -> BitwiseAnd t | Bi...
false
Binding.fst
Binding.check_typ
val check_typ (pointer_ok: bool) (env: env) (t: typ) : ML typ
val check_typ (pointer_ok: bool) (env: env) (t: typ) : ML typ
let rec check_typ (pointer_ok:bool) (env:env) (t:typ) : ML typ = match t.v with | Pointer t0 -> if pointer_ok then { t with v = Pointer (check_typ pointer_ok env t0) } else error (Printf.sprintf "Pointer types are not permissible here; got %s" (print_typ t)) t.range | Type_app s K...
{ "file_name": "src/3d/Binding.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 76, "end_line": 954, "start_col": 0, "start_line": 625 }
(* Copyright 2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain as copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed t...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "GlobalEnv.fst.checked", "FStar.UInt.fsti.checked", "FStar.String.fsti.checked", "FStar.ST.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checke...
[ { "abbrev": false, "full_module": "GlobalEnv", "short_module": null }, { "abbrev": true, "full_module": "Hashtable", "short_module": "H" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Ast", "sho...
{ "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
pointer_ok: Prims.bool -> env: Binding.env -> t: Ast.typ -> FStar.All.ML Ast.typ
FStar.All.ML
[ "ml" ]
[ "check_typ", "check_ident", "check_expr", "check_typ_param" ]
[ "Prims.bool", "Binding.env", "Ast.typ", "Ast.__proj__Mkwith_meta_t__item__v", "Ast.typ'", "Ast.with_meta_t", "Ast.Mkwith_meta_t", "Ast.__proj__Mkwith_meta_t__item__range", "Ast.__proj__Mkwith_meta_t__item__comments", "Ast.Pointer", "Binding.check_typ", "Ast.error", "Prims.string", "FStar.P...
[ "mutual recursion" ]
false
true
false
false
false
let rec check_typ (pointer_ok: bool) (env: env) (t: typ) : ML typ =
match t.v with | Pointer t0 -> if pointer_ok then { t with v = Pointer (check_typ pointer_ok env t0) } else error (Printf.sprintf "Pointer types are not permissible here; got %s" (print_typ t)) t.range | Type_app s KindSpec ps -> (match lookup env s with | Inl _ -> error (Printf.sprintf "%s is not a type" (...
false
Binding.fst
Binding.check_ident
val check_ident (env: env) (i: ident) : ML (ident & typ)
val check_ident (env: env) (i: ident) : ML (ident & typ)
let rec check_typ (pointer_ok:bool) (env:env) (t:typ) : ML typ = match t.v with | Pointer t0 -> if pointer_ok then { t with v = Pointer (check_typ pointer_ok env t0) } else error (Printf.sprintf "Pointer types are not permissible here; got %s" (print_typ t)) t.range | Type_app s K...
{ "file_name": "src/3d/Binding.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 76, "end_line": 954, "start_col": 0, "start_line": 625 }
(* Copyright 2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain as copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed t...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "GlobalEnv.fst.checked", "FStar.UInt.fsti.checked", "FStar.String.fsti.checked", "FStar.ST.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checke...
[ { "abbrev": false, "full_module": "GlobalEnv", "short_module": null }, { "abbrev": true, "full_module": "Hashtable", "short_module": "H" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Ast", "sho...
{ "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
env: Binding.env -> i: Ast.ident -> FStar.All.ML (Ast.ident * Ast.typ)
FStar.All.ML
[ "ml" ]
[ "check_typ", "check_ident", "check_expr", "check_typ_param" ]
[ "Binding.env", "Ast.ident", "FStar.Pervasives.Native.Mktuple2", "Ast.typ", "FStar.Pervasives.Native.tuple2", "Binding.lookup_expr_name" ]
[ "mutual recursion" ]
false
true
false
false
false
let rec check_ident (env: env) (i: ident) : ML (ident & typ) =
let t = lookup_expr_name env i in i, t
false
Binding.fst
Binding.check_typ_param
val check_typ_param (env: env) (p: typ_param) : ML (typ_param & typ)
val check_typ_param (env: env) (p: typ_param) : ML (typ_param & typ)
let rec check_typ (pointer_ok:bool) (env:env) (t:typ) : ML typ = match t.v with | Pointer t0 -> if pointer_ok then { t with v = Pointer (check_typ pointer_ok env t0) } else error (Printf.sprintf "Pointer types are not permissible here; got %s" (print_typ t)) t.range | Type_app s K...
{ "file_name": "src/3d/Binding.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 76, "end_line": 954, "start_col": 0, "start_line": 625 }
(* Copyright 2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain as copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed t...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Options.fsti.checked", "Hashtable.fsti.checked", "GlobalEnv.fst.checked", "FStar.UInt.fsti.checked", "FStar.String.fsti.checked", "FStar.ST.fst.checked", "FStar.Printf.fst.checked", "FStar.Pervasives.Native.fst.checke...
[ { "abbrev": false, "full_module": "GlobalEnv", "short_module": null }, { "abbrev": true, "full_module": "Hashtable", "short_module": "H" }, { "abbrev": false, "full_module": "FStar.All", "short_module": null }, { "abbrev": false, "full_module": "Ast", "sho...
{ "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
env: Binding.env -> p: Ast.typ_param -> FStar.All.ML (Ast.typ_param * Ast.typ)
FStar.All.ML
[ "ml" ]
[ "check_typ", "check_ident", "check_expr", "check_typ_param" ]
[ "Binding.env", "Ast.typ_param", "Ast.expr", "Ast.typ", "FStar.Pervasives.Native.Mktuple2", "Ast.Inl", "Ast.out_expr", "FStar.Pervasives.Native.tuple2", "Binding.check_expr", "Ast.with_meta_t", "Ast.typ'", "FStar.Pervasives.Native.option", "Prims.int", "Ast.Inr", "Ast.error", "Binding.r...
[ "mutual recursion" ]
false
true
false
false
false
let rec check_typ_param (env: env) (p: typ_param) : ML (typ_param & typ) =
match p with | Inl e -> let e, t = check_expr env e in Inl e, t | Inr o -> let o = check_out_expr env o in let { out_expr_t = t ; out_expr_bit_width = bopt } = Some?.v o.out_expr_meta in (match bopt with | None -> Inr o, t | _ -> error ("Type parameter cannot be a bitfield") (range_of_typ_param p))
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.tele_p
val tele_p (x: gen_elim_tele) : Tot vprop
val tele_p (x: gen_elim_tele) : Tot vprop
let rec tele_p (x: gen_elim_tele) : Tot vprop = match x with | TRet v p -> v `star` pure p | TExists ty body -> exists_ (fun x -> tele_p (body x))
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 57, "end_line": 197, "start_col": 0, "start_line": 194 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Steel.ST.GenElim1.Base.gen_elim_tele -> Steel.Effect.Common.vprop
Prims.Tot
[ "total" ]
[]
[ "Steel.ST.GenElim1.Base.gen_elim_tele", "Steel.Effect.Common.vprop", "Prims.prop", "Steel.Effect.Common.star", "Steel.ST.Util.pure", "Steel.ST.Util.exists_", "Steel.ST.GenElim1.tele_p" ]
[ "recursion" ]
false
false
false
true
false
let rec tele_p (x: gen_elim_tele) : Tot vprop =
match x with | TRet v p -> v `star` (pure p) | TExists ty body -> exists_ (fun x -> tele_p (body x))
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.compute_gen_elim_f
val compute_gen_elim_f (i: gen_elim_i) : GTot (gen_elim_t i)
val compute_gen_elim_f (i: gen_elim_i) : GTot (gen_elim_t i)
let rec compute_gen_elim_f (i: gen_elim_i) : GTot (gen_elim_t i) = match i returns (gen_elim_t i) with | GEUnit i -> compute_gen_elim_f_unit i | GEStarL i1 i2 -> compute_gen_elim_f_star_l i1 (compute_gen_elim_f i1) i2 | GEStarR i1 i2 -> compute_gen_elim_f_star_r i1 i2 (compute_gen_elim_f i2) | GEStar i1 i2 ->...
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 94, "end_line": 192, "start_col": 0, "start_line": 179 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: Steel.ST.GenElim1.Base.gen_elim_i -> Prims.GTot (Steel.ST.GenElim1.gen_elim_t i)
Prims.GTot
[ "sometrivial" ]
[]
[ "Steel.ST.GenElim1.Base.gen_elim_i", "Steel.ST.GenElim1.gen_elim_t", "Steel.ST.GenElim1.Base.gen_unit_elim_i", "Steel.ST.GenElim1.compute_gen_elim_f_unit", "Steel.ST.GenElim1.compute_gen_elim_f_star_l", "Steel.ST.GenElim1.compute_gen_elim_f", "Steel.ST.GenElim1.compute_gen_elim_f_star_r", "Steel.ST.Ge...
[ "recursion" ]
false
false
false
false
false
let rec compute_gen_elim_f (i: gen_elim_i) : GTot (gen_elim_t i) =
match i returns (gen_elim_t i) with | GEUnit i -> compute_gen_elim_f_unit i | GEStarL i1 i2 -> compute_gen_elim_f_star_l i1 (compute_gen_elim_f i1) i2 | GEStarR i1 i2 -> compute_gen_elim_f_star_r i1 i2 (compute_gen_elim_f i2) | GEStar i1 i2 -> compute_gen_elim_f_star i1 (compute_gen_elim_f i1) i2 (compute_gen_elim_f i...
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.tele_star_vprop_correct
val tele_star_vprop_correct (i: gen_elim_tele) (v: vprop) (p: prop) : GTot (vprop_rewrite (((tele_p i) `star` v) `star` (pure p)) (tele_p (tele_star_vprop i v p)))
val tele_star_vprop_correct (i: gen_elim_tele) (v: vprop) (p: prop) : GTot (vprop_rewrite (((tele_p i) `star` v) `star` (pure p)) (tele_p (tele_star_vprop i v p)))
let rec tele_star_vprop_correct (i: gen_elim_tele) (v: vprop) (p: prop) : GTot (vprop_rewrite (tele_p i `star` v `star` pure p) (tele_p (tele_star_vprop i v p)) ) = match i returns vprop_rewrite (tele_p i `star` v `star` pure p) (tele_p (tele_star_vprop i v p)) with | TRet v' p' -> tele_star_vprop...
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 113, "end_line": 245, "start_col": 0, "start_line": 235 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: Steel.ST.GenElim1.Base.gen_elim_tele -> v: Steel.Effect.Common.vprop -> p: Prims.prop -> Prims.GTot (Steel.ST.GenElim1.vprop_rewrite (Steel.Effect.Common.star (Steel.Effect.Common.star (Steel.ST.GenElim1.tele_p i) v) (Steel.ST.Util.pure p)) (Steel.ST.GenE...
Prims.GTot
[ "sometrivial" ]
[]
[ "Steel.ST.GenElim1.Base.gen_elim_tele", "Steel.Effect.Common.vprop", "Prims.prop", "Steel.ST.GenElim1.vprop_rewrite", "Steel.Effect.Common.star", "Steel.ST.GenElim1.tele_p", "Steel.ST.Util.pure", "Steel.ST.GenElim1.Base.tele_star_vprop", "Steel.ST.GenElim1.tele_star_vprop_correct_ret", "Steel.ST.G...
[ "recursion" ]
false
false
false
false
false
let rec tele_star_vprop_correct (i: gen_elim_tele) (v: vprop) (p: prop) : GTot (vprop_rewrite (((tele_p i) `star` v) `star` (pure p)) (tele_p (tele_star_vprop i v p))) =
match i returns vprop_rewrite (((tele_p i) `star` v) `star` (pure p)) (tele_p (tele_star_vprop i v p)) with | TRet v' p' -> tele_star_vprop_correct_ret v' p' v p | TExists ty body -> tele_star_vprop_correct_exists v p ty body (fun x -> tele_star_vprop_correct (body x) v p)
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.compute_gen_unit_elim_f
val compute_gen_unit_elim_f (i: gen_unit_elim_i) : GTot (gen_unit_elim_t i)
val compute_gen_unit_elim_f (i: gen_unit_elim_i) : GTot (gen_unit_elim_t i)
let rec compute_gen_unit_elim_f (i: gen_unit_elim_i) : GTot (gen_unit_elim_t i) = match i returns (gen_unit_elim_t i) with | GUEId v -> compute_gen_unit_elim_f_id v | GUEPure p -> compute_gen_unit_elim_f_pure p | GUEStar i1 i2 -> compute_gen_unit_elim_f_star i1 i2 (compute_gen_unit_elim_f i1) (compute_gen_unit_...
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 113, "end_line": 47, "start_col": 0, "start_line": 41 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: Steel.ST.GenElim1.Base.gen_unit_elim_i -> Prims.GTot (Steel.ST.GenElim1.gen_unit_elim_t i)
Prims.GTot
[ "sometrivial" ]
[]
[ "Steel.ST.GenElim1.Base.gen_unit_elim_i", "Steel.ST.GenElim1.gen_unit_elim_t", "Steel.Effect.Common.vprop", "Steel.ST.GenElim1.compute_gen_unit_elim_f_id", "Prims.prop", "Steel.ST.GenElim1.compute_gen_unit_elim_f_pure", "Steel.ST.GenElim1.compute_gen_unit_elim_f_star", "Steel.ST.GenElim1.compute_gen_u...
[ "recursion" ]
false
false
false
false
false
let rec compute_gen_unit_elim_f (i: gen_unit_elim_i) : GTot (gen_unit_elim_t i) =
match i returns (gen_unit_elim_t i) with | GUEId v -> compute_gen_unit_elim_f_id v | GUEPure p -> compute_gen_unit_elim_f_pure p | GUEStar i1 i2 -> compute_gen_unit_elim_f_star i1 i2 (compute_gen_unit_elim_f i1) (compute_gen_unit_elim_f i2)
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.compute_gen_elim_tele_correct
val compute_gen_elim_tele_correct (x: gen_elim_i) : GTot (ge_to_tele_t x)
val compute_gen_elim_tele_correct (x: gen_elim_i) : GTot (ge_to_tele_t x)
let rec compute_gen_elim_tele_correct (x: gen_elim_i) : GTot (ge_to_tele_t x) = match x returns ge_to_tele_t x with | GEUnit v -> compute_gen_elim_tele_correct_unit v | GEStarL l ru -> compute_gen_elim_tele_correct_star_l l (compute_gen_elim_tele_correct l) ru | GEStarR lu r -> compute_gen_elim_tele_correct_sta...
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 121, "end_line": 428, "start_col": 0, "start_line": 415 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Steel.ST.GenElim1.Base.gen_elim_i -> Prims.GTot (Steel.ST.GenElim1.ge_to_tele_t x)
Prims.GTot
[ "sometrivial" ]
[]
[ "Steel.ST.GenElim1.Base.gen_elim_i", "Steel.ST.GenElim1.ge_to_tele_t", "Steel.ST.GenElim1.Base.gen_unit_elim_i", "Steel.ST.GenElim1.compute_gen_elim_tele_correct_unit", "Steel.ST.GenElim1.compute_gen_elim_tele_correct_star_l", "Steel.ST.GenElim1.compute_gen_elim_tele_correct", "Steel.ST.GenElim1.compute...
[ "recursion" ]
false
false
false
false
false
let rec compute_gen_elim_tele_correct (x: gen_elim_i) : GTot (ge_to_tele_t x) =
match x returns ge_to_tele_t x with | GEUnit v -> compute_gen_elim_tele_correct_unit v | GEStarL l ru -> compute_gen_elim_tele_correct_star_l l (compute_gen_elim_tele_correct l) ru | GEStarR lu r -> compute_gen_elim_tele_correct_star_r lu r (compute_gen_elim_tele_correct r) | GEStar l r -> compute_gen_elim_tele_corr...
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.tele_star_correct
val tele_star_correct (i1 i2: gen_elim_tele) : GTot (vprop_rewrite ((tele_p i1) `star` (tele_p i2)) (tele_p (i1 `tele_star` i2)))
val tele_star_correct (i1 i2: gen_elim_tele) : GTot (vprop_rewrite ((tele_p i1) `star` (tele_p i2)) (tele_p (i1 `tele_star` i2)))
let rec tele_star_correct (i1 i2: gen_elim_tele) : GTot (vprop_rewrite (tele_p i1 `star` tele_p i2) (tele_p (i1 `tele_star` i2))) = match i1 returns vprop_rewrite (tele_p i1 `star` tele_p i2) (tele_p (i1 `tele_star` i2)) with | TRet v1 p1 -> tele_star_correct_ret_l v1 p1 i2 | TExists ty1 f1 -> begin match i2 ...
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 7, "end_line": 286, "start_col": 0, "start_line": 277 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i1: Steel.ST.GenElim1.Base.gen_elim_tele -> i2: Steel.ST.GenElim1.Base.gen_elim_tele -> Prims.GTot (Steel.ST.GenElim1.vprop_rewrite (Steel.Effect.Common.star (Steel.ST.GenElim1.tele_p i1) (Steel.ST.GenElim1.tele_p i2)) (Steel.ST.GenElim1.tele_p (Steel.ST.GenElim1.Base.tele_star i1 i2)))
Prims.GTot
[ "sometrivial" ]
[]
[ "Steel.ST.GenElim1.Base.gen_elim_tele", "Steel.ST.GenElim1.vprop_rewrite", "Steel.Effect.Common.star", "Steel.ST.GenElim1.tele_p", "Steel.ST.GenElim1.Base.tele_star", "Steel.Effect.Common.vprop", "Prims.prop", "Steel.ST.GenElim1.tele_star_correct_ret_l", "Steel.ST.GenElim1.Base.TExists", "Steel.ST...
[ "recursion" ]
false
false
false
false
false
let rec tele_star_correct (i1 i2: gen_elim_tele) : GTot (vprop_rewrite ((tele_p i1) `star` (tele_p i2)) (tele_p (i1 `tele_star` i2))) =
match i1 returns vprop_rewrite ((tele_p i1) `star` (tele_p i2)) (tele_p (i1 `tele_star` i2)) with | TRet v1 p1 -> tele_star_correct_ret_l v1 p1 i2 | TExists ty1 f1 -> match i2 returns vprop_rewrite ((tele_p (TExists ty1 f1)) `star` (tele_p i2)) (tele_p ((TExists ty1 f1) `tele_star`...
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.gen_elim_nondep_p
val gen_elim_nondep_p (ty: list (Type u#a)) : Tot ( curried_function_type ty (U.raise_t u#_ u#(max 2 a) unit -> vprop) -> curried_function_type ty (U.raise_t u#_ u#(max 2 a) unit -> prop) -> Tot vprop)
val gen_elim_nondep_p (ty: list (Type u#a)) : Tot ( curried_function_type ty (U.raise_t u#_ u#(max 2 a) unit -> vprop) -> curried_function_type ty (U.raise_t u#_ u#(max 2 a) unit -> prop) -> Tot vprop)
let rec gen_elim_nondep_p (ty: list (Type u#a)) : Tot (curried_function_type ty (U.raise_t u#_ u#(max 2 a) unit -> vprop) -> curried_function_type ty (U.raise_t u#_ u#(max 2 a) unit -> prop) -> Tot vprop) = match ty as ty' returns curried_function_type ty' (U.raise_t u#_ u#(max 2 a) unit -> vprop) -> curried_function...
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 83, "end_line": 433, "start_col": 0, "start_line": 430 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ty: Prims.list Type -> _: Steel.ST.GenElim1.Base.curried_function_type ty (_: FStar.Universe.raise_t Prims.unit -> Steel.Effect.Common.vprop) -> _: Steel.ST.GenElim1.Base.curried_function_type ty (_: FStar.Universe.raise_t Prims.unit -> Prims.prop) -> Steel.Effect.Common.vprop
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "Steel.ST.GenElim1.Base.curried_function_type", "FStar.Universe.raise_t", "Prims.unit", "Steel.Effect.Common.vprop", "Prims.prop", "Prims.Nil", "Steel.Effect.Common.star", "FStar.Universe.raise_val", "Steel.ST.Util.pure", "Prims.Cons", "Steel.ST.Util.exists_", "Steel.ST.GenElim...
[ "recursion" ]
false
false
false
false
false
let rec gen_elim_nondep_p (ty: list (Type u#a)) : Tot ( curried_function_type ty (U.raise_t u#_ u#(max 2 a) unit -> vprop) -> curried_function_type ty (U.raise_t u#_ u#(max 2 a) unit -> prop) -> Tot vprop) =
match ty as ty' returns curried_function_type ty' (U.raise_t u#_ u#(max 2 a) unit -> vprop) -> curried_function_type ty' (U.raise_t u#_ u#(max 2 a) unit -> prop) -> Tot vprop with | [] -> fun q post -> (q (U.raise_val ())) `star` (pure (post (U.raise_val ()))) | t :: tq ->...
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.gen_elim_nondep_sem_correct
val gen_elim_nondep_sem_correct (ty: list (Type u#a)) : Tot (q: curried_function_type ty _ -> post: curried_function_type ty _ -> Lemma ((tele_p (gen_elim_nondep_sem ty q post)) `equiv` (gen_elim_nondep_p ty q post)))
val gen_elim_nondep_sem_correct (ty: list (Type u#a)) : Tot (q: curried_function_type ty _ -> post: curried_function_type ty _ -> Lemma ((tele_p (gen_elim_nondep_sem ty q post)) `equiv` (gen_elim_nondep_p ty q post)))
let rec gen_elim_nondep_sem_correct (ty: list (Type u#a)) : Tot ((q: curried_function_type ty _) -> (post: curried_function_type ty _) -> Lemma (tele_p (gen_elim_nondep_sem ty q post) `equiv` gen_elim_nondep_p ty q post) ) = match ty returns ((q: curried_function_type ty _) -> (post: curried_function_type ty _)...
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 10, "end_line": 460, "start_col": 0, "start_line": 435 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ty: Prims.list Type -> q: Steel.ST.GenElim1.Base.curried_function_type ty (_: FStar.Universe.raise_t Prims.unit -> Steel.Effect.Common.vprop) -> post: Steel.ST.GenElim1.Base.curried_function_type ty (_: FStar.Universe.raise_t Prims.unit -> Prims.prop) -> FStar.Pervasives.Lemma...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.list", "Steel.ST.GenElim1.Base.curried_function_type", "FStar.Universe.raise_t", "Prims.unit", "Steel.Effect.Common.vprop", "Prims.prop", "Prims.l_True", "Prims.squash", "Steel.Effect.Common.equiv", "Steel.ST.GenElim1.tele_p", "Steel.ST.GenElim1.Base.gen_elim_nondep_sem", "Steel.ST.GenE...
[ "recursion" ]
false
false
true
false
false
let rec gen_elim_nondep_sem_correct (ty: list (Type u#a)) : Tot (q: curried_function_type ty _ -> post: curried_function_type ty _ -> Lemma ((tele_p (gen_elim_nondep_sem ty q post)) `equiv` (gen_elim_nondep_p ty q post))) =
match ty returns (q: curried_function_type ty _ -> post: curried_function_type ty _ -> Lemma ((tele_p (gen_elim_nondep_sem ty q post)) `equiv` (gen_elim_nondep_p ty q post))) with | [] -> fun q post -> equiv_refl ((q (U.raise_val ())) `star` (pure (post (U.raise_val ())))) | t...
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.coerce_with_smt
val coerce_with_smt (#tfrom #tto: Type) (x: tfrom) : Pure tto (requires ((tfrom == tto))) (ensures (fun _ -> True))
val coerce_with_smt (#tfrom #tto: Type) (x: tfrom) : Pure tto (requires ((tfrom == tto))) (ensures (fun _ -> True))
let coerce_with_smt (#tfrom #tto: Type) (x: tfrom) : Pure tto (requires ( (tfrom == tto))) (ensures (fun _ -> True)) = x
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 120, "end_line": 829, "start_col": 0, "start_line": 829 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: tfrom -> Prims.Pure tto
Prims.Pure
[]
[]
[ "Prims.eq2", "Prims.l_True" ]
[]
false
false
false
false
false
let coerce_with_smt (#tfrom #tto: Type) (x: tfrom) : Pure tto (requires ((tfrom == tto))) (ensures (fun _ -> True)) =
x
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.compute_gen_elim_f_unit
val compute_gen_elim_f_unit (i: gen_unit_elim_i) : GTot (gen_elim_t (GEUnit i))
val compute_gen_elim_f_unit (i: gen_unit_elim_i) : GTot (gen_elim_t (GEUnit i))
let compute_gen_elim_f_unit (i: gen_unit_elim_i) : GTot (gen_elim_t (GEUnit i)) = compute_gen_unit_elim_f i
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 27, "end_line": 55, "start_col": 0, "start_line": 52 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: Steel.ST.GenElim1.Base.gen_unit_elim_i -> Prims.GTot (Steel.ST.GenElim1.gen_elim_t (Steel.ST.GenElim1.Base.GEUnit i))
Prims.GTot
[ "sometrivial" ]
[]
[ "Steel.ST.GenElim1.Base.gen_unit_elim_i", "Steel.ST.GenElim1.compute_gen_unit_elim_f", "Steel.ST.GenElim1.gen_elim_t", "Steel.ST.GenElim1.Base.GEUnit" ]
[]
false
false
false
false
false
let compute_gen_elim_f_unit (i: gen_unit_elim_i) : GTot (gen_elim_t (GEUnit i)) =
compute_gen_unit_elim_f i
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.gen_elim_dep
val gen_elim_dep (#opened: _) (#[@@@ framing_implicit] p: vprop) (#[@@@ framing_implicit] a: Type) (#[@@@ framing_implicit] q: Ghost.erased a -> Tot vprop) (#[@@@ framing_implicit] post: Ghost.erased a -> Tot prop) (#[@@@ framing_implicit] sq: squash (gen_elim_prop_placeholder false p a q post)) (_: unit)...
val gen_elim_dep (#opened: _) (#[@@@ framing_implicit] p: vprop) (#[@@@ framing_implicit] a: Type) (#[@@@ framing_implicit] q: Ghost.erased a -> Tot vprop) (#[@@@ framing_implicit] post: Ghost.erased a -> Tot prop) (#[@@@ framing_implicit] sq: squash (gen_elim_prop_placeholder false p a q post)) (_: unit)...
let gen_elim_dep #opened #p #a #q #post #sq _ = gen_elim' #opened _ p a q post sq ()
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 38, "end_line": 847, "start_col": 0, "start_line": 845 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> Steel.ST.Effect.Ghost.STGhostF (FStar.Ghost.erased a)
Steel.ST.Effect.Ghost.STGhostF
[]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "FStar.Ghost.erased", "Prims.prop", "Prims.squash", "Steel.ST.GenElim1.Base.gen_elim_prop_placeholder", "Prims.unit", "Steel.ST.GenElim1.gen_elim'" ]
[]
false
true
false
false
false
let gen_elim_dep #opened #p #a #q #post #sq _ =
gen_elim' #opened _ p a q post sq ()
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.gen_elim
val gen_elim (#opened: _) (#[@@@ framing_implicit] p: vprop) (#[@@@ framing_implicit] a: Type) (#[@@@ framing_implicit] q: Ghost.erased a -> Tot vprop) (#[@@@ framing_implicit] post: Ghost.erased a -> Tot prop) (#[@@@ framing_implicit] sq: squash (gen_elim_prop_placeholder true p a q post)) (_: unit) : ST...
val gen_elim (#opened: _) (#[@@@ framing_implicit] p: vprop) (#[@@@ framing_implicit] a: Type) (#[@@@ framing_implicit] q: Ghost.erased a -> Tot vprop) (#[@@@ framing_implicit] post: Ghost.erased a -> Tot prop) (#[@@@ framing_implicit] sq: squash (gen_elim_prop_placeholder true p a q post)) (_: unit) : ST...
let gen_elim #opened #p #a #q #post #sq _ = gen_elim' #opened _ p a q post sq ()
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 38, "end_line": 843, "start_col": 0, "start_line": 841 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> Steel.ST.Effect.Ghost.STGhostF (FStar.Ghost.erased a)
Steel.ST.Effect.Ghost.STGhostF
[]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "FStar.Ghost.erased", "Prims.prop", "Prims.squash", "Steel.ST.GenElim1.Base.gen_elim_prop_placeholder", "Prims.unit", "Steel.ST.GenElim1.gen_elim'" ]
[]
false
true
false
false
false
let gen_elim #opened #p #a #q #post #sq _ =
gen_elim' #opened _ p a q post sq ()
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.compute_gen_elim_nondep_correct'
val compute_gen_elim_nondep_correct' (i0: gen_elim_i) (ty: list Type) : Tot (compute_gen_elim_nondep_correct_t i0 ty)
val compute_gen_elim_nondep_correct' (i0: gen_elim_i) (ty: list Type) : Tot (compute_gen_elim_nondep_correct_t i0 ty)
let compute_gen_elim_nondep_correct' (i0: gen_elim_i) (ty: list Type) : Tot (compute_gen_elim_nondep_correct_t i0 ty) = match ty returns compute_gen_elim_nondep_correct_t i0 ty with | [] -> compute_gen_elim_nondep_correct0 i0 | [t1] -> compute_gen_elim_nondep_correct1 i0 t1 | [t1; t2] -> compute_gen_elim_nond...
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 202, "end_line": 789, "start_col": 0, "start_line": 769 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i0: Steel.ST.GenElim1.Base.gen_elim_i -> ty: Prims.list Type -> Steel.ST.GenElim1.compute_gen_elim_nondep_correct_t i0 ty
Prims.Tot
[ "total" ]
[]
[ "Steel.ST.GenElim1.Base.gen_elim_i", "Prims.list", "Steel.ST.GenElim1.compute_gen_elim_nondep_correct_t", "Steel.ST.GenElim1.compute_gen_elim_nondep_correct0", "Steel.ST.GenElim1.compute_gen_elim_nondep_correct1", "Steel.ST.GenElim1.compute_gen_elim_nondep_correct2", "Steel.ST.GenElim1.compute_gen_elim_...
[]
false
false
false
false
false
let compute_gen_elim_nondep_correct' (i0: gen_elim_i) (ty: list Type) : Tot (compute_gen_elim_nondep_correct_t i0 ty) =
match ty returns compute_gen_elim_nondep_correct_t i0 ty with | [] -> compute_gen_elim_nondep_correct0 i0 | [t1] -> compute_gen_elim_nondep_correct1 i0 t1 | [t1 ; t2] -> compute_gen_elim_nondep_correct2 i0 t1 t2 | [t1 ; t2 ; t3] -> compute_gen_elim_nondep_correct3 i0 t1 t2 t3 | [t1 ; t2 ; t3 ; t4] -> compute_gen_elim_...
false
Hacl.Bignum25519.fst
Hacl.Bignum25519.times_2
val times_2: out:felem -> a:felem -> Stack unit (requires fun h -> live h out /\ live h a /\ F51.mul_inv_t h a) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ F51.felem_fits h1 out (2, 4, 2, 2, 2) /\ F51.fevalh h1 out == 2 `SC.fmul` F51.fevalh h0 a )
val times_2: out:felem -> a:felem -> Stack unit (requires fun h -> live h out /\ live h a /\ F51.mul_inv_t h a) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ F51.felem_fits h1 out (2, 4, 2, 2, 2) /\ F51.fevalh h1 out == 2 `SC.fmul` F51.fevalh h0 a )
let times_2 out a = (**) let h0 = ST.get() in let a0 = a.(0ul) in let a1 = a.(1ul) in let a2 = a.(2ul) in let a3 = a.(3ul) in let a4 = a.(4ul) in let o0 = u64 2 *. a0 in let o1 = u64 2 *. a1 in let o2 = u64 2 *. a2 in let o3 = u64 2 *. a3 in let o4 = u64 2 *. a4 in make_u64_5 out o0 o1 o2 o3 o4;...
{ "file_name": "code/ed25519/Hacl.Bignum25519.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 176, "start_col": 0, "start_line": 126 }
module Hacl.Bignum25519 module ST = FStar.HyperStack.ST open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.Buffer open Lib.ByteBuffer module LSeq = Lib.Sequence module BSeq = Lib.ByteSequence module S51 = Hacl.Spec.Curve25519.Field51.Definition module SL51 = Hacl.Spec.Curve25519.Field51.Lemmas modu...
{ "checked_file": "/", "dependencies": [ "Spec.Ed25519.fst.checked", "Spec.Curve25519.fst.checked", "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec...
[ { "abbrev": true, "full_module": "Spec.Curve25519", "short_module": "SC" }, { "abbrev": true, "full_module": "Hacl.Impl.Curve25519.Field51", "short_module": "BN" }, { "abbrev": true, "full_module": "Hacl.Spec.Curve25519.Field51.Lemmas", "short_module": "SL51" }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
out: Hacl.Bignum25519.felem -> a: Hacl.Bignum25519.felem -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Bignum25519.felem", "FStar.Calc.calc_finish", "Prims.int", "Prims.eq2", "Prims.op_Modulus", "FStar.Mul.op_Star", "Hacl.Impl.Ed25519.Field51.fevalh", "Spec.Curve25519.prime", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", "Prims.unit", "FStar.Calc.calc_step", "Hacl.Spec.Curve25...
[]
false
true
false
false
false
let times_2 out a =
let h0 = ST.get () in let a0 = a.(0ul) in let a1 = a.(1ul) in let a2 = a.(2ul) in let a3 = a.(3ul) in let a4 = a.(4ul) in let o0 = u64 2 *. a0 in let o1 = u64 2 *. a1 in let o2 = u64 2 *. a2 in let o3 = u64 2 *. a3 in let o4 = u64 2 *. a4 in make_u64_5 out o0 o1 o2 o3 o4; let h1 = ST.get () in assert (S51.felem_fits1 a...
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.compute_gen_unit_elim_f_id
val compute_gen_unit_elim_f_id (v: vprop) : Tot (gen_unit_elim_t (GUEId v))
val compute_gen_unit_elim_f_id (v: vprop) : Tot (gen_unit_elim_t (GUEId v))
let compute_gen_unit_elim_f_id (v: vprop) : Tot (gen_unit_elim_t (GUEId v)) = fun _ -> noop (); U.raise_val ()
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 34, "end_line": 19, "start_col": 0, "start_line": 16 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
v: Steel.Effect.Common.vprop -> Steel.ST.GenElim1.gen_unit_elim_t (Steel.ST.GenElim1.Base.GUEId v)
Prims.Tot
[ "total" ]
[]
[ "Steel.Effect.Common.vprop", "Steel.Memory.inames", "FStar.Universe.raise_val", "Prims.unit", "FStar.Universe.raise_t", "Steel.ST.Util.noop", "Steel.ST.GenElim1.gen_unit_elim_t", "Steel.ST.GenElim1.Base.GUEId" ]
[]
false
false
false
false
false
let compute_gen_unit_elim_f_id (v: vprop) : Tot (gen_unit_elim_t (GUEId v)) =
fun _ -> noop (); U.raise_val ()
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.compute_gen_unit_elim_f_pure
val compute_gen_unit_elim_f_pure (p: prop) : Tot (gen_unit_elim_t (GUEPure p))
val compute_gen_unit_elim_f_pure (p: prop) : Tot (gen_unit_elim_t (GUEPure p))
let compute_gen_unit_elim_f_pure (p: prop) : Tot (gen_unit_elim_t (GUEPure p)) = fun _ -> rewrite (compute_gen_unit_elim_p (GUEPure p)) (pure p); elim_pure p; U.raise_val ()
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 16, "end_line": 27, "start_col": 0, "start_line": 21 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Prims.prop -> Steel.ST.GenElim1.gen_unit_elim_t (Steel.ST.GenElim1.Base.GUEPure p)
Prims.Tot
[ "total" ]
[]
[ "Prims.prop", "Steel.Memory.inames", "FStar.Universe.raise_val", "Prims.unit", "FStar.Universe.raise_t", "Steel.ST.Util.elim_pure", "Steel.ST.Util.rewrite", "Steel.ST.GenElim1.Base.compute_gen_unit_elim_p", "Steel.ST.GenElim1.Base.GUEPure", "Steel.ST.Util.pure", "Steel.ST.GenElim1.gen_unit_elim_...
[]
false
false
false
false
false
let compute_gen_unit_elim_f_pure (p: prop) : Tot (gen_unit_elim_t (GUEPure p)) =
fun _ -> rewrite (compute_gen_unit_elim_p (GUEPure p)) (pure p); elim_pure p; U.raise_val ()
false
ArrayUtils.fst
ArrayUtils.init_at_seq
val init_at_seq (#a: Type0) (s: seq (option a)) (i: nat{i < length s}) : Type0
val init_at_seq (#a: Type0) (s: seq (option a)) (i: nat{i < length s}) : Type0
let init_at_seq (#a:Type0) (s:seq (option a)) (i:nat{i < length s}) :Type0 = Some? (index s i)
{ "file_name": "examples/preorders/ArrayUtils.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 21, "end_line": 27, "start_col": 0, "start_line": 26 }
(* 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" ], "interface_file": false, "source_file": "ArrayUtils.fst" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", ...
{ "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
s: FStar.Seq.Base.seq (FStar.Pervasives.Native.option a) -> i: Prims.nat{i < FStar.Seq.Base.length s} -> Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.Seq.Base.seq", "FStar.Pervasives.Native.option", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "FStar.Seq.Base.length", "FStar.Pervasives.Native.uu___is_Some", "FStar.Seq.Base.index" ]
[]
false
false
false
false
true
let init_at_seq (#a: Type0) (s: seq (option a)) (i: nat{i < length s}) : Type0 =
Some? (index s i)
false
ArrayUtils.fst
ArrayUtils.all_some
val all_some (#a: Type0) (s: seq (option a)) : Type0
val all_some (#a: Type0) (s: seq (option a)) : Type0
let all_some (#a:Type0) (s:seq (option a)) :Type0 = forall (i:nat). i < length s ==> Some? (index s i)
{ "file_name": "examples/preorders/ArrayUtils.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 54, "end_line": 30, "start_col": 0, "start_line": 29 }
(* 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" ], "interface_file": false, "source_file": "ArrayUtils.fst" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", ...
{ "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
s: FStar.Seq.Base.seq (FStar.Pervasives.Native.option a) -> Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.Seq.Base.seq", "FStar.Pervasives.Native.option", "Prims.l_Forall", "Prims.nat", "Prims.l_imp", "Prims.b2t", "Prims.op_LessThan", "FStar.Seq.Base.length", "FStar.Pervasives.Native.uu___is_Some", "FStar.Seq.Base.index" ]
[]
false
false
false
true
true
let all_some (#a: Type0) (s: seq (option a)) : Type0 =
forall (i: nat). i < length s ==> Some? (index s i)
false
Vale.Def.Prop_s.fst
Vale.Def.Prop_s.prop0
val prop0 : Type
let prop0 = Type0
{ "file_name": "vale/specs/defs/Vale.Def.Prop_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 17, "end_line": 9, "start_col": 0, "start_line": 9 }
module Vale.Def.Prop_s open FStar.Mul // Prims.logical (which is private to Prims) and prop0 are synonyms for Type0 in F*, // but are not synonyms in Vale's type system: // - importFStarTypes.exe interprets Prims.logical and prop0 as "prop" // - importFStarTypes.exe interprets Type0 as "Type(0)"
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked" ], "interface_file": false, "source_file": "Vale.Def.Prop_s.fst" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasiv...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type
Prims.Tot
[ "total" ]
[]
[]
[]
false
false
false
true
true
let prop0 =
Type0
false
ArrayUtils.fst
ArrayUtils.some_equivalent_seqs
val some_equivalent_seqs (#a: Type0) (s1: Seq.seq (option a)) (s2: Seq.seq a) : Type0
val some_equivalent_seqs (#a: Type0) (s1: Seq.seq (option a)) (s2: Seq.seq a) : Type0
let some_equivalent_seqs (#a:Type0) (s1:Seq.seq (option a)) (s2:Seq.seq a) :Type0 = (Seq.length s1 == Seq.length s2) /\ (forall (i:nat). i < Seq.length s1 ==> Some (Seq.index s2 i) == Seq.index s1 i)
{ "file_name": "examples/preorders/ArrayUtils.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 83, "end_line": 37, "start_col": 0, "start_line": 35 }
(* 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" ], "interface_file": false, "source_file": "ArrayUtils.fst" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", ...
{ "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
s1: FStar.Seq.Base.seq (FStar.Pervasives.Native.option a) -> s2: FStar.Seq.Base.seq a -> Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.Seq.Base.seq", "FStar.Pervasives.Native.option", "Prims.l_and", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "Prims.l_Forall", "Prims.l_imp", "Prims.b2t", "Prims.op_LessThan", "FStar.Pervasives.Native.Some", "FStar.Seq.Base.index" ]
[]
false
false
false
true
true
let some_equivalent_seqs (#a: Type0) (s1: Seq.seq (option a)) (s2: Seq.seq a) : Type0 =
(Seq.length s1 == Seq.length s2) /\ (forall (i: nat). i < Seq.length s1 ==> Some (Seq.index s2 i) == Seq.index s1 i)
false
ArrayUtils.fst
ArrayUtils.is_prefix_of
val is_prefix_of (#a: Type) (s1 s2: seq a) : Type0
val is_prefix_of (#a: Type) (s1 s2: seq a) : Type0
let is_prefix_of (#a:Type) (s1:seq a) (s2:seq a) :Type0 = length s1 <= length s2 /\ (forall (i:nat). i < length s1 ==> Seq.index s1 i == Seq.index s2 i)
{ "file_name": "examples/preorders/ArrayUtils.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 72, "end_line": 106, "start_col": 0, "start_line": 104 }
(* 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" ], "interface_file": false, "source_file": "ArrayUtils.fst" }
[ { "abbrev": false, "full_module": "FStar.Seq", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar", ...
{ "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
s1: FStar.Seq.Base.seq a -> s2: FStar.Seq.Base.seq a -> Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.Seq.Base.seq", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Seq.Base.length", "Prims.l_Forall", "Prims.nat", "Prims.l_imp", "Prims.op_LessThan", "Prims.eq2", "FStar.Seq.Base.index" ]
[]
false
false
false
true
true
let is_prefix_of (#a: Type) (s1 s2: seq a) : Type0 =
length s1 <= length s2 /\ (forall (i: nat). i < length s1 ==> Seq.index s1 i == Seq.index s2 i)
false
LowParse.Tot.Base.fst
LowParse.Tot.Base.bare_parser
val bare_parser : t: Type -> Type
let bare_parser = tot_bare_parser
{ "file_name": "src/lowparse/LowParse.Tot.Base.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 33, "end_line": 5, "start_col": 0, "start_line": 5 }
module LowParse.Tot.Base include LowParse.Spec.Base
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Base.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "LowParse.Tot.Base.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Base", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Tot", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Tot", "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
t: Type -> Type
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.tot_bare_parser" ]
[]
false
false
false
true
true
let bare_parser =
tot_bare_parser
false
LowParse.Tot.Base.fst
LowParse.Tot.Base.parser
val parser : k: LowParse.Spec.Base.parser_kind -> t: Type -> Type
let parser = tot_parser
{ "file_name": "src/lowparse/LowParse.Tot.Base.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 23, "end_line": 8, "start_col": 0, "start_line": 8 }
module LowParse.Tot.Base include LowParse.Spec.Base inline_for_extraction let bare_parser = tot_bare_parser
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Base.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "LowParse.Tot.Base.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Base", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Tot", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Tot", "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
k: LowParse.Spec.Base.parser_kind -> t: Type -> Type
Prims.Tot
[ "total" ]
[]
[ "LowParse.Spec.Base.tot_parser" ]
[]
false
false
false
true
true
let parser =
tot_parser
false
Steel.ST.C.Types.Scalar.fsti
Steel.ST.C.Types.Scalar.scalar_unique
val scalar_unique (#opened: _) (#t: Type) (v1 v2: t) (p1 p2: P.perm) (r: ref (scalar t)) : STGhost unit opened ((pts_to r (mk_fraction (scalar t) (mk_scalar v1) p1)) `star` (pts_to r (mk_fraction (scalar t) (mk_scalar v2) p2))) (fun _ -> (pts_to r (mk_fraction (scalar t) ...
val scalar_unique (#opened: _) (#t: Type) (v1 v2: t) (p1 p2: P.perm) (r: ref (scalar t)) : STGhost unit opened ((pts_to r (mk_fraction (scalar t) (mk_scalar v1) p1)) `star` (pts_to r (mk_fraction (scalar t) (mk_scalar v2) p2))) (fun _ -> (pts_to r (mk_fraction (scalar t) ...
let scalar_unique (#opened: _) (#t: Type) (v1 v2: t) (p1 p2: P.perm) (r: ref (scalar t)) : STGhost unit opened (pts_to r (mk_fraction (scalar t) (mk_scalar v1) p1) `star` pts_to r (mk_fraction (scalar t) (mk_scalar v2) p2)) (fun _ -> pts_to r (mk_fraction (scalar t) (mk_scalar v1) p1) `star` pts_to r ...
{ "file_name": "lib/steel/c/Steel.ST.C.Types.Scalar.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 45, "end_line": 48, "start_col": 0, "start_line": 36 }
module Steel.ST.C.Types.Scalar open Steel.ST.Util include Steel.ST.C.Types.Base module P = Steel.FractionalPermission // To be extracted as: t [@@noextract_to "krml"] // primitive val scalar_t ( [@@@strictly_positive] t: Type0) : Type0 [@@noextract_to "krml"] // proof-only val scalar (t: Type) : typedef (scalar_t t) ...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "Steel.ST.C.Types.Base.fsti.checked", "Steel.FractionalPermission.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.IndefiniteDescription.fsti.checked", "FStar.Ghost.fsti.checked", "FStar....
[ { "abbrev": true, "full_module": "Steel.FractionalPermission", "short_module": "P" }, { "abbrev": false, "full_module": "Steel.ST.C.Types.Base", "short_module": null }, { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
v1: t -> v2: t -> p1: Steel.FractionalPermission.perm -> p2: Steel.FractionalPermission.perm -> r: Steel.ST.C.Types.Base.ref (Steel.ST.C.Types.Scalar.scalar t) -> Steel.ST.Effect.Ghost.STGhost Prims.unit
Steel.ST.Effect.Ghost.STGhost
[]
[]
[ "Steel.Memory.inames", "Steel.FractionalPermission.perm", "Steel.ST.C.Types.Base.ref", "Steel.ST.C.Types.Scalar.scalar_t", "Steel.ST.C.Types.Scalar.scalar", "Steel.ST.C.Types.Scalar.mk_scalar_inj", "Steel.FractionalPermission.full_perm", "Prims.unit", "Steel.ST.C.Types.Base.fractional_permissions_th...
[]
false
true
false
false
false
let scalar_unique (#opened: _) (#t: Type) (v1 v2: t) (p1 p2: P.perm) (r: ref (scalar t)) : STGhost unit opened ((pts_to r (mk_fraction (scalar t) (mk_scalar v1) p1)) `star` (pts_to r (mk_fraction (scalar t) (mk_scalar v2) p2))) (fun _ -> (pts_to r (mk_fraction (scalar t) ...
fractional_permissions_theorem (mk_scalar v1) (mk_scalar v2) p1 p2 r; mk_scalar_inj v1 v2 P.full_perm P.full_perm
false
LowParse.Tot.Base.fst
LowParse.Tot.Base.weaken
val weaken : k1: LowParse.Spec.Base.parser_kind -> p2: LowParse.Spec.Base.tot_parser k2 t -> Prims.Pure (LowParse.Spec.Base.tot_parser k1 t)
let weaken = tot_weaken
{ "file_name": "src/lowparse/LowParse.Tot.Base.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 23, "end_line": 19, "start_col": 0, "start_line": 19 }
module LowParse.Tot.Base include LowParse.Spec.Base inline_for_extraction let bare_parser = tot_bare_parser inline_for_extraction let parser = tot_parser inline_for_extraction let serializer (#k: parser_kind) (#t: Type) (p: parser k t) : Tot Type = serializer #k p
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowParse.Spec.Base.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "LowParse.Tot.Base.fst" }
[ { "abbrev": false, "full_module": "LowParse.Spec.Base", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Tot", "short_module": null }, { "abbrev": false, "full_module": "LowParse.Tot", "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
k1: LowParse.Spec.Base.parser_kind -> p2: LowParse.Spec.Base.tot_parser k2 t -> Prims.Pure (LowParse.Spec.Base.tot_parser k1 t)
Prims.Pure
[]
[]
[ "LowParse.Spec.Base.tot_weaken" ]
[]
false
false
false
false
false
let weaken =
tot_weaken
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.compute_gen_elim_nondep_correct_default
val compute_gen_elim_nondep_correct_default (i0: gen_elim_i) (t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15: Type) (tq: list Type) : Tot (compute_gen_elim_nondep_correct_t i0 (t1 :: t2 :: t3 :: t4 :: t5 :: t6 :: t7 :: t8 :: t9 :: t10 :: t11 :: t12 :: t13 :: t14...
val compute_gen_elim_nondep_correct_default (i0: gen_elim_i) (t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15: Type) (tq: list Type) : Tot (compute_gen_elim_nondep_correct_t i0 (t1 :: t2 :: t3 :: t4 :: t5 :: t6 :: t7 :: t8 :: t9 :: t10 :: t11 :: t12 :: t13 :: t14...
let compute_gen_elim_nondep_correct_default (i0: gen_elim_i) (t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15: Type) (tq: list Type) : Tot (compute_gen_elim_nondep_correct_t i0 (t1 :: t2 :: t3 :: t4 :: t5 :: t6 :: t7 :: t8 :: t9 :: t10 :: t11 :: t12 :: t13 :: t14 :: t15 :: tq)) = fun q post intro _ -> // def...
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 7, "end_line": 767, "start_col": 0, "start_line": 759 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i0: Steel.ST.GenElim1.Base.gen_elim_i -> t1: Type -> t2: Type -> t3: Type -> t4: Type -> t5: Type -> t6: Type -> t7: Type -> t8: Type -> t9: Type -> t10: Type -> t11: Type -> t12: Type -> t13: Type -> t14: Type -> t15: Type -> tq: Prims.list Type ->...
Prims.Tot
[ "total" ]
[]
[ "Steel.ST.GenElim1.Base.gen_elim_i", "Prims.list", "Steel.ST.GenElim1.Base.curried_function_type", "Prims.Cons", "FStar.Universe.raise_t", "Prims.unit", "Steel.Effect.Common.vprop", "Prims.prop", "Steel.ST.GenElim1.vprop_rewrite", "Steel.ST.GenElim1.Base.compute_gen_elim_p", "Steel.ST.GenElim1.g...
[]
false
false
false
false
false
let compute_gen_elim_nondep_correct_default (i0: gen_elim_i) (t1 t2 t3 t4 t5 t6 t7 t8 t9 t10 t11 t12 t13 t14 t15: Type) (tq: list Type) : Tot (compute_gen_elim_nondep_correct_t i0 (t1 :: t2 :: t3 :: t4 :: t5 :: t6 :: t7 :: t8 :: t9 :: t10 :: t11 :: t12 :: t13 :: t14...
fun q post intro _ -> let res:compute_gen_elim_nondep_a' (t1 :: t2 :: t3 :: t4 :: t5 :: t6 :: t7 :: t8 :: t9 :: t10 :: t11 :: t12 :: t13 :: t14 :: t15 :: tq) = (U.raise_val ()) in rewrite_with_trefl (compute_gen_elim_p i0) (compute_uncurry _ (fun _ -> compute_gen_elim_p' i0) _ _ res (U.raise_val (...
false
Hacl.Spec.Bignum.Comparison.fst
Hacl.Spec.Bignum.Comparison.bn_lt_mask_t
val bn_lt_mask_t : t: Hacl.Spec.Bignum.Definitions.limb_t -> len: Lib.IntTypes.size_nat -> i: Prims.nat{i <= len} -> Type0
let bn_lt_mask_t (t:limb_t) (len:size_nat) (i:nat{i <= len}) = limb t
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Comparison.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 69, "end_line": 72, "start_col": 0, "start_line": 72 }
module Hacl.Spec.Bignum.Comparison open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Base open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum.Lib module BSeq = Lib.ByteSequence module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// /// Bignum comparison ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Spec.Bign...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Lib", "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
t: Hacl.Spec.Bignum.Definitions.limb_t -> len: Lib.IntTypes.size_nat -> i: Prims.nat{i <= len} -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Hacl.Spec.Bignum.Definitions.limb" ]
[]
false
false
false
false
true
let bn_lt_mask_t (t: limb_t) (len: size_nat) (i: nat{i <= len}) =
limb t
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.tele_star_correct_ret_r
val tele_star_correct_ret_r (i1: gen_elim_tele{~(TRet? i1)}) (v2: vprop) (p2: prop) : Tot (vprop_rewrite ((tele_p i1) `star` (tele_p (TRet v2 p2))) (tele_p (i1 `tele_star` (TRet v2 p2))) )
val tele_star_correct_ret_r (i1: gen_elim_tele{~(TRet? i1)}) (v2: vprop) (p2: prop) : Tot (vprop_rewrite ((tele_p i1) `star` (tele_p (TRet v2 p2))) (tele_p (i1 `tele_star` (TRet v2 p2))) )
let tele_star_correct_ret_r (i1: gen_elim_tele { ~ (TRet? i1) }) (v2: vprop) (p2: prop) : Tot (vprop_rewrite (tele_p i1 `star` tele_p (TRet v2 p2)) (tele_p (i1 `tele_star` TRet v2 p2))) = fun _ -> rewrite (tele_p (TRet v2 p2)) (v2 `star` pure p2); tele_star_vprop_correct i1 v2 p2 _; rewrite (tele_p _) (tele_p (...
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 57, "end_line": 261, "start_col": 0, "start_line": 255 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i1: Steel.ST.GenElim1.Base.gen_elim_tele{~(TRet? i1)} -> v2: Steel.Effect.Common.vprop -> p2: Prims.prop -> Steel.ST.GenElim1.vprop_rewrite (Steel.Effect.Common.star (Steel.ST.GenElim1.tele_p i1) (Steel.ST.GenElim1.tele_p (Steel.ST.GenElim1.Base.TRet v2 p2))) (Steel.ST.GenElim1.tele_p (St...
Prims.Tot
[ "total" ]
[]
[ "Steel.ST.GenElim1.Base.gen_elim_tele", "Prims.l_not", "Prims.b2t", "Steel.ST.GenElim1.Base.uu___is_TRet", "Steel.Effect.Common.vprop", "Prims.prop", "Steel.Memory.inames", "Steel.ST.Util.rewrite", "Steel.ST.GenElim1.tele_p", "Steel.ST.GenElim1.Base.tele_star_vprop", "Steel.ST.GenElim1.Base.tele...
[]
false
false
false
false
false
let tele_star_correct_ret_r (i1: gen_elim_tele{~(TRet? i1)}) (v2: vprop) (p2: prop) : Tot (vprop_rewrite ((tele_p i1) `star` (tele_p (TRet v2 p2))) (tele_p (i1 `tele_star` (TRet v2 p2))) ) =
fun _ -> rewrite (tele_p (TRet v2 p2)) (v2 `star` (pure p2)); tele_star_vprop_correct i1 v2 p2 _; rewrite (tele_p _) (tele_p (i1 `tele_star` (TRet v2 p2)))
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.compute_gen_elim_nondep_correct
val compute_gen_elim_nondep_correct (i0: gen_elim_i) (i: gen_elim_nondep_t) (sq: squash (check_gen_elim_nondep_sem i0 i)) : Tot (gen_elim_f (compute_gen_elim_p i0) (Ghost.erased (compute_gen_elim_nondep_a i0 i)) (compute_gen_elim_nondep_q i0 i) (compute_gen_elim_nondep_...
val compute_gen_elim_nondep_correct (i0: gen_elim_i) (i: gen_elim_nondep_t) (sq: squash (check_gen_elim_nondep_sem i0 i)) : Tot (gen_elim_f (compute_gen_elim_p i0) (Ghost.erased (compute_gen_elim_nondep_a i0 i)) (compute_gen_elim_nondep_q i0 i) (compute_gen_elim_nondep_...
let compute_gen_elim_nondep_correct (i0: gen_elim_i) (i: gen_elim_nondep_t) (sq: squash (check_gen_elim_nondep_sem i0 i)) : Tot (gen_elim_f (compute_gen_elim_p i0) (Ghost.erased (compute_gen_elim_nondep_a i0 i)) (compute_gen_elim_nondep_q i0 i) (compute_gen_elim_nondep_post i0 i) ) = fun _ -> ...
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 827, "start_col": 0, "start_line": 813 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i0: Steel.ST.GenElim1.Base.gen_elim_i -> i: Steel.ST.GenElim1.Base.gen_elim_nondep_t -> sq: Prims.squash (Steel.ST.GenElim1.Base.check_gen_elim_nondep_sem i0 i) -> Steel.ST.GenElim1.gen_elim_f (Steel.ST.GenElim1.Base.compute_gen_elim_p i0) (FStar.Ghost.erased (Steel.ST.GenElim1.Base.compute_gen_eli...
Prims.Tot
[ "total" ]
[]
[ "Steel.ST.GenElim1.Base.gen_elim_i", "Steel.ST.GenElim1.Base.gen_elim_nondep_t", "Prims.squash", "Steel.ST.GenElim1.Base.check_gen_elim_nondep_sem", "Steel.Memory.inames", "FStar.Ghost.erased", "Steel.ST.GenElim1.Base.compute_gen_elim_nondep_a", "Prims.unit", "Steel.ST.Util.rewrite", "Steel.ST.Gen...
[]
false
false
false
false
false
let compute_gen_elim_nondep_correct (i0: gen_elim_i) (i: gen_elim_nondep_t) (sq: squash (check_gen_elim_nondep_sem i0 i)) : Tot (gen_elim_f (compute_gen_elim_p i0) (Ghost.erased (compute_gen_elim_nondep_a i0 i)) (compute_gen_elim_nondep_q i0 i) (compute_gen_elim_nondep_...
fun _ -> let res0 = compute_gen_elim_nondep_correct_0 i0 i sq _ in let res = Ghost.hide res0 in rewrite (compute_gen_elim_nondep_q0 i0 i res0) (compute_gen_elim_nondep_q i0 i res); res
false
Hacl.Spec.Bignum.Comparison.fst
Hacl.Spec.Bignum.Comparison.bn_eq_mask
val bn_eq_mask: #t:limb_t -> #len:size_nat -> a:lbignum t len -> b:lbignum t len -> limb t
val bn_eq_mask: #t:limb_t -> #len:size_nat -> a:lbignum t len -> b:lbignum t len -> limb t
let bn_eq_mask #t #len a b = BSeq.seq_eq_mask a b len
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Comparison.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 26, "end_line": 40, "start_col": 0, "start_line": 39 }
module Hacl.Spec.Bignum.Comparison open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Base open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum.Lib module BSeq = Lib.ByteSequence module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// /// Bignum comparison ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Spec.Bign...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Lib", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t len -> b: Hacl.Spec.Bignum.Definitions.lbignum t len -> Hacl.Spec.Bignum.Definitions.limb t
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Lib.ByteSequence.seq_eq_mask", "Hacl.Spec.Bignum.Definitions.limb" ]
[]
false
false
false
false
false
let bn_eq_mask #t #len a b =
BSeq.seq_eq_mask a b len
false
Hacl.Spec.Bignum.Comparison.fst
Hacl.Spec.Bignum.Comparison.bn_lt_mask
val bn_lt_mask: #t:limb_t -> #len:size_nat -> a:lbignum t len -> b:lbignum t len -> limb t
val bn_lt_mask: #t:limb_t -> #len:size_nat -> a:lbignum t len -> b:lbignum t len -> limb t
let bn_lt_mask #t #len a b = Loops.repeat_gen len (bn_lt_mask_t t len) (bn_lt_mask_f a b) (uint #t 0)
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Comparison.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 74, "end_line": 76, "start_col": 0, "start_line": 75 }
module Hacl.Spec.Bignum.Comparison open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Base open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum.Lib module BSeq = Lib.ByteSequence module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// /// Bignum comparison ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Spec.Bign...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Lib", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t len -> b: Hacl.Spec.Bignum.Definitions.lbignum t len -> Hacl.Spec.Bignum.Definitions.limb t
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Lib.LoopCombinators.repeat_gen", "Hacl.Spec.Bignum.Comparison.bn_lt_mask_t", "Hacl.Spec.Bignum.Comparison.bn_lt_mask_f", "Lib.IntTypes.uint", "Lib.IntTypes.SEC", "Hacl.Spec.Bignum.Definitions.lim...
[]
false
false
false
false
false
let bn_lt_mask #t #len a b =
Loops.repeat_gen len (bn_lt_mask_t t len) (bn_lt_mask_f a b) (uint #t 0)
false
Hacl.Spec.Bignum.Comparison.fst
Hacl.Spec.Bignum.Comparison.bn_lt_mask_f
val bn_lt_mask_f: #t:limb_t -> #len:size_nat -> a:lbignum t len -> b:lbignum t len -> i:nat{i < len} -> acc:limb t -> limb t
val bn_lt_mask_f: #t:limb_t -> #len:size_nat -> a:lbignum t len -> b:lbignum t len -> i:nat{i < len} -> acc:limb t -> limb t
let bn_lt_mask_f #t #len a b i acc = let beq = eq_mask a.[i] b.[i] in let blt = lt_mask a.[i] b.[i] in mask_select beq acc (mask_select blt (ones t SEC) (zeros t SEC))
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Comparison.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 66, "end_line": 70, "start_col": 0, "start_line": 67 }
module Hacl.Spec.Bignum.Comparison open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Base open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum.Lib module BSeq = Lib.ByteSequence module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// /// Bignum comparison ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Spec.Bign...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Lib", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t len -> b: Hacl.Spec.Bignum.Definitions.lbignum t len -> i: Prims.nat{i < len} -> acc: Hacl.Spec.Bignum.Definitions.limb t -> Hacl.Spec.Bignum.Definitions.limb t
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Hacl.Spec.Bignum.Definitions.limb", "Hacl.Spec.Bignum.Base.mask_select", "Lib.IntTypes.ones", "Lib.IntTypes.SEC", "Lib.IntTypes.zeros", "Lib.I...
[]
false
false
false
false
false
let bn_lt_mask_f #t #len a b i acc =
let beq = eq_mask a.[ i ] b.[ i ] in let blt = lt_mask a.[ i ] b.[ i ] in mask_select beq acc (mask_select blt (ones t SEC) (zeros t SEC))
false
Hacl.Spec.Bignum.Comparison.fst
Hacl.Spec.Bignum.Comparison.bn_is_zero_mask_lemma
val bn_is_zero_mask_lemma: #t:limb_t -> #len:size_nat -> a:lbignum t len -> Lemma (mask_values (bn_is_zero_mask a) /\ (if v (bn_is_zero_mask a) = 0 then bn_v a <> 0 else bn_v a = 0))
val bn_is_zero_mask_lemma: #t:limb_t -> #len:size_nat -> a:lbignum t len -> Lemma (mask_values (bn_is_zero_mask a) /\ (if v (bn_is_zero_mask a) = 0 then bn_v a <> 0 else bn_v a = 0))
let bn_is_zero_mask_lemma #t #len b = let bn_zero = create len (uint #t 0) in bn_eval_zeroes #t len len; bn_eq_mask_lemma b bn_zero
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Comparison.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 28, "end_line": 63, "start_col": 0, "start_line": 60 }
module Hacl.Spec.Bignum.Comparison open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Base open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum.Lib module BSeq = Lib.ByteSequence module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// /// Bignum comparison ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Spec.Bign...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Lib", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t len -> FStar.Pervasives.Lemma (ensures Hacl.Spec.Bignum.Base.mask_values (Hacl.Spec.Bignum.Comparison.bn_is_zero_mask a) /\ (match Lib.IntTypes.v (Hacl.Spec.Bignum.Comparison.bn_is_zero_mask a) = 0 with | true -> Hacl.Spec.Bignum.Definitions.bn_v a <> ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Comparison.bn_eq_mask_lemma", "Prims.unit", "Hacl.Spec.Bignum.Definitions.bn_eval_zeroes", "Lib.Sequence.lseq", "Hacl.Spec.Bignum.Definitions.limb", "Prims.l_and", "Prims.eq2",...
[]
true
false
true
false
false
let bn_is_zero_mask_lemma #t #len b =
let bn_zero = create len (uint #t 0) in bn_eval_zeroes #t len len; bn_eq_mask_lemma b bn_zero
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.tele_star_correct_ret_l
val tele_star_correct_ret_l (v1: vprop) (p1: prop) (i2: gen_elim_tele) : Tot (vprop_rewrite ((tele_p (TRet v1 p1)) `star` (tele_p i2)) (tele_p ((TRet v1 p1) `tele_star` i2)) )
val tele_star_correct_ret_l (v1: vprop) (p1: prop) (i2: gen_elim_tele) : Tot (vprop_rewrite ((tele_p (TRet v1 p1)) `star` (tele_p i2)) (tele_p ((TRet v1 p1) `tele_star` i2)) )
let tele_star_correct_ret_l (v1: vprop) (p1: prop) (i2: gen_elim_tele) : Tot (vprop_rewrite (tele_p (TRet v1 p1) `star` tele_p i2) (tele_p (TRet v1 p1 `tele_star` i2))) = fun _ -> rewrite (tele_p (TRet v1 p1)) (v1 `star` pure p1); tele_star_vprop_correct i2 v1 p1 _; rewrite (tele_p _) (tele_p _)
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 31, "end_line": 253, "start_col": 0, "start_line": 247 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
v1: Steel.Effect.Common.vprop -> p1: Prims.prop -> i2: Steel.ST.GenElim1.Base.gen_elim_tele -> Steel.ST.GenElim1.vprop_rewrite (Steel.Effect.Common.star (Steel.ST.GenElim1.tele_p (Steel.ST.GenElim1.Base.TRet v1 p1)) (Steel.ST.GenElim1.tele_p i2)) (Steel.ST.GenElim1.tele_p (Steel.ST.G...
Prims.Tot
[ "total" ]
[]
[ "Steel.Effect.Common.vprop", "Prims.prop", "Steel.ST.GenElim1.Base.gen_elim_tele", "Steel.Memory.inames", "Steel.ST.Util.rewrite", "Steel.ST.GenElim1.tele_p", "Steel.ST.GenElim1.Base.tele_star_vprop", "Steel.ST.GenElim1.Base.tele_star", "Steel.ST.GenElim1.Base.TRet", "Prims.unit", "Steel.ST.GenE...
[]
false
false
false
false
false
let tele_star_correct_ret_l (v1: vprop) (p1: prop) (i2: gen_elim_tele) : Tot (vprop_rewrite ((tele_p (TRet v1 p1)) `star` (tele_p i2)) (tele_p ((TRet v1 p1) `tele_star` i2)) ) =
fun _ -> rewrite (tele_p (TRet v1 p1)) (v1 `star` (pure p1)); tele_star_vprop_correct i2 v1 p1 _; rewrite (tele_p _) (tele_p _)
false
Hacl.Spec.Bignum.Comparison.fst
Hacl.Spec.Bignum.Comparison.bn_is_zero_mask
val bn_is_zero_mask: #t:limb_t -> #len:size_nat -> a:lbignum t len -> limb t
val bn_is_zero_mask: #t:limb_t -> #len:size_nat -> a:lbignum t len -> limb t
let bn_is_zero_mask #t #len b = let bn_zero = create len (uint #t 0) in bn_eq_mask b bn_zero
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Comparison.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 55, "start_col": 0, "start_line": 53 }
module Hacl.Spec.Bignum.Comparison open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Base open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum.Lib module BSeq = Lib.ByteSequence module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// /// Bignum comparison ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Spec.Bign...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Lib", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t len -> Hacl.Spec.Bignum.Definitions.limb t
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Comparison.bn_eq_mask", "Lib.Sequence.lseq", "Hacl.Spec.Bignum.Definitions.limb", "Prims.l_and", "Prims.eq2", "FStar.Seq.Base.seq", "Lib.Sequence.to_seq", "FStar.Seq.Base.cre...
[]
false
false
false
false
false
let bn_is_zero_mask #t #len b =
let bn_zero = create len (uint #t 0) in bn_eq_mask b bn_zero
false
Vale.AES.X64.AES128.fsti
Vale.AES.X64.AES128.va_wp_AES128EncryptBlock
val va_wp_AES128EncryptBlock (input: quad32) (key: (seq nat32)) (round_keys: (seq quad32)) (keys_buffer: buffer128) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
val va_wp_AES128EncryptBlock (input: quad32) (key: (seq nat32)) (round_keys: (seq quad32)) (keys_buffer: buffer128) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
let va_wp_AES128EncryptBlock (input:quad32) (key:(seq nat32)) (round_keys:(seq quad32)) (keys_buffer:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (aesni_enabled /\ sse_enabled) /\ Vale.AES.AES_s.is_aes_key_LE AES_128 key /\ FStar.Seq.Base.length #quad32 round_keys...
{ "file_name": "obj/Vale.AES.X64.AES128.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 73, "end_line": 149, "start_col": 0, "start_line": 137 }
module Vale.AES.X64.AES128 open Vale.Def.Opaque_s open Vale.Def.Types_s open FStar.Seq open Vale.AES.AES_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.X64.State open Vale.X64.Decls open Vale.X64.InsBasic open Vale.X64.InsMem open Vale.X64.InsVector open Vale.X64.InsAes open Vale.X64.QuickCode open Vale.X64.Q...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.InsVector.fsti.checked", "Vale.X64.InsMem.fsti.checked", "Vale.X64...
[ { "abbrev": false, "full_module": "Vale.X64.CPU_Features_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.AES_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
input: Vale.X64.Decls.quad32 -> key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 -> round_keys: FStar.Seq.Base.seq Vale.X64.Decls.quad32 -> keys_buffer: Vale.X64.Memory.buffer128 -> va_s0: Vale.X64.Decls.va_state -> va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0) -> Type0
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Decls.quad32", "FStar.Seq.Base.seq", "Vale.X64.Memory.nat32", "Vale.X64.Memory.buffer128", "Vale.X64.Decls.va_state", "Prims.unit", "Prims.l_and", "Prims.b2t", "Vale.X64.Decls.va_get_ok", "Vale.X64.CPU_Features_s.aesni_enabled", "Vale.X64.CPU_Features_s.sse_enabled", "Vale.AES.AES_s....
[]
false
false
false
true
true
let va_wp_AES128EncryptBlock (input: quad32) (key: (seq nat32)) (round_keys: (seq quad32)) (keys_buffer: buffer128) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (aesni_enabled /\ sse_enabled) /\ Vale.AES.AES_s.is_aes_key_LE AES_128 key /\ FStar.Seq.Base.length #quad32 round_keys == 11 /\ round_keys == Vale.AES.AES_s.key_to_round_keys_LE AES_128 key /\ va_get_xmm 0 va_s0 == input /\ va_get_reg64 rR8 va_s0 == Vale.X64.Memory.buffer_addr #Vale.X64.Memo...
false
Hacl.Spec.Bignum.Comparison.fst
Hacl.Spec.Bignum.Comparison.bn_is_odd_lemma
val bn_is_odd_lemma: #t:limb_t -> #len:size_pos -> a:lbignum t len -> Lemma (v (bn_is_odd a) == (bn_v a % 2))
val bn_is_odd_lemma: #t:limb_t -> #len:size_pos -> a:lbignum t len -> Lemma (v (bn_is_odd a) == (bn_v a % 2))
let bn_is_odd_lemma #t #len b = let pbits = bits t in bn_eval_split_i b 1; bn_eval1 (slice b 0 1); assert (bn_v b % 2 == (v b.[0] + pow2 pbits * bn_v (slice b 1 len)) % 2); Math.Lemmas.pow2_plus 1 (pbits - 1); Math.Lemmas.modulo_addition_lemma (v b.[0]) 2 (pow2 (pbits - 1) * bn_v (slice b 1 len)); assert ...
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Comparison.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 57, "end_line": 35, "start_col": 0, "start_line": 26 }
module Hacl.Spec.Bignum.Comparison open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Base open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum.Lib module BSeq = Lib.ByteSequence module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// /// Bignum comparison ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Spec.Bign...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Lib", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t len -> FStar.Pervasives.Lemma (ensures Lib.IntTypes.v (Hacl.Spec.Bignum.Comparison.bn_is_odd a) == Hacl.Spec.Bignum.Definitions.bn_v a % 2)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_pos", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims._assert", "Prims.eq2", "Lib.IntTypes.range_t", "Lib.IntTypes.v", "Lib.IntTypes.SEC", "Lib.IntTypes.mod_mask", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.uint", "Prims.unit", "Lib.Int...
[]
true
false
true
false
false
let bn_is_odd_lemma #t #len b =
let pbits = bits t in bn_eval_split_i b 1; bn_eval1 (slice b 0 1); assert (bn_v b % 2 == (v b.[ 0 ] + pow2 pbits * bn_v (slice b 1 len)) % 2); Math.Lemmas.pow2_plus 1 (pbits - 1); Math.Lemmas.modulo_addition_lemma (v b.[ 0 ]) 2 (pow2 (pbits - 1) * bn_v (slice b 1 len)); assert (bn_v b % 2 == v b.[ 0 ] % 2); mod_mask_le...
false
Hacl.Spec.Bignum.Comparison.fst
Hacl.Spec.Bignum.Comparison.bn_is_odd
val bn_is_odd: #t:limb_t -> #len:size_pos -> a:lbignum t len -> limb t
val bn_is_odd: #t:limb_t -> #len:size_pos -> a:lbignum t len -> limb t
let bn_is_odd #t #len b = b.[0] &. uint #t 1
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Comparison.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 44, "end_line": 22, "start_col": 0, "start_line": 22 }
module Hacl.Spec.Bignum.Comparison open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Base open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum.Lib module BSeq = Lib.ByteSequence module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// /// Bignum comparison ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Spec.Bign...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Lib", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t len -> Hacl.Spec.Bignum.Definitions.limb t
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_pos", "Hacl.Spec.Bignum.Definitions.lbignum", "Lib.IntTypes.op_Amp_Dot", "Lib.IntTypes.SEC", "Lib.Sequence.op_String_Access", "Hacl.Spec.Bignum.Definitions.limb", "Lib.IntTypes.uint" ]
[]
false
false
false
false
false
let bn_is_odd #t #len b =
b.[ 0 ] &. uint #t 1
false
Hacl.Spec.Bignum.Comparison.fst
Hacl.Spec.Bignum.Comparison.bn_lt_mask_lemma
val bn_lt_mask_lemma: #t:limb_t -> #len:size_nat -> a:lbignum t len -> b:lbignum t len -> Lemma (mask_values (bn_lt_mask a b) /\ (if v (bn_lt_mask a b) = 0 then bn_v a >= bn_v b else bn_v a < bn_v b))
val bn_lt_mask_lemma: #t:limb_t -> #len:size_nat -> a:lbignum t len -> b:lbignum t len -> Lemma (mask_values (bn_lt_mask a b) /\ (if v (bn_lt_mask a b) = 0 then bn_v a >= bn_v b else bn_v a < bn_v b))
let bn_lt_mask_lemma #t #len a b = bn_lt_mask_lemma_loop a b len
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Comparison.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 31, "end_line": 153, "start_col": 0, "start_line": 152 }
module Hacl.Spec.Bignum.Comparison open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Base open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum.Lib module BSeq = Lib.ByteSequence module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// /// Bignum comparison ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Spec.Bign...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Lib", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t len -> b: Hacl.Spec.Bignum.Definitions.lbignum t len -> FStar.Pervasives.Lemma (ensures Hacl.Spec.Bignum.Base.mask_values (Hacl.Spec.Bignum.Comparison.bn_lt_mask a b) /\ (match Lib.IntTypes.v (Hacl.Spec.Bignum.Comparison.bn_lt_mask a b) = 0 with | true...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Hacl.Spec.Bignum.Comparison.bn_lt_mask_lemma_loop", "Prims.unit" ]
[]
true
false
true
false
false
let bn_lt_mask_lemma #t #len a b =
bn_lt_mask_lemma_loop a b len
false
Vale.AES.X64.AES128.fsti
Vale.AES.X64.AES128.va_wp_KeyExpansion128Stdcall
val va_wp_KeyExpansion128Stdcall (win: bool) (input_key_b output_key_expansion_b: buffer128) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
val va_wp_KeyExpansion128Stdcall (win: bool) (input_key_b output_key_expansion_b: buffer128) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
let va_wp_KeyExpansion128Stdcall (win:bool) (input_key_b:buffer128) (output_key_expansion_b:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (let (key_ptr:(va_int_range 0 18446744073709551615)) = va_if win (fun _ -> va_get_reg64 rRcx va_s0) (fun _ -> va_get_reg64 rRdi...
{ "file_name": "obj/Vale.AES.X64.AES128.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 96, "start_col": 0, "start_line": 62 }
module Vale.AES.X64.AES128 open Vale.Def.Opaque_s open Vale.Def.Types_s open FStar.Seq open Vale.AES.AES_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.X64.State open Vale.X64.Decls open Vale.X64.InsBasic open Vale.X64.InsMem open Vale.X64.InsVector open Vale.X64.InsAes open Vale.X64.QuickCode open Vale.X64.Q...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.InsVector.fsti.checked", "Vale.X64.InsMem.fsti.checked", "Vale.X64...
[ { "abbrev": false, "full_module": "Vale.X64.CPU_Features_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.AES_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
win: Prims.bool -> input_key_b: Vale.X64.Memory.buffer128 -> output_key_expansion_b: Vale.X64.Memory.buffer128 -> va_s0: Vale.X64.Decls.va_state -> va_k: (_: Vale.X64.Decls.va_state -> _: Prims.unit -> Type0) -> Type0
Prims.Tot
[ "total" ]
[]
[ "Prims.bool", "Vale.X64.Memory.buffer128", "Vale.X64.Decls.va_state", "Prims.unit", "Prims.l_and", "Prims.b2t", "Vale.X64.Decls.va_get_ok", "Vale.X64.CPU_Features_s.aesni_enabled", "Vale.X64.CPU_Features_s.avx_enabled", "Vale.X64.CPU_Features_s.sse_enabled", "Vale.X64.Decls.validSrcAddrs128", ...
[]
false
false
false
true
true
let va_wp_KeyExpansion128Stdcall (win: bool) (input_key_b output_key_expansion_b: buffer128) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (let key_ptr:(va_int_range 0 18446744073709551615) = va_if win (fun _ -> va_get_reg64 rRcx va_s0) (fun _ -> va_get_reg64 rRdi va_s0) in let key_expansion_ptr:(va_int_range 0 18446744073709551615) = va_if win (fun _ -> va_get_reg64 rRdx va_s0) (fun _ -> va_get_reg64 rRsi va_s0) ...
false
Hacl.Spec.Bignum.Comparison.fst
Hacl.Spec.Bignum.Comparison.bn_lt_pow2_mask
val bn_lt_pow2_mask: #t:limb_t -> #len:size_nat -> b:lbignum t len -> x:size_nat{x < bits t * len} -> limb t
val bn_lt_pow2_mask: #t:limb_t -> #len:size_nat -> b:lbignum t len -> x:size_nat{x < bits t * len} -> limb t
let bn_lt_pow2_mask #t #len b x = let b2 = create len (uint #t 0) in let b2 = bn_set_ith_bit b2 x in bn_lt_mask b b2
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Comparison.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 17, "end_line": 160, "start_col": 0, "start_line": 157 }
module Hacl.Spec.Bignum.Comparison open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Base open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum.Lib module BSeq = Lib.ByteSequence module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// /// Bignum comparison ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Spec.Bign...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Lib", "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
b: Hacl.Spec.Bignum.Definitions.lbignum t len -> x: Lib.IntTypes.size_nat{x < Lib.IntTypes.bits t * len} -> Hacl.Spec.Bignum.Definitions.limb t
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.b2t", "Prims.op_LessThan", "FStar.Mul.op_Star", "Lib.IntTypes.bits", "Hacl.Spec.Bignum.Comparison.bn_lt_mask", "Hacl.Spec.Bignum.Lib.bn_set_ith_bit", "Lib.Sequence.lseq", "Hacl.Spec.Big...
[]
false
false
false
false
false
let bn_lt_pow2_mask #t #len b x =
let b2 = create len (uint #t 0) in let b2 = bn_set_ith_bit b2 x in bn_lt_mask b b2
false
Hacl.Spec.Bignum.Comparison.fst
Hacl.Spec.Bignum.Comparison.bn_lt_pow2_mask_lemma
val bn_lt_pow2_mask_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> x:size_nat{x < bits t * len} -> Lemma (mask_values (bn_lt_pow2_mask b x) /\ (if v (bn_lt_pow2_mask b x) = 0 then bn_v b >= pow2 x else bn_v b < pow2 x))
val bn_lt_pow2_mask_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> x:size_nat{x < bits t * len} -> Lemma (mask_values (bn_lt_pow2_mask b x) /\ (if v (bn_lt_pow2_mask b x) = 0 then bn_v b >= pow2 x else bn_v b < pow2 x))
let bn_lt_pow2_mask_lemma #t #len b x = bn_eval_bound b len; assert (bn_v b < pow2 (bits t * len)); let b2 = create len (uint #t 0) in bn_eval_zeroes #t len len; assert (bn_v b2 = 0); //assert (bn_v b2 < pow2 x); let b2' = bn_set_ith_bit b2 x in bn_set_ith_bit_lemma b2 x; assert (bn_v b2' == pow2 x); ...
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Comparison.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 24, "end_line": 175, "start_col": 0, "start_line": 165 }
module Hacl.Spec.Bignum.Comparison open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Base open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum.Lib module BSeq = Lib.ByteSequence module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// /// Bignum comparison ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Spec.Bign...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Lib", "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
b: Hacl.Spec.Bignum.Definitions.lbignum t len -> x: Lib.IntTypes.size_nat{x < Lib.IntTypes.bits t * len} -> FStar.Pervasives.Lemma (ensures Hacl.Spec.Bignum.Base.mask_values (Hacl.Spec.Bignum.Comparison.bn_lt_pow2_mask b x) /\ (match Lib.IntTypes.v (Hacl.Spec.Bignum.Comparison.bn_lt_pow2_mask...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.b2t", "Prims.op_LessThan", "FStar.Mul.op_Star", "Lib.IntTypes.bits", "Hacl.Spec.Bignum.Comparison.bn_lt_mask_lemma", "Prims.unit", "Prims._assert", "Prims.eq2", "Prims.int", "Prims....
[]
true
false
true
false
false
let bn_lt_pow2_mask_lemma #t #len b x =
bn_eval_bound b len; assert (bn_v b < pow2 (bits t * len)); let b2 = create len (uint #t 0) in bn_eval_zeroes #t len len; assert (bn_v b2 = 0); let b2' = bn_set_ith_bit b2 x in bn_set_ith_bit_lemma b2 x; assert (bn_v b2' == pow2 x); bn_lt_mask_lemma b b2'
false
Hacl.Spec.Bignum.Comparison.fst
Hacl.Spec.Bignum.Comparison.bn_gt_pow2_mask
val bn_gt_pow2_mask: #t:limb_t -> #len:size_nat -> b:lbignum t len -> x:size_nat{x < bits t * len} -> limb t
val bn_gt_pow2_mask: #t:limb_t -> #len:size_nat -> b:lbignum t len -> x:size_nat{x < bits t * len} -> limb t
let bn_gt_pow2_mask #t #len b x = let b2 = create len (uint #t 0) in let b2 = bn_set_ith_bit b2 x in bn_lt_mask b2 b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Comparison.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 17, "end_line": 182, "start_col": 0, "start_line": 179 }
module Hacl.Spec.Bignum.Comparison open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Base open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum.Lib module BSeq = Lib.ByteSequence module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// /// Bignum comparison ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Spec.Bign...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Lib", "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
b: Hacl.Spec.Bignum.Definitions.lbignum t len -> x: Lib.IntTypes.size_nat{x < Lib.IntTypes.bits t * len} -> Hacl.Spec.Bignum.Definitions.limb t
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.b2t", "Prims.op_LessThan", "FStar.Mul.op_Star", "Lib.IntTypes.bits", "Hacl.Spec.Bignum.Comparison.bn_lt_mask", "Hacl.Spec.Bignum.Lib.bn_set_ith_bit", "Lib.Sequence.lseq", "Hacl.Spec.Big...
[]
false
false
false
false
false
let bn_gt_pow2_mask #t #len b x =
let b2 = create len (uint #t 0) in let b2 = bn_set_ith_bit b2 x in bn_lt_mask b2 b
false
Vale.AES.X64.AES128.fsti
Vale.AES.X64.AES128.va_quick_KeyExpansion128Stdcall
val va_quick_KeyExpansion128Stdcall (win: bool) (input_key_b output_key_expansion_b: buffer128) : (va_quickCode unit (va_code_KeyExpansion128Stdcall win))
val va_quick_KeyExpansion128Stdcall (win: bool) (input_key_b output_key_expansion_b: buffer128) : (va_quickCode unit (va_code_KeyExpansion128Stdcall win))
let va_quick_KeyExpansion128Stdcall (win:bool) (input_key_b:buffer128) (output_key_expansion_b:buffer128) : (va_quickCode unit (va_code_KeyExpansion128Stdcall win)) = (va_QProc (va_code_KeyExpansion128Stdcall win) ([va_Mod_flags; va_Mod_xmm 3; va_Mod_xmm 2; va_Mod_xmm 1; va_Mod_mem_heaplet 1; va_Mod_reg64 rRdx;...
{ "file_name": "obj/Vale.AES.X64.AES128.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 79, "end_line": 112, "start_col": 0, "start_line": 107 }
module Vale.AES.X64.AES128 open Vale.Def.Opaque_s open Vale.Def.Types_s open FStar.Seq open Vale.AES.AES_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.X64.State open Vale.X64.Decls open Vale.X64.InsBasic open Vale.X64.InsMem open Vale.X64.InsVector open Vale.X64.InsAes open Vale.X64.QuickCode open Vale.X64.Q...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.InsVector.fsti.checked", "Vale.X64.InsMem.fsti.checked", "Vale.X64...
[ { "abbrev": false, "full_module": "Vale.X64.CPU_Features_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.AES_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
win: Prims.bool -> input_key_b: Vale.X64.Memory.buffer128 -> output_key_expansion_b: Vale.X64.Memory.buffer128 -> Vale.X64.QuickCode.va_quickCode Prims.unit (Vale.AES.X64.AES128.va_code_KeyExpansion128Stdcall win)
Prims.Tot
[ "total" ]
[]
[ "Prims.bool", "Vale.X64.Memory.buffer128", "Vale.X64.QuickCode.va_QProc", "Prims.unit", "Vale.AES.X64.AES128.va_code_KeyExpansion128Stdcall", "Prims.Cons", "Vale.X64.QuickCode.mod_t", "Vale.X64.QuickCode.va_Mod_flags", "Vale.X64.QuickCode.va_Mod_xmm", "Vale.X64.QuickCode.va_Mod_mem_heaplet", "Va...
[]
false
false
false
false
false
let va_quick_KeyExpansion128Stdcall (win: bool) (input_key_b output_key_expansion_b: buffer128) : (va_quickCode unit (va_code_KeyExpansion128Stdcall win)) =
(va_QProc (va_code_KeyExpansion128Stdcall win) ([ va_Mod_flags; va_Mod_xmm 3; va_Mod_xmm 2; va_Mod_xmm 1; va_Mod_mem_heaplet 1; va_Mod_reg64 rRdx; va_Mod_mem ]) (va_wp_KeyExpansion128Stdcall win input_key_b output_key_expansion_b) (va_wpProof_Key...
false
Vale.AES.X64.AES128.fsti
Vale.AES.X64.AES128.va_quick_AES128EncryptBlockStdcall
val va_quick_AES128EncryptBlockStdcall (win: bool) (input: quad32) (key: (seq nat32)) (input_buffer output_buffer keys_buffer: buffer128) : (va_quickCode unit (va_code_AES128EncryptBlockStdcall win))
val va_quick_AES128EncryptBlockStdcall (win: bool) (input: quad32) (key: (seq nat32)) (input_buffer output_buffer keys_buffer: buffer128) : (va_quickCode unit (va_code_AES128EncryptBlockStdcall win))
let va_quick_AES128EncryptBlockStdcall (win:bool) (input:quad32) (key:(seq nat32)) (input_buffer:buffer128) (output_buffer:buffer128) (keys_buffer:buffer128) : (va_quickCode unit (va_code_AES128EncryptBlockStdcall win)) = (va_QProc (va_code_AES128EncryptBlockStdcall win) ([va_Mod_flags; va_Mod_xmm 2; va_Mod_xmm 0...
{ "file_name": "obj/Vale.AES.X64.AES128.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 44, "end_line": 254, "start_col": 0, "start_line": 248 }
module Vale.AES.X64.AES128 open Vale.Def.Opaque_s open Vale.Def.Types_s open FStar.Seq open Vale.AES.AES_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.X64.State open Vale.X64.Decls open Vale.X64.InsBasic open Vale.X64.InsMem open Vale.X64.InsVector open Vale.X64.InsAes open Vale.X64.QuickCode open Vale.X64.Q...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.InsVector.fsti.checked", "Vale.X64.InsMem.fsti.checked", "Vale.X64...
[ { "abbrev": false, "full_module": "Vale.X64.CPU_Features_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.AES_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
win: Prims.bool -> input: Vale.X64.Decls.quad32 -> key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 -> input_buffer: Vale.X64.Memory.buffer128 -> output_buffer: Vale.X64.Memory.buffer128 -> keys_buffer: Vale.X64.Memory.buffer128 -> Vale.X64.QuickCode.va_quickCode Prims.unit (Vale.AES.X64.A...
Prims.Tot
[ "total" ]
[]
[ "Prims.bool", "Vale.X64.Decls.quad32", "FStar.Seq.Base.seq", "Vale.X64.Memory.nat32", "Vale.X64.Memory.buffer128", "Vale.X64.QuickCode.va_QProc", "Prims.unit", "Vale.AES.X64.AES128.va_code_AES128EncryptBlockStdcall", "Prims.Cons", "Vale.X64.QuickCode.mod_t", "Vale.X64.QuickCode.va_Mod_flags", ...
[]
false
false
false
false
false
let va_quick_AES128EncryptBlockStdcall (win: bool) (input: quad32) (key: (seq nat32)) (input_buffer output_buffer keys_buffer: buffer128) : (va_quickCode unit (va_code_AES128EncryptBlockStdcall win)) =
(va_QProc (va_code_AES128EncryptBlockStdcall win) ([va_Mod_flags; va_Mod_xmm 2; va_Mod_xmm 0; va_Mod_mem_heaplet 1; va_Mod_reg64 rR8; va_Mod_mem]) (va_wp_AES128EncryptBlockStdcall win input key input_buffer output_buffer keys_buffer) (va_wpProof_AES128EncryptBlockStdcall win input key input_buffer output_bu...
false
Vale.AES.X64.AES128.fsti
Vale.AES.X64.AES128.va_quick_AES128EncryptBlock
val va_quick_AES128EncryptBlock (input: quad32) (key: (seq nat32)) (round_keys: (seq quad32)) (keys_buffer: buffer128) : (va_quickCode unit (va_code_AES128EncryptBlock ()))
val va_quick_AES128EncryptBlock (input: quad32) (key: (seq nat32)) (round_keys: (seq quad32)) (keys_buffer: buffer128) : (va_quickCode unit (va_code_AES128EncryptBlock ()))
let va_quick_AES128EncryptBlock (input:quad32) (key:(seq nat32)) (round_keys:(seq quad32)) (keys_buffer:buffer128) : (va_quickCode unit (va_code_AES128EncryptBlock ())) = (va_QProc (va_code_AES128EncryptBlock ()) ([va_Mod_flags; va_Mod_xmm 2; va_Mod_xmm 0]) (va_wp_AES128EncryptBlock input key round_keys keys_bu...
{ "file_name": "obj/Vale.AES.X64.AES128.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 163, "start_col": 0, "start_line": 159 }
module Vale.AES.X64.AES128 open Vale.Def.Opaque_s open Vale.Def.Types_s open FStar.Seq open Vale.AES.AES_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.X64.State open Vale.X64.Decls open Vale.X64.InsBasic open Vale.X64.InsMem open Vale.X64.InsVector open Vale.X64.InsAes open Vale.X64.QuickCode open Vale.X64.Q...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.InsVector.fsti.checked", "Vale.X64.InsMem.fsti.checked", "Vale.X64...
[ { "abbrev": false, "full_module": "Vale.X64.CPU_Features_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.AES_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
input: Vale.X64.Decls.quad32 -> key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 -> round_keys: FStar.Seq.Base.seq Vale.X64.Decls.quad32 -> keys_buffer: Vale.X64.Memory.buffer128 -> Vale.X64.QuickCode.va_quickCode Prims.unit (Vale.AES.X64.AES128.va_code_AES128EncryptBlock ())
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Decls.quad32", "FStar.Seq.Base.seq", "Vale.X64.Memory.nat32", "Vale.X64.Memory.buffer128", "Vale.X64.QuickCode.va_QProc", "Prims.unit", "Vale.AES.X64.AES128.va_code_AES128EncryptBlock", "Prims.Cons", "Vale.X64.QuickCode.mod_t", "Vale.X64.QuickCode.va_Mod_flags", "Vale.X64.QuickCode.va_...
[]
false
false
false
false
false
let va_quick_AES128EncryptBlock (input: quad32) (key: (seq nat32)) (round_keys: (seq quad32)) (keys_buffer: buffer128) : (va_quickCode unit (va_code_AES128EncryptBlock ())) =
(va_QProc (va_code_AES128EncryptBlock ()) ([va_Mod_flags; va_Mod_xmm 2; va_Mod_xmm 0]) (va_wp_AES128EncryptBlock input key round_keys keys_buffer) (va_wpProof_AES128EncryptBlock input key round_keys keys_buffer))
false
Vale.AES.X64.AES128.fsti
Vale.AES.X64.AES128.va_wp_AES128EncryptBlockStdcall
val va_wp_AES128EncryptBlockStdcall (win: bool) (input: quad32) (key: (seq nat32)) (input_buffer output_buffer keys_buffer: buffer128) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
val va_wp_AES128EncryptBlockStdcall (win: bool) (input: quad32) (key: (seq nat32)) (input_buffer output_buffer keys_buffer: buffer128) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0
let va_wp_AES128EncryptBlockStdcall (win:bool) (input:quad32) (key:(seq nat32)) (input_buffer:buffer128) (output_buffer:buffer128) (keys_buffer:buffer128) (va_s0:va_state) (va_k:(va_state -> unit -> Type0)) : Type0 = (va_get_ok va_s0 /\ (let (output_ptr:(va_int_range 0 18446744073709551615)) = va_if win (fun _ ->...
{ "file_name": "obj/Vale.AES.X64.AES128.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 74, "end_line": 236, "start_col": 0, "start_line": 205 }
module Vale.AES.X64.AES128 open Vale.Def.Opaque_s open Vale.Def.Types_s open FStar.Seq open Vale.AES.AES_s open Vale.X64.Machine_s open Vale.X64.Memory open Vale.X64.State open Vale.X64.Decls open Vale.X64.InsBasic open Vale.X64.InsMem open Vale.X64.InsVector open Vale.X64.InsAes open Vale.X64.QuickCode open Vale.X64.Q...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.QuickCodes.fsti.checked", "Vale.X64.QuickCode.fst.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.InsVector.fsti.checked", "Vale.X64.InsMem.fsti.checked", "Vale.X64...
[ { "abbrev": false, "full_module": "Vale.X64.CPU_Features_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.AES.AES_helpers", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
win: Prims.bool -> input: Vale.X64.Decls.quad32 -> key: FStar.Seq.Base.seq Vale.X64.Memory.nat32 -> input_buffer: Vale.X64.Memory.buffer128 -> output_buffer: Vale.X64.Memory.buffer128 -> keys_buffer: Vale.X64.Memory.buffer128 -> va_s0: Vale.X64.Decls.va_state -> va_k: (_: Vale.X64.Decls...
Prims.Tot
[ "total" ]
[]
[ "Prims.bool", "Vale.X64.Decls.quad32", "FStar.Seq.Base.seq", "Vale.X64.Memory.nat32", "Vale.X64.Memory.buffer128", "Vale.X64.Decls.va_state", "Prims.unit", "Prims.l_and", "Prims.b2t", "Vale.X64.Decls.va_get_ok", "Vale.X64.CPU_Features_s.aesni_enabled", "Vale.X64.CPU_Features_s.sse_enabled", ...
[]
false
false
false
true
true
let va_wp_AES128EncryptBlockStdcall (win: bool) (input: quad32) (key: (seq nat32)) (input_buffer output_buffer keys_buffer: buffer128) (va_s0: va_state) (va_k: (va_state -> unit -> Type0)) : Type0 =
(va_get_ok va_s0 /\ (let output_ptr:(va_int_range 0 18446744073709551615) = va_if win (fun _ -> va_get_reg64 rRcx va_s0) (fun _ -> va_get_reg64 rRdi va_s0) in let input_ptr:(va_int_range 0 18446744073709551615) = va_if win (fun _ -> va_get_reg64 rRdx va_s0) (fun _ -> va_get_reg64 rRsi va_s0) i...
false
Hacl.Spec.Bignum.Comparison.fst
Hacl.Spec.Bignum.Comparison.bn_lt_mask_lemma_step
val bn_lt_mask_lemma_step: #t:limb_t -> #len:size_nat -> a:lbignum t len -> b:lbignum t len -> k:pos{k <= len} -> mask0:limb t -> Lemma (requires (if v mask0 = 0 then eval_ len a (k - 1) >= eval_ len b (k - 1) else eval_ len a (k - 1) < eval_ len b (k - 1)) /\ mask_values mask0) (ensures (let ...
val bn_lt_mask_lemma_step: #t:limb_t -> #len:size_nat -> a:lbignum t len -> b:lbignum t len -> k:pos{k <= len} -> mask0:limb t -> Lemma (requires (if v mask0 = 0 then eval_ len a (k - 1) >= eval_ len b (k - 1) else eval_ len a (k - 1) < eval_ len b (k - 1)) /\ mask_values mask0) (ensures (let ...
let bn_lt_mask_lemma_step #t #len a b k mask0 = let mask = bn_lt_mask_f a b (k - 1) mask0 in let ai = a.[k - 1] in let bi = b.[k - 1] in let beq = eq_mask ai bi in assert (if v ai = v bi then v beq == v (ones t SEC) else v beq == 0); let blt = lt_mask ai bi in assert (if v ai < v bi then v blt == v (ones ...
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Comparison.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 10, "end_line": 123, "start_col": 0, "start_line": 93 }
module Hacl.Spec.Bignum.Comparison open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Base open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum.Lib module BSeq = Lib.ByteSequence module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// /// Bignum comparison ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Spec.Bign...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Lib", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t len -> b: Hacl.Spec.Bignum.Definitions.lbignum t len -> k: Prims.pos{k <= len} -> mask0: Hacl.Spec.Bignum.Definitions.limb t -> FStar.Pervasives.Lemma (requires (match Lib.IntTypes.v mask0 = 0 with | true -> Hacl.Spec.Bignu...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.pos", "Prims.b2t", "Prims.op_LessThanOrEqual", "Hacl.Spec.Bignum.Definitions.limb", "Prims.op_Equality", "Prims.int", "Lib.IntTypes.v", "Lib.IntTypes.SEC", "Prims.unit", "Prims.op_L...
[]
false
false
true
false
false
let bn_lt_mask_lemma_step #t #len a b k mask0 =
let mask = bn_lt_mask_f a b (k - 1) mask0 in let ai = a.[ k - 1 ] in let bi = b.[ k - 1 ] in let beq = eq_mask ai bi in assert (if v ai = v bi then v beq == v (ones t SEC) else v beq == 0); let blt = lt_mask ai bi in assert (if v ai < v bi then v blt == v (ones t SEC) else v blt == 0); let res0 = mask_select blt (ones ...
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.compute_gen_elim_nondep_correct_0
val compute_gen_elim_nondep_correct_0 : i0: Steel.ST.GenElim1.Base.gen_elim_i -> i: Steel.ST.GenElim1.Base.gen_elim_nondep_t -> Prims.GTot (sq: Prims.squash (Steel.ST.GenElim1.Base.check_gen_elim_nondep_sem i0 i) -> Prims.GTot (Steel.ST.GenElim1.gen_elim_f (Steel.ST.GenElim1.Base.compute_gen_eli...
let compute_gen_elim_nondep_correct_0 (i0: gen_elim_i) (i: gen_elim_nondep_t) = match i returns (sq: squash (check_gen_elim_nondep_sem i0 i)) -> GTot (gen_elim_f (compute_gen_elim_p i0) (compute_gen_elim_nondep_a i0 i) (compute_gen_elim_nondep_q0 i0 i) (compute_gen_elim_nondep_post0 i0 i) ) ...
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 55, "end_line": 811, "start_col": 0, "start_line": 791 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i0: Steel.ST.GenElim1.Base.gen_elim_i -> i: Steel.ST.GenElim1.Base.gen_elim_nondep_t -> Prims.GTot (sq: Prims.squash (Steel.ST.GenElim1.Base.check_gen_elim_nondep_sem i0 i) -> Prims.GTot (Steel.ST.GenElim1.gen_elim_f (Steel.ST.GenElim1.Base.compute_gen_elim_p i0) (Steel.ST.GenElim1...
Prims.GTot
[ "sometrivial" ]
[]
[ "Steel.ST.GenElim1.Base.gen_elim_i", "Steel.ST.GenElim1.Base.gen_elim_nondep_t", "Prims.squash", "Steel.ST.GenElim1.Base.check_gen_elim_nondep_sem", "Steel.ST.GenElim1.gen_elim_f", "Steel.ST.GenElim1.Base.compute_gen_elim_p", "Steel.ST.GenElim1.Base.compute_gen_elim_nondep_a", "Steel.ST.GenElim1.Base....
[]
false
false
false
false
false
let compute_gen_elim_nondep_correct_0 (i0: gen_elim_i) (i: gen_elim_nondep_t) =
match i returns sq: squash (check_gen_elim_nondep_sem i0 i) -> GTot (gen_elim_f (compute_gen_elim_p i0) (compute_gen_elim_nondep_a i0 i) (compute_gen_elim_nondep_q0 i0 i) (compute_gen_elim_nondep_post0 i0 i)) with | GEDep -> fun _ ->...
false
Hacl.Spec.Bignum.Comparison.fst
Hacl.Spec.Bignum.Comparison.bn_gt_pow2_mask_lemma
val bn_gt_pow2_mask_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> x:size_nat{x < bits t * len} -> Lemma (mask_values (bn_gt_pow2_mask b x) /\ (if v (bn_gt_pow2_mask b x) = 0 then pow2 x >= bn_v b else pow2 x < bn_v b))
val bn_gt_pow2_mask_lemma: #t:limb_t -> #len:size_nat -> b:lbignum t len -> x:size_nat{x < bits t * len} -> Lemma (mask_values (bn_gt_pow2_mask b x) /\ (if v (bn_gt_pow2_mask b x) = 0 then pow2 x >= bn_v b else pow2 x < bn_v b))
let bn_gt_pow2_mask_lemma #t #len b x = bn_eval_bound b len; assert (bn_v b < pow2 (bits t * len)); let b2 = create len (uint #t 0) in bn_eval_zeroes #t len len; assert (bn_v b2 = 0); //assert (bn_v b2 < pow2 x); let b2' = bn_set_ith_bit b2 x in bn_set_ith_bit_lemma b2 x; assert (bn_v b2' == pow2 x); ...
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Comparison.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 24, "end_line": 197, "start_col": 0, "start_line": 187 }
module Hacl.Spec.Bignum.Comparison open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Base open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum.Lib module BSeq = Lib.ByteSequence module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// /// Bignum comparison ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Spec.Bign...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Lib", "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
b: Hacl.Spec.Bignum.Definitions.lbignum t len -> x: Lib.IntTypes.size_nat{x < Lib.IntTypes.bits t * len} -> FStar.Pervasives.Lemma (ensures Hacl.Spec.Bignum.Base.mask_values (Hacl.Spec.Bignum.Comparison.bn_gt_pow2_mask b x) /\ (match Lib.IntTypes.v (Hacl.Spec.Bignum.Comparison.bn_gt_pow2_mask...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.b2t", "Prims.op_LessThan", "FStar.Mul.op_Star", "Lib.IntTypes.bits", "Hacl.Spec.Bignum.Comparison.bn_lt_mask_lemma", "Prims.unit", "Prims._assert", "Prims.eq2", "Prims.int", "Prims....
[]
true
false
true
false
false
let bn_gt_pow2_mask_lemma #t #len b x =
bn_eval_bound b len; assert (bn_v b < pow2 (bits t * len)); let b2 = create len (uint #t 0) in bn_eval_zeroes #t len len; assert (bn_v b2 = 0); let b2' = bn_set_ith_bit b2 x in bn_set_ith_bit_lemma b2 x; assert (bn_v b2' == pow2 x); bn_lt_mask_lemma b2' b
false
Hacl.Spec.Bignum.Comparison.fst
Hacl.Spec.Bignum.Comparison.bn_lt_mask_lemma_loop
val bn_lt_mask_lemma_loop: #t:limb_t -> #len:size_nat -> a:lbignum t len -> b:lbignum t len -> k:nat{k <= len} -> Lemma (let mask = Loops.repeat_gen k (bn_lt_mask_t t len) (bn_lt_mask_f a b) (uint #t 0) in mask_values mask /\ (if v mask = 0 then eval_ len a k >= eval_ len b k else eval_ len a k < eval_...
val bn_lt_mask_lemma_loop: #t:limb_t -> #len:size_nat -> a:lbignum t len -> b:lbignum t len -> k:nat{k <= len} -> Lemma (let mask = Loops.repeat_gen k (bn_lt_mask_t t len) (bn_lt_mask_f a b) (uint #t 0) in mask_values mask /\ (if v mask = 0 then eval_ len a k >= eval_ len b k else eval_ len a k < eval_...
let rec bn_lt_mask_lemma_loop #t #len a b k = let mask = Loops.repeat_gen k (bn_lt_mask_t t len) (bn_lt_mask_f a b) (uint #t 0) in if k = 0 then begin Loops.eq_repeat_gen0 k (bn_lt_mask_t t len) (bn_lt_mask_f a b) (uint #t 0); assert (v mask = 0); bn_eval0 a; bn_eval0 b end else begin let mask...
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Comparison.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 41, "end_line": 146, "start_col": 0, "start_line": 135 }
module Hacl.Spec.Bignum.Comparison open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Base open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum.Lib module BSeq = Lib.ByteSequence module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// /// Bignum comparison ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Spec.Bign...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Lib", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t len -> b: Hacl.Spec.Bignum.Definitions.lbignum t len -> k: Prims.nat{k <= len} -> FStar.Pervasives.Lemma (ensures (let mask = Lib.LoopCombinators.repeat_gen k (Hacl.Spec.Bignum.Comparison.bn_lt_mask_t t len) (Hacl.Spec....
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Equality", "Prims.int", "Hacl.Spec.Bignum.Definitions.bn_eval0", "Prims.unit", "Prims._assert", "Lib.IntTypes.v", "Lib.IntTy...
[ "recursion" ]
false
false
true
false
false
let rec bn_lt_mask_lemma_loop #t #len a b k =
let mask = Loops.repeat_gen k (bn_lt_mask_t t len) (bn_lt_mask_f a b) (uint #t 0) in if k = 0 then (Loops.eq_repeat_gen0 k (bn_lt_mask_t t len) (bn_lt_mask_f a b) (uint #t 0); assert (v mask = 0); bn_eval0 a; bn_eval0 b) else let mask0 = Loops.repeat_gen (k - 1) (bn_lt_mask_t t len) (bn_lt_mask_f a b) (...
false
Hacl.Spec.Bignum.Comparison.fst
Hacl.Spec.Bignum.Comparison.bn_eq_mask_lemma
val bn_eq_mask_lemma: #t:limb_t -> #len:size_nat -> a:lbignum t len -> b:lbignum t len -> Lemma (mask_values (bn_eq_mask a b) /\ (if v (bn_eq_mask a b) = 0 then bn_v a <> bn_v b else bn_v a = bn_v b))
val bn_eq_mask_lemma: #t:limb_t -> #len:size_nat -> a:lbignum t len -> b:lbignum t len -> Lemma (mask_values (bn_eq_mask a b) /\ (if v (bn_eq_mask a b) = 0 then bn_v a <> bn_v b else bn_v a = bn_v b))
let bn_eq_mask_lemma #t #len a b = let mask = BSeq.seq_eq_mask a b len in assert (a == b ==> v mask == v (ones t SEC)); assert (a =!= b ==> v mask == v (zeros t SEC)); Classical.move_requires_2 (bn_eval_inj len) a b
{ "file_name": "code/bignum/Hacl.Spec.Bignum.Comparison.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 49, "end_line": 49, "start_col": 0, "start_line": 45 }
module Hacl.Spec.Bignum.Comparison open FStar.Mul open Lib.IntTypes open Lib.Sequence open Hacl.Spec.Bignum.Base open Hacl.Spec.Bignum.Definitions open Hacl.Spec.Bignum.Lib module BSeq = Lib.ByteSequence module Loops = Lib.LoopCombinators #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" /// /// Bignum comparison ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Hacl.Spec.Bignum.Lib.fst.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Spec.Bign...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": true, "full_module": "Lib.ByteSequence", "short_module": "BSeq" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Lib", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.Spec.Bignum.Definitions.lbignum t len -> b: Hacl.Spec.Bignum.Definitions.lbignum t len -> FStar.Pervasives.Lemma (ensures Hacl.Spec.Bignum.Base.mask_values (Hacl.Spec.Bignum.Comparison.bn_eq_mask a b) /\ (match Lib.IntTypes.v (Hacl.Spec.Bignum.Comparison.bn_eq_mask a b) = 0 with | true...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Lib.IntTypes.size_nat", "Hacl.Spec.Bignum.Definitions.lbignum", "FStar.Classical.move_requires_2", "Prims.eq2", "Prims.nat", "Hacl.Spec.Bignum.Definitions.bn_v", "Lib.Sequence.equal", "Hacl.Spec.Bignum.Definitions.limb", "Hacl.Spec.Bignum.Definitions.bn_eval...
[]
false
false
true
false
false
let bn_eq_mask_lemma #t #len a b =
let mask = BSeq.seq_eq_mask a b len in assert (a == b ==> v mask == v (ones t SEC)); assert (a =!= b ==> v mask == v (zeros t SEC)); Classical.move_requires_2 (bn_eval_inj len) a b
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.elim_exists'
val elim_exists': #a: Type -> #opened_invariants: _ -> #p: (a -> vprop) -> unit -> STGhostT (a) opened_invariants (exists_ p) (fun x -> p x)
val elim_exists': #a: Type -> #opened_invariants: _ -> #p: (a -> vprop) -> unit -> STGhostT (a) opened_invariants (exists_ p) (fun x -> p x)
let elim_exists' (#a:Type) (#opened_invariants:_) (#p:a -> vprop) (_:unit) : STGhostT (a) opened_invariants (exists_ p) (fun x -> p x) = let gx = elim_exists () in let x = Ghost.reveal gx in rewrite (p gx) (p x); x
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 3, "end_line": 209, "start_col": 0, "start_line": 199 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> Steel.ST.Effect.Ghost.STGhostT a
Steel.ST.Effect.Ghost.STGhostT
[]
[]
[ "Steel.Memory.inames", "Steel.Effect.Common.vprop", "Prims.unit", "Steel.ST.Util.rewrite", "FStar.Ghost.reveal", "FStar.Ghost.erased", "Steel.ST.Util.elim_exists", "Steel.ST.Util.exists_" ]
[]
false
true
false
false
false
let elim_exists' (#a: Type) (#opened_invariants: _) (#p: (a -> vprop)) (_: unit) : STGhostT (a) opened_invariants (exists_ p) (fun x -> p x) =
let gx = elim_exists () in let x = Ghost.reveal gx in rewrite (p gx) (p x); x
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.compute_gen_elim_f_exists_no_abs0
val compute_gen_elim_f_exists_no_abs0 (a: Type0) (body: (a -> vprop)) : GTot (gen_elim_t (GEExistsNoAbs0 body))
val compute_gen_elim_f_exists_no_abs0 (a: Type0) (body: (a -> vprop)) : GTot (gen_elim_t (GEExistsNoAbs0 body))
let compute_gen_elim_f_exists_no_abs0 (a: Type0) (body: (a -> vprop)) : GTot (gen_elim_t (GEExistsNoAbs0 body)) = fun _ -> rewrite (compute_gen_elim_p (GEExistsNoAbs0 body)) (exists_ body); let gres = elim_exists () in let res : compute_gen_elim_a (GEExistsNoAbs0 body) = U.raise_val (Ghost.reveal gres) in // ...
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 108, "start_col": 0, "start_line": 99 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type0 -> body: (_: a -> Steel.Effect.Common.vprop) -> Prims.GTot (Steel.ST.GenElim1.gen_elim_t (Steel.ST.GenElim1.Base.GEExistsNoAbs0 body))
Prims.GTot
[ "sometrivial" ]
[]
[ "Steel.Effect.Common.vprop", "Steel.Memory.inames", "Steel.ST.GenElim1.Base.compute_gen_elim_a", "Steel.ST.GenElim1.Base.GEExistsNoAbs0", "Prims.unit", "Steel.ST.Util.rewrite", "FStar.Ghost.reveal", "Steel.ST.GenElim1.Base.compute_gen_elim_q", "FStar.Universe.raise_val", "FStar.Ghost.erased", "S...
[]
false
false
false
false
false
let compute_gen_elim_f_exists_no_abs0 (a: Type0) (body: (a -> vprop)) : GTot (gen_elim_t (GEExistsNoAbs0 body)) =
fun _ -> rewrite (compute_gen_elim_p (GEExistsNoAbs0 body)) (exists_ body); let gres = elim_exists () in let res:compute_gen_elim_a (GEExistsNoAbs0 body) = U.raise_val (Ghost.reveal gres) in rewrite (body gres) (compute_gen_elim_q (GEExistsNoAbs0 body) res); res
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.compute_gen_elim_tele_correct_unit
val compute_gen_elim_tele_correct_unit (v: gen_unit_elim_i) : Tot (ge_to_tele_t (GEUnit v))
val compute_gen_elim_tele_correct_unit (v: gen_unit_elim_i) : Tot (ge_to_tele_t (GEUnit v))
let compute_gen_elim_tele_correct_unit (v: gen_unit_elim_i) : Tot (ge_to_tele_t (GEUnit v)) = fun _ -> rewrite_with_trefl (compute_gen_elim_p _) (compute_gen_unit_elim_p v); let _ = compute_gen_unit_elim_f v _ in intro_pure (compute_gen_unit_elim_post v); rewrite_with_trefl (compute_gen_unit_elim_q v `star` p...
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 73, "end_line": 301, "start_col": 0, "start_line": 294 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
v: Steel.ST.GenElim1.Base.gen_unit_elim_i -> Steel.ST.GenElim1.ge_to_tele_t (Steel.ST.GenElim1.Base.GEUnit v)
Prims.Tot
[ "total" ]
[]
[ "Steel.ST.GenElim1.Base.gen_unit_elim_i", "Steel.Memory.inames", "Steel.ST.GenElim1.rewrite_with_trefl", "Steel.Effect.Common.star", "Steel.ST.GenElim1.Base.compute_gen_unit_elim_q", "Steel.ST.Util.pure", "Steel.ST.GenElim1.Base.compute_gen_unit_elim_post", "Steel.ST.GenElim1.tele_p", "Steel.ST.GenE...
[]
false
false
false
false
false
let compute_gen_elim_tele_correct_unit (v: gen_unit_elim_i) : Tot (ge_to_tele_t (GEUnit v)) =
fun _ -> rewrite_with_trefl (compute_gen_elim_p _) (compute_gen_unit_elim_p v); let _ = compute_gen_unit_elim_f v _ in intro_pure (compute_gen_unit_elim_post v); rewrite_with_trefl ((compute_gen_unit_elim_q v) `star` (pure _)) (tele_p _)
false
Lib.Vec.Lemmas.fsti
Lib.Vec.Lemmas.repeat_blocks_multi_vec_equiv_pre
val repeat_blocks_multi_vec_equiv_pre (#a #b #b_vec: Type0) (w: pos) (blocksize: pos{w * blocksize <= max_size_t}) (f: (lseq a blocksize -> b -> b)) (f_v: (lseq a (w * blocksize) -> b_vec -> b_vec)) (normalize_v: (b_vec -> b)) (b_v: lseq a (w * blocksize)) (acc_v: b_vec) ...
val repeat_blocks_multi_vec_equiv_pre (#a #b #b_vec: Type0) (w: pos) (blocksize: pos{w * blocksize <= max_size_t}) (f: (lseq a blocksize -> b -> b)) (f_v: (lseq a (w * blocksize) -> b_vec -> b_vec)) (normalize_v: (b_vec -> b)) (b_v: lseq a (w * blocksize)) (acc_v: b_vec) ...
let repeat_blocks_multi_vec_equiv_pre (#a:Type0) (#b:Type0) (#b_vec:Type0) (w:pos) (blocksize:pos{w * blocksize <= max_size_t}) (f:(lseq a blocksize -> b -> b)) (f_v:(lseq a (w * blocksize) -> b_vec -> b_vec)) (normalize_v:(b_vec -> b)) (b_v:lseq a (w * blocksize)) (acc_v:b_vec) : prop = Math.Le...
{ "file_name": "lib/Lib.Vec.Lemmas.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 88, "end_line": 175, "start_col": 0, "start_line": 161 }
module Lib.Vec.Lemmas open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.Sequence.Lemmas module Loops = Lib.LoopCombinators #push-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0 \ --using_facts_from '-* +Prims +FStar.Pervasives +FStar.Math.Lemmas +FStar.Seq -FStar.Seq.Properties.slice_slice \ +Lib.I...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": false, "full_module": "Lib.Sequence.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
w: Prims.pos -> blocksize: Prims.pos{w * blocksize <= Lib.IntTypes.max_size_t} -> f: (_: Lib.Sequence.lseq a blocksize -> _: b -> b) -> f_v: (_: Lib.Sequence.lseq a (w * blocksize) -> _: b_vec -> b_vec) -> normalize_v: (_: b_vec -> b) -> b_v: Lib.Sequence.lseq a (w * blocksize) -> acc_v: b_...
Prims.Tot
[ "total" ]
[]
[ "Prims.pos", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Lib.Sequence.lseq", "Prims.eq2", "Lib.Sequence.repeat_blocks_multi", "Prims.unit", "FStar.Math.Lemmas.cancel_mul_mod", "Prims.prop" ]
[]
false
false
false
false
true
let repeat_blocks_multi_vec_equiv_pre (#a #b #b_vec: Type0) (w: pos) (blocksize: pos{w * blocksize <= max_size_t}) (f: (lseq a blocksize -> b -> b)) (f_v: (lseq a (w * blocksize) -> b_vec -> b_vec)) (normalize_v: (b_vec -> b)) (b_v: lseq a (w * blocksize)) (acc_v: b_vec) ...
Math.Lemmas.cancel_mul_mod w blocksize; normalize_v (f_v b_v acc_v) == repeat_blocks_multi blocksize b_v f (normalize_v acc_v)
false
Lib.Vec.Lemmas.fsti
Lib.Vec.Lemmas.repeat_blocks_vec_equiv_pre
val repeat_blocks_vec_equiv_pre (#a #b #b_vec #c: Type0) (w: pos) (blocksize: pos{w * blocksize <= max_size_t}) (f: (lseq a blocksize -> b -> b)) (l: (len: nat{len < blocksize} -> lseq a len -> b -> c)) (l_v: (len: nat{len < w * blocksize} -> lseq a len -> b_vec -> c)) (normali...
val repeat_blocks_vec_equiv_pre (#a #b #b_vec #c: Type0) (w: pos) (blocksize: pos{w * blocksize <= max_size_t}) (f: (lseq a blocksize -> b -> b)) (l: (len: nat{len < blocksize} -> lseq a len -> b -> c)) (l_v: (len: nat{len < w * blocksize} -> lseq a len -> b_vec -> c)) (normali...
let repeat_blocks_vec_equiv_pre (#a:Type0) (#b:Type0) (#b_vec:Type0) (#c:Type0) (w:pos) (blocksize:pos{w * blocksize <= max_size_t}) (f:(lseq a blocksize -> b -> b)) (l:(len:nat{len < blocksize} -> lseq a len -> b -> c)) (l_v:(len:nat{len < w * blocksize} -> lseq a len -> b_vec -> c)) (normalize_v:(...
{ "file_name": "lib/Lib.Vec.Lemmas.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 53, "end_line": 215, "start_col": 0, "start_line": 198 }
module Lib.Vec.Lemmas open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.Sequence.Lemmas module Loops = Lib.LoopCombinators #push-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0 \ --using_facts_from '-* +Prims +FStar.Pervasives +FStar.Math.Lemmas +FStar.Seq -FStar.Seq.Properties.slice_slice \ +Lib.I...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": false, "full_module": "Lib.Sequence.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
w: Prims.pos -> blocksize: Prims.pos{w * blocksize <= Lib.IntTypes.max_size_t} -> f: (_: Lib.Sequence.lseq a blocksize -> _: b -> b) -> l: (len: Prims.nat{len < blocksize} -> _: Lib.Sequence.lseq a len -> _: b -> c) -> l_v: (len: Prims.nat{len < w * blocksize} -> _: Lib.Sequence.lseq a len -> _: b_...
Prims.Tot
[ "total" ]
[]
[ "Prims.pos", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Lib.Sequence.lseq", "Prims.nat", "Prims.op_LessThan", "Prims.eq2", "Lib.Sequence.repeat_blocks", "Prims.prop" ]
[]
false
false
false
false
true
let repeat_blocks_vec_equiv_pre (#a #b #b_vec #c: Type0) (w: pos) (blocksize: pos{w * blocksize <= max_size_t}) (f: (lseq a blocksize -> b -> b)) (l: (len: nat{len < blocksize} -> lseq a len -> b -> c)) (l_v: (len: nat{len < w * blocksize} -> lseq a len -> b_vec -> c)) (normali...
l_v rem b_v acc_v == repeat_blocks blocksize b_v f l (normalize_v acc_v)
false
Lib.Vec.Lemmas.fsti
Lib.Vec.Lemmas.repeat_gen_blocks_multi_vec_equiv_pre
val repeat_gen_blocks_multi_vec_equiv_pre (#inp_t: Type0) (w: pos) (blocksize: pos{w * blocksize <= max_size_t}) (n: nat) (hi_f: nat{w * n <= hi_f}) (a: (i: nat{i <= hi_f} -> Type)) (a_vec: (i: nat{i <= n} -> Type)) (f: (i: nat{i < hi_f} -> lseq inp_t blocksize -> a i -> ...
val repeat_gen_blocks_multi_vec_equiv_pre (#inp_t: Type0) (w: pos) (blocksize: pos{w * blocksize <= max_size_t}) (n: nat) (hi_f: nat{w * n <= hi_f}) (a: (i: nat{i <= hi_f} -> Type)) (a_vec: (i: nat{i <= n} -> Type)) (f: (i: nat{i < hi_f} -> lseq inp_t blocksize -> a i -> ...
let repeat_gen_blocks_multi_vec_equiv_pre (#inp_t:Type0) (w:pos) (blocksize:pos{w * blocksize <= max_size_t}) (n:nat) (hi_f:nat{w * n <= hi_f}) (a:(i:nat{i <= hi_f} -> Type)) (a_vec:(i:nat{i <= n} -> Type)) (f:(i:nat{i < hi_f} -> lseq inp_t blocksize -> a i -> a (i + 1))) (f_v:(i:nat{i < n} -> lseq in...
{ "file_name": "lib/Lib.Vec.Lemmas.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 80, "end_line": 83, "start_col": 0, "start_line": 64 }
module Lib.Vec.Lemmas open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.Sequence.Lemmas module Loops = Lib.LoopCombinators #push-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0 \ --using_facts_from '-* +Prims +FStar.Pervasives +FStar.Math.Lemmas +FStar.Seq -FStar.Seq.Properties.slice_slice \ +Lib.I...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": false, "full_module": "Lib.Sequence.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
w: Prims.pos -> blocksize: Prims.pos{w * blocksize <= Lib.IntTypes.max_size_t} -> n: Prims.nat -> hi_f: Prims.nat{w * n <= hi_f} -> a: (i: Prims.nat{i <= hi_f} -> Type) -> a_vec: (i: Prims.nat{i <= n} -> Type) -> f: (i: Prims.nat{i < hi_f} -> _: Lib.Sequence.lseq inp_t blocksize -> _: a i -...
Prims.Tot
[ "total" ]
[]
[ "Prims.pos", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Prims.nat", "Prims.op_LessThan", "Lib.Sequence.lseq", "Prims.op_Addition", "Prims.eq2", "Lib.Sequence.Lemmas.repeat_gen_blocks_multi", "Prims.unit", "FStar.Math.Lemmas.lemma_mult_le_right",...
[]
false
false
false
false
true
let repeat_gen_blocks_multi_vec_equiv_pre (#inp_t: Type0) (w: pos) (blocksize: pos{w * blocksize <= max_size_t}) (n: nat) (hi_f: nat{w * n <= hi_f}) (a: (i: nat{i <= hi_f} -> Type)) (a_vec: (i: nat{i <= n} -> Type)) (f: (i: nat{i < hi_f} -> lseq inp_t blocksize -> a i -> ...
Math.Lemmas.lemma_mult_le_right w (i + 1) n; normalize_v (i + 1) (f_v i b_v acc_v) == repeat_gen_blocks_multi blocksize (w * i) hi_f w b_v a f (normalize_v i acc_v)
false
Lib.Vec.Lemmas.fsti
Lib.Vec.Lemmas.repeat_gen_blocks_vec_equiv_pre
val repeat_gen_blocks_vec_equiv_pre (#inp_t #c: Type0) (w: pos) (blocksize: pos{w * blocksize <= max_size_t}) (n: nat) (a: (i: nat{i <= w * n + w} -> Type)) (a_vec: (i: nat{i <= n} -> Type)) (f: (i: nat{i < w * n + w} -> lseq inp_t blocksize -> a i -> a (i + 1))) (l: (i: ...
val repeat_gen_blocks_vec_equiv_pre (#inp_t #c: Type0) (w: pos) (blocksize: pos{w * blocksize <= max_size_t}) (n: nat) (a: (i: nat{i <= w * n + w} -> Type)) (a_vec: (i: nat{i <= n} -> Type)) (f: (i: nat{i < w * n + w} -> lseq inp_t blocksize -> a i -> a (i + 1))) (l: (i: ...
let repeat_gen_blocks_vec_equiv_pre (#inp_t:Type0) (#c:Type0) (w:pos) (blocksize:pos{w * blocksize <= max_size_t}) (n:nat) (a:(i:nat{i <= w * n + w} -> Type)) (a_vec:(i:nat{i <= n} -> Type)) (f:(i:nat{i < w * n + w} -> lseq inp_t blocksize -> a i -> a (i + 1))) (l:(i:nat{i <= w * n + w} -> len:nat{len...
{ "file_name": "lib/Lib.Vec.Lemmas.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 91, "end_line": 127, "start_col": 0, "start_line": 109 }
module Lib.Vec.Lemmas open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.Sequence.Lemmas module Loops = Lib.LoopCombinators #push-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0 \ --using_facts_from '-* +Prims +FStar.Pervasives +FStar.Math.Lemmas +FStar.Seq -FStar.Seq.Properties.slice_slice \ +Lib.I...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": false, "full_module": "Lib.Sequence.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
w: Prims.pos -> blocksize: Prims.pos{w * blocksize <= Lib.IntTypes.max_size_t} -> n: Prims.nat -> a: (i: Prims.nat{i <= w * n + w} -> Type) -> a_vec: (i: Prims.nat{i <= n} -> Type) -> f: (i: Prims.nat{i < w * n + w} -> _: Lib.Sequence.lseq inp_t blocksize -> _: a i -> a (i + 1)) -> l: ...
Prims.Tot
[ "total" ]
[]
[ "Prims.pos", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Prims.nat", "Prims.op_Addition", "Prims.op_LessThan", "Lib.Sequence.lseq", "Prims.eq2", "Lib.Sequence.Lemmas.repeat_gen_blocks", "Prims.prop" ]
[]
false
false
false
false
true
let repeat_gen_blocks_vec_equiv_pre (#inp_t #c: Type0) (w: pos) (blocksize: pos{w * blocksize <= max_size_t}) (n: nat) (a: (i: nat{i <= w * n + w} -> Type)) (a_vec: (i: nat{i <= n} -> Type)) (f: (i: nat{i < w * n + w} -> lseq inp_t blocksize -> a i -> a (i + 1))) (l: (i: ...
l_v n rem b_v acc_v == repeat_gen_blocks #inp_t #c blocksize (w * n) (w * n + w) b_v a f l (normalize_v n acc_v)
false
Lib.Vec.Lemmas.fsti
Lib.Vec.Lemmas.map_blocks_multi_vec_equiv_pre_k
val map_blocks_multi_vec_equiv_pre_k (#a: Type) (w: pos) (blocksize: pos{w * blocksize <= max_size_t}) (n: nat) (hi_f: nat{w * n <= hi_f}) (f: (i: nat{i < hi_f} -> lseq a blocksize -> lseq a blocksize)) (f_v: (i: nat{i < n} -> lseq a (w * blocksize) -> lseq a (w * blocksize))) ...
val map_blocks_multi_vec_equiv_pre_k (#a: Type) (w: pos) (blocksize: pos{w * blocksize <= max_size_t}) (n: nat) (hi_f: nat{w * n <= hi_f}) (f: (i: nat{i < hi_f} -> lseq a blocksize -> lseq a blocksize)) (f_v: (i: nat{i < n} -> lseq a (w * blocksize) -> lseq a (w * blocksize))) ...
let map_blocks_multi_vec_equiv_pre_k (#a:Type) (w:pos) (blocksize:pos{w * blocksize <= max_size_t}) (n:nat) (hi_f:nat{w * n <= hi_f}) (f:(i:nat{i < hi_f} -> lseq a blocksize -> lseq a blocksize)) (f_v:(i:nat{i < n} -> lseq a (w * blocksize) -> lseq a (w * blocksize))) (i:nat{i < n}) (b_v:lseq a (w * b...
{ "file_name": "lib/Lib.Vec.Lemmas.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 88, "end_line": 267, "start_col": 0, "start_line": 251 }
module Lib.Vec.Lemmas open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.Sequence.Lemmas module Loops = Lib.LoopCombinators #push-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0 \ --using_facts_from '-* +Prims +FStar.Pervasives +FStar.Math.Lemmas +FStar.Seq -FStar.Seq.Properties.slice_slice \ +Lib.I...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": false, "full_module": "Lib.Sequence.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
w: Prims.pos -> blocksize: Prims.pos{w * blocksize <= Lib.IntTypes.max_size_t} -> n: Prims.nat -> hi_f: Prims.nat{w * n <= hi_f} -> f: (i: Prims.nat{i < hi_f} -> _: Lib.Sequence.lseq a blocksize -> Lib.Sequence.lseq a blocksize) -> f_v: (i: Prims.nat{i < n} -> _: Lib.Sequence.lseq a (w * ...
Prims.Tot
[ "total" ]
[]
[ "Prims.pos", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Prims.nat", "Prims.op_LessThan", "Lib.Sequence.lseq", "Prims.eq2", "FStar.Seq.Base.index", "Prims.op_Addition", "Prims.op_Division", "Prims.op_Modulus", "Prims.unit", "Lib.Vec.Lemmas.le...
[]
false
false
false
false
true
let map_blocks_multi_vec_equiv_pre_k (#a: Type) (w: pos) (blocksize: pos{w * blocksize <= max_size_t}) (n: nat) (hi_f: nat{w * n <= hi_f}) (f: (i: nat{i < hi_f} -> lseq a blocksize -> lseq a blocksize)) (f_v: (i: nat{i < n} -> lseq a (w * blocksize) -> lseq a (w * blocksize))) ...
Math.Lemmas.cancel_mul_div w blocksize; let block = get_block_s #a #(w * blocksize) blocksize b_v k in lemma_f_map_ind w blocksize n i k; Seq.index (f_v i b_v) k == Seq.index (f (w * i + k / blocksize) block) (k % blocksize)
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.compute_gen_elim_f_exists_no_abs1
val compute_gen_elim_f_exists_no_abs1 (a: Type) (body: (a -> vprop)) : GTot (gen_elim_t (GEExistsNoAbs1 body))
val compute_gen_elim_f_exists_no_abs1 (a: Type) (body: (a -> vprop)) : GTot (gen_elim_t (GEExistsNoAbs1 body))
let compute_gen_elim_f_exists_no_abs1 (a: Type) (body: (a -> vprop)) : GTot (gen_elim_t (GEExistsNoAbs1 body)) = fun _ -> rewrite (compute_gen_elim_p (GEExistsNoAbs1 body)) (exists_ body); let gres = elim_exists () in let res : compute_gen_elim_a (GEExistsNoAbs1 body) = coerce_with_trefl (Ghost.reveal gres) i...
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 152, "start_col": 0, "start_line": 143 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> body: (_: a -> Steel.Effect.Common.vprop) -> Prims.GTot (Steel.ST.GenElim1.gen_elim_t (Steel.ST.GenElim1.Base.GEExistsNoAbs1 body))
Prims.GTot
[ "sometrivial" ]
[]
[ "Steel.Effect.Common.vprop", "Steel.Memory.inames", "Steel.ST.GenElim1.Base.compute_gen_elim_a", "Steel.ST.GenElim1.Base.GEExistsNoAbs1", "Prims.unit", "Steel.ST.Util.rewrite", "FStar.Ghost.reveal", "Steel.ST.GenElim1.Base.compute_gen_elim_q", "Steel.ST.GenElim1.Base.coerce_with_trefl", "FStar.Gho...
[]
false
false
false
false
false
let compute_gen_elim_f_exists_no_abs1 (a: Type) (body: (a -> vprop)) : GTot (gen_elim_t (GEExistsNoAbs1 body)) =
fun _ -> rewrite (compute_gen_elim_p (GEExistsNoAbs1 body)) (exists_ body); let gres = elim_exists () in let res:compute_gen_elim_a (GEExistsNoAbs1 body) = coerce_with_trefl (Ghost.reveal gres) in rewrite (body gres) (compute_gen_elim_q (GEExistsNoAbs1 body) res); res
false
Lib.Vec.Lemmas.fsti
Lib.Vec.Lemmas.map_blocks_vec_equiv_pre_k
val map_blocks_vec_equiv_pre_k (#a: Type) (w: pos) (blocksize: pos{w * blocksize <= max_size_t}) (n: nat) (f: (i: nat{i < w * n + w} -> lseq a blocksize -> lseq a blocksize)) (l: (i: nat{i <= w * n + w} -> rem: nat{rem < blocksize} -> lseq a rem -> lseq a rem)) (l_v: (i: nat{i ...
val map_blocks_vec_equiv_pre_k (#a: Type) (w: pos) (blocksize: pos{w * blocksize <= max_size_t}) (n: nat) (f: (i: nat{i < w * n + w} -> lseq a blocksize -> lseq a blocksize)) (l: (i: nat{i <= w * n + w} -> rem: nat{rem < blocksize} -> lseq a rem -> lseq a rem)) (l_v: (i: nat{i ...
let map_blocks_vec_equiv_pre_k (#a:Type) (w:pos) (blocksize:pos{w * blocksize <= max_size_t}) (n:nat) (f:(i:nat{i < w * n + w} -> lseq a blocksize -> lseq a blocksize)) (l:(i:nat{i <= w * n + w} -> rem:nat{rem < blocksize} -> lseq a rem -> lseq a rem)) (l_v:(i:nat{i <= n} -> rem:nat{rem < w * blocksize} -...
{ "file_name": "lib/Lib.Vec.Lemmas.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 96, "end_line": 311, "start_col": 0, "start_line": 288 }
module Lib.Vec.Lemmas open FStar.Mul open Lib.IntTypes open Lib.Sequence open Lib.Sequence.Lemmas module Loops = Lib.LoopCombinators #push-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0 \ --using_facts_from '-* +Prims +FStar.Pervasives +FStar.Math.Lemmas +FStar.Seq -FStar.Seq.Properties.slice_slice \ +Lib.I...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "Lib.LoopCombinators", "short_module": "Loops" }, { "abbrev": false, "full_module": "Lib.Sequence.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "Lib.Sequence", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
w: Prims.pos -> blocksize: Prims.pos{w * blocksize <= Lib.IntTypes.max_size_t} -> n: Prims.nat -> f: (i: Prims.nat{i < w * n + w} -> _: Lib.Sequence.lseq a blocksize -> Lib.Sequence.lseq a blocksize) -> l: (i: Prims.nat{i <= w * n + w} -> rem: Prims.nat{rem < blocksize} -> _: ...
Prims.Tot
[ "total" ]
[]
[ "Prims.pos", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Mul.op_Star", "Lib.IntTypes.max_size_t", "Prims.nat", "Prims.op_LessThan", "Prims.op_Addition", "Lib.Sequence.lseq", "Prims.op_Division", "Prims.eq2", "FStar.Seq.Base.index", "Prims.op_Modulus", "Lib.Sequence.Lemmas.get_block_s",...
[]
false
false
false
false
true
let map_blocks_vec_equiv_pre_k (#a: Type) (w: pos) (blocksize: pos{w * blocksize <= max_size_t}) (n: nat) (f: (i: nat{i < w * n + w} -> lseq a blocksize -> lseq a blocksize)) (l: (i: nat{i <= w * n + w} -> rem: nat{rem < blocksize} -> lseq a rem -> lseq a rem)) (l_v: (i: nat{i ...
let j = w * n + k / blocksize in div_mul_lt blocksize k w; if k < (rem / blocksize) * blocksize then let block = get_block_s #a #rem blocksize b_v k in Seq.index (l_v n rem b_v) k == Seq.index (f j block) (k % blocksize) else let block_l = get_last_s blocksize b_v in mod_div_lt blocksize k rem; assert (k % bl...
false
Hacl.Impl.Ed25519.PointCompress.fst
Hacl.Impl.Ed25519.PointCompress.x_mod_2
val x_mod_2: x:felem -> Stack uint64 (requires fun h -> live h x) (ensures fun h0 z h1 -> h0 == h1 /\ v z < 2 /\ v z == F51.as_nat h0 x % 2 )
val x_mod_2: x:felem -> Stack uint64 (requires fun h -> live h x) (ensures fun h0 z h1 -> h0 == h1 /\ v z < 2 /\ v z == F51.as_nat h0 x % 2 )
let x_mod_2 x = (**) let h0 = ST.get() in let x0 = x.(0ul) in let z = x0 &. u64 1 in mod_mask_lemma x0 1ul; Lib.IntTypes.Compatibility.uintv_extensionality (u64 1) (mod_mask #U64 1ul); z
{ "file_name": "code/ed25519/Hacl.Impl.Ed25519.PointCompress.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 32, "start_col": 0, "start_line": 26 }
module Hacl.Impl.Ed25519.PointCompress module ST = FStar.HyperStack.ST open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.ByteSequence open Lib.Buffer open Hacl.Bignum25519 module F51 = Hacl.Impl.Ed25519.Field51 #set-options "--z3rlimit 20 --max_fuel 0 --max_ifuel 0" inline_for_extraction noextr...
{ "checked_file": "/", "dependencies": [ "Spec.Ed25519.fst.checked", "Spec.Curve25519.fst.checked", "prims.fst.checked", "Lib.IntTypes.Compatibility.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Impl.Ed25519.Field51.fst.c...
[ { "abbrev": true, "full_module": "Hacl.Impl.Ed25519.Field51", "short_module": "F51" }, { "abbrev": false, "full_module": "Hacl.Bignum25519", "short_module": null }, { "abbrev": false, "full_module": "Lib.Buffer", "short_module": null }, { "abbrev": false, "ful...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Hacl.Bignum25519.felem -> FStar.HyperStack.ST.Stack Lib.IntTypes.uint64
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Bignum25519.felem", "Prims.unit", "Lib.IntTypes.Compatibility.uintv_extensionality", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Lib.IntTypes.u64", "Lib.IntTypes.mod_mask", "FStar.UInt32.__uint_to_t", "Lib.IntTypes.mod_mask_lemma", "Lib.IntTypes.int_t", "Lib.IntTypes.op_Amp_Dot", "Lib.IntTy...
[]
false
true
false
false
false
let x_mod_2 x =
let h0 = ST.get () in let x0 = x.(0ul) in let z = x0 &. u64 1 in mod_mask_lemma x0 1ul; Lib.IntTypes.Compatibility.uintv_extensionality (u64 1) (mod_mask #U64 1ul); z
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.compute_gen_elim_tele_correct_exists1
val compute_gen_elim_tele_correct_exists1 (ty: _) (body: (ty -> gen_elim_i)) (ih: (x: ty -> GTot (ge_to_tele_t (body x)))) : Tot (ge_to_tele_t (GEExists1 #ty body))
val compute_gen_elim_tele_correct_exists1 (ty: _) (body: (ty -> gen_elim_i)) (ih: (x: ty -> GTot (ge_to_tele_t (body x)))) : Tot (ge_to_tele_t (GEExists1 #ty body))
let compute_gen_elim_tele_correct_exists1 (ty: _) (body: ty -> gen_elim_i) (ih: (x: ty) -> GTot (ge_to_tele_t (body x))) : Tot (ge_to_tele_t (GEExists1 #ty body)) = fun _ -> rewrite_with_trefl (compute_gen_elim_p _) (exists_ (fun x -> compute_gen_elim_p (body x))); let x = elim_exists' () in ih x _; intro...
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 43, "end_line": 413, "start_col": 0, "start_line": 403 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ty: Type -> body: (_: ty -> Steel.ST.GenElim1.Base.gen_elim_i) -> ih: (x: ty -> Prims.GTot (Steel.ST.GenElim1.ge_to_tele_t (body x))) -> Steel.ST.GenElim1.ge_to_tele_t (Steel.ST.GenElim1.Base.GEExists1 body)
Prims.Tot
[ "total" ]
[]
[ "Steel.ST.GenElim1.Base.gen_elim_i", "Steel.ST.GenElim1.ge_to_tele_t", "Steel.Memory.inames", "Steel.ST.GenElim1.rewrite_with_trefl", "Steel.ST.Util.exists_", "Steel.ST.GenElim1.tele_p", "Steel.ST.GenElim1.Base.compute_gen_elim_tele", "Steel.Effect.Common.vprop", "Steel.ST.GenElim1.Base.GEExists1", ...
[]
false
false
false
false
false
let compute_gen_elim_tele_correct_exists1 (ty: _) (body: (ty -> gen_elim_i)) (ih: (x: ty -> GTot (ge_to_tele_t (body x)))) : Tot (ge_to_tele_t (GEExists1 #ty body)) =
fun _ -> rewrite_with_trefl (compute_gen_elim_p _) (exists_ (fun x -> compute_gen_elim_p (body x))); let x = elim_exists' () in ih x _; intro_exists x (fun x -> tele_p (compute_gen_elim_tele (body x))); rewrite_with_trefl (exists_ _) (tele_p _)
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.compute_gen_unit_elim_f_star
val compute_gen_unit_elim_f_star (i1 i2: gen_unit_elim_i) (f1: gen_unit_elim_t i1) (f2: gen_unit_elim_t i2) : Tot (gen_unit_elim_t (GUEStar i1 i2))
val compute_gen_unit_elim_f_star (i1 i2: gen_unit_elim_i) (f1: gen_unit_elim_t i1) (f2: gen_unit_elim_t i2) : Tot (gen_unit_elim_t (GUEStar i1 i2))
let compute_gen_unit_elim_f_star (i1 i2: gen_unit_elim_i) (f1: gen_unit_elim_t i1) (f2: gen_unit_elim_t i2) : Tot (gen_unit_elim_t (GUEStar i1 i2)) = fun _ -> rewrite (compute_gen_unit_elim_p (GUEStar i1 i2)) (compute_gen_unit_elim_p i1 `star` compute_gen_unit_elim_p i2); let _ = f1 _ in let _ = f2 _ in r...
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 16, "end_line": 39, "start_col": 0, "start_line": 29 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i1: Steel.ST.GenElim1.Base.gen_unit_elim_i -> i2: Steel.ST.GenElim1.Base.gen_unit_elim_i -> f1: Steel.ST.GenElim1.gen_unit_elim_t i1 -> f2: Steel.ST.GenElim1.gen_unit_elim_t i2 -> Steel.ST.GenElim1.gen_unit_elim_t (Steel.ST.GenElim1.Base.GUEStar i1 i2)
Prims.Tot
[ "total" ]
[]
[ "Steel.ST.GenElim1.Base.gen_unit_elim_i", "Steel.ST.GenElim1.gen_unit_elim_t", "Steel.Memory.inames", "FStar.Universe.raise_val", "Prims.unit", "FStar.Universe.raise_t", "Steel.ST.Util.rewrite", "Steel.Effect.Common.star", "Steel.ST.GenElim1.Base.compute_gen_unit_elim_q", "Steel.ST.GenElim1.Base.G...
[]
false
false
false
false
false
let compute_gen_unit_elim_f_star (i1 i2: gen_unit_elim_i) (f1: gen_unit_elim_t i1) (f2: gen_unit_elim_t i2) : Tot (gen_unit_elim_t (GUEStar i1 i2)) =
fun _ -> rewrite (compute_gen_unit_elim_p (GUEStar i1 i2)) ((compute_gen_unit_elim_p i1) `star` (compute_gen_unit_elim_p i2)); let _ = f1 _ in let _ = f2 _ in rewrite ((compute_gen_unit_elim_q i1) `star` (compute_gen_unit_elim_q i2)) (compute_gen_unit_elim_q (GUEStar i1 i2)); U.raise_val ()
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.compute_gen_elim_tele_correct_star
val compute_gen_elim_tele_correct_star (l: gen_elim_i) (ihl: ge_to_tele_t l) (r: gen_elim_i) (ihr: ge_to_tele_t r) : Tot (ge_to_tele_t (GEStar l r))
val compute_gen_elim_tele_correct_star (l: gen_elim_i) (ihl: ge_to_tele_t l) (r: gen_elim_i) (ihr: ge_to_tele_t r) : Tot (ge_to_tele_t (GEStar l r))
let compute_gen_elim_tele_correct_star (l: gen_elim_i) (ihl: ge_to_tele_t l) (r: gen_elim_i) (ihr: ge_to_tele_t r) : Tot (ge_to_tele_t (GEStar l r)) = fun _ -> rewrite_with_trefl (compute_gen_elim_p _) (compute_gen_elim_p l `star` compute_gen_elim_p r); ihl _; ihr _; tele_star_correct (compute_gen_elim_...
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 42, "end_line": 340, "start_col": 0, "start_line": 329 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
l: Steel.ST.GenElim1.Base.gen_elim_i -> ihl: Steel.ST.GenElim1.ge_to_tele_t l -> r: Steel.ST.GenElim1.Base.gen_elim_i -> ihr: Steel.ST.GenElim1.ge_to_tele_t r -> Steel.ST.GenElim1.ge_to_tele_t (Steel.ST.GenElim1.Base.GEStar l r)
Prims.Tot
[ "total" ]
[]
[ "Steel.ST.GenElim1.Base.gen_elim_i", "Steel.ST.GenElim1.ge_to_tele_t", "Steel.Memory.inames", "Steel.ST.GenElim1.rewrite_with_trefl", "Steel.ST.GenElim1.tele_p", "Steel.ST.GenElim1.Base.tele_star", "Steel.ST.GenElim1.Base.compute_gen_elim_tele", "Steel.ST.GenElim1.Base.GEStar", "Prims.unit", "Stee...
[]
false
false
false
false
false
let compute_gen_elim_tele_correct_star (l: gen_elim_i) (ihl: ge_to_tele_t l) (r: gen_elim_i) (ihr: ge_to_tele_t r) : Tot (ge_to_tele_t (GEStar l r)) =
fun _ -> rewrite_with_trefl (compute_gen_elim_p _) ((compute_gen_elim_p l) `star` (compute_gen_elim_p r)); ihl _; ihr _; tele_star_correct (compute_gen_elim_tele l) (compute_gen_elim_tele r) _; rewrite_with_trefl (tele_p _) (tele_p _)
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.compute_gen_elim_tele_correct_exists_no_abs1
val compute_gen_elim_tele_correct_exists_no_abs1 (ty: _) (body: (ty -> vprop)) : Tot (ge_to_tele_t (GEExistsNoAbs1 #ty body))
val compute_gen_elim_tele_correct_exists_no_abs1 (ty: _) (body: (ty -> vprop)) : Tot (ge_to_tele_t (GEExistsNoAbs1 #ty body))
let compute_gen_elim_tele_correct_exists_no_abs1 (ty: _) (body: ty -> vprop) : Tot (ge_to_tele_t (GEExistsNoAbs1 #ty body)) = fun _ -> rewrite_with_trefl (compute_gen_elim_p _) (exists_ body); let x = elim_exists' () in intro_pure True; intro_exists x (fun x -> body x `star` pure True); rewrite_with_trefl...
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 43, "end_line": 389, "start_col": 0, "start_line": 380 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ty: Type -> body: (_: ty -> Steel.Effect.Common.vprop) -> Steel.ST.GenElim1.ge_to_tele_t (Steel.ST.GenElim1.Base.GEExistsNoAbs1 body)
Prims.Tot
[ "total" ]
[]
[ "Steel.Effect.Common.vprop", "Steel.Memory.inames", "Steel.ST.GenElim1.rewrite_with_trefl", "Steel.ST.Util.exists_", "Steel.Effect.Common.star", "Steel.ST.Util.pure", "Prims.l_True", "Steel.ST.GenElim1.tele_p", "Steel.ST.GenElim1.Base.compute_gen_elim_tele", "Steel.ST.GenElim1.Base.GEExistsNoAbs1"...
[]
false
false
false
false
false
let compute_gen_elim_tele_correct_exists_no_abs1 (ty: _) (body: (ty -> vprop)) : Tot (ge_to_tele_t (GEExistsNoAbs1 #ty body)) =
fun _ -> rewrite_with_trefl (compute_gen_elim_p _) (exists_ body); let x = elim_exists' () in intro_pure True; intro_exists x (fun x -> (body x) `star` (pure True)); rewrite_with_trefl (exists_ _) (tele_p _)
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.compute_gen_elim_f_exists_unit0
val compute_gen_elim_f_exists_unit0 (a: Type0) (body: (a -> gen_unit_elim_i)) : Tot (gen_elim_t (GEExistsUnit0 body))
val compute_gen_elim_f_exists_unit0 (a: Type0) (body: (a -> gen_unit_elim_i)) : Tot (gen_elim_t (GEExistsUnit0 body))
let compute_gen_elim_f_exists_unit0 (a: Type0) (body: a -> gen_unit_elim_i) : Tot (gen_elim_t (GEExistsUnit0 body)) = fun _ -> rewrite_with_trefl (compute_gen_elim_p (GEExistsUnit0 body)) (exists_ (fun x -> compute_gen_unit_elim_p (body x))); let gres = elim_exists () in let _ = compute_gen_unit_elim_f (body ...
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 128, "start_col": 0, "start_line": 118 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type0 -> body: (_: a -> Steel.ST.GenElim1.Base.gen_unit_elim_i) -> Steel.ST.GenElim1.gen_elim_t (Steel.ST.GenElim1.Base.GEExistsUnit0 body)
Prims.Tot
[ "total" ]
[]
[ "Steel.ST.GenElim1.Base.gen_unit_elim_i", "Steel.Memory.inames", "Steel.ST.GenElim1.Base.compute_gen_elim_a", "Steel.ST.GenElim1.Base.GEExistsUnit0", "Prims.unit", "Steel.ST.Util.rewrite", "Steel.ST.GenElim1.Base.compute_gen_unit_elim_q", "FStar.Ghost.reveal", "Steel.ST.GenElim1.Base.compute_gen_eli...
[]
false
false
false
false
false
let compute_gen_elim_f_exists_unit0 (a: Type0) (body: (a -> gen_unit_elim_i)) : Tot (gen_elim_t (GEExistsUnit0 body)) =
fun _ -> rewrite_with_trefl (compute_gen_elim_p (GEExistsUnit0 body)) (exists_ (fun x -> compute_gen_unit_elim_p (body x))); let gres = elim_exists () in let _ = compute_gen_unit_elim_f (body gres) _ in let res:compute_gen_elim_a (GEExistsUnit0 body) = U.raise_val (Ghost.reveal gres) in rewrite (compute_g...
false
Hacl.Impl.Ed25519.PointCompress.fst
Hacl.Impl.Ed25519.PointCompress.point_compress_
val point_compress_: tmp:lbuffer uint64 15ul -> p:point -> Stack unit (requires fun h -> live h tmp /\ live h p /\ disjoint tmp p /\ F51.point_inv_t h p) (ensures fun h0 _ h1 -> modifies (loc tmp) h0 h1 /\ ( let zinv = Spec.Curve25519.finv (F51.fevalh h0 (gsub p 10ul 5ul)) in let x = Spec.C...
val point_compress_: tmp:lbuffer uint64 15ul -> p:point -> Stack unit (requires fun h -> live h tmp /\ live h p /\ disjoint tmp p /\ F51.point_inv_t h p) (ensures fun h0 _ h1 -> modifies (loc tmp) h0 h1 /\ ( let zinv = Spec.Curve25519.finv (F51.fevalh h0 (gsub p 10ul 5ul)) in let x = Spec.C...
let point_compress_ tmp p = let zinv = sub tmp 0ul 5ul in let x = sub tmp 5ul 5ul in let out = sub tmp 10ul 5ul in let px = getx p in let py = gety p in let pz = getz p in inverse zinv pz; fmul x px zinv; reduce x; fmul out py zinv; reduce_513 out
{ "file_name": "code/ed25519/Hacl.Impl.Ed25519.PointCompress.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 157, "start_col": 0, "start_line": 145 }
module Hacl.Impl.Ed25519.PointCompress module ST = FStar.HyperStack.ST open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.ByteSequence open Lib.Buffer open Hacl.Bignum25519 module F51 = Hacl.Impl.Ed25519.Field51 #set-options "--z3rlimit 20 --max_fuel 0 --max_ifuel 0" inline_for_extraction noextr...
{ "checked_file": "/", "dependencies": [ "Spec.Ed25519.fst.checked", "Spec.Curve25519.fst.checked", "prims.fst.checked", "Lib.IntTypes.Compatibility.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Impl.Ed25519.Field51.fst.c...
[ { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Impl.Ed25519.Field51", "short_module": "F51" }, { "abbrev": false, "full_module": "Hacl.Bignum25519", "short_module": null }, { "abbrev": false, "ful...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
tmp: Lib.Buffer.lbuffer Lib.IntTypes.uint64 15ul -> p: Hacl.Bignum25519.point -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint64", "FStar.UInt32.__uint_to_t", "Hacl.Bignum25519.point", "Hacl.Bignum25519.reduce_513", "Prims.unit", "Hacl.Bignum25519.fmul", "Hacl.Bignum25519.reduce", "Hacl.Bignum25519.inverse", "Hacl.Bignum25519.felem", "Hacl.Bignum25519.getz", "Hacl.Bignum25519.g...
[]
false
true
false
false
false
let point_compress_ tmp p =
let zinv = sub tmp 0ul 5ul in let x = sub tmp 5ul 5ul in let out = sub tmp 10ul 5ul in let px = getx p in let py = gety p in let pz = getz p in inverse zinv pz; fmul x px zinv; reduce x; fmul out py zinv; reduce_513 out
false
Vale.Poly1305.Util.fsti
Vale.Poly1305.Util.seqTo128_app
val seqTo128_app (s: Seq.seq nat64) (i: int) : nat128
val seqTo128_app (s: Seq.seq nat64) (i: int) : nat128
let seqTo128_app (s:Seq.seq nat64) (i:int) : nat128 = seqTo128 s i
{ "file_name": "vale/code/crypto/poly1305/x64/Vale.Poly1305.Util.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 66, "end_line": 37, "start_col": 0, "start_line": 37 }
module Vale.Poly1305.Util open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Poly1305.Spec_s open Vale.X64.Machine_s open Vale.Poly1305.Math open Vale.X64.State open Vale.X64.Decls open Vale.Def.Opaque_s open Vale.X64.Memory let rec poly1305_heap_blocks' (h:int) (pad:int) (r:int) (s:Seq.seq nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Decls.fsti.checked", "Vale.Poly1305.Spec_s.fst.checked", "Vale.Poly1305.Math.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Def.Opa...
[ { "abbrev": false, "full_module": "Vale.X64.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Decls", "short_module": null }, { "abbrev": false, "full_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: FStar.Seq.Base.seq Vale.X64.Memory.nat64 -> i: Prims.int -> Vale.X64.Machine_s.nat128
Prims.Tot
[ "total" ]
[]
[ "FStar.Seq.Base.seq", "Vale.X64.Memory.nat64", "Prims.int", "Vale.Poly1305.Util.seqTo128", "Vale.X64.Machine_s.nat128" ]
[]
false
false
false
true
false
let seqTo128_app (s: Seq.seq nat64) (i: int) : nat128 =
seqTo128 s i
false
Hacl.Impl.Ed25519.PointCompress.fst
Hacl.Impl.Ed25519.PointCompress.point_compress
val point_compress: out:lbuffer uint8 32ul -> p:point -> Stack unit (requires fun h -> live h out /\ live h p /\ F51.point_inv_t h p) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == Spec.Ed25519.point_compress (F51.point_eval h0 p) )
val point_compress: out:lbuffer uint8 32ul -> p:point -> Stack unit (requires fun h -> live h out /\ live h p /\ F51.point_inv_t h p) (ensures fun h0 _ h1 -> modifies (loc out) h0 h1 /\ as_seq h1 out == Spec.Ed25519.point_compress (F51.point_eval h0 p) )
let point_compress z p = push_frame(); let tmp = create 15ul (u64 0) in let zinv = sub tmp 0ul 5ul in let x = sub tmp 5ul 5ul in let out = sub tmp 10ul 5ul in point_compress_ tmp p; let b = x_mod_2 x in store_51 z out; add_sign z b; (**) let h3 = ST.get() in (**) lemma_nat_from_to_bytes_l...
{ "file_name": "code/ed25519/Hacl.Impl.Ed25519.PointCompress.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 13, "end_line": 185, "start_col": 0, "start_line": 169 }
module Hacl.Impl.Ed25519.PointCompress module ST = FStar.HyperStack.ST open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.ByteSequence open Lib.Buffer open Hacl.Bignum25519 module F51 = Hacl.Impl.Ed25519.Field51 #set-options "--z3rlimit 20 --max_fuel 0 --max_ifuel 0" inline_for_extraction noextr...
{ "checked_file": "/", "dependencies": [ "Spec.Ed25519.fst.checked", "Spec.Curve25519.fst.checked", "prims.fst.checked", "Lib.IntTypes.Compatibility.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Impl.Ed25519.Field51.fst.c...
[ { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": true, "full_module": "Hacl.Impl.Ed25519.Field51", "short_module": "F51" }, { "abbrev": false, "full_module": "Hacl.Bignum25519", "short_module": null }, { "abbrev": false, "ful...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
out: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> p: Hacl.Bignum25519.point -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "FStar.UInt32.__uint_to_t", "Hacl.Bignum25519.point", "FStar.HyperStack.ST.pop_frame", "Prims.unit", "Lib.ByteSequence.lemma_nat_to_from_bytes_le_preserves_value", "Lib.IntTypes.SEC", "Lib.Buffer.as_seq", "Lib.Buffer.MUT", "Hacl.Impl.Ed25519.Field51.fe...
[]
false
true
false
false
false
let point_compress z p =
push_frame (); let tmp = create 15ul (u64 0) in let zinv = sub tmp 0ul 5ul in let x = sub tmp 5ul 5ul in let out = sub tmp 10ul 5ul in point_compress_ tmp p; let b = x_mod_2 x in store_51 z out; add_sign z b; let h3 = ST.get () in lemma_nat_from_to_bytes_le_preserves_value (as_seq h3 z) 32; lemma_nat_to_from_bytes_le_p...
false
Vale.Poly1305.Util.fsti
Vale.Poly1305.Util.modifies_buffer
val modifies_buffer : b: Vale.X64.Memory.buffer64 -> h1: Vale.X64.Memory.vale_heap -> h2: Vale.X64.Memory.vale_heap -> Vale.Def.Prop_s.prop0
let modifies_buffer (b:buffer64) (h1 h2:vale_heap) = modifies_mem (loc_buffer b) h1 h2
{ "file_name": "vale/code/crypto/poly1305/x64/Vale.Poly1305.Util.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 93, "end_line": 51, "start_col": 7, "start_line": 51 }
module Vale.Poly1305.Util open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Poly1305.Spec_s open Vale.X64.Machine_s open Vale.Poly1305.Math open Vale.X64.State open Vale.X64.Decls open Vale.Def.Opaque_s open Vale.X64.Memory let rec poly1305_heap_blocks' (h:int) (pad:int) (r:int) (s:Seq.seq nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Decls.fsti.checked", "Vale.Poly1305.Spec_s.fst.checked", "Vale.Poly1305.Math.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Def.Opa...
[ { "abbrev": false, "full_module": "Vale.X64.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Decls", "short_module": null }, { "abbrev": false, "full_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Vale.X64.Memory.buffer64 -> h1: Vale.X64.Memory.vale_heap -> h2: Vale.X64.Memory.vale_heap -> Vale.Def.Prop_s.prop0
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Memory.buffer64", "Vale.X64.Memory.vale_heap", "Vale.X64.Decls.modifies_mem", "Vale.X64.Memory.loc_buffer", "Vale.X64.Memory.vuint64", "Vale.Def.Prop_s.prop0" ]
[]
false
false
false
true
false
let modifies_buffer (b: buffer64) (h1 h2: vale_heap) =
modifies_mem (loc_buffer b) h1 h2
false
Vale.Poly1305.Util.fsti
Vale.Poly1305.Util.readable_words
val readable_words : len: Prims.nat -> Prims.int
let readable_words (len:nat) = ((len + 15) / 16) * 2
{ "file_name": "vale/code/crypto/poly1305/x64/Vale.Poly1305.Util.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 23, "end_line": 54, "start_col": 0, "start_line": 53 }
module Vale.Poly1305.Util open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Poly1305.Spec_s open Vale.X64.Machine_s open Vale.Poly1305.Math open Vale.X64.State open Vale.X64.Decls open Vale.Def.Opaque_s open Vale.X64.Memory let rec poly1305_heap_blocks' (h:int) (pad:int) (r:int) (s:Seq.seq nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Decls.fsti.checked", "Vale.Poly1305.Spec_s.fst.checked", "Vale.Poly1305.Math.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Def.Opa...
[ { "abbrev": false, "full_module": "Vale.X64.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Decls", "short_module": null }, { "abbrev": false, "full_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: Prims.nat -> Prims.int
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "FStar.Mul.op_Star", "Prims.op_Division", "Prims.op_Addition", "Prims.int" ]
[]
false
false
false
true
false
let readable_words (len: nat) =
((len + 15) / 16) * 2
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.compute_gen_elim_nondep_correct0
val compute_gen_elim_nondep_correct0 (i0: gen_elim_i) : Tot (compute_gen_elim_nondep_correct_t i0 [])
val compute_gen_elim_nondep_correct0 (i0: gen_elim_i) : Tot (compute_gen_elim_nondep_correct_t i0 [])
let compute_gen_elim_nondep_correct0 (i0: gen_elim_i) : Tot (compute_gen_elim_nondep_correct_t i0 []) = fun q post intro _ -> intro _; rewrite_with_trefl (gen_elim_nondep_p _ _ _) (q (U.raise_val ()) `star` pure (post (U.raise_val ()))); let res = U.raise_val () in elim_pure _; rewrite_with_trefl ...
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 7, "end_line": 485, "start_col": 0, "start_line": 476 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i0: Steel.ST.GenElim1.Base.gen_elim_i -> Steel.ST.GenElim1.compute_gen_elim_nondep_correct_t i0 []
Prims.Tot
[ "total" ]
[]
[ "Steel.ST.GenElim1.Base.gen_elim_i", "Steel.ST.GenElim1.Base.curried_function_type", "Prims.Nil", "FStar.Universe.raise_t", "Prims.unit", "Steel.Effect.Common.vprop", "Prims.prop", "Steel.ST.GenElim1.vprop_rewrite", "Steel.ST.GenElim1.Base.compute_gen_elim_p", "Steel.ST.GenElim1.gen_elim_nondep_p"...
[]
false
false
false
false
false
let compute_gen_elim_nondep_correct0 (i0: gen_elim_i) : Tot (compute_gen_elim_nondep_correct_t i0 []) =
fun q post intro _ -> intro _; rewrite_with_trefl (gen_elim_nondep_p _ _ _) ((q (U.raise_val ())) `star` (pure (post (U.raise_val ())))); let res = U.raise_val () in elim_pure _; rewrite_with_trefl (q (U.raise_val ())) (compute_uncurry _ (fun _ -> compute_gen_elim_p' i0) _ _ res (U.raise_val ())); r...
false
Vale.Poly1305.Util.fsti
Vale.Poly1305.Util.poly1305_heap_blocks'
val poly1305_heap_blocks' (h pad r: int) (s: Seq.seq nat64) (k: int{0 <= k /\ k <= Seq.length s /\ k % 2 == 0}) : Tot int (decreases k)
val poly1305_heap_blocks' (h pad r: int) (s: Seq.seq nat64) (k: int{0 <= k /\ k <= Seq.length s /\ k % 2 == 0}) : Tot int (decreases k)
let rec poly1305_heap_blocks' (h:int) (pad:int) (r:int) (s:Seq.seq nat64) (k:int{0 <= k /\ k <= Seq.length s /\ k % 2 == 0}) : Tot int (decreases k) = if k = 0 then h else let kk = k - 2 in let hh = poly1305_heap_blocks' h pad r s kk in modp ((hh + pad + pow2_64 * Seq.index s (kk + 1) + Seq.index ...
{ "file_name": "vale/code/crypto/poly1305/x64/Vale.Poly1305.Util.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 75, "end_line": 21, "start_col": 0, "start_line": 14 }
module Vale.Poly1305.Util open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Poly1305.Spec_s open Vale.X64.Machine_s open Vale.Poly1305.Math open Vale.X64.State open Vale.X64.Decls open Vale.Def.Opaque_s open Vale.X64.Memory
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Decls.fsti.checked", "Vale.Poly1305.Spec_s.fst.checked", "Vale.Poly1305.Math.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Def.Opa...
[ { "abbrev": false, "full_module": "Vale.X64.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Decls", "short_module": null }, { "abbrev": false, "full_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: Prims.int -> pad: Prims.int -> r: Prims.int -> s: FStar.Seq.Base.seq Vale.X64.Memory.nat64 -> k: Prims.int{0 <= k /\ k <= FStar.Seq.Base.length s /\ k % 2 == 0} -> Prims.Tot Prims.int
Prims.Tot
[ "total", "" ]
[]
[ "Prims.int", "FStar.Seq.Base.seq", "Vale.X64.Memory.nat64", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.Seq.Base.length", "Prims.eq2", "Prims.op_Modulus", "Prims.op_Equality", "Prims.bool", "Vale.Poly1305.Spec_s.modp", "FStar.Mul.op_Star", "Prims.op_Addition", "Vale.X6...
[ "recursion" ]
false
false
false
false
false
let rec poly1305_heap_blocks' (h pad r: int) (s: Seq.seq nat64) (k: int{0 <= k /\ k <= Seq.length s /\ k % 2 == 0}) : Tot int (decreases k) =
if k = 0 then h else let kk = k - 2 in let hh = poly1305_heap_blocks' h pad r s kk in modp ((hh + pad + pow2_64 * Seq.index s (kk + 1) + Seq.index s kk) * r)
false
Hacl.Spec.Bignum.ModInvLimb.fst
Hacl.Spec.Bignum.ModInvLimb.mod_inv_limb_t
val mod_inv_limb_t : t: Hacl.Spec.Bignum.Definitions.limb_t -> i: Prims.nat{i <= Lib.IntTypes.bits t} -> Type0
let mod_inv_limb_t (t:limb_t) (i:nat{i <= bits t}) = tuple2 (limb t) (limb t)
{ "file_name": "code/bignum/Hacl.Spec.Bignum.ModInvLimb.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 77, "end_line": 34, "start_col": 0, "start_line": 34 }
module Hacl.Spec.Bignum.ModInvLimb open FStar.Mul open Lib.IntTypes open Lib.LoopCombinators open Hacl.Spec.Bignum.Definitions module M = Hacl.Spec.Montgomery.Lemmas #reset-options "--z3rlimit 50 --fuel 0 --ifuel 0" (** the modular inverse function was taken from https://github.com/google/boringssl/blob/master/cry...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.Sequence.fsti.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.Montgomery.Lemmas.fst.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Perva...
[ { "abbrev": true, "full_module": "Hacl.Spec.Montgomery.Lemmas", "short_module": "M" }, { "abbrev": false, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abb...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Hacl.Spec.Bignum.Definitions.limb_t -> i: Prims.nat{i <= Lib.IntTypes.bits t} -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Spec.Bignum.Definitions.limb_t", "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual", "Lib.IntTypes.bits", "FStar.Pervasives.Native.tuple2", "Hacl.Spec.Bignum.Definitions.limb" ]
[]
false
false
false
false
true
let mod_inv_limb_t (t: limb_t) (i: nat{i <= bits t}) =
tuple2 (limb t) (limb t)
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.tele_star_vprop_correct_exists
val tele_star_vprop_correct_exists (v: vprop) (p: prop) (ty: _) (body: (ty -> gen_elim_tele)) (ih: (x: ty -> GTot (vprop_rewrite (((tele_p (body x)) `star` v) `star` (pure p)) (tele_p (tele_star_vprop (body x) v p))))) : Tot ...
val tele_star_vprop_correct_exists (v: vprop) (p: prop) (ty: _) (body: (ty -> gen_elim_tele)) (ih: (x: ty -> GTot (vprop_rewrite (((tele_p (body x)) `star` v) `star` (pure p)) (tele_p (tele_star_vprop (body x) v p))))) : Tot ...
let tele_star_vprop_correct_exists (v: vprop) (p: prop) (ty: _) (body: ty -> gen_elim_tele) (ih: (x: ty) -> GTot (vprop_rewrite (tele_p (body x) `star` v `star` pure p) (tele_p (tele_star_vprop (body x) v p)))) : Tot (vprop_rewrite (tele_p (TExists ty body) `star` v `star` pure p) (tele_p (tele_star_vprop (TExists ...
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 92, "end_line": 233, "start_col": 0, "start_line": 224 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
v: Steel.Effect.Common.vprop -> p: Prims.prop -> ty: Type -> body: (_: ty -> Steel.ST.GenElim1.Base.gen_elim_tele) -> ih: (x: ty -> Prims.GTot (Steel.ST.GenElim1.vprop_rewrite (Steel.Effect.Common.star (Steel.Effect.Common.star (Steel.ST.GenElim1.tele_p ...
Prims.Tot
[ "total" ]
[]
[ "Steel.Effect.Common.vprop", "Prims.prop", "Steel.ST.GenElim1.Base.gen_elim_tele", "Steel.ST.GenElim1.vprop_rewrite", "Steel.Effect.Common.star", "Steel.ST.GenElim1.tele_p", "Steel.ST.Util.pure", "Steel.ST.GenElim1.Base.tele_star_vprop", "Steel.Memory.inames", "Steel.ST.GenElim1.rewrite_with_trefl...
[]
false
false
false
false
false
let tele_star_vprop_correct_exists (v: vprop) (p: prop) (ty: _) (body: (ty -> gen_elim_tele)) (ih: (x: ty -> GTot (vprop_rewrite (((tele_p (body x)) `star` v) `star` (pure p)) (tele_p (tele_star_vprop (body x) v p))))) : Tot ...
fun _ -> rewrite_with_trefl (tele_p _) (exists_ (fun x -> tele_p (body x))); let x = elim_exists' () in ih x _; intro_exists x (fun x -> tele_p (tele_star_vprop (body x) v p)); rewrite_with_trefl (exists_ (fun x -> tele_p (tele_star_vprop (body x) v p))) (tele_p _)
false
Vale.Poly1305.Util.fsti
Vale.Poly1305.Util.buffers_readable
val buffers_readable (h: vale_heap) (l: list buffer64) : GTot Type0 (decreases l)
val buffers_readable (h: vale_heap) (l: list buffer64) : GTot Type0 (decreases l)
let rec buffers_readable (h:vale_heap) (l:list buffer64) : GTot Type0 (decreases l) = match l with | [] -> True | b :: l' -> buffer_readable h b /\ buffers_readable h l'
{ "file_name": "vale/code/crypto/poly1305/x64/Vale.Poly1305.Util.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 60, "end_line": 49, "start_col": 0, "start_line": 46 }
module Vale.Poly1305.Util open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Vale.Poly1305.Spec_s open Vale.X64.Machine_s open Vale.Poly1305.Math open Vale.X64.State open Vale.X64.Decls open Vale.Def.Opaque_s open Vale.X64.Memory let rec poly1305_heap_blocks' (h:int) (pad:int) (r:int) (s:Seq.seq nat6...
{ "checked_file": "/", "dependencies": [ "Vale.X64.State.fsti.checked", "Vale.X64.Memory.fsti.checked", "Vale.X64.Machine_s.fst.checked", "Vale.X64.Decls.fsti.checked", "Vale.Poly1305.Spec_s.fst.checked", "Vale.Poly1305.Math.fsti.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Def.Opa...
[ { "abbrev": false, "full_module": "Vale.X64.Memory", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Opaque_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Decls", "short_module": null }, { "abbrev": false, "full_mod...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: Vale.X64.Memory.vale_heap -> l: Prims.list Vale.X64.Memory.buffer64 -> Prims.GTot Type0
Prims.GTot
[ "sometrivial", "" ]
[]
[ "Vale.X64.Memory.vale_heap", "Prims.list", "Vale.X64.Memory.buffer64", "Prims.l_True", "Prims.l_and", "Vale.X64.Memory.buffer_readable", "Vale.X64.Memory.vuint64", "Vale.Poly1305.Util.buffers_readable" ]
[ "recursion" ]
false
false
false
false
true
let rec buffers_readable (h: vale_heap) (l: list buffer64) : GTot Type0 (decreases l) =
match l with | [] -> True | b :: l' -> buffer_readable h b /\ buffers_readable h l'
false
Steel.ST.GenElim1.fst
Steel.ST.GenElim1.compute_gen_elim_f_star_r
val compute_gen_elim_f_star_r (i1: gen_unit_elim_i) (i2: gen_elim_i) (f2: gen_elim_t i2) : GTot (gen_elim_t (GEStarR i1 i2))
val compute_gen_elim_f_star_r (i1: gen_unit_elim_i) (i2: gen_elim_i) (f2: gen_elim_t i2) : GTot (gen_elim_t (GEStarR i1 i2))
let compute_gen_elim_f_star_r (i1: gen_unit_elim_i) (i2: gen_elim_i) (f2: gen_elim_t i2) : GTot (gen_elim_t (GEStarR i1 i2)) = let f1 = compute_gen_unit_elim_f i1 in fun _ -> rewrite (compute_gen_elim_p (GEStarR i1 i2)) (compute_gen_unit_elim_p i1 `star` compute_gen_elim_p i2); let _ = f1 _ in let res = f...
{ "file_name": "lib/steel/Steel.ST.GenElim1.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 6, "end_line": 83, "start_col": 0, "start_line": 71 }
module Steel.ST.GenElim1 let gen_elim_f (p: vprop) (a: Type) (q: (a -> vprop)) (post: (a -> prop)) : Tot Type = ((opened: inames) -> STGhost a opened p q True post) module U = FStar.Universe let gen_unit_elim_t (i: gen_unit_elim_i) : Tot Type = gen_elim_f (compute_gen_unit_elim_p i) (U.raise_t u#_ u#1 unit...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Universe.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.checked", "FStar.Classical.fsti.checked" ], "interface_file": true, "source_file": "Steel.ST.GenElim1.f...
[ { "abbrev": true, "full_module": "FStar.Universe", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.Tactics", "short_module": "T" }, { "abbrev": false, "full_module": "Steel.ST.GenElim1.Base", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i1: Steel.ST.GenElim1.Base.gen_unit_elim_i -> i2: Steel.ST.GenElim1.Base.gen_elim_i -> f2: Steel.ST.GenElim1.gen_elim_t i2 -> Prims.GTot (Steel.ST.GenElim1.gen_elim_t (Steel.ST.GenElim1.Base.GEStarR i1 i2))
Prims.GTot
[ "sometrivial" ]
[]
[ "Steel.ST.GenElim1.Base.gen_unit_elim_i", "Steel.ST.GenElim1.Base.gen_elim_i", "Steel.ST.GenElim1.gen_elim_t", "Steel.Memory.inames", "Steel.ST.GenElim1.Base.compute_gen_elim_a", "Steel.ST.GenElim1.Base.GEStarR", "Prims.unit", "Steel.ST.Util.rewrite", "Steel.Effect.Common.star", "Steel.ST.GenElim1...
[]
false
false
false
false
false
let compute_gen_elim_f_star_r (i1: gen_unit_elim_i) (i2: gen_elim_i) (f2: gen_elim_t i2) : GTot (gen_elim_t (GEStarR i1 i2)) =
let f1 = compute_gen_unit_elim_f i1 in fun _ -> rewrite (compute_gen_elim_p (GEStarR i1 i2)) ((compute_gen_unit_elim_p i1) `star` (compute_gen_elim_p i2)); let _ = f1 _ in let res = f2 _ in let res':compute_gen_elim_a (GEStarR i1 i2) = coerce_with_trefl res in rewrite ((compute_gen_unit_elim_q i1) `star` ...
false