file_name
stringlengths
5
52
name
stringlengths
4
95
original_source_type
stringlengths
0
23k
source_type
stringlengths
9
23k
source_definition
stringlengths
9
57.9k
source
dict
source_range
dict
file_context
stringlengths
0
721k
dependencies
dict
opens_and_abbrevs
listlengths
2
94
vconfig
dict
interleaved
bool
1 class
verbose_type
stringlengths
1
7.42k
effect
stringclasses
118 values
effect_flags
listlengths
0
2
mutual_with
listlengths
0
11
ideal_premises
listlengths
0
236
proof_features
listlengths
0
1
is_simple_lemma
bool
2 classes
is_div
bool
2 classes
is_proof
bool
2 classes
is_simply_typed
bool
2 classes
is_type
bool
2 classes
partial_definition
stringlengths
5
3.99k
completed_definiton
stringlengths
1
1.63M
isa_cross_project_example
bool
1 class
FStar.Reflection.Typing.fsti
FStar.Reflection.Typing.blob
val blob : Type0
let blob = string & R.term
{ "file_name": "ulib/experimental/FStar.Reflection.Typing.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 26, "end_line": 1793, "start_col": 0, "start_line": 1793 }
(* Copyright 2008-2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Set.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.Native.tuple2", "Prims.string", "FStar.Stubs.Reflection.Types.term" ]
[]
false
false
false
true
true
let blob =
string & R.term
false
Hacl.Spec.K256.Field52.Lemmas2.fst
Hacl.Spec.K256.Field52.Lemmas2.normalize5_first_part
val normalize5_first_part : _: ((((Lib.IntTypes.uint64 * Lib.IntTypes.uint64) * Lib.IntTypes.uint64) * Lib.IntTypes.uint64) * Lib.IntTypes.uint64) -> Lib.IntTypes.uint64 * ((((Lib.IntTypes.uint64 * Lib.IntTypes.uint64) * Lib.IntTypes.uint64) * Lib.IntTypes.uint64) * Lib.IntTypes.uint64)
let normalize5_first_part (f0,f1,f2,f3,f4) = let (t0,t1,t2,t3,t4) = normalize_weak5 (f0,f1,f2,f3,f4) in let x, (r0,r1,r2,r3,r4) = minus_x_mul_pow2_256 (t0,t1,t2,t3,t4) in x, (r0,r1,r2,r3,r4)
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas2.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 21, "end_line": 208, "start_col": 0, "start_line": 205 }
module Hacl.Spec.K256.Field52.Lemmas2 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" /// No...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "Hacl.Spec.K256.Field52....
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
{ "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
_: ((((Lib.IntTypes.uint64 * Lib.IntTypes.uint64) * Lib.IntTypes.uint64) * Lib.IntTypes.uint64) * Lib.IntTypes.uint64) -> Lib.IntTypes.uint64 * ((((Lib.IntTypes.uint64 * Lib.IntTypes.uint64) * Lib.IntTypes.uint64) * Lib.IntTypes.uint64) * Lib.IntTypes.uint64)
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.Native.tuple5", "Lib.IntTypes.uint64", "FStar.Pervasives.Native.Mktuple2", "FStar.Pervasives.Native.Mktuple5", "FStar.Pervasives.Native.tuple2", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Hacl.Spec.K256.Field52.Definitions.felem5", "Hacl.Spec.K256.Field52.minu...
[]
false
false
false
true
false
let normalize5_first_part (f0, f1, f2, f3, f4) =
let t0, t1, t2, t3, t4 = normalize_weak5 (f0, f1, f2, f3, f4) in let x, (r0, r1, r2, r3, r4) = minus_x_mul_pow2_256 (t0, t1, t2, t3, t4) in x, (r0, r1, r2, r3, r4)
false
FStar.Reflection.Typing.fsti
FStar.Reflection.Typing.bindings_to_refl_bindings
val bindings_to_refl_bindings (bs: list binding) : list R.binding
val bindings_to_refl_bindings (bs: list binding) : list R.binding
let bindings_to_refl_bindings (bs : list binding) : list R.binding = L.map (fun (v, ty) -> {uniq=v; sort=ty; ppname = pp_name_default}) bs
{ "file_name": "ulib/experimental/FStar.Reflection.Typing.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 71, "end_line": 1051, "start_col": 0, "start_line": 1050 }
(* Copyright 2008-2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Set.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
bs: Prims.list FStar.Reflection.Typing.binding -> Prims.list FStar.Stubs.Reflection.V2.Data.binding
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "FStar.Reflection.Typing.binding", "FStar.List.Tot.Base.map", "FStar.Pervasives.Native.tuple2", "Prims.nat", "FStar.Stubs.Reflection.Types.typ", "FStar.Stubs.Reflection.V2.Data.binding", "FStar.Stubs.Reflection.V2.Data.Mkbinding", "FStar.Reflection.Typing.pp_name_default" ]
[]
false
false
false
true
false
let bindings_to_refl_bindings (bs: list binding) : list R.binding =
L.map (fun (v, ty) -> { uniq = v; sort = ty; ppname = pp_name_default }) bs
false
FStar.Reflection.Typing.fsti
FStar.Reflection.Typing.freevars_binder
val freevars_binder (b: binder) : Tot (Set.set var) (decreases b)
val freevars_binder (b: binder) : Tot (Set.set var) (decreases b)
let rec freevars (e:term) : FStar.Set.set var = match inspect_ln e with | Tv_Uvar _ _ -> Set.complement Set.empty | Tv_UInst _ _ | Tv_FVar _ | Tv_Type _ | Tv_Const _ | Tv_Unknown | Tv_Unsupp | Tv_BVar _ -> Set.empty | Tv_Var x -> Set.singleton (namedv_uniq x) |...
{ "file_name": "ulib/experimental/FStar.Reflection.Typing.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 37, "end_line": 705, "start_col": 0, "start_line": 567 }
(* Copyright 2008-2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Set.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: FStar.Stubs.Reflection.Types.binder -> Prims.Tot (FStar.Set.set FStar.Stubs.Reflection.V2.Data.var)
Prims.Tot
[ "total", "" ]
[ "freevars", "freevars_opt", "freevars_comp", "freevars_args", "freevars_terms", "freevars_binder", "freevars_pattern", "freevars_patterns", "freevars_branch", "freevars_branches", "freevars_match_returns" ]
[ "FStar.Stubs.Reflection.Types.binder", "FStar.Set.union", "FStar.Stubs.Reflection.V2.Data.var", "FStar.Reflection.Typing.freevars", "FStar.Stubs.Reflection.V2.Data.__proj__Mkbinder_view__item__sort", "FStar.Reflection.Typing.freevars_terms", "FStar.Stubs.Reflection.V2.Data.__proj__Mkbinder_view__item__a...
[ "mutual recursion" ]
false
false
false
true
false
let rec freevars_binder (b: binder) : Tot (Set.set var) (decreases b) =
let bndr = inspect_binder b in (freevars bndr.sort) `Set.union` (freevars_terms bndr.attrs)
false
FStar.Reflection.Typing.fsti
FStar.Reflection.Typing.freevars_args
val freevars_args (ts: list argv) : FStar.Set.set var
val freevars_args (ts: list argv) : FStar.Set.set var
let rec freevars (e:term) : FStar.Set.set var = match inspect_ln e with | Tv_Uvar _ _ -> Set.complement Set.empty | Tv_UInst _ _ | Tv_FVar _ | Tv_Type _ | Tv_Const _ | Tv_Unknown | Tv_Unsupp | Tv_BVar _ -> Set.empty | Tv_Var x -> Set.singleton (namedv_uniq x) |...
{ "file_name": "ulib/experimental/FStar.Reflection.Typing.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 37, "end_line": 705, "start_col": 0, "start_line": 567 }
(* Copyright 2008-2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Set.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ts: Prims.list FStar.Stubs.Reflection.V2.Data.argv -> FStar.Set.set FStar.Stubs.Reflection.V2.Data.var
Prims.Tot
[ "total" ]
[ "freevars", "freevars_opt", "freevars_comp", "freevars_args", "freevars_terms", "freevars_binder", "freevars_pattern", "freevars_patterns", "freevars_branch", "freevars_branches", "freevars_match_returns" ]
[ "Prims.list", "FStar.Stubs.Reflection.V2.Data.argv", "FStar.Set.empty", "FStar.Stubs.Reflection.V2.Data.var", "FStar.Stubs.Reflection.Types.term", "FStar.Stubs.Reflection.V2.Data.aqualv", "FStar.Set.union", "FStar.Reflection.Typing.freevars", "FStar.Reflection.Typing.freevars_args", "FStar.Set.set...
[ "mutual recursion" ]
false
false
false
true
false
let rec freevars_args (ts: list argv) : FStar.Set.set var =
match ts with | [] -> Set.empty | (t, q) :: ts -> (freevars t) `Set.union` (freevars_args ts)
false
FStar.Reflection.Typing.fsti
FStar.Reflection.Typing.freevars
val freevars (e: term) : FStar.Set.set var
val freevars (e: term) : FStar.Set.set var
let rec freevars (e:term) : FStar.Set.set var = match inspect_ln e with | Tv_Uvar _ _ -> Set.complement Set.empty | Tv_UInst _ _ | Tv_FVar _ | Tv_Type _ | Tv_Const _ | Tv_Unknown | Tv_Unsupp | Tv_BVar _ -> Set.empty | Tv_Var x -> Set.singleton (namedv_uniq x) |...
{ "file_name": "ulib/experimental/FStar.Reflection.Typing.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 37, "end_line": 705, "start_col": 0, "start_line": 567 }
(* Copyright 2008-2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Set.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: FStar.Stubs.Reflection.Types.term -> FStar.Set.set FStar.Stubs.Reflection.V2.Data.var
Prims.Tot
[ "total" ]
[ "freevars", "freevars_opt", "freevars_comp", "freevars_args", "freevars_terms", "freevars_binder", "freevars_pattern", "freevars_patterns", "freevars_branch", "freevars_branches", "freevars_match_returns" ]
[ "FStar.Stubs.Reflection.Types.term", "FStar.Stubs.Reflection.V2.Builtins.inspect_ln", "Prims.nat", "FStar.Stubs.Reflection.Types.ctx_uvar_and_subst", "FStar.Set.complement", "FStar.Stubs.Reflection.V2.Data.var", "FStar.Set.empty", "FStar.Stubs.Reflection.Types.fv", "FStar.Stubs.Reflection.V2.Data.un...
[ "mutual recursion" ]
false
false
false
true
false
let rec freevars (e: term) : FStar.Set.set var =
match inspect_ln e with | Tv_Uvar _ _ -> Set.complement Set.empty | Tv_UInst _ _ | Tv_FVar _ | Tv_Type _ | Tv_Const _ | Tv_Unknown | Tv_Unsupp | Tv_BVar _ -> Set.empty | Tv_Var x -> Set.singleton (namedv_uniq x) | Tv_App e1 (e2, _) -> Set.union (freevars e1) (freevars e2) | Tv_Abs b body -> Set.union (freevars_binder b...
false
FStar.Reflection.Typing.fsti
FStar.Reflection.Typing.ln'_branches
val ln'_branches (brs: list branch) (i: int) : Tot bool (decreases brs)
val ln'_branches (brs: list branch) (i: int) : Tot bool (decreases brs)
let rec ln' (e:term) (n:int) : Tot bool (decreases e) = match inspect_ln e with | Tv_UInst _ _ | Tv_FVar _ | Tv_Type _ | Tv_Const _ | Tv_Unknown | Tv_Unsupp | Tv_Var _ -> true | Tv_BVar m -> bv_index m <= n | Tv_App e1 (e2, _) -> ln' e1 n && ln' e2 n | Tv_Abs b body -> ...
{ "file_name": "ulib/experimental/FStar.Reflection.Typing.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 19, "end_line": 855, "start_col": 0, "start_line": 708 }
(* Copyright 2008-2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Set.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
brs: Prims.list FStar.Stubs.Reflection.V2.Data.branch -> i: Prims.int -> Prims.Tot Prims.bool
Prims.Tot
[ "total", "" ]
[ "ln'", "ln'_comp", "ln'_args", "ln'_binder", "ln'_terms", "ln'_patterns", "ln'_pattern", "ln'_branch", "ln'_branches", "ln'_match_returns" ]
[ "Prims.list", "FStar.Stubs.Reflection.V2.Data.branch", "Prims.int", "Prims.op_AmpAmp", "FStar.Reflection.Typing.ln'_branch", "FStar.Reflection.Typing.ln'_branches", "Prims.bool" ]
[ "mutual recursion" ]
false
false
false
true
false
let rec ln'_branches (brs: list branch) (i: int) : Tot bool (decreases brs) =
match brs with | [] -> true | br :: brs -> ln'_branch br i && ln'_branches brs i
false
FStar.Reflection.Typing.fsti
FStar.Reflection.Typing.elaborate_pat
val elaborate_pat (p: pattern) (bs: list R.binding) : Tot (option (term & list R.binding)) (decreases p)
val elaborate_pat (p: pattern) (bs: list R.binding) : Tot (option (term & list R.binding)) (decreases p)
let rec elaborate_pat (p : pattern) (bs : list R.binding) : Tot (option (term & list R.binding)) (decreases p) = match p, bs with | Pat_Constant c, _ -> Some (pack_ln (Tv_Const c), bs) | Pat_Cons fv univs subpats, bs -> let head = pack_ln (Tv_FVar fv) in fold_left_dec (Some (head, bs)) subpats...
{ "file_name": "ulib/experimental/FStar.Reflection.Typing.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 13, "end_line": 1144, "start_col": 0, "start_line": 1127 }
(* Copyright 2008-2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Set.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: FStar.Stubs.Reflection.V2.Data.pattern -> bs: Prims.list FStar.Stubs.Reflection.V2.Data.binding -> Prims.Tot (FStar.Pervasives.Native.option (FStar.Stubs.Reflection.Types.term * Prims.list FStar.Stubs.Reflection.V2.Data.binding))
Prims.Tot
[ "total", "" ]
[]
[ "FStar.Stubs.Reflection.V2.Data.pattern", "Prims.list", "FStar.Stubs.Reflection.V2.Data.binding", "FStar.Pervasives.Native.Mktuple2", "FStar.Stubs.Reflection.V2.Data.vconst", "FStar.Pervasives.Native.Some", "FStar.Pervasives.Native.tuple2", "FStar.Stubs.Reflection.Types.term", "FStar.Stubs.Reflectio...
[ "recursion" ]
false
false
false
true
false
let rec elaborate_pat (p: pattern) (bs: list R.binding) : Tot (option (term & list R.binding)) (decreases p) =
match p, bs with | Pat_Constant c, _ -> Some (pack_ln (Tv_Const c), bs) | Pat_Cons fv univs subpats, bs -> let head = pack_ln (Tv_FVar fv) in fold_left_dec (Some (head, bs)) subpats (fun st pi -> let p, i = pi in match st with | None -> None | Some (head, bs) -> mat...
false
FStar.Reflection.Typing.fsti
FStar.Reflection.Typing.freevars_match_returns
val freevars_match_returns (m: match_returns_ascription) : Tot (Set.set var) (decreases m)
val freevars_match_returns (m: match_returns_ascription) : Tot (Set.set var) (decreases m)
let rec freevars (e:term) : FStar.Set.set var = match inspect_ln e with | Tv_Uvar _ _ -> Set.complement Set.empty | Tv_UInst _ _ | Tv_FVar _ | Tv_Type _ | Tv_Const _ | Tv_Unknown | Tv_Unsupp | Tv_BVar _ -> Set.empty | Tv_Var x -> Set.singleton (namedv_uniq x) |...
{ "file_name": "ulib/experimental/FStar.Reflection.Typing.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 37, "end_line": 705, "start_col": 0, "start_line": 567 }
(* Copyright 2008-2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Set.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
m: FStar.Stubs.Reflection.Types.match_returns_ascription -> Prims.Tot (FStar.Set.set FStar.Stubs.Reflection.V2.Data.var)
Prims.Tot
[ "total", "" ]
[ "freevars", "freevars_opt", "freevars_comp", "freevars_args", "freevars_terms", "freevars_binder", "freevars_pattern", "freevars_patterns", "freevars_branch", "freevars_branches", "freevars_match_returns" ]
[ "FStar.Stubs.Reflection.Types.match_returns_ascription", "FStar.Stubs.Reflection.Types.binder", "FStar.Pervasives.either", "FStar.Stubs.Reflection.Types.term", "FStar.Stubs.Reflection.Types.comp", "FStar.Pervasives.Native.option", "Prims.bool", "FStar.Set.union", "FStar.Stubs.Reflection.V2.Data.var"...
[ "mutual recursion" ]
false
false
false
true
false
let rec freevars_match_returns (m: match_returns_ascription) : Tot (Set.set var) (decreases m) =
let b, (ret, as_, eq) = m in let b = freevars_binder b in let ret = match ret with | Inl t -> freevars t | Inr c -> freevars_comp c in let as_ = freevars_opt as_ freevars in (b `Set.union` ret) `Set.union` as_
false
FStar.Reflection.Typing.fsti
FStar.Reflection.Typing.freevars_branches
val freevars_branches (brs: list branch) : Tot (Set.set var) (decreases brs)
val freevars_branches (brs: list branch) : Tot (Set.set var) (decreases brs)
let rec freevars (e:term) : FStar.Set.set var = match inspect_ln e with | Tv_Uvar _ _ -> Set.complement Set.empty | Tv_UInst _ _ | Tv_FVar _ | Tv_Type _ | Tv_Const _ | Tv_Unknown | Tv_Unsupp | Tv_BVar _ -> Set.empty | Tv_Var x -> Set.singleton (namedv_uniq x) |...
{ "file_name": "ulib/experimental/FStar.Reflection.Typing.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 37, "end_line": 705, "start_col": 0, "start_line": 567 }
(* Copyright 2008-2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Set.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
brs: Prims.list FStar.Stubs.Reflection.V2.Data.branch -> Prims.Tot (FStar.Set.set FStar.Stubs.Reflection.V2.Data.var)
Prims.Tot
[ "total", "" ]
[ "freevars", "freevars_opt", "freevars_comp", "freevars_args", "freevars_terms", "freevars_binder", "freevars_pattern", "freevars_patterns", "freevars_branch", "freevars_branches", "freevars_match_returns" ]
[ "Prims.list", "FStar.Stubs.Reflection.V2.Data.branch", "FStar.Set.empty", "FStar.Stubs.Reflection.V2.Data.var", "FStar.Set.union", "FStar.Reflection.Typing.freevars_branch", "FStar.Reflection.Typing.freevars_branches", "FStar.Set.set" ]
[ "mutual recursion" ]
false
false
false
true
false
let rec freevars_branches (brs: list branch) : Tot (Set.set var) (decreases brs) =
match brs with | [] -> Set.empty | hd :: tl -> (freevars_branch hd) `Set.union` (freevars_branches tl)
false
FStar.Reflection.Typing.fsti
FStar.Reflection.Typing.ln'_comp
val ln'_comp (c: comp) (i: int) : Tot bool (decreases c)
val ln'_comp (c: comp) (i: int) : Tot bool (decreases c)
let rec ln' (e:term) (n:int) : Tot bool (decreases e) = match inspect_ln e with | Tv_UInst _ _ | Tv_FVar _ | Tv_Type _ | Tv_Const _ | Tv_Unknown | Tv_Unsupp | Tv_Var _ -> true | Tv_BVar m -> bv_index m <= n | Tv_App e1 (e2, _) -> ln' e1 n && ln' e2 n | Tv_Abs b body -> ...
{ "file_name": "ulib/experimental/FStar.Reflection.Typing.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 19, "end_line": 855, "start_col": 0, "start_line": 708 }
(* Copyright 2008-2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Set.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
c: FStar.Stubs.Reflection.Types.comp -> i: Prims.int -> Prims.Tot Prims.bool
Prims.Tot
[ "total", "" ]
[ "ln'", "ln'_comp", "ln'_args", "ln'_binder", "ln'_terms", "ln'_patterns", "ln'_pattern", "ln'_branch", "ln'_branches", "ln'_match_returns" ]
[ "FStar.Stubs.Reflection.Types.comp", "Prims.int", "FStar.Stubs.Reflection.V2.Builtins.inspect_comp", "FStar.Stubs.Reflection.Types.typ", "FStar.Reflection.Typing.ln'", "FStar.Stubs.Reflection.Types.term", "Prims.op_AmpAmp", "FStar.Stubs.Reflection.V2.Data.universes", "FStar.Stubs.Reflection.Types.na...
[ "mutual recursion" ]
false
false
false
true
false
let rec ln'_comp (c: comp) (i: int) : Tot bool (decreases c) =
match inspect_comp c with | C_Total t | C_GTotal t -> ln' t i | C_Lemma pre post pats -> ln' pre i && ln' post i && ln' pats i | C_Eff us eff_name res args decrs -> ln' res i && ln'_args args i && ln'_terms decrs i
false
FStar.Reflection.Typing.fsti
FStar.Reflection.Typing.ln'_branch
val ln'_branch (br: branch) (i: int) : Tot bool (decreases br)
val ln'_branch (br: branch) (i: int) : Tot bool (decreases br)
let rec ln' (e:term) (n:int) : Tot bool (decreases e) = match inspect_ln e with | Tv_UInst _ _ | Tv_FVar _ | Tv_Type _ | Tv_Const _ | Tv_Unknown | Tv_Unsupp | Tv_Var _ -> true | Tv_BVar m -> bv_index m <= n | Tv_App e1 (e2, _) -> ln' e1 n && ln' e2 n | Tv_Abs b body -> ...
{ "file_name": "ulib/experimental/FStar.Reflection.Typing.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 19, "end_line": 855, "start_col": 0, "start_line": 708 }
(* Copyright 2008-2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Set.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
br: FStar.Stubs.Reflection.V2.Data.branch -> i: Prims.int -> Prims.Tot Prims.bool
Prims.Tot
[ "total", "" ]
[ "ln'", "ln'_comp", "ln'_args", "ln'_binder", "ln'_terms", "ln'_patterns", "ln'_pattern", "ln'_branch", "ln'_branches", "ln'_match_returns" ]
[ "FStar.Stubs.Reflection.V2.Data.branch", "Prims.int", "FStar.Stubs.Reflection.V2.Data.pattern", "FStar.Stubs.Reflection.Types.term", "Prims.op_AmpAmp", "Prims.bool", "FStar.Reflection.Typing.ln'", "Prims.op_Addition", "Prims.nat", "FStar.Reflection.Typing.binder_offset_pattern", "FStar.Reflectio...
[ "mutual recursion" ]
false
false
false
true
false
let rec ln'_branch (br: branch) (i: int) : Tot bool (decreases br) =
let p, t = br in let b = ln'_pattern p i in let j = binder_offset_pattern p in let b' = ln' t (i + j) in b && b'
false
FStar.Reflection.Typing.fsti
FStar.Reflection.Typing.ln'_pattern
val ln'_pattern (p: pattern) (i: int) : Tot bool (decreases p)
val ln'_pattern (p: pattern) (i: int) : Tot bool (decreases p)
let rec ln' (e:term) (n:int) : Tot bool (decreases e) = match inspect_ln e with | Tv_UInst _ _ | Tv_FVar _ | Tv_Type _ | Tv_Const _ | Tv_Unknown | Tv_Unsupp | Tv_Var _ -> true | Tv_BVar m -> bv_index m <= n | Tv_App e1 (e2, _) -> ln' e1 n && ln' e2 n | Tv_Abs b body -> ...
{ "file_name": "ulib/experimental/FStar.Reflection.Typing.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 19, "end_line": 855, "start_col": 0, "start_line": 708 }
(* Copyright 2008-2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Set.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: FStar.Stubs.Reflection.V2.Data.pattern -> i: Prims.int -> Prims.Tot Prims.bool
Prims.Tot
[ "total", "" ]
[ "ln'", "ln'_comp", "ln'_args", "ln'_binder", "ln'_terms", "ln'_patterns", "ln'_pattern", "ln'_branch", "ln'_branches", "ln'_match_returns" ]
[ "FStar.Stubs.Reflection.V2.Data.pattern", "Prims.int", "FStar.Stubs.Reflection.V2.Data.vconst", "FStar.Stubs.Reflection.Types.fv", "FStar.Pervasives.Native.option", "FStar.Stubs.Reflection.V2.Data.universes", "Prims.list", "FStar.Pervasives.Native.tuple2", "Prims.bool", "FStar.Reflection.Typing.ln...
[ "mutual recursion" ]
false
false
false
true
false
let rec ln'_pattern (p: pattern) (i: int) : Tot bool (decreases p) =
match p with | Pat_Constant _ -> true | Pat_Cons head univs subpats -> ln'_patterns subpats i | Pat_Var bv s -> true | Pat_Dot_Term topt -> (match topt with | None -> true | Some t -> ln' t i)
false
FStar.Reflection.Typing.fsti
FStar.Reflection.Typing.freevars_terms
val freevars_terms (ts: list term) : FStar.Set.set var
val freevars_terms (ts: list term) : FStar.Set.set var
let rec freevars (e:term) : FStar.Set.set var = match inspect_ln e with | Tv_Uvar _ _ -> Set.complement Set.empty | Tv_UInst _ _ | Tv_FVar _ | Tv_Type _ | Tv_Const _ | Tv_Unknown | Tv_Unsupp | Tv_BVar _ -> Set.empty | Tv_Var x -> Set.singleton (namedv_uniq x) |...
{ "file_name": "ulib/experimental/FStar.Reflection.Typing.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 37, "end_line": 705, "start_col": 0, "start_line": 567 }
(* Copyright 2008-2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Set.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ts: Prims.list FStar.Stubs.Reflection.Types.term -> FStar.Set.set FStar.Stubs.Reflection.V2.Data.var
Prims.Tot
[ "total" ]
[ "freevars", "freevars_opt", "freevars_comp", "freevars_args", "freevars_terms", "freevars_binder", "freevars_pattern", "freevars_patterns", "freevars_branch", "freevars_branches", "freevars_match_returns" ]
[ "Prims.list", "FStar.Stubs.Reflection.Types.term", "FStar.Set.empty", "FStar.Stubs.Reflection.V2.Data.var", "FStar.Set.union", "FStar.Reflection.Typing.freevars", "FStar.Reflection.Typing.freevars_terms", "FStar.Set.set" ]
[ "mutual recursion" ]
false
false
false
true
false
let rec freevars_terms (ts: list term) : FStar.Set.set var =
match ts with | [] -> Set.empty | t :: ts -> (freevars t) `Set.union` (freevars_terms ts)
false
FStar.Reflection.Typing.fsti
FStar.Reflection.Typing.ln'_match_returns
val ln'_match_returns (m: match_returns_ascription) (i: int) : Tot bool (decreases m)
val ln'_match_returns (m: match_returns_ascription) (i: int) : Tot bool (decreases m)
let rec ln' (e:term) (n:int) : Tot bool (decreases e) = match inspect_ln e with | Tv_UInst _ _ | Tv_FVar _ | Tv_Type _ | Tv_Const _ | Tv_Unknown | Tv_Unsupp | Tv_Var _ -> true | Tv_BVar m -> bv_index m <= n | Tv_App e1 (e2, _) -> ln' e1 n && ln' e2 n | Tv_Abs b body -> ...
{ "file_name": "ulib/experimental/FStar.Reflection.Typing.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 19, "end_line": 855, "start_col": 0, "start_line": 708 }
(* Copyright 2008-2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Set.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
m: FStar.Stubs.Reflection.Types.match_returns_ascription -> i: Prims.int -> Prims.Tot Prims.bool
Prims.Tot
[ "total", "" ]
[ "ln'", "ln'_comp", "ln'_args", "ln'_binder", "ln'_terms", "ln'_patterns", "ln'_pattern", "ln'_branch", "ln'_branches", "ln'_match_returns" ]
[ "FStar.Stubs.Reflection.Types.match_returns_ascription", "Prims.int", "FStar.Stubs.Reflection.Types.binder", "FStar.Pervasives.either", "FStar.Stubs.Reflection.Types.term", "FStar.Stubs.Reflection.Types.comp", "FStar.Pervasives.Native.option", "Prims.bool", "Prims.op_AmpAmp", "FStar.Reflection.Typ...
[ "mutual recursion" ]
false
false
false
true
false
let rec ln'_match_returns (m: match_returns_ascription) (i: int) : Tot bool (decreases m) =
let b, (ret, as_, eq) = m in let b = ln'_binder b i in let ret = match ret with | Inl t -> ln' t (i + 1) | Inr c -> ln'_comp c (i + 1) in let as_ = match as_ with | None -> true | Some t -> ln' t (i + 1) in b && ret && as_
false
FStar.Reflection.Typing.fsti
FStar.Reflection.Typing.ln'_binder
val ln'_binder (b: binder) (n: int) : Tot bool (decreases b)
val ln'_binder (b: binder) (n: int) : Tot bool (decreases b)
let rec ln' (e:term) (n:int) : Tot bool (decreases e) = match inspect_ln e with | Tv_UInst _ _ | Tv_FVar _ | Tv_Type _ | Tv_Const _ | Tv_Unknown | Tv_Unsupp | Tv_Var _ -> true | Tv_BVar m -> bv_index m <= n | Tv_App e1 (e2, _) -> ln' e1 n && ln' e2 n | Tv_Abs b body -> ...
{ "file_name": "ulib/experimental/FStar.Reflection.Typing.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 19, "end_line": 855, "start_col": 0, "start_line": 708 }
(* Copyright 2008-2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Set.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: FStar.Stubs.Reflection.Types.binder -> n: Prims.int -> Prims.Tot Prims.bool
Prims.Tot
[ "total", "" ]
[ "ln'", "ln'_comp", "ln'_args", "ln'_binder", "ln'_terms", "ln'_patterns", "ln'_pattern", "ln'_branch", "ln'_branches", "ln'_match_returns" ]
[ "FStar.Stubs.Reflection.Types.binder", "Prims.int", "Prims.op_AmpAmp", "FStar.Reflection.Typing.ln'", "FStar.Stubs.Reflection.V2.Data.__proj__Mkbinder_view__item__sort", "FStar.Reflection.Typing.ln'_terms", "FStar.Stubs.Reflection.V2.Data.__proj__Mkbinder_view__item__attrs", "FStar.Stubs.Reflection.V2...
[ "mutual recursion" ]
false
false
false
true
false
let rec ln'_binder (b: binder) (n: int) : Tot bool (decreases b) =
let bndr = inspect_binder b in ln' bndr.sort n && ln'_terms bndr.attrs n
false
FStar.Reflection.Typing.fsti
FStar.Reflection.Typing.ln'_patterns
val ln'_patterns (ps: list (pattern & bool)) (i: int) : Tot bool (decreases ps)
val ln'_patterns (ps: list (pattern & bool)) (i: int) : Tot bool (decreases ps)
let rec ln' (e:term) (n:int) : Tot bool (decreases e) = match inspect_ln e with | Tv_UInst _ _ | Tv_FVar _ | Tv_Type _ | Tv_Const _ | Tv_Unknown | Tv_Unsupp | Tv_Var _ -> true | Tv_BVar m -> bv_index m <= n | Tv_App e1 (e2, _) -> ln' e1 n && ln' e2 n | Tv_Abs b body -> ...
{ "file_name": "ulib/experimental/FStar.Reflection.Typing.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 19, "end_line": 855, "start_col": 0, "start_line": 708 }
(* Copyright 2008-2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Set.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ps: Prims.list (FStar.Stubs.Reflection.V2.Data.pattern * Prims.bool) -> i: Prims.int -> Prims.Tot Prims.bool
Prims.Tot
[ "total", "" ]
[ "ln'", "ln'_comp", "ln'_args", "ln'_binder", "ln'_terms", "ln'_patterns", "ln'_pattern", "ln'_branch", "ln'_branches", "ln'_match_returns" ]
[ "Prims.list", "FStar.Pervasives.Native.tuple2", "FStar.Stubs.Reflection.V2.Data.pattern", "Prims.bool", "Prims.int", "Prims.op_AmpAmp", "FStar.Reflection.Typing.ln'_patterns", "Prims.op_Addition", "Prims.nat", "FStar.Reflection.Typing.binder_offset_pattern", "FStar.Reflection.Typing.ln'_pattern"...
[ "mutual recursion" ]
false
false
false
true
false
let rec ln'_patterns (ps: list (pattern & bool)) (i: int) : Tot bool (decreases ps) =
match ps with | [] -> true | (p, b) :: ps -> let b0 = ln'_pattern p i in let n = binder_offset_pattern p in let b1 = ln'_patterns ps (i + n) in b0 && b1
false
FStar.Reflection.Typing.fsti
FStar.Reflection.Typing.freevars_opt
val freevars_opt (#a: Type0) (o: option a) (f: (x: a{x << o} -> FStar.Set.set var)) : FStar.Set.set var
val freevars_opt (#a: Type0) (o: option a) (f: (x: a{x << o} -> FStar.Set.set var)) : FStar.Set.set var
let rec freevars (e:term) : FStar.Set.set var = match inspect_ln e with | Tv_Uvar _ _ -> Set.complement Set.empty | Tv_UInst _ _ | Tv_FVar _ | Tv_Type _ | Tv_Const _ | Tv_Unknown | Tv_Unsupp | Tv_BVar _ -> Set.empty | Tv_Var x -> Set.singleton (namedv_uniq x) |...
{ "file_name": "ulib/experimental/FStar.Reflection.Typing.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 37, "end_line": 705, "start_col": 0, "start_line": 567 }
(* Copyright 2008-2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Set.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
o: FStar.Pervasives.Native.option a -> f: (x: a{x << o} -> FStar.Set.set FStar.Stubs.Reflection.V2.Data.var) -> FStar.Set.set FStar.Stubs.Reflection.V2.Data.var
Prims.Tot
[ "total" ]
[ "freevars", "freevars_opt", "freevars_comp", "freevars_args", "freevars_terms", "freevars_binder", "freevars_pattern", "freevars_patterns", "freevars_branch", "freevars_branches", "freevars_match_returns" ]
[ "FStar.Pervasives.Native.option", "Prims.precedes", "FStar.Set.set", "FStar.Stubs.Reflection.V2.Data.var", "FStar.Set.empty" ]
[ "mutual recursion" ]
false
false
false
false
false
let rec freevars_opt (#a: Type0) (o: option a) (f: (x: a{x << o} -> FStar.Set.set var)) : FStar.Set.set var =
match o with | None -> Set.empty | Some x -> f x
false
FStar.Reflection.Typing.fsti
FStar.Reflection.Typing.freevars_patterns
val freevars_patterns (ps: list (pattern & bool)) : Tot (Set.set var) (decreases ps)
val freevars_patterns (ps: list (pattern & bool)) : Tot (Set.set var) (decreases ps)
let rec freevars (e:term) : FStar.Set.set var = match inspect_ln e with | Tv_Uvar _ _ -> Set.complement Set.empty | Tv_UInst _ _ | Tv_FVar _ | Tv_Type _ | Tv_Const _ | Tv_Unknown | Tv_Unsupp | Tv_BVar _ -> Set.empty | Tv_Var x -> Set.singleton (namedv_uniq x) |...
{ "file_name": "ulib/experimental/FStar.Reflection.Typing.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 37, "end_line": 705, "start_col": 0, "start_line": 567 }
(* Copyright 2008-2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Set.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ps: Prims.list (FStar.Stubs.Reflection.V2.Data.pattern * Prims.bool) -> Prims.Tot (FStar.Set.set FStar.Stubs.Reflection.V2.Data.var)
Prims.Tot
[ "total", "" ]
[ "freevars", "freevars_opt", "freevars_comp", "freevars_args", "freevars_terms", "freevars_binder", "freevars_pattern", "freevars_patterns", "freevars_branch", "freevars_branches", "freevars_match_returns" ]
[ "Prims.list", "FStar.Pervasives.Native.tuple2", "FStar.Stubs.Reflection.V2.Data.pattern", "Prims.bool", "FStar.Set.empty", "FStar.Stubs.Reflection.V2.Data.var", "FStar.Set.union", "FStar.Reflection.Typing.freevars_pattern", "FStar.Reflection.Typing.freevars_patterns", "FStar.Set.set" ]
[ "mutual recursion" ]
false
false
false
true
false
let rec freevars_patterns (ps: list (pattern & bool)) : Tot (Set.set var) (decreases ps) =
match ps with | [] -> Set.empty | (p, b) :: ps -> (freevars_pattern p) `Set.union` (freevars_patterns ps)
false
FStar.Reflection.Typing.fsti
FStar.Reflection.Typing.freevars_comp
val freevars_comp (c: comp) : FStar.Set.set var
val freevars_comp (c: comp) : FStar.Set.set var
let rec freevars (e:term) : FStar.Set.set var = match inspect_ln e with | Tv_Uvar _ _ -> Set.complement Set.empty | Tv_UInst _ _ | Tv_FVar _ | Tv_Type _ | Tv_Const _ | Tv_Unknown | Tv_Unsupp | Tv_BVar _ -> Set.empty | Tv_Var x -> Set.singleton (namedv_uniq x) |...
{ "file_name": "ulib/experimental/FStar.Reflection.Typing.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 37, "end_line": 705, "start_col": 0, "start_line": 567 }
(* Copyright 2008-2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Set.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
c: FStar.Stubs.Reflection.Types.comp -> FStar.Set.set FStar.Stubs.Reflection.V2.Data.var
Prims.Tot
[ "total" ]
[ "freevars", "freevars_opt", "freevars_comp", "freevars_args", "freevars_terms", "freevars_binder", "freevars_pattern", "freevars_patterns", "freevars_branch", "freevars_branches", "freevars_match_returns" ]
[ "FStar.Stubs.Reflection.Types.comp", "FStar.Stubs.Reflection.V2.Builtins.inspect_comp", "FStar.Stubs.Reflection.Types.typ", "FStar.Reflection.Typing.freevars", "FStar.Stubs.Reflection.Types.term", "FStar.Set.union", "FStar.Stubs.Reflection.V2.Data.var", "FStar.Stubs.Reflection.V2.Data.universes", "F...
[ "mutual recursion" ]
false
false
false
true
false
let rec freevars_comp (c: comp) : FStar.Set.set var =
match inspect_comp c with | C_Total t | C_GTotal t -> freevars t | C_Lemma pre post pats -> ((freevars pre) `Set.union` (freevars post)) `Set.union` (freevars pats) | C_Eff us eff_name res args decrs -> ((freevars res) `Set.union` (freevars_args args)) `Set.union` (freevars_terms decrs)
false
FStar.Reflection.Typing.fsti
FStar.Reflection.Typing.ln'_terms
val ln'_terms (ts: list term) (n: int) : Tot bool (decreases ts)
val ln'_terms (ts: list term) (n: int) : Tot bool (decreases ts)
let rec ln' (e:term) (n:int) : Tot bool (decreases e) = match inspect_ln e with | Tv_UInst _ _ | Tv_FVar _ | Tv_Type _ | Tv_Const _ | Tv_Unknown | Tv_Unsupp | Tv_Var _ -> true | Tv_BVar m -> bv_index m <= n | Tv_App e1 (e2, _) -> ln' e1 n && ln' e2 n | Tv_Abs b body -> ...
{ "file_name": "ulib/experimental/FStar.Reflection.Typing.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 19, "end_line": 855, "start_col": 0, "start_line": 708 }
(* Copyright 2008-2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Set.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ts: Prims.list FStar.Stubs.Reflection.Types.term -> n: Prims.int -> Prims.Tot Prims.bool
Prims.Tot
[ "total", "" ]
[ "ln'", "ln'_comp", "ln'_args", "ln'_binder", "ln'_terms", "ln'_patterns", "ln'_pattern", "ln'_branch", "ln'_branches", "ln'_match_returns" ]
[ "Prims.list", "FStar.Stubs.Reflection.Types.term", "Prims.int", "Prims.op_AmpAmp", "FStar.Reflection.Typing.ln'", "FStar.Reflection.Typing.ln'_terms", "Prims.bool" ]
[ "mutual recursion" ]
false
false
false
true
false
let rec ln'_terms (ts: list term) (n: int) : Tot bool (decreases ts) =
match ts with | [] -> true | t :: ts -> ln' t n && ln'_terms ts n
false
FStar.Reflection.Typing.fsti
FStar.Reflection.Typing.ln'_args
val ln'_args (ts: list argv) (i: int) : Tot bool (decreases ts)
val ln'_args (ts: list argv) (i: int) : Tot bool (decreases ts)
let rec ln' (e:term) (n:int) : Tot bool (decreases e) = match inspect_ln e with | Tv_UInst _ _ | Tv_FVar _ | Tv_Type _ | Tv_Const _ | Tv_Unknown | Tv_Unsupp | Tv_Var _ -> true | Tv_BVar m -> bv_index m <= n | Tv_App e1 (e2, _) -> ln' e1 n && ln' e2 n | Tv_Abs b body -> ...
{ "file_name": "ulib/experimental/FStar.Reflection.Typing.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 19, "end_line": 855, "start_col": 0, "start_line": 708 }
(* Copyright 2008-2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Set.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ts: Prims.list FStar.Stubs.Reflection.V2.Data.argv -> i: Prims.int -> Prims.Tot Prims.bool
Prims.Tot
[ "total", "" ]
[ "ln'", "ln'_comp", "ln'_args", "ln'_binder", "ln'_terms", "ln'_patterns", "ln'_pattern", "ln'_branch", "ln'_branches", "ln'_match_returns" ]
[ "Prims.list", "FStar.Stubs.Reflection.V2.Data.argv", "Prims.int", "FStar.Stubs.Reflection.Types.term", "FStar.Stubs.Reflection.V2.Data.aqualv", "Prims.op_AmpAmp", "FStar.Reflection.Typing.ln'", "FStar.Reflection.Typing.ln'_args", "Prims.bool" ]
[ "mutual recursion" ]
false
false
false
true
false
let rec ln'_args (ts: list argv) (i: int) : Tot bool (decreases ts) =
match ts with | [] -> true | (t, q) :: ts -> ln' t i && ln'_args ts i
false
FStar.Reflection.Typing.fsti
FStar.Reflection.Typing.freevars_pattern
val freevars_pattern (p: pattern) : Tot (Set.set var) (decreases p)
val freevars_pattern (p: pattern) : Tot (Set.set var) (decreases p)
let rec freevars (e:term) : FStar.Set.set var = match inspect_ln e with | Tv_Uvar _ _ -> Set.complement Set.empty | Tv_UInst _ _ | Tv_FVar _ | Tv_Type _ | Tv_Const _ | Tv_Unknown | Tv_Unsupp | Tv_BVar _ -> Set.empty | Tv_Var x -> Set.singleton (namedv_uniq x) |...
{ "file_name": "ulib/experimental/FStar.Reflection.Typing.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 37, "end_line": 705, "start_col": 0, "start_line": 567 }
(* Copyright 2008-2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Set.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: FStar.Stubs.Reflection.V2.Data.pattern -> Prims.Tot (FStar.Set.set FStar.Stubs.Reflection.V2.Data.var)
Prims.Tot
[ "total", "" ]
[ "freevars", "freevars_opt", "freevars_comp", "freevars_args", "freevars_terms", "freevars_binder", "freevars_pattern", "freevars_patterns", "freevars_branch", "freevars_branches", "freevars_match_returns" ]
[ "FStar.Stubs.Reflection.V2.Data.pattern", "FStar.Stubs.Reflection.V2.Data.vconst", "FStar.Set.empty", "FStar.Stubs.Reflection.V2.Data.var", "FStar.Stubs.Reflection.Types.fv", "FStar.Pervasives.Native.option", "FStar.Stubs.Reflection.V2.Data.universes", "Prims.list", "FStar.Pervasives.Native.tuple2",...
[ "mutual recursion" ]
false
false
false
true
false
let rec freevars_pattern (p: pattern) : Tot (Set.set var) (decreases p) =
match p with | Pat_Constant _ -> Set.empty | Pat_Cons head univs subpats -> freevars_patterns subpats | Pat_Var bv s -> Set.empty | Pat_Dot_Term topt -> freevars_opt topt freevars
false
FStar.Reflection.Typing.fsti
FStar.Reflection.Typing.freevars_branch
val freevars_branch (br: branch) : Tot (Set.set var) (decreases br)
val freevars_branch (br: branch) : Tot (Set.set var) (decreases br)
let rec freevars (e:term) : FStar.Set.set var = match inspect_ln e with | Tv_Uvar _ _ -> Set.complement Set.empty | Tv_UInst _ _ | Tv_FVar _ | Tv_Type _ | Tv_Const _ | Tv_Unknown | Tv_Unsupp | Tv_BVar _ -> Set.empty | Tv_Var x -> Set.singleton (namedv_uniq x) |...
{ "file_name": "ulib/experimental/FStar.Reflection.Typing.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 37, "end_line": 705, "start_col": 0, "start_line": 567 }
(* Copyright 2008-2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Set.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
br: FStar.Stubs.Reflection.V2.Data.branch -> Prims.Tot (FStar.Set.set FStar.Stubs.Reflection.V2.Data.var)
Prims.Tot
[ "total", "" ]
[ "freevars", "freevars_opt", "freevars_comp", "freevars_args", "freevars_terms", "freevars_binder", "freevars_pattern", "freevars_patterns", "freevars_branch", "freevars_branches", "freevars_match_returns" ]
[ "FStar.Stubs.Reflection.V2.Data.branch", "FStar.Stubs.Reflection.V2.Data.pattern", "FStar.Stubs.Reflection.Types.term", "FStar.Set.union", "FStar.Stubs.Reflection.V2.Data.var", "FStar.Reflection.Typing.freevars_pattern", "FStar.Reflection.Typing.freevars", "FStar.Set.set" ]
[ "mutual recursion" ]
false
false
false
true
false
let rec freevars_branch (br: branch) : Tot (Set.set var) (decreases br) =
let p, t = br in (freevars_pattern p) `Set.union` (freevars t)
false
PulseCore.Action.fsti
PulseCore.Action.inames
val inames : Type0
let inames = Ghost.erased (FStar.Set.set iname)
{ "file_name": "lib/pulse_core/PulseCore.Action.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 47, "end_line": 10, "start_col": 0, "start_line": 10 }
module PulseCore.Action module I = PulseCore.InstantiatedSemantics module PP = PulseCore.Preorder open PulseCore.InstantiatedSemantics open FStar.PCM open FStar.Ghost val iname : eqtype
{ "checked_file": "/", "dependencies": [ "PulseCore.Preorder.fst.checked", "PulseCore.InstantiatedSemantics.fsti.checked", "prims.fst.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.PCM.fst.checked", "FStar.Ghost.fsti.checked"...
[ { "abbrev": false, "full_module": "PulseCore.InstantiatedSemantics", "short_module": null }, { "abbrev": false, "full_module": "PulseCore.Memory", "short_module": null }, { "abbrev": false, "full_module": "FStar.Ghost", "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
Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.Ghost.erased", "FStar.Set.set", "PulseCore.Action.iname" ]
[]
false
false
false
true
true
let inames =
Ghost.erased (FStar.Set.set iname)
false
FStar.Reflection.Typing.fsti
FStar.Reflection.Typing.ln'
val ln' (e: term) (n: int) : Tot bool (decreases e)
val ln' (e: term) (n: int) : Tot bool (decreases e)
let rec ln' (e:term) (n:int) : Tot bool (decreases e) = match inspect_ln e with | Tv_UInst _ _ | Tv_FVar _ | Tv_Type _ | Tv_Const _ | Tv_Unknown | Tv_Unsupp | Tv_Var _ -> true | Tv_BVar m -> bv_index m <= n | Tv_App e1 (e2, _) -> ln' e1 n && ln' e2 n | Tv_Abs b body -> ...
{ "file_name": "ulib/experimental/FStar.Reflection.Typing.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 19, "end_line": 855, "start_col": 0, "start_line": 708 }
(* Copyright 2008-2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Set.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
e: FStar.Stubs.Reflection.Types.term -> n: Prims.int -> Prims.Tot Prims.bool
Prims.Tot
[ "total", "" ]
[ "ln'", "ln'_comp", "ln'_args", "ln'_binder", "ln'_terms", "ln'_patterns", "ln'_pattern", "ln'_branch", "ln'_branches", "ln'_match_returns" ]
[ "FStar.Stubs.Reflection.Types.term", "Prims.int", "FStar.Stubs.Reflection.V2.Builtins.inspect_ln", "FStar.Stubs.Reflection.Types.fv", "FStar.Stubs.Reflection.V2.Data.universes", "FStar.Stubs.Reflection.Types.universe", "FStar.Stubs.Reflection.V2.Data.vconst", "FStar.Stubs.Reflection.Types.namedv", "...
[ "mutual recursion" ]
false
false
false
true
false
let rec ln' (e: term) (n: int) : Tot bool (decreases e) =
match inspect_ln e with | Tv_UInst _ _ | Tv_FVar _ | Tv_Type _ | Tv_Const _ | Tv_Unknown | Tv_Unsupp | Tv_Var _ -> true | Tv_BVar m -> bv_index m <= n | Tv_App e1 (e2, _) -> ln' e1 n && ln' e2 n | Tv_Abs b body -> ln'_binder b n && ln' body (n + 1) | Tv_Arrow b c -> ln'_binder b n && ln'_comp c (n + 1) | Tv_Refine b f ...
false
Pulse.Lib.GhostWitness.fst
Pulse.Lib.GhostWitness.psquash
val psquash (a: Type u#a) : prop
val psquash (a: Type u#a) : prop
let psquash (a:Type u#a) : prop = squash a
{ "file_name": "share/steel/examples/pulse/lib/Pulse.Lib.GhostWitness.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 42, "end_line": 8, "start_col": 0, "start_line": 8 }
module Pulse.Lib.GhostWitness open Pulse.Lib.Pervasives let sqeq (p : Type) (_ : squash p) : erased p = FStar.IndefiniteDescription.elim_squash #p ()
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.IndefiniteDescription.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Lib.GhostWitness.fst" }
[ { "abbrev": false, "full_module": "Pulse.Lib.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Lib.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Lib", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> Prims.prop
Prims.Tot
[ "total" ]
[]
[ "Prims.squash", "Prims.prop" ]
[]
false
false
false
true
true
let psquash (a: Type u#a) : prop =
squash a
false
PulseCore.Action.fsti
PulseCore.Action.emp_inames
val emp_inames:inames
val emp_inames:inames
let emp_inames : inames = Ghost.hide Set.empty
{ "file_name": "lib/pulse_core/PulseCore.Action.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 46, "end_line": 12, "start_col": 0, "start_line": 12 }
module PulseCore.Action module I = PulseCore.InstantiatedSemantics module PP = PulseCore.Preorder open PulseCore.InstantiatedSemantics open FStar.PCM open FStar.Ghost val iname : eqtype let inames = Ghost.erased (FStar.Set.set iname)
{ "checked_file": "/", "dependencies": [ "PulseCore.Preorder.fst.checked", "PulseCore.InstantiatedSemantics.fsti.checked", "prims.fst.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.PCM.fst.checked", "FStar.Ghost.fsti.checked"...
[ { "abbrev": false, "full_module": "PulseCore.InstantiatedSemantics", "short_module": null }, { "abbrev": false, "full_module": "PulseCore.Memory", "short_module": null }, { "abbrev": false, "full_module": "FStar.Ghost", "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
PulseCore.Action.inames
Prims.Tot
[ "total" ]
[]
[ "FStar.Ghost.hide", "FStar.Set.set", "PulseCore.Action.iname", "FStar.Set.empty" ]
[]
false
false
false
true
false
let emp_inames:inames =
Ghost.hide Set.empty
false
PulseCore.Action.fsti
PulseCore.Action.join_inames
val join_inames (is1 is2: inames) : inames
val join_inames (is1 is2: inames) : inames
let join_inames (is1 is2 : inames) : inames = Set.union is1 is2
{ "file_name": "lib/pulse_core/PulseCore.Action.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 19, "end_line": 15, "start_col": 0, "start_line": 14 }
module PulseCore.Action module I = PulseCore.InstantiatedSemantics module PP = PulseCore.Preorder open PulseCore.InstantiatedSemantics open FStar.PCM open FStar.Ghost val iname : eqtype let inames = Ghost.erased (FStar.Set.set iname) let emp_inames : inames = Ghost.hide Set.empty
{ "checked_file": "/", "dependencies": [ "PulseCore.Preorder.fst.checked", "PulseCore.InstantiatedSemantics.fsti.checked", "prims.fst.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.PCM.fst.checked", "FStar.Ghost.fsti.checked"...
[ { "abbrev": false, "full_module": "PulseCore.InstantiatedSemantics", "short_module": null }, { "abbrev": false, "full_module": "PulseCore.Memory", "short_module": null }, { "abbrev": false, "full_module": "FStar.Ghost", "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
is1: PulseCore.Action.inames -> is2: PulseCore.Action.inames -> PulseCore.Action.inames
Prims.Tot
[ "total" ]
[]
[ "PulseCore.Action.inames", "FStar.Ghost.hide", "FStar.Set.set", "PulseCore.Action.iname", "FStar.Set.union", "FStar.Ghost.reveal" ]
[]
false
false
false
true
false
let join_inames (is1 is2: inames) : inames =
Set.union is1 is2
false
PulseCore.Action.fsti
PulseCore.Action.inames_subset
val inames_subset (is1 is2: inames) : Type0
val inames_subset (is1 is2: inames) : Type0
let inames_subset (is1 is2 : inames) : Type0 = Set.subset is1 is2
{ "file_name": "lib/pulse_core/PulseCore.Action.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 20, "end_line": 18, "start_col": 0, "start_line": 17 }
module PulseCore.Action module I = PulseCore.InstantiatedSemantics module PP = PulseCore.Preorder open PulseCore.InstantiatedSemantics open FStar.PCM open FStar.Ghost val iname : eqtype let inames = Ghost.erased (FStar.Set.set iname) let emp_inames : inames = Ghost.hide Set.empty let join_inames (is1 is2 : inames) ...
{ "checked_file": "/", "dependencies": [ "PulseCore.Preorder.fst.checked", "PulseCore.InstantiatedSemantics.fsti.checked", "prims.fst.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.PCM.fst.checked", "FStar.Ghost.fsti.checked"...
[ { "abbrev": false, "full_module": "PulseCore.InstantiatedSemantics", "short_module": null }, { "abbrev": false, "full_module": "PulseCore.Memory", "short_module": null }, { "abbrev": false, "full_module": "FStar.Ghost", "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
is1: PulseCore.Action.inames -> is2: PulseCore.Action.inames -> Type0
Prims.Tot
[ "total" ]
[]
[ "PulseCore.Action.inames", "FStar.Set.subset", "PulseCore.Action.iname", "FStar.Ghost.reveal", "FStar.Set.set" ]
[]
false
false
false
true
true
let inames_subset (is1 is2: inames) : Type0 =
Set.subset is1 is2
false
PulseCore.Action.fsti
PulseCore.Action.add_inv
val add_inv (#p: _) (opens: inames) (i: inv p) : inames
val add_inv (#p: _) (opens: inames) (i: inv p) : inames
let add_inv (#p:_) (opens:inames) (i:inv p) : inames = Set.union (Set.singleton (name_of_inv i)) opens
{ "file_name": "lib/pulse_core/PulseCore.Action.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 49, "end_line": 103, "start_col": 0, "start_line": 101 }
module PulseCore.Action module I = PulseCore.InstantiatedSemantics module PP = PulseCore.Preorder open PulseCore.InstantiatedSemantics open FStar.PCM open FStar.Ghost val iname : eqtype let inames = Ghost.erased (FStar.Set.set iname) let emp_inames : inames = Ghost.hide Set.empty let join_inames (is1 is2 : inames) ...
{ "checked_file": "/", "dependencies": [ "PulseCore.Preorder.fst.checked", "PulseCore.InstantiatedSemantics.fsti.checked", "prims.fst.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.PCM.fst.checked", "FStar.Ghost.fsti.checked"...
[ { "abbrev": false, "full_module": "PulseCore.InstantiatedSemantics", "short_module": null }, { "abbrev": false, "full_module": "PulseCore.Memory", "short_module": null }, { "abbrev": false, "full_module": "FStar.Ghost", "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
opens: PulseCore.Action.inames -> i: PulseCore.Action.inv p -> PulseCore.Action.inames
Prims.Tot
[ "total" ]
[]
[ "PulseCore.InstantiatedSemantics.slprop", "PulseCore.Action.inames", "PulseCore.Action.inv", "FStar.Ghost.hide", "FStar.Set.set", "PulseCore.Action.iname", "FStar.Set.union", "FStar.Set.singleton", "PulseCore.Action.name_of_inv", "FStar.Ghost.reveal" ]
[]
false
false
false
false
false
let add_inv (#p: _) (opens: inames) (i: inv p) : inames =
Set.union (Set.singleton (name_of_inv i)) opens
false
PulseCore.Action.fsti
PulseCore.Action.mem_inv
val mem_inv (#p: _) (opens: inames) (i: inv p) : GTot bool
val mem_inv (#p: _) (opens: inames) (i: inv p) : GTot bool
let mem_inv (#p:_) (opens:inames) (i:inv p) : GTot bool = Set.mem (name_of_inv i) opens
{ "file_name": "lib/pulse_core/PulseCore.Action.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 31, "end_line": 99, "start_col": 0, "start_line": 97 }
module PulseCore.Action module I = PulseCore.InstantiatedSemantics module PP = PulseCore.Preorder open PulseCore.InstantiatedSemantics open FStar.PCM open FStar.Ghost val iname : eqtype let inames = Ghost.erased (FStar.Set.set iname) let emp_inames : inames = Ghost.hide Set.empty let join_inames (is1 is2 : inames) ...
{ "checked_file": "/", "dependencies": [ "PulseCore.Preorder.fst.checked", "PulseCore.InstantiatedSemantics.fsti.checked", "prims.fst.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.PCM.fst.checked", "FStar.Ghost.fsti.checked"...
[ { "abbrev": false, "full_module": "PulseCore.InstantiatedSemantics", "short_module": null }, { "abbrev": false, "full_module": "PulseCore.Memory", "short_module": null }, { "abbrev": false, "full_module": "FStar.Ghost", "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
opens: PulseCore.Action.inames -> i: PulseCore.Action.inv p -> Prims.GTot Prims.bool
Prims.GTot
[ "sometrivial" ]
[]
[ "PulseCore.InstantiatedSemantics.slprop", "PulseCore.Action.inames", "PulseCore.Action.inv", "FStar.Set.mem", "PulseCore.Action.iname", "PulseCore.Action.name_of_inv", "FStar.Ghost.reveal", "FStar.Set.set", "Prims.bool" ]
[]
false
false
false
false
false
let mem_inv (#p: _) (opens: inames) (i: inv p) : GTot bool =
Set.mem (name_of_inv i) opens
false
PulseCore.Action.fsti
PulseCore.Action.property
val property : a: Type -> Type
let property (a:Type) = a -> prop
{ "file_name": "lib/pulse_core/PulseCore.Action.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 13, "end_line": 186, "start_col": 0, "start_line": 185 }
module PulseCore.Action module I = PulseCore.InstantiatedSemantics module PP = PulseCore.Preorder open PulseCore.InstantiatedSemantics open FStar.PCM open FStar.Ghost val iname : eqtype let inames = Ghost.erased (FStar.Set.set iname) let emp_inames : inames = Ghost.hide Set.empty let join_inames (is1 is2 : inames) ...
{ "checked_file": "/", "dependencies": [ "PulseCore.Preorder.fst.checked", "PulseCore.InstantiatedSemantics.fsti.checked", "prims.fst.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.PCM.fst.checked", "FStar.Ghost.fsti.checked"...
[ { "abbrev": false, "full_module": "PulseCore.InstantiatedSemantics", "short_module": null }, { "abbrev": false, "full_module": "PulseCore.Memory", "short_module": null }, { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> Type
Prims.Tot
[ "total" ]
[]
[ "Prims.prop" ]
[]
false
false
false
true
true
let property (a: Type) =
a -> prop
false
Hacl.Spec.K256.Field52.Lemmas2.fst
Hacl.Spec.K256.Field52.Lemmas2.normalize5_second_part_x
val normalize5_second_part_x : x: Lib.IntTypes.uint64 -> _: ((((Lib.IntTypes.uint64 * Lib.IntTypes.uint64) * Lib.IntTypes.uint64) * Lib.IntTypes.uint64) * Lib.IntTypes.uint64) -> Hacl.Spec.K256.Field52.Definitions.felem5
let normalize5_second_part_x (x:uint64) (r0,r1,r2,r3,r4) : felem5 = let is_ge_p_m = is_felem_ge_prime5 (r0,r1,r2,r3,r4) in // as_nat r >= S.prime let m_to_one = is_ge_p_m &. u64 1 in let x1 = m_to_one |. x in let (s0,s1,s2,s3,s4) = plus_x_mul_pow2_256_minus_prime x1 (r0,r1,r2,r3,r4) in let x2, (k0,k1,k2,k3,k4...
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas2.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 18, "end_line": 217, "start_col": 0, "start_line": 211 }
module Hacl.Spec.K256.Field52.Lemmas2 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" /// No...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "Hacl.Spec.K256.Field52....
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Lib.IntTypes.uint64 -> _: ((((Lib.IntTypes.uint64 * Lib.IntTypes.uint64) * Lib.IntTypes.uint64) * Lib.IntTypes.uint64) * Lib.IntTypes.uint64) -> Hacl.Spec.K256.Field52.Definitions.felem5
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.uint64", "FStar.Pervasives.Native.tuple5", "FStar.Pervasives.Native.Mktuple5", "Hacl.Spec.K256.Field52.Definitions.felem5", "FStar.Pervasives.Native.tuple2", "Lib.IntTypes.int_t", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Hacl.Spec.K256.Field52.minus_x_mul_pow2_256", "Hacl.Spec.K256.F...
[]
false
false
false
true
false
let normalize5_second_part_x (x: uint64) (r0, r1, r2, r3, r4) : felem5 =
let is_ge_p_m = is_felem_ge_prime5 (r0, r1, r2, r3, r4) in let m_to_one = is_ge_p_m &. u64 1 in let x1 = m_to_one |. x in let s0, s1, s2, s3, s4 = plus_x_mul_pow2_256_minus_prime x1 (r0, r1, r2, r3, r4) in let x2, (k0, k1, k2, k3, k4) = minus_x_mul_pow2_256 (s0, s1, s2, s3, s4) in (k0, k1, k2, k3, k4)
false
PulseCore.Action.fsti
PulseCore.Action.stable_property
val stable_property : pcm: FStar.PCM.pcm a -> Type
let stable_property (#a:Type) (pcm:pcm a) = fact:property a { FStar.Preorder.stable fact (PP.preorder_of_pcm pcm) }
{ "file_name": "lib/pulse_core/PulseCore.Action.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 197, "start_col": 0, "start_line": 194 }
module PulseCore.Action module I = PulseCore.InstantiatedSemantics module PP = PulseCore.Preorder open PulseCore.InstantiatedSemantics open FStar.PCM open FStar.Ghost val iname : eqtype let inames = Ghost.erased (FStar.Set.set iname) let emp_inames : inames = Ghost.hide Set.empty let join_inames (is1 is2 : inames) ...
{ "checked_file": "/", "dependencies": [ "PulseCore.Preorder.fst.checked", "PulseCore.InstantiatedSemantics.fsti.checked", "prims.fst.checked", "FStar.Set.fsti.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.PCM.fst.checked", "FStar.Ghost.fsti.checked"...
[ { "abbrev": false, "full_module": "PulseCore.InstantiatedSemantics", "short_module": null }, { "abbrev": false, "full_module": "PulseCore.Memory", "short_module": null }, { "abbrev": false, "full_module": "FStar.Ghost", "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
pcm: FStar.PCM.pcm a -> Type
Prims.Tot
[ "total" ]
[]
[ "FStar.PCM.pcm", "PulseCore.Action.property", "FStar.Preorder.stable", "PulseCore.Preorder.preorder_of_pcm" ]
[]
false
false
false
true
true
let stable_property (#a: Type) (pcm: pcm a) =
fact: property a {FStar.Preorder.stable fact (PP.preorder_of_pcm pcm)}
false
Pulse.Lib.GhostWitness.fst
Pulse.Lib.GhostWitness.ghost_witness2
val ghost_witness2 (a:Type u#2) (_:squash a) : stt_ghost a emp (fun _ -> emp)
val ghost_witness2 (a:Type u#2) (_:squash a) : stt_ghost a emp (fun _ -> emp)
let ghost_witness2 = __ghost_witness2
{ "file_name": "share/steel/examples/pulse/lib/Pulse.Lib.GhostWitness.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 37, "end_line": 40, "start_col": 0, "start_line": 40 }
module Pulse.Lib.GhostWitness open Pulse.Lib.Pervasives let sqeq (p : Type) (_ : squash p) : erased p = FStar.IndefiniteDescription.elim_squash #p () let psquash (a:Type u#a) : prop = squash a ```pulse ghost fn __ghost_witness (a:Type u#0) (_:squash a) requires emp returns i:a ensures emp { let pf = elim_pure_e...
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.IndefiniteDescription.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Lib.GhostWitness.fst" }
[ { "abbrev": false, "full_module": "Pulse.Lib.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Lib", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Lib", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> _: Prims.squash a -> Pulse.Lib.Core.stt_ghost a Pulse.Lib.Core.emp (fun _ -> Pulse.Lib.Core.emp)
Prims.Tot
[ "total" ]
[]
[ "Pulse.Lib.GhostWitness.__ghost_witness2" ]
[]
false
false
false
false
false
let ghost_witness2 =
__ghost_witness2
false
Pulse.Lib.GhostWitness.fst
Pulse.Lib.GhostWitness.ghost_witness
val ghost_witness (a:Type u#0) (_:squash a) : stt_ghost a emp (fun _ -> emp)
val ghost_witness (a:Type u#0) (_:squash a) : stt_ghost a emp (fun _ -> emp)
let ghost_witness = __ghost_witness
{ "file_name": "share/steel/examples/pulse/lib/Pulse.Lib.GhostWitness.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 35, "end_line": 24, "start_col": 0, "start_line": 24 }
module Pulse.Lib.GhostWitness open Pulse.Lib.Pervasives let sqeq (p : Type) (_ : squash p) : erased p = FStar.IndefiniteDescription.elim_squash #p () let psquash (a:Type u#a) : prop = squash a ```pulse ghost fn __ghost_witness (a:Type u#0) (_:squash a) requires emp returns i:a ensures emp { let pf = elim_pure_e...
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.IndefiniteDescription.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Lib.GhostWitness.fst" }
[ { "abbrev": false, "full_module": "Pulse.Lib.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Lib", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Lib", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type0 -> _: Prims.squash a -> Pulse.Lib.Core.stt_ghost a Pulse.Lib.Core.emp (fun _ -> Pulse.Lib.Core.emp)
Prims.Tot
[ "total" ]
[]
[ "Pulse.Lib.GhostWitness.__ghost_witness" ]
[]
false
false
false
false
false
let ghost_witness =
__ghost_witness
false
Pulse.Lib.GhostWitness.fst
Pulse.Lib.GhostWitness.ghost_witness_exists
val ghost_witness_exists (a:Type u#0) : stt_ghost a (pure (exists (x:a). True)) (fun _ -> emp)
val ghost_witness_exists (a:Type u#0) : stt_ghost a (pure (exists (x:a). True)) (fun _ -> emp)
let ghost_witness_exists = __ghost_witness_exists
{ "file_name": "share/steel/examples/pulse/lib/Pulse.Lib.GhostWitness.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 49, "end_line": 52, "start_col": 0, "start_line": 52 }
module Pulse.Lib.GhostWitness open Pulse.Lib.Pervasives let sqeq (p : Type) (_ : squash p) : erased p = FStar.IndefiniteDescription.elim_squash #p () let psquash (a:Type u#a) : prop = squash a ```pulse ghost fn __ghost_witness (a:Type u#0) (_:squash a) requires emp returns i:a ensures emp { let pf = elim_pure_e...
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.IndefiniteDescription.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Lib.GhostWitness.fst" }
[ { "abbrev": false, "full_module": "Pulse.Lib.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Lib", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Lib", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type0 -> Pulse.Lib.Core.stt_ghost a (Pulse.Lib.Core.pure (exists (x: a). Prims.l_True)) (fun _ -> Pulse.Lib.Core.emp)
Prims.Tot
[ "total" ]
[]
[ "Pulse.Lib.GhostWitness.__ghost_witness_exists" ]
[]
false
false
false
false
false
let ghost_witness_exists =
__ghost_witness_exists
false
Pulse.Lib.GhostWitness.fst
Pulse.Lib.GhostWitness.ghost_witness_exists2
val ghost_witness_exists2 (a:Type u#2) : stt_ghost a (pure (exists (x:a). True)) (fun _ -> emp)
val ghost_witness_exists2 (a:Type u#2) : stt_ghost a (pure (exists (x:a). True)) (fun _ -> emp)
let ghost_witness_exists2 = __ghost_witness_exists2
{ "file_name": "share/steel/examples/pulse/lib/Pulse.Lib.GhostWitness.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 51, "end_line": 64, "start_col": 0, "start_line": 64 }
module Pulse.Lib.GhostWitness open Pulse.Lib.Pervasives let sqeq (p : Type) (_ : squash p) : erased p = FStar.IndefiniteDescription.elim_squash #p () let psquash (a:Type u#a) : prop = squash a ```pulse ghost fn __ghost_witness (a:Type u#0) (_:squash a) requires emp returns i:a ensures emp { let pf = elim_pure_e...
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.IndefiniteDescription.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Lib.GhostWitness.fst" }
[ { "abbrev": false, "full_module": "Pulse.Lib.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Lib", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Lib", "short_module": null }, { "abbrev": false, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> Pulse.Lib.Core.stt_ghost a (Pulse.Lib.Core.pure (exists (x: a). Prims.l_True)) (fun _ -> Pulse.Lib.Core.emp)
Prims.Tot
[ "total" ]
[]
[ "Pulse.Lib.GhostWitness.__ghost_witness_exists2" ]
[]
false
false
false
false
false
let ghost_witness_exists2 =
__ghost_witness_exists2
false
Vale.X64.BufferViewStore.fst
Vale.X64.BufferViewStore.get128_aux
val get128_aux (ptr: int) (heap: machine_heap) (v: quad32) (k: nat{k < 16}) : Lemma (requires get_heap_val128 ptr heap == v) (ensures heap.[ ptr + k ] == UInt8.v (Seq.index (put128 v) k))
val get128_aux (ptr: int) (heap: machine_heap) (v: quad32) (k: nat{k < 16}) : Lemma (requires get_heap_val128 ptr heap == v) (ensures heap.[ ptr + k ] == UInt8.v (Seq.index (put128 v) k))
let get128_aux (ptr:int) (heap:machine_heap) (v:quad32) (k:nat{k < 16}) : Lemma (requires get_heap_val128 ptr heap == v) (ensures heap.[ptr + k] == UInt8.v (Seq.index (put128 v) k)) = get_heap_val128_reveal (); get_heap_val32_reveal (); put128_reveal (); reveal_opaque (`%seq_four_to_seq_LE) (seq_four_to_seq...
{ "file_name": "vale/code/arch/x64/Vale.X64.BufferViewStore.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 28, "end_line": 48, "start_col": 0, "start_line": 40 }
module Vale.X64.BufferViewStore open FStar.Mul open Vale.Interop.Views open Vale.Interop module MB = LowStar.Monotonic.Buffer module HS = FStar.HyperStack open Vale.Lib.BufferViewHelpers open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Two open Vale.Def.Words.Four_s open Vale.D...
{ "checked_file": "/", "dependencies": [ "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Two_s.fsti.checked", "Vale.Def.Words.Two.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked",...
[ { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ptr: Prims.int -> heap: Vale.Arch.MachineHeap_s.machine_heap -> v: Vale.Def.Types_s.quad32 -> k: Prims.nat{k < 16} -> FStar.Pervasives.Lemma (requires Vale.Arch.MachineHeap_s.get_heap_val128 ptr heap == v) (ensures heap.[ ptr + k ] == FStar.UInt8.v (FStar.Seq.Base.index (Vale.Interop.Vi...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "Vale.Arch.MachineHeap_s.machine_heap", "Vale.Def.Types_s.quad32", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Vale.Def.Words.Seq.four_to_nat_8_injective", "Prims.unit", "FStar.Pervasives.reveal_opaque", "FStar.Seq.Base.seq", "Vale.Def.Types_s.nat8", "Prims.l_True", "Prims.e...
[]
true
false
true
false
false
let get128_aux (ptr: int) (heap: machine_heap) (v: quad32) (k: nat{k < 16}) : Lemma (requires get_heap_val128 ptr heap == v) (ensures heap.[ ptr + k ] == UInt8.v (Seq.index (put128 v) k)) =
get_heap_val128_reveal (); get_heap_val32_reveal (); put128_reveal (); reveal_opaque (`%seq_four_to_seq_LE) (seq_four_to_seq_LE #nat8); reveal_opaque (`%le_quad32_to_bytes) le_quad32_to_bytes; four_to_nat_8_injective ()
false
Hacl.Spec.K256.Field52.Lemmas2.fst
Hacl.Spec.K256.Field52.Lemmas2.normalize_weak5_lemma
val normalize_weak5_lemma: m:scale64_5 -> f:felem5 -> Lemma (requires (let (m0,m1,m2,m3,m4) = m in m0 + 1 <= 4096 /\ m1 + 1 <= 4096 /\ m2 + 1 <= 4096 /\ m3 + 1 <= 4096 /\ felem_fits5 f m)) (ensures (let r = normalize_weak5 f in let (r0,r1,r2,r3,r4) = r in let (t0,t1,t2,t3,t4) = f in as_nat5 ...
val normalize_weak5_lemma: m:scale64_5 -> f:felem5 -> Lemma (requires (let (m0,m1,m2,m3,m4) = m in m0 + 1 <= 4096 /\ m1 + 1 <= 4096 /\ m2 + 1 <= 4096 /\ m3 + 1 <= 4096 /\ felem_fits5 f m)) (ensures (let r = normalize_weak5 f in let (r0,r1,r2,r3,r4) = r in let (t0,t1,t2,t3,t4) = f in as_nat5 ...
let normalize_weak5_lemma m f = let (m0,m1,m2,m3,m4) = m in let x, f1 = minus_x_mul_pow2_256 f in minus_x_mul_pow2_256_lemma m f; assert (as_nat5 f1 == as_nat5 f - v x * pow2 256); assert (felem_fits5 f1 (m0,m1,m2,m3,1)); let f2 = plus_x_mul_pow2_256_minus_prime x f1 in plus_x_mul_pow2_256_minus_prime_l...
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas2.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 50, "end_line": 162, "start_col": 0, "start_line": 148 }
module Hacl.Spec.K256.Field52.Lemmas2 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" /// No...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "Hacl.Spec.K256.Field52....
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
m: Hacl.Spec.K256.Field52.Definitions.scale64_5 -> f: Hacl.Spec.K256.Field52.Definitions.felem5 -> FStar.Pervasives.Lemma (requires (let _ = m in (let FStar.Pervasives.Native.Mktuple5 #_ #_ #_ #_ #_ m0 m1 m2 m3 _ = _ in m0 + 1 <= 4096 /\ m1 + 1 <= 4096 /\ m2 + 1 <= 4096 /\ m3 + 1 <...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.K256.Field52.Definitions.scale64_5", "Hacl.Spec.K256.Field52.Definitions.felem5", "Prims.nat", "Lib.IntTypes.uint64", "Prims._assert", "Prims.eq2", "Prims.int", "Hacl.Spec.K256.Field52.Definitions.as_nat5", "Prims.op_Subtraction", "FStar.Mul.op_Star", "Lib.IntTypes.v", "Lib.IntTypes...
[]
false
false
true
false
false
let normalize_weak5_lemma m f =
let m0, m1, m2, m3, m4 = m in let x, f1 = minus_x_mul_pow2_256 f in minus_x_mul_pow2_256_lemma m f; assert (as_nat5 f1 == as_nat5 f - v x * pow2 256); assert (felem_fits5 f1 (m0, m1, m2, m3, 1)); let f2 = plus_x_mul_pow2_256_minus_prime x f1 in plus_x_mul_pow2_256_minus_prime_lemma (m0, m1, m2, m3, 1) x f1; assert (as_...
false
FStar.Reflection.Typing.fsti
FStar.Reflection.Typing.mk_checked_let
val mk_checked_let (g: R.env) (nm: string) (tm: R.term) (ty: R.typ{typing g tm (T.E_Total, ty)}) : T.Tac (sigelt_for g)
val mk_checked_let (g: R.env) (nm: string) (tm: R.term) (ty: R.typ{typing g tm (T.E_Total, ty)}) : T.Tac (sigelt_for g)
let mk_checked_let (g:R.env) (nm:string) (tm:R.term) (ty:R.typ{typing g tm (T.E_Total, ty)}) : T.Tac (sigelt_for g) = let fv = pack_fv (T.cur_module () @ [nm]) in let lb = R.pack_lb ({ lb_fv = fv; lb_us = []; lb_typ = ty; lb_def = tm }) in let se = R.pack_sigelt (R.Sg_Let false [lb]) in let pf : sigelt_typing g...
{ "file_name": "ulib/experimental/FStar.Reflection.Typing.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 20, "end_line": 1839, "start_col": 0, "start_line": 1832 }
(* Copyright 2008-2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Set.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
g: FStar.Stubs.Reflection.Types.env -> nm: Prims.string -> tm: FStar.Stubs.Reflection.Types.term -> ty: FStar.Stubs.Reflection.Types.typ {FStar.Reflection.Typing.typing g tm (FStar.Stubs.TypeChecker.Core.E_Total, ty)} -> FStar.Tactics.Effect.Tac (FStar.Reflection.Typing.sigelt_for g)
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Stubs.Reflection.Types.env", "Prims.string", "FStar.Stubs.Reflection.Types.term", "FStar.Stubs.Reflection.Types.typ", "FStar.Reflection.Typing.typing", "FStar.Pervasives.Native.Mktuple2", "FStar.Stubs.TypeChecker.Core.tot_or_ghost", "FStar.Stubs.TypeChecker.Core.E_Total", "FStar.Pervasives.Na...
[]
false
true
false
false
false
let mk_checked_let (g: R.env) (nm: string) (tm: R.term) (ty: R.typ{typing g tm (T.E_Total, ty)}) : T.Tac (sigelt_for g) =
let fv = pack_fv (T.cur_module () @ [nm]) in let lb = R.pack_lb ({ lb_fv = fv; lb_us = []; lb_typ = ty; lb_def = tm }) in let se = R.pack_sigelt (R.Sg_Let false [lb]) in let pf:sigelt_typing g se = ST_Let g fv ty tm () in (true, se, None)
false
Hacl.Spec.K256.Field52.Lemmas2.fst
Hacl.Spec.K256.Field52.Lemmas2.plus_x_mul_pow2_256_minus_prime_lemma
val plus_x_mul_pow2_256_minus_prime_lemma: m:scale64_5 -> x:uint64 -> f:felem5 -> Lemma (requires (let (m0,m1,m2,m3,m4) = m in let (t0,t1,t2,t3,t4) = f in m0 + 1 <= 4096 /\ m1 + 1 <= 4096 /\ m2 + 1 <= 4096 /\ m3 + 1 <= 4096 /\ m4 = 1 /\ felem_fits5 f m /\ v x < pow2 16)) (ensures (let r = plus_x_...
val plus_x_mul_pow2_256_minus_prime_lemma: m:scale64_5 -> x:uint64 -> f:felem5 -> Lemma (requires (let (m0,m1,m2,m3,m4) = m in let (t0,t1,t2,t3,t4) = f in m0 + 1 <= 4096 /\ m1 + 1 <= 4096 /\ m2 + 1 <= 4096 /\ m3 + 1 <= 4096 /\ m4 = 1 /\ felem_fits5 f m /\ v x < pow2 16)) (ensures (let r = plus_x_...
let plus_x_mul_pow2_256_minus_prime_lemma m x f = let (t0,t1,t2,t3,t4) = f in let (m0,m1,m2,m3,m4) = m in let t0' = t0 +. x *. u64 0x1000003D1 in assert (v x < pow2 16); Math.Lemmas.lemma_mult_lt_right 0x1000003D1 (v x) (pow2 16); assert_norm (pow2 16 * 0x1000003D1 < max52); assert (v t0 + v x * 0x100000...
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas2.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 62, "end_line": 134, "start_col": 0, "start_line": 115 }
module Hacl.Spec.K256.Field52.Lemmas2 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" /// No...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "Hacl.Spec.K256.Field52....
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
m: Hacl.Spec.K256.Field52.Definitions.scale64_5 -> x: Lib.IntTypes.uint64 -> f: Hacl.Spec.K256.Field52.Definitions.felem5 -> FStar.Pervasives.Lemma (requires (let _ = m in (let FStar.Pervasives.Native.Mktuple5 #_ #_ #_ #_ #_ m0 m1 m2 m3 m4 = _ in let _ = f in ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.K256.Field52.Definitions.scale64_5", "Lib.IntTypes.uint64", "Hacl.Spec.K256.Field52.Definitions.felem5", "Prims.nat", "Prims._assert", "Prims.eq2", "Prims.int", "Hacl.Spec.K256.Field52.Definitions.as_nat5", "Prims.op_Addition", "FStar.Mul.op_Star", "Lib.IntTypes.v", "Lib.IntTypes.U6...
[]
false
false
true
false
false
let plus_x_mul_pow2_256_minus_prime_lemma m x f =
let t0, t1, t2, t3, t4 = f in let m0, m1, m2, m3, m4 = m in let t0' = t0 +. x *. u64 0x1000003D1 in assert (v x < pow2 16); Math.Lemmas.lemma_mult_lt_right 0x1000003D1 (v x) (pow2 16); assert_norm (pow2 16 * 0x1000003D1 < max52); assert (v t0 + v x * 0x1000003D1 < (m0 + 1) * max52); Math.Lemmas.lemma_mult_le_right max5...
false
Hacl.Spec.K256.Field52.Lemmas2.fst
Hacl.Spec.K256.Field52.Lemmas2.carry_round_after_last_carry_mod_prime5_lemma
val carry_round_after_last_carry_mod_prime5_lemma: m:scale64_5 -> f:felem5 -> Lemma (requires (let (m0,m1,m2,m3,m4) = m in m1 + 1 <= 4096 /\ m2 + 1 <= 4096 /\ m3 + 1 <= 4096 /\ m4 = 1 /\ felem_fits5 f (m0,m1,m2,m3,1))) (ensures (let r = carry_round5 f in let (r0,r1,r2,r3,r4) = r in let (t0,t1,t2,t3,...
val carry_round_after_last_carry_mod_prime5_lemma: m:scale64_5 -> f:felem5 -> Lemma (requires (let (m0,m1,m2,m3,m4) = m in m1 + 1 <= 4096 /\ m2 + 1 <= 4096 /\ m3 + 1 <= 4096 /\ m4 = 1 /\ felem_fits5 f (m0,m1,m2,m3,1))) (ensures (let r = carry_round5 f in let (r0,r1,r2,r3,r4) = r in let (t0,t1,t2,t3,...
let carry_round_after_last_carry_mod_prime5_lemma m f = let (m0,m1,m2,m3,m4) = m in let (t0,t1,t2,t3,t4) = f in //(m0,m1,m2,m3,1) let t1' = t1 +. (t0 >>. 52ul) in let t0' = t0 &. mask52 in LD.lemma_carry52 m1 m0 t1 t0; assert (felem_fits1 t1' (m1 + 1)); assert (felem_fits1 t0' 1); assert (v t0' = v t0 % ...
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas2.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 33, "end_line": 99, "start_col": 0, "start_line": 63 }
module Hacl.Spec.K256.Field52.Lemmas2 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" /// No...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "Hacl.Spec.K256.Field52....
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
m: Hacl.Spec.K256.Field52.Definitions.scale64_5 -> f: Hacl.Spec.K256.Field52.Definitions.felem5 -> FStar.Pervasives.Lemma (requires (let _ = m in (let FStar.Pervasives.Native.Mktuple5 #_ #_ #_ #_ #_ m0 m1 m2 m3 m4 = _ in m1 + 1 <= 4096 /\ m2 + 1 <= 4096 /\ m3 + 1 <= 4096 /\ m4 = 1 ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.K256.Field52.Definitions.scale64_5", "Hacl.Spec.K256.Field52.Definitions.felem5", "Prims.nat", "Lib.IntTypes.uint64", "Prims._assert", "Prims.eq2", "Hacl.Spec.K256.Field52.Definitions.as_nat5", "Prims.unit", "FStar.Pervasives.Native.tuple5", "FStar.Pervasives.Native.Mktuple5", "Hacl.S...
[]
false
false
true
false
false
let carry_round_after_last_carry_mod_prime5_lemma m f =
let m0, m1, m2, m3, m4 = m in let t0, t1, t2, t3, t4 = f in let t1' = t1 +. (t0 >>. 52ul) in let t0' = t0 &. mask52 in LD.lemma_carry52 m1 m0 t1 t0; assert (felem_fits1 t1' (m1 + 1)); assert (felem_fits1 t0' 1); assert (v t0' = v t0 % pow2 52); assert (v t1' = v t1 + v t0 / pow2 52); let t2' = t2 +. (t1' >>. 52ul) in l...
false
FStar.Reflection.Typing.fsti
FStar.Reflection.Typing.mk_unchecked_let
val mk_unchecked_let (g: R.env) (nm: string) (tm: R.term) (ty: R.typ) : T.Tac (sigelt_for g)
val mk_unchecked_let (g: R.env) (nm: string) (tm: R.term) (ty: R.typ) : T.Tac (sigelt_for g)
let mk_unchecked_let (g:R.env) (nm:string) (tm:R.term) (ty:R.typ) : T.Tac (sigelt_for g) = let fv = pack_fv (T.cur_module () @ [nm]) in let lb = R.pack_lb ({ lb_fv = fv; lb_us = []; lb_typ = ty; lb_def = tm }) in let se = R.pack_sigelt (R.Sg_Let false [lb]) in ( false, se, None )
{ "file_name": "ulib/experimental/FStar.Reflection.Typing.fsti", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 21, "end_line": 1845, "start_col": 0, "start_line": 1841 }
(* Copyright 2008-2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Set.fsti.checked", "FStar.Sealed.Inhabited.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FSta...
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Tactics.V2", "short_module": "T" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
g: FStar.Stubs.Reflection.Types.env -> nm: Prims.string -> tm: FStar.Stubs.Reflection.Types.term -> ty: FStar.Stubs.Reflection.Types.typ -> FStar.Tactics.Effect.Tac (FStar.Reflection.Typing.sigelt_for g)
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Stubs.Reflection.Types.env", "Prims.string", "FStar.Stubs.Reflection.Types.term", "FStar.Stubs.Reflection.Types.typ", "FStar.Pervasives.Native.Mktuple3", "Prims.bool", "FStar.Stubs.Reflection.Types.sigelt", "FStar.Pervasives.Native.option", "FStar.Reflection.Typing.blob", "FStar.Pervasives....
[]
false
true
false
false
false
let mk_unchecked_let (g: R.env) (nm: string) (tm: R.term) (ty: R.typ) : T.Tac (sigelt_for g) =
let fv = pack_fv (T.cur_module () @ [nm]) in let lb = R.pack_lb ({ lb_fv = fv; lb_us = []; lb_typ = ty; lb_def = tm }) in let se = R.pack_sigelt (R.Sg_Let false [lb]) in (false, se, None)
false
Hacl.Spec.K256.Field52.Lemmas2.fst
Hacl.Spec.K256.Field52.Lemmas2.lemma_a_minus_b_n_c_n_k
val lemma_a_minus_b_n_c_n_k (k a b c:nat) (n:pos) : Lemma (requires k < n /\ k == a - b * n - c * n) (ensures k == a % n)
val lemma_a_minus_b_n_c_n_k (k a b c:nat) (n:pos) : Lemma (requires k < n /\ k == a - b * n - c * n) (ensures k == a % n)
let lemma_a_minus_b_n_c_n_k k a b c n = Math.Lemmas.lemma_mod_sub (a - b * n) n c; Math.Lemmas.lemma_mod_sub a n b; Math.Lemmas.small_mod k n
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas2.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 27, "end_line": 352, "start_col": 0, "start_line": 349 }
module Hacl.Spec.K256.Field52.Lemmas2 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" /// No...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "Hacl.Spec.K256.Field52....
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
{ "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
k: Prims.nat -> a: Prims.nat -> b: Prims.nat -> c: Prims.nat -> n: Prims.pos -> FStar.Pervasives.Lemma (requires k < n /\ k == a - b * n - c * n) (ensures k == a % n)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Prims.pos", "FStar.Math.Lemmas.small_mod", "Prims.unit", "FStar.Math.Lemmas.lemma_mod_sub", "Prims.op_Subtraction", "FStar.Mul.op_Star" ]
[]
true
false
true
false
false
let lemma_a_minus_b_n_c_n_k k a b c n =
Math.Lemmas.lemma_mod_sub (a - b * n) n c; Math.Lemmas.lemma_mod_sub a n b; Math.Lemmas.small_mod k n
false
Vale.X64.BufferViewStore.fst
Vale.X64.BufferViewStore.get64_aux
val get64_aux (ptr: int) (heap: machine_heap) (v: nat64) (k: nat{k < 8}) : Lemma (requires get_heap_val64 ptr heap == v) (ensures heap.[ ptr + k ] == UInt8.v (Seq.index (put64 (UInt64.uint_to_t v)) k))
val get64_aux (ptr: int) (heap: machine_heap) (v: nat64) (k: nat{k < 8}) : Lemma (requires get_heap_val64 ptr heap == v) (ensures heap.[ ptr + k ] == UInt8.v (Seq.index (put64 (UInt64.uint_to_t v)) k))
let get64_aux (ptr:int) (heap:machine_heap) (v:nat64) (k:nat{k < 8}) : Lemma (requires get_heap_val64 ptr heap == v) (ensures heap.[ptr + k] == UInt8.v (Seq.index (put64 (UInt64.uint_to_t v)) k)) = get_heap_val64_reveal (); put64_reveal (); le_nat64_to_bytes_reveal (); reveal_opaque (`%seq_four_to_seq_LE) (...
{ "file_name": "vale/code/arch/x64/Vale.X64.BufferViewStore.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 28, "end_line": 38, "start_col": 0, "start_line": 30 }
module Vale.X64.BufferViewStore open FStar.Mul open Vale.Interop.Views open Vale.Interop module MB = LowStar.Monotonic.Buffer module HS = FStar.HyperStack open Vale.Lib.BufferViewHelpers open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Two open Vale.Def.Words.Four_s open Vale.D...
{ "checked_file": "/", "dependencies": [ "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Two_s.fsti.checked", "Vale.Def.Words.Two.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked",...
[ { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ptr: Prims.int -> heap: Vale.Arch.MachineHeap_s.machine_heap -> v: Vale.Def.Words_s.nat64 -> k: Prims.nat{k < 8} -> FStar.Pervasives.Lemma (requires Vale.Arch.MachineHeap_s.get_heap_val64 ptr heap == v) (ensures heap.[ ptr + k ] == FStar.UInt8.v (FStar.Seq.Base.index (Vale.Inter...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.int", "Vale.Arch.MachineHeap_s.machine_heap", "Vale.Def.Words_s.nat64", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Vale.Def.Words.Two.two_to_nat_32_injective", "Prims.unit", "Vale.Def.Words.Seq.four_to_nat_8_injective", "FStar.Pervasives.reveal_opaque", "FStar.Seq.Base.seq", "Vale....
[]
true
false
true
false
false
let get64_aux (ptr: int) (heap: machine_heap) (v: nat64) (k: nat{k < 8}) : Lemma (requires get_heap_val64 ptr heap == v) (ensures heap.[ ptr + k ] == UInt8.v (Seq.index (put64 (UInt64.uint_to_t v)) k)) =
get_heap_val64_reveal (); put64_reveal (); le_nat64_to_bytes_reveal (); reveal_opaque (`%seq_four_to_seq_LE) (seq_four_to_seq_LE #nat8); four_to_nat_8_injective (); two_to_nat_32_injective ()
false
Hacl.Spec.K256.Field52.Lemmas2.fst
Hacl.Spec.K256.Field52.Lemmas2.normalize5_first_part_lemma
val normalize5_first_part_lemma: m:scale64_5 -> f:felem5 -> Lemma (requires (let (m0,m1,m2,m3,m4) = m in m0 + 1 <= 4096 /\ m1 + 1 <= 4096 /\ m2 + 1 <= 4096 /\ m3 + 1 <= 4096 /\ felem_fits5 f m)) (ensures (let x, r = normalize5_first_part f in let (f0,f1,f2,f3,f4) = f in let (r0,r1,r2,r3,r4) = r ...
val normalize5_first_part_lemma: m:scale64_5 -> f:felem5 -> Lemma (requires (let (m0,m1,m2,m3,m4) = m in m0 + 1 <= 4096 /\ m1 + 1 <= 4096 /\ m2 + 1 <= 4096 /\ m3 + 1 <= 4096 /\ felem_fits5 f m)) (ensures (let x, r = normalize5_first_part f in let (f0,f1,f2,f3,f4) = f in let (r0,r1,r2,r3,r4) = r ...
let normalize5_first_part_lemma m f = let (m0,m1,m2,m3,m4) = m in let (f0,f1,f2,f3,f4) = f in let t = normalize_weak5 f in let (t0,t1,t2,t3,t4) = t in normalize_weak5_lemma m f; assert (as_nat5 t == as_nat5 f - v f4 / pow2 48 * S.prime); assert (felem_fits5 t (1,1,1,1,2)); assert ((v t4 >= pow2 48 ==> v...
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas2.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 72, "end_line": 249, "start_col": 0, "start_line": 231 }
module Hacl.Spec.K256.Field52.Lemmas2 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" /// No...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "Hacl.Spec.K256.Field52....
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
m: Hacl.Spec.K256.Field52.Definitions.scale64_5 -> f: Hacl.Spec.K256.Field52.Definitions.felem5 -> FStar.Pervasives.Lemma (requires (let _ = m in (let FStar.Pervasives.Native.Mktuple5 #_ #_ #_ #_ #_ m0 m1 m2 m3 _ = _ in m0 + 1 <= 4096 /\ m1 + 1 <= 4096 /\ m2 + 1 <= 4096 /\ m3 + 1 <...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.K256.Field52.Definitions.scale64_5", "Hacl.Spec.K256.Field52.Definitions.felem5", "Prims.nat", "Lib.IntTypes.uint64", "Prims._assert", "Prims.op_LessThan", "Lib.IntTypes.v", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Prims.pow2", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Pri...
[]
false
false
true
false
false
let normalize5_first_part_lemma m f =
let m0, m1, m2, m3, m4 = m in let f0, f1, f2, f3, f4 = f in let t = normalize_weak5 f in let t0, t1, t2, t3, t4 = t in normalize_weak5_lemma m f; assert (as_nat5 t == as_nat5 f - (v f4 / pow2 48) * S.prime); assert (felem_fits5 t (1, 1, 1, 1, 2)); assert ((v t4 >= pow2 48 ==> v t4 % pow2 48 < pow2 12)); let x, r = minu...
false
PulseTutorial.SpinLock.fst
PulseTutorial.SpinLock.lock_inv
val lock_inv : r: Pulse.Lib.Reference.ref FStar.UInt32.t -> p: Pulse.Lib.Core.vprop -> Pulse.Lib.Core.vprop
let lock_inv (r:ref U32.t) (p:vprop) = exists* v. pts_to r v ** maybe (v = 0ul) p
{ "file_name": "share/steel/examples/pulse/by-example/PulseTutorial.SpinLock.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 44, "end_line": 11, "start_col": 0, "start_line": 10 }
module PulseTutorial.SpinLock open Pulse.Lib.Pervasives module Box = Pulse.Lib.Box module U32 = FStar.UInt32 //lock$ let maybe (b:bool) (p:vprop) = if b then p else emp
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "Pulse.Lib.Box.fsti.checked", "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "PulseTutorial.SpinLock.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "Pulse.Lib.Box", "short_module": "Box" }, { "abbrev": false, "full_module": "Pulse.Lib.Pervasives", "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
r: Pulse.Lib.Reference.ref FStar.UInt32.t -> p: Pulse.Lib.Core.vprop -> Pulse.Lib.Core.vprop
Prims.Tot
[ "total" ]
[]
[ "Pulse.Lib.Reference.ref", "FStar.UInt32.t", "Pulse.Lib.Core.vprop", "Pulse.Lib.Core.op_exists_Star", "Pulse.Lib.Core.op_Star_Star", "Pulse.Lib.Reference.pts_to", "PulseCore.FractionalPermission.full_perm", "PulseTutorial.SpinLock.maybe", "Prims.op_Equality", "FStar.UInt32.__uint_to_t" ]
[]
false
false
false
true
false
let lock_inv (r: ref U32.t) (p: vprop) =
exists* v. pts_to r v ** maybe (v = 0ul) p
false
PulseTutorial.SpinLock.fst
PulseTutorial.SpinLock.maybe
val maybe : b: Prims.bool -> p: Pulse.Lib.Core.vprop -> Pulse.Lib.Core.vprop
let maybe (b:bool) (p:vprop) = if b then p else emp
{ "file_name": "share/steel/examples/pulse/by-example/PulseTutorial.SpinLock.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 24, "end_line": 8, "start_col": 0, "start_line": 7 }
module PulseTutorial.SpinLock open Pulse.Lib.Pervasives module Box = Pulse.Lib.Box module U32 = FStar.UInt32
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "Pulse.Lib.Box.fsti.checked", "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "PulseTutorial.SpinLock.fst" }
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": true, "full_module": "Pulse.Lib.Box", "short_module": "Box" }, { "abbrev": false, "full_module": "Pulse.Lib.Pervasives", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Prims.bool -> p: Pulse.Lib.Core.vprop -> Pulse.Lib.Core.vprop
Prims.Tot
[ "total" ]
[]
[ "Prims.bool", "Pulse.Lib.Core.vprop", "Pulse.Lib.Core.emp" ]
[]
false
false
false
true
false
let maybe (b: bool) (p: vprop) =
if b then p else emp
false
Vale.SHA.PPC64LE.SHA_helpers.fst
Vale.SHA.PPC64LE.SHA_helpers.lemma_shuffle_core_properties
val lemma_shuffle_core_properties (t:counter) (block:block_w) (hash_orig:hash256) : Lemma (requires t < size_k_w_256) (ensures (let hash = Spec.Loops.repeat_range 0 t (shuffle_core_opaque block) hash_orig in let h = Spec.Loops.repeat_range 0 (t + 1) (shuffle_core_opaque block) hash_orig in l...
val lemma_shuffle_core_properties (t:counter) (block:block_w) (hash_orig:hash256) : Lemma (requires t < size_k_w_256) (ensures (let hash = Spec.Loops.repeat_range 0 t (shuffle_core_opaque block) hash_orig in let h = Spec.Loops.repeat_range 0 (t + 1) (shuffle_core_opaque block) hash_orig in l...
let lemma_shuffle_core_properties (t:counter) (block:block_w) (hash_orig:hash256) : Lemma (requires t < size_k_w_256) (ensures (let hash = Spec.Loops.repeat_range 0 t (shuffle_core_opaque block) hash_orig in let h = Spec.Loops.repeat_range 0 (t + 1) (shuffle_core_opaque block) hash_orig in l...
{ "file_name": "vale/code/crypto/sha/Vale.SHA.PPC64LE.SHA_helpers.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 101, "end_line": 449, "start_col": 0, "start_line": 407 }
module Vale.SHA.PPC64LE.SHA_helpers open FStar.Mul open Vale.Def.Prop_s open Vale.Def.Opaque_s open Spec.SHA2 open Spec.SHA2.Lemmas open Spec.Agile.Hash open Spec.Hash.Definitions open Spec.Hash.Lemmas open Vale.Def.Types_s open Vale.Def.Words_s open FStar.Seq open FStar.UInt32 // Interop with UInt-based SHA spec ope...
{ "checked_file": "/", "dependencies": [ "Vale.SHA2.Wrapper.fst.checked", "Vale.SHA2.Wrapper.fst.checked", "Vale.Lib.Seqs_s.fst.checked", "Vale.Lib.Seqs.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked", "Vale.Def.Words.Seq.fsti.checked", "Vale.Def.W...
[ { "abbrev": false, "full_module": "FStar.UInt32 // Interop with UInt-based SHA spec", "short_module": null }, { "abbrev": false, "full_module": "Vale.SHA2.Wrapper", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Sel", "short_module": null }, { ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Vale.SHA.PPC64LE.SHA_helpers.counter -> block: Vale.SHA.PPC64LE.SHA_helpers.block_w -> hash_orig: Vale.SHA.PPC64LE.SHA_helpers.hash256 -> FStar.Pervasives.Lemma (requires t < Vale.SHA.PPC64LE.SHA_helpers.size_k_w_256) (ensures (let hash = Spec.Loops.repeat_range 0 ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.SHA.PPC64LE.SHA_helpers.counter", "Vale.SHA.PPC64LE.SHA_helpers.block_w", "Vale.SHA.PPC64LE.SHA_helpers.hash256", "Vale.SHA.PPC64LE.SHA_helpers.shuffle_core_properties", "Spec.Loops.repeat_range", "Vale.SHA.PPC64LE.SHA_helpers.shuffle_core_opaque", "Prims.unit", "Spec.Loops.repeat_range_inductio...
[]
true
false
true
false
false
let lemma_shuffle_core_properties (t: counter) (block: block_w) (hash_orig: hash256) : Lemma (requires t < size_k_w_256) (ensures (let hash = Spec.Loops.repeat_range 0 t (shuffle_core_opaque block) hash_orig in let h = Spec.Loops.repeat_range 0 (t + 1) (shuffle_core_opaque block) hash_orig i...
let hash = Spec.Loops.repeat_range 0 t (shuffle_core_opaque block) hash_orig in let a0 = word_to_nat32 hash.[ 0 ] in let b0 = word_to_nat32 hash.[ 1 ] in let c0 = word_to_nat32 hash.[ 2 ] in let d0 = word_to_nat32 hash.[ 3 ] in let e0 = word_to_nat32 hash.[ 4 ] in let f0 = word_to_nat32 hash.[ 5 ] in let g0 = word_to_n...
false
Pulse.Lib.GhostWitness.fst
Pulse.Lib.GhostWitness.sqeq
val sqeq: p: Type -> squash p -> erased p
val sqeq: p: Type -> squash p -> erased p
let sqeq (p : Type) (_ : squash p) : erased p = FStar.IndefiniteDescription.elim_squash #p ()
{ "file_name": "share/steel/examples/pulse/lib/Pulse.Lib.GhostWitness.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 47, "end_line": 6, "start_col": 0, "start_line": 5 }
module Pulse.Lib.GhostWitness open Pulse.Lib.Pervasives
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.IndefiniteDescription.fsti.checked" ], "interface_file": true, "source_file": "Pulse.Lib.GhostWitness.fst" }
[ { "abbrev": false, "full_module": "Pulse.Lib.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Lib.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Lib", "short_module": null }, { "abbrev": false, "full_...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: Type -> _: Prims.squash p -> FStar.Ghost.erased p
Prims.Tot
[ "total" ]
[]
[ "Prims.squash", "FStar.Ghost.hide", "FStar.IndefiniteDescription.elim_squash", "FStar.Ghost.erased" ]
[]
false
false
false
true
false
let sqeq (p: Type) (_: squash p) : erased p =
FStar.IndefiniteDescription.elim_squash #p ()
false
Hacl.Spec.K256.Field52.Lemmas2.fst
Hacl.Spec.K256.Field52.Lemmas2.normalize5_second_part_x_is_one_lemma
val normalize5_second_part_x_is_one_lemma: x:uint64 -> r:felem5 -> Lemma (requires (let (r0,r1,r2,r3,r4) = r in felem_fits5 r (1,1,1,1,1) /\ v x = 1 /\ v r4 < pow2 12)) (ensures (let k = normalize5_second_part_x x r in as_nat5 k == as_nat5 r + v x * pow2 256 - S.prime /\ felem_fits5 k (1,1,1,1,1) /\ as_...
val normalize5_second_part_x_is_one_lemma: x:uint64 -> r:felem5 -> Lemma (requires (let (r0,r1,r2,r3,r4) = r in felem_fits5 r (1,1,1,1,1) /\ v x = 1 /\ v r4 < pow2 12)) (ensures (let k = normalize5_second_part_x x r in as_nat5 k == as_nat5 r + v x * pow2 256 - S.prime /\ felem_fits5 k (1,1,1,1,1) /\ as_...
let normalize5_second_part_x_is_one_lemma x r = LD.lemma_as_nat_bound_f4_lt_pow12 r; assert (as_nat5 r <= pow2 220 - 1); assert_norm (pow2 220 - 1 < S.prime); let is_ge_p_m = is_felem_ge_prime5 r in is_felem_ge_prime5_lemma r; assert (v is_ge_p_m = 0); let m_to_one = is_ge_p_m &. u64 1 in logand_lemma...
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas2.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 55, "end_line": 294, "start_col": 0, "start_line": 259 }
module Hacl.Spec.K256.Field52.Lemmas2 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" /// No...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "Hacl.Spec.K256.Field52....
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Lib.IntTypes.uint64 -> r: Hacl.Spec.K256.Field52.Definitions.felem5 -> FStar.Pervasives.Lemma (requires (let _ = r in (let FStar.Pervasives.Native.Mktuple5 #_ #_ #_ #_ #_ _ _ _ _ r4 = _ in Hacl.Spec.K256.Field52.Definitions.felem_fits5 r (1, 1, 1, 1, 1) /\ Lib.IntTypes.v x = 1 /...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Lib.IntTypes.uint64", "Hacl.Spec.K256.Field52.Definitions.felem5", "FStar.Pervasives.assert_norm", "Prims.b2t", "Prims.op_LessThan", "Prims.op_Subtraction", "Prims.op_Addition", "Prims.pow2", "Spec.K256.PointOps.prime", "Prims.unit", "Prims._assert", "Hacl.Spec.K256.Field52.Definitions.as_nat...
[]
false
false
true
false
false
let normalize5_second_part_x_is_one_lemma x r =
LD.lemma_as_nat_bound_f4_lt_pow12 r; assert (as_nat5 r <= pow2 220 - 1); assert_norm (pow2 220 - 1 < S.prime); let is_ge_p_m = is_felem_ge_prime5 r in is_felem_ge_prime5_lemma r; assert (v is_ge_p_m = 0); let m_to_one = is_ge_p_m &. u64 1 in logand_lemma is_ge_p_m (u64 1); assert (v m_to_one = 0); let x1 = m_to_one |. ...
false
Hacl.Spec.K256.Field52.Lemmas2.fst
Hacl.Spec.K256.Field52.Lemmas2.normalize5_second_part_x_is_zero_lemma
val normalize5_second_part_x_is_zero_lemma: x:uint64 -> r:felem5 -> Lemma (requires (let (r0,r1,r2,r3,r4) = r in felem_fits5 r (1,1,1,1,1) /\ v x = 0)) (ensures (let k = normalize5_second_part_x x r in as_nat5 k == (if as_nat5 r < S.prime then as_nat5 r else as_nat5 r - S.prime) /\ felem_fits5 k (1,1,1,...
val normalize5_second_part_x_is_zero_lemma: x:uint64 -> r:felem5 -> Lemma (requires (let (r0,r1,r2,r3,r4) = r in felem_fits5 r (1,1,1,1,1) /\ v x = 0)) (ensures (let k = normalize5_second_part_x x r in as_nat5 k == (if as_nat5 r < S.prime then as_nat5 r else as_nat5 r - S.prime) /\ felem_fits5 k (1,1,1,...
let normalize5_second_part_x_is_zero_lemma x r = let is_ge_p_m = is_felem_ge_prime5 r in is_felem_ge_prime5_lemma r; assert (if v is_ge_p_m = ones_v U64 then (as_nat5 r >= S.prime) else as_nat5 r < S.prime); let m_to_one = is_ge_p_m &. u64 1 in logand_lemma is_ge_p_m (u64 1); assert (if v is_ge_p_m = o...
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas2.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 48, "end_line": 342, "start_col": 0, "start_line": 304 }
module Hacl.Spec.K256.Field52.Lemmas2 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" /// No...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "Hacl.Spec.K256.Field52....
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: Lib.IntTypes.uint64 -> r: Hacl.Spec.K256.Field52.Definitions.felem5 -> FStar.Pervasives.Lemma (requires (let _ = r in (let FStar.Pervasives.Native.Mktuple5 #_ #_ #_ #_ #_ _ _ _ _ _ = _ in Hacl.Spec.K256.Field52.Definitions.felem_fits5 r (1, 1, 1, 1, 1) /\ Lib.IntTypes.v x = 0 ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Lib.IntTypes.uint64", "Hacl.Spec.K256.Field52.Definitions.felem5", "Prims.op_Equality", "Prims.int", "Lib.IntTypes.v", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Prims._assert", "Prims.b2t", "Prims.nat", "Hacl.Spec.K256.Field52.Definitions.as_nat5", "Prims.unit", "FStar.Math.Lemmas.small_div"...
[]
false
false
true
false
false
let normalize5_second_part_x_is_zero_lemma x r =
let is_ge_p_m = is_felem_ge_prime5 r in is_felem_ge_prime5_lemma r; assert (if v is_ge_p_m = ones_v U64 then (as_nat5 r >= S.prime) else as_nat5 r < S.prime); let m_to_one = is_ge_p_m &. u64 1 in logand_lemma is_ge_p_m (u64 1); assert (if v is_ge_p_m = ones_v U64 then v m_to_one = 1 else v m_to_one = 0); let x1 = m_to_...
false
Hacl.Spec.K256.Field52.Lemmas2.fst
Hacl.Spec.K256.Field52.Lemmas2.normalize5_lemma
val normalize5_lemma: m:scale64_5 -> f:felem5 -> Lemma (requires (let (m0,m1,m2,m3,m4) = m in m0 + 1 <= 4096 /\ m1 + 1 <= 4096 /\ m2 + 1 <= 4096 /\ m3 + 1 <= 4096 /\ felem_fits5 f m)) (ensures (let r = normalize5 f in as_nat5 r == as_nat5 f % S.prime /\ felem_fits5 r (1,1,1,1,1)))
val normalize5_lemma: m:scale64_5 -> f:felem5 -> Lemma (requires (let (m0,m1,m2,m3,m4) = m in m0 + 1 <= 4096 /\ m1 + 1 <= 4096 /\ m2 + 1 <= 4096 /\ m3 + 1 <= 4096 /\ felem_fits5 f m)) (ensures (let r = normalize5 f in as_nat5 r == as_nat5 f % S.prime /\ felem_fits5 r (1,1,1,1,1)))
let normalize5_lemma m f = let (m0,m1,m2,m3,m4) = m in let (f0,f1,f2,f3,f4) = f in let x, r = normalize5_first_part f in let k = normalize5_second_part_x x r in let (r0,r1,r2,r3,r4) = r in normalize5_first_part_lemma m f; assert (as_nat5 r == as_nat5 f - v f4 / pow2 48 * S.prime - v x * pow2 256); if ...
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas2.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 84, "end_line": 382, "start_col": 0, "start_line": 364 }
module Hacl.Spec.K256.Field52.Lemmas2 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" /// No...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "Hacl.Spec.K256.Field52....
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
m: Hacl.Spec.K256.Field52.Definitions.scale64_5 -> f: Hacl.Spec.K256.Field52.Definitions.felem5 -> FStar.Pervasives.Lemma (requires (let _ = m in (let FStar.Pervasives.Native.Mktuple5 #_ #_ #_ #_ #_ m0 m1 m2 m3 _ = _ in m0 + 1 <= 4096 /\ m1 + 1 <= 4096 /\ m2 + 1 <= 4096 /\ m3 + 1 <...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.K256.Field52.Definitions.scale64_5", "Hacl.Spec.K256.Field52.Definitions.felem5", "Prims.nat", "Lib.IntTypes.uint64", "FStar.Pervasives.Native.tuple5", "Prims.op_Equality", "Prims.int", "Lib.IntTypes.v", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Hacl.Spec.K256.Field52.Lemmas2.lemma_a_m...
[]
false
false
true
false
false
let normalize5_lemma m f =
let m0, m1, m2, m3, m4 = m in let f0, f1, f2, f3, f4 = f in let x, r = normalize5_first_part f in let k = normalize5_second_part_x x r in let r0, r1, r2, r3, r4 = r in normalize5_first_part_lemma m f; assert (as_nat5 r == as_nat5 f - (v f4 / pow2 48) * S.prime - v x * pow2 256); if v x = 1 then (normalize5_second_par...
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.optional_freeable
val optional_freeable : h: FStar.Monotonic.HyperStack.mem -> k: Hacl.Streaming.Interface.optional_key i km key -> Type0
let optional_freeable #index (#i: index) (#km: key_management) (#key: stateful index) (h: HS.mem) (k: optional_key i km key) = allow_inversion key_management; match km with | Erased -> True | Runtime -> key.freeable #i h k
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 34, "end_line": 61, "start_col": 0, "start_line": 51 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
h: FStar.Monotonic.HyperStack.mem -> k: Hacl.Streaming.Interface.optional_key i km key -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Interface.key_management", "Hacl.Streaming.Interface.stateful", "FStar.Monotonic.HyperStack.mem", "Hacl.Streaming.Interface.optional_key", "Prims.l_True", "Hacl.Streaming.Interface.__proj__Stateful__item__freeable", "Prims.unit", "FStar.Pervasives.allow_inversion" ]
[]
false
false
false
false
true
let optional_freeable #index (#i: index) (#km: key_management) (#key: stateful index) (h: HS.mem) (k: optional_key i km key) =
allow_inversion key_management; match km with | Erased -> True | Runtime -> key.freeable #i h k
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.optional_footprint
val optional_footprint : h: FStar.Monotonic.HyperStack.mem -> k: Hacl.Streaming.Interface.optional_key i km key -> Prims.GTot LowStar.Monotonic.Buffer.loc
let optional_footprint #index (#i: index) (#km: key_management) (#key: stateful index) (h: HS.mem) (k: optional_key i km key) = allow_inversion key_management; match km with | Erased -> B.loc_none | Runtime -> key.footprint #i h k
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 35, "end_line": 85, "start_col": 0, "start_line": 75 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
h: FStar.Monotonic.HyperStack.mem -> k: Hacl.Streaming.Interface.optional_key i km key -> Prims.GTot LowStar.Monotonic.Buffer.loc
Prims.GTot
[ "sometrivial" ]
[]
[ "Hacl.Streaming.Interface.key_management", "Hacl.Streaming.Interface.stateful", "FStar.Monotonic.HyperStack.mem", "Hacl.Streaming.Interface.optional_key", "LowStar.Monotonic.Buffer.loc_none", "Hacl.Streaming.Interface.__proj__Stateful__item__footprint", "LowStar.Monotonic.Buffer.loc", "Prims.unit", ...
[]
false
false
false
false
false
let optional_footprint #index (#i: index) (#km: key_management) (#key: stateful index) (h: HS.mem) (k: optional_key i km key) =
allow_inversion key_management; match km with | Erased -> B.loc_none | Runtime -> key.footprint #i h k
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.optional_invariant
val optional_invariant : h: FStar.Monotonic.HyperStack.mem -> k: Hacl.Streaming.Interface.optional_key i km key -> Type0
let optional_invariant #index (#i: index) (#km: key_management) (#key: stateful index) (h: HS.mem) (k: optional_key i km key) = allow_inversion key_management; match km with | Erased -> True | Runtime -> key.invariant #i h k
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 35, "end_line": 73, "start_col": 0, "start_line": 63 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
h: FStar.Monotonic.HyperStack.mem -> k: Hacl.Streaming.Interface.optional_key i km key -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Interface.key_management", "Hacl.Streaming.Interface.stateful", "FStar.Monotonic.HyperStack.mem", "Hacl.Streaming.Interface.optional_key", "Prims.l_True", "Hacl.Streaming.Interface.__proj__Stateful__item__invariant", "Prims.unit", "FStar.Pervasives.allow_inversion" ]
[]
false
false
false
false
true
let optional_invariant #index (#i: index) (#km: key_management) (#key: stateful index) (h: HS.mem) (k: optional_key i km key) =
allow_inversion key_management; match km with | Erased -> True | Runtime -> key.invariant #i h k
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.optional_reveal
val optional_reveal : h: FStar.Monotonic.HyperStack.mem -> k: Hacl.Streaming.Interface.optional_key i km key -> Prims.GTot (Stateful?.t key i)
let optional_reveal #index (#i: index) (#km: key_management) (#key: stateful index) (h: HS.mem) (k: optional_key i km key) = allow_inversion key_management; match km with | Erased -> G.reveal k | Runtime -> key.v i h k
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 26, "end_line": 97, "start_col": 0, "start_line": 87 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
h: FStar.Monotonic.HyperStack.mem -> k: Hacl.Streaming.Interface.optional_key i km key -> Prims.GTot (Stateful?.t key i)
Prims.GTot
[ "sometrivial" ]
[]
[ "Hacl.Streaming.Interface.key_management", "Hacl.Streaming.Interface.stateful", "FStar.Monotonic.HyperStack.mem", "Hacl.Streaming.Interface.optional_key", "FStar.Ghost.reveal", "Hacl.Streaming.Interface.__proj__Stateful__item__t", "Hacl.Streaming.Interface.__proj__Stateful__item__v", "Prims.unit", "...
[]
false
false
false
false
false
let optional_reveal #index (#i: index) (#km: key_management) (#key: stateful index) (h: HS.mem) (k: optional_key i km key) =
allow_inversion key_management; match km with | Erased -> G.reveal k | Runtime -> key.v i h k
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.optional_hide
val optional_hide (#index: _) (#i: index) (#km: key_management) (#key: stateful index) (h: HS.mem) (k: key.s i) : optional_key i km key
val optional_hide (#index: _) (#i: index) (#km: key_management) (#key: stateful index) (h: HS.mem) (k: key.s i) : optional_key i km key
let optional_hide #index (#i: index) (#km: key_management) (#key: stateful index) (h: HS.mem) (k: key.s i): optional_key i km key = allow_inversion key_management; match km with | Erased -> G.hide (key.v i h k) | Runtime -> k
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 16, "end_line": 110, "start_col": 0, "start_line": 99 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
h: FStar.Monotonic.HyperStack.mem -> k: Stateful?.s key i -> Hacl.Streaming.Interface.optional_key i km key
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Interface.key_management", "Hacl.Streaming.Interface.stateful", "FStar.Monotonic.HyperStack.mem", "Hacl.Streaming.Interface.__proj__Stateful__item__s", "FStar.Ghost.hide", "Hacl.Streaming.Interface.__proj__Stateful__item__t", "Hacl.Streaming.Interface.__proj__Stateful__item__v", "Hacl....
[]
false
false
false
false
false
let optional_hide #index (#i: index) (#km: key_management) (#key: stateful index) (h: HS.mem) (k: key.s i) : optional_key i km key =
allow_inversion key_management; match km with | Erased -> G.hide (key.v i h k) | Runtime -> k
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.footprint_s
val footprint_s (#index: Type0) (c: block index) (i: index) (h: HS.mem) (s: state_s' c i): GTot B.loc
val footprint_s (#index: Type0) (c: block index) (i: index) (h: HS.mem) (s: state_s' c i): GTot B.loc
let footprint_s #index (c: block index) (i: index) (h: HS.mem) s = let State block_state buf_ _ _ p_key = s in B.(loc_addr_of_buffer buf_ `loc_union` c.state.footprint h block_state `loc_union` optional_footprint h p_key)
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 112, "end_line": 169, "start_col": 0, "start_line": 167 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block index -> i: index -> h: FStar.Monotonic.HyperStack.mem -> s: Hacl.Streaming.Functor.state_s' c i -> Prims.GTot LowStar.Monotonic.Buffer.loc
Prims.GTot
[ "sometrivial" ]
[]
[ "Hacl.Streaming.Interface.block", "FStar.Monotonic.HyperStack.mem", "Hacl.Streaming.Functor.state_s'", "Hacl.Streaming.Interface.__proj__Stateful__item__s", "Hacl.Streaming.Interface.__proj__Block__item__state", "LowStar.Buffer.buffer", "Lib.IntTypes.uint8", "Prims.b2t", "Prims.op_Equality", "FSta...
[]
false
false
false
false
false
let footprint_s #index (c: block index) (i: index) (h: HS.mem) s =
let State block_state buf_ _ _ p_key = s in let open B in ((loc_addr_of_buffer buf_) `loc_union` (c.state.footprint h block_state)) `loc_union` (optional_footprint h p_key)
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.stateful_frame_preserves_freeable
val stateful_frame_preserves_freeable: #index:Type0 -> #sc:stateful index -> #i:index -> l:B.loc -> s:sc.s i -> h0:HS.mem -> h1:HS.mem -> Lemma (requires ( sc.invariant h0 s /\ B.loc_disjoint l (sc.footprint h0 s) /\ B.modifies l h0 h1)) (ensures ( sc.freeable h0 s ==> sc.freeable h1 s))
val stateful_frame_preserves_freeable: #index:Type0 -> #sc:stateful index -> #i:index -> l:B.loc -> s:sc.s i -> h0:HS.mem -> h1:HS.mem -> Lemma (requires ( sc.invariant h0 s /\ B.loc_disjoint l (sc.footprint h0 s) /\ B.modifies l h0 h1)) (ensures ( sc.freeable h0 s ==> sc.freeable h1 s))
let stateful_frame_preserves_freeable #index #sc #i l s h0 h1 = let lem h0 h1 : Lemma (requires ( sc.invariant h0 s /\ B.loc_disjoint l (sc.footprint h0 s) /\ B.modifies l h0 h1 /\ sc.freeable h0 s)) (ensures ( sc.freeable h1 s)) [SMTPat (sc.freeable h0 s); SMTPat (...
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 140, "start_col": 0, "start_line": 126 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
l: LowStar.Monotonic.Buffer.loc -> s: Stateful?.s sc i -> h0: FStar.Monotonic.HyperStack.mem -> h1: FStar.Monotonic.HyperStack.mem -> FStar.Pervasives.Lemma (requires Stateful?.invariant sc h0 s /\ LowStar.Monotonic.Buffer.loc_disjoint l (Stateful?.footprint sc h0 s) /\ ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Streaming.Interface.stateful", "LowStar.Monotonic.Buffer.loc", "Hacl.Streaming.Interface.__proj__Stateful__item__s", "FStar.Monotonic.HyperStack.mem", "Prims.unit", "Prims.l_and", "Hacl.Streaming.Interface.__proj__Stateful__item__invariant", "LowStar.Monotonic.Buffer.loc_disjoint", "Hacl.Strea...
[]
false
false
true
false
false
let stateful_frame_preserves_freeable #index #sc #i l s h0 h1 =
let lem h0 h1 : Lemma (requires (sc.invariant h0 s /\ B.loc_disjoint l (sc.footprint h0 s) /\ B.modifies l h0 h1 /\ sc.freeable h0 s)) (ensures (sc.freeable h1 s)) [SMTPat (sc.freeable h0 s); SMTPat (sc.freeable h1 s)] = sc.frame_freeable l s h0 h1 in ()
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.freeable_s
val freeable_s (#index: Type0) (c: block index) (i: index) (h: HS.mem) (s: state_s' c i) : Type0
val freeable_s (#index: Type0) (c: block index) (i: index) (h: HS.mem) (s: state_s' c i) : Type0
let freeable_s (#index: Type0) (c: block index) (i: index) (h: HS.mem) (s: state_s' c i): Type0 = let State block_state buf_ total_len seen key = s in B.freeable buf_ /\ c.state.freeable h block_state /\ optional_freeable h key
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 78, "end_line": 206, "start_col": 0, "start_line": 204 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block index -> i: index -> h: FStar.Monotonic.HyperStack.mem -> s: Hacl.Streaming.Functor.state_s' c i -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Interface.block", "FStar.Monotonic.HyperStack.mem", "Hacl.Streaming.Functor.state_s'", "Hacl.Streaming.Interface.__proj__Stateful__item__s", "Hacl.Streaming.Interface.__proj__Block__item__state", "LowStar.Buffer.buffer", "Lib.IntTypes.uint8", "Prims.b2t", "Prims.op_Equality", "FSta...
[]
false
false
false
false
true
let freeable_s (#index: Type0) (c: block index) (i: index) (h: HS.mem) (s: state_s' c i) : Type0 =
let State block_state buf_ total_len seen key = s in B.freeable buf_ /\ c.state.freeable h block_state /\ optional_freeable h key
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.seen
val seen: #index:Type0 -> c:block index -> i:index -> h:HS.mem -> s:state' c i -> GTot bytes
val seen: #index:Type0 -> c:block index -> i:index -> h:HS.mem -> s:state' c i -> GTot bytes
let seen #index c i h s = G.reveal (State?.seen (B.deref h s))
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 222, "start_col": 0, "start_line": 221 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block index -> i: index -> h: FStar.Monotonic.HyperStack.mem -> s: Hacl.Streaming.Functor.state' c i -> Prims.GTot Hacl.Streaming.Functor.bytes
Prims.GTot
[ "sometrivial" ]
[]
[ "Hacl.Streaming.Interface.block", "FStar.Monotonic.HyperStack.mem", "Hacl.Streaming.Functor.state'", "FStar.Ghost.reveal", "FStar.Seq.Base.seq", "Hacl.Streaming.Spec.uint8", "Hacl.Streaming.Functor.__proj__State__item__seen", "Hacl.Streaming.Interface.__proj__Stateful__item__s", "Hacl.Streaming.Inte...
[]
false
false
false
false
false
let seen #index c i h s =
G.reveal (State?.seen (B.deref h s))
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.optional_frame
val optional_frame (#index: _) (#i: index) (#km: key_management) (#key: stateful index) (l: B.loc) (s: optional_key i km key) (h0 h1: HS.mem) : Lemma (requires (optional_invariant h0 s /\ B.loc_disjoint l (optional_footprint h0 s) /\ B.modifies l h0 h1 ...
val optional_frame (#index: _) (#i: index) (#km: key_management) (#key: stateful index) (l: B.loc) (s: optional_key i km key) (h0 h1: HS.mem) : Lemma (requires (optional_invariant h0 s /\ B.loc_disjoint l (optional_footprint h0 s) /\ B.modifies l h0 h1 ...
let optional_frame #index (#i: index) (#km: key_management) (#key: stateful index) (l: B.loc) (s: optional_key i km key) (h0 h1: HS.mem): Lemma (requires ( optional_invariant h0 s /\ B.loc_disjoint l (optional_footprint h0 s) /\ B.modifies l h0 h1)) (ensures ( optional_inva...
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 64, "end_line": 165, "start_col": 0, "start_line": 142 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
l: LowStar.Monotonic.Buffer.loc -> s: Hacl.Streaming.Interface.optional_key i km key -> h0: FStar.Monotonic.HyperStack.mem -> h1: FStar.Monotonic.HyperStack.mem -> FStar.Pervasives.Lemma (requires Hacl.Streaming.Functor.optional_invariant h0 s /\ LowStar.Monotonic.Buffer.loc_dis...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Streaming.Interface.key_management", "Hacl.Streaming.Interface.stateful", "LowStar.Monotonic.Buffer.loc", "Hacl.Streaming.Interface.optional_key", "FStar.Monotonic.HyperStack.mem", "Hacl.Streaming.Functor.stateful_frame_preserves_freeable", "Prims.unit", "Hacl.Streaming.Interface.__proj__Statefu...
[]
false
false
true
false
false
let optional_frame #index (#i: index) (#km: key_management) (#key: stateful index) (l: B.loc) (s: optional_key i km key) (h0: HS.mem) (h1: HS.mem) : Lemma (requires (optional_invariant h0 s /\ B.loc_disjoint l (optional_footprint h0 s) /\ B.modifies l h0...
allow_inversion key_management; match km with | Erased -> () | Runtime -> key.frame_invariant #i l s h0 h1; stateful_frame_preserves_freeable #index #key #i l s h0 h1
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.all_seen
val all_seen (#index: Type0) (c: block index) (i: index) (h: HS.mem) (s: state' c i) : GTot bytes
val all_seen (#index: Type0) (c: block index) (i: index) (h: HS.mem) (s: state' c i) : GTot bytes
let all_seen (#index:Type0) (c:block index) (i:index) (h:HS.mem) (s:state' c i) : GTot bytes = S.append (init_input c i h s) (seen c i h s)
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 46, "end_line": 234, "start_col": 0, "start_line": 233 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block index -> i: index -> h: FStar.Monotonic.HyperStack.mem -> s: Hacl.Streaming.Functor.state' c i -> Prims.GTot Hacl.Streaming.Functor.bytes
Prims.GTot
[ "sometrivial" ]
[]
[ "Hacl.Streaming.Interface.block", "FStar.Monotonic.HyperStack.mem", "Hacl.Streaming.Functor.state'", "FStar.Seq.Base.append", "Hacl.Streaming.Spec.uint8", "Hacl.Streaming.Functor.init_input", "Hacl.Streaming.Functor.seen", "Hacl.Streaming.Functor.bytes" ]
[]
false
false
false
false
false
let all_seen (#index: Type0) (c: block index) (i: index) (h: HS.mem) (s: state' c i) : GTot bytes =
S.append (init_input c i h s) (seen c i h s)
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.reveal_key
val reveal_key: #index:Type0 -> c:block index -> i:index -> h:HS.mem -> s:state' c i -> GTot (c.key.I.t i)
val reveal_key: #index:Type0 -> c:block index -> i:index -> h:HS.mem -> s:state' c i -> GTot (c.key.I.t i)
let reveal_key #index c i h s = optional_reveal h (State?.p_key (B.deref h s))
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 48, "end_line": 228, "start_col": 0, "start_line": 227 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block index -> i: index -> h: FStar.Monotonic.HyperStack.mem -> s: Hacl.Streaming.Functor.state' c i -> Prims.GTot (Stateful?.t (Block?.key c) i)
Prims.GTot
[ "sometrivial" ]
[]
[ "Hacl.Streaming.Interface.block", "FStar.Monotonic.HyperStack.mem", "Hacl.Streaming.Functor.state'", "Hacl.Streaming.Functor.optional_reveal", "Hacl.Streaming.Interface.__proj__Block__item__km", "Hacl.Streaming.Interface.__proj__Block__item__key", "Hacl.Streaming.Functor.__proj__State__item__p_key", "...
[]
false
false
false
false
false
let reveal_key #index c i h s =
optional_reveal h (State?.p_key (B.deref h s))
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.init_input
val init_input (#index: Type0) (c: block index) (i: index) (h: HS.mem) (s: state' c i) : GTot bytes
val init_input (#index: Type0) (c: block index) (i: index) (h: HS.mem) (s: state' c i) : GTot bytes
let init_input (#index:Type0) (c:block index) (i:index) (h:HS.mem) (s:state' c i) : GTot bytes = c.init_input_s i (reveal_key c i h s)
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 39, "end_line": 231, "start_col": 0, "start_line": 230 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block index -> i: index -> h: FStar.Monotonic.HyperStack.mem -> s: Hacl.Streaming.Functor.state' c i -> Prims.GTot Hacl.Streaming.Functor.bytes
Prims.GTot
[ "sometrivial" ]
[]
[ "Hacl.Streaming.Interface.block", "FStar.Monotonic.HyperStack.mem", "Hacl.Streaming.Functor.state'", "Hacl.Streaming.Interface.__proj__Block__item__init_input_s", "Hacl.Streaming.Functor.reveal_key", "Hacl.Streaming.Functor.bytes" ]
[]
false
false
false
false
false
let init_input (#index: Type0) (c: block index) (i: index) (h: HS.mem) (s: state' c i) : GTot bytes =
c.init_input_s i (reveal_key c i h s)
false
LList.fst
LList.push
val push (#a:Type) (ptr:t a) (l:list (cell a)) (v:a) : Steel (t a & list (cell a)) (llist ptr l) (fun pc -> llist (fst pc) (snd pc)) (requires fun _ -> True) (ensures fun _ pc _ -> datas (snd pc) == v::datas l)
val push (#a:Type) (ptr:t a) (l:list (cell a)) (v:a) : Steel (t a & list (cell a)) (llist ptr l) (fun pc -> llist (fst pc) (snd pc)) (requires fun _ -> True) (ensures fun _ pc _ -> datas (snd pc) == v::datas l)
let push #a ptr l v = let cell = mk_cell ptr v in let p = alloc_pt cell in rewrite_slprop (llist ptr l) (llist (next cell) l) (fun _ -> ()); intro_llist_cons p cell l; let pc = p, (cell::l) in pc
{ "file_name": "share/steel/examples/steel/LList.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 4, "end_line": 46, "start_col": 0, "start_line": 40 }
module LList open Steel.Memory open Steel.Effect.Atomic open Steel.Effect open Steel.FractionalPermission open Steel.Reference include LList.Invariant module L = FStar.List.Tot.Base #set-options "--ide_id_info_off" let rec datas (#a:Type) (l:list (cell a)) : list a = match l with | [] -> [] | hd::tl -> data hd ...
{ "checked_file": "/", "dependencies": [ "Steel.Reference.fsti.checked", "Steel.Memory.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "LList.Invariant.fsti.checked", "FStar.Pervasives.Nati...
[ { "abbrev": true, "full_module": "FStar.List.Tot.Base", "short_module": "L" }, { "abbrev": false, "full_module": "LList.Invariant", "short_module": null }, { "abbrev": false, "full_module": "Steel.Reference", "short_module": null }, { "abbrev": false, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ptr: LList.Invariant.t a -> l: Prims.list (LList.Invariant.cell a) -> v: a -> Steel.Effect.Steel (LList.Invariant.t a * Prims.list (LList.Invariant.cell a))
Steel.Effect.Steel
[]
[]
[ "LList.Invariant.t", "Prims.list", "LList.Invariant.cell", "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.Mktuple2", "Prims.Cons", "Prims.unit", "LList.Invariant.intro_llist_cons", "Steel.Effect.Atomic.rewrite_slprop", "FStar.Ghost.hide", "FStar.Set.set", "Steel.Memory.iname", "F...
[]
false
true
false
false
false
let push #a ptr l v =
let cell = mk_cell ptr v in let p = alloc_pt cell in rewrite_slprop (llist ptr l) (llist (next cell) l) (fun _ -> ()); intro_llist_cons p cell l; let pc = p, (cell :: l) in pc
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.invariant_s
val invariant_s (#index: Type0) (c: block index) (i: index) (h: HS.mem) (s: state_s' c i): Type0
val invariant_s (#index: Type0) (c: block index) (i: index) (h: HS.mem) (s: state_s' c i): Type0
let invariant_s #index (c: block index) (i: index) h s = let State block_state buf_ total_len seen key = s in let seen = G.reveal seen in let key_v = optional_reveal h key in let all_seen = S.append (c.init_input_s i key_v) seen in let blocks, rest = split_at_last c i all_seen in (**) Math.Lemmas.modulo_lem...
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 62, "end_line": 200, "start_col": 0, "start_line": 176 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block index -> i: index -> h: FStar.Monotonic.HyperStack.mem -> s: Hacl.Streaming.Functor.state_s' c i -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Interface.block", "FStar.Monotonic.HyperStack.mem", "Hacl.Streaming.Functor.state_s'", "Hacl.Streaming.Interface.__proj__Stateful__item__s", "Hacl.Streaming.Interface.__proj__Block__item__state", "LowStar.Buffer.buffer", "Lib.IntTypes.uint8", "Prims.b2t", "Prims.op_Equality", "FSta...
[]
false
false
false
false
true
let invariant_s #index (c: block index) (i: index) h s =
let State block_state buf_ total_len seen key = s in let seen = G.reveal seen in let key_v = optional_reveal h key in let all_seen = S.append (c.init_input_s i key_v) seen in let blocks, rest = split_at_last c i all_seen in Math.Lemmas.modulo_lemma 0 (U32.v (Block?.block_len c i)); assert (0 % U32.v (Block?.block_len c...
false
Vale.X64.BufferViewStore.fst
Vale.X64.BufferViewStore.bv_upd_update_heap128
val bv_upd_update_heap128: (b:IB.b8{DV.length (IB.get_downview b.IB.bsrc) % 16 == 0}) -> (heap:machine_heap) -> (i:nat{i < DV.length (IB.get_downview b.IB.bsrc) / 16}) -> (v:quad32) -> (mem:IB.interop_heap{MB.live (IB.hs_of_mem mem) b.IB.bsrc}) -> Lemma (requires IB.correct_down_p mem heap b) (en...
val bv_upd_update_heap128: (b:IB.b8{DV.length (IB.get_downview b.IB.bsrc) % 16 == 0}) -> (heap:machine_heap) -> (i:nat{i < DV.length (IB.get_downview b.IB.bsrc) / 16}) -> (v:quad32) -> (mem:IB.interop_heap{MB.live (IB.hs_of_mem mem) b.IB.bsrc}) -> Lemma (requires IB.correct_down_p mem heap b) (en...
let bv_upd_update_heap128 b heap i v mem = let dv = IB.get_downview b.IB.bsrc in DV.length_eq dv; let uv = UV.mk_buffer dv up_view128 in let addrs = IB.addrs_of_mem mem in let h = IB.hs_of_mem mem in UV.length_eq uv; let ptr = addrs b + 16 * i in let heap' = update_heap128 ptr v heap in let prefix, _,...
{ "file_name": "vale/code/arch/x64/Vale.X64.BufferViewStore.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 31, "end_line": 264, "start_col": 0, "start_line": 162 }
module Vale.X64.BufferViewStore open FStar.Mul open Vale.Interop.Views open Vale.Interop module MB = LowStar.Monotonic.Buffer module HS = FStar.HyperStack open Vale.Lib.BufferViewHelpers open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Two open Vale.Def.Words.Four_s open Vale.D...
{ "checked_file": "/", "dependencies": [ "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Two_s.fsti.checked", "Vale.Def.Words.Two.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked",...
[ { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "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.Interop.Types.b8 { LowStar.BufferView.Down.length (Vale.Interop.Types.get_downview (Buffer?.bsrc b)) % 16 == 0 } -> heap: Vale.Arch.MachineHeap_s.machine_heap -> i: Prims.nat {i < LowStar.BufferView.Down.length (Vale.Interop.Types.get_downview (Buffer?.bsrc b))...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Interop.Types.b8", "Prims.eq2", "Prims.int", "Prims.op_Modulus", "LowStar.BufferView.Down.length", "FStar.UInt8.t", "Vale.Interop.Types.get_downview", "Vale.Interop.Types.__proj__Buffer__item__src", "Vale.Interop.Types.b8_preorder", "Vale.Interop.Types.__proj__Buffer__item__writeable", "Va...
[]
false
false
true
false
false
let bv_upd_update_heap128 b heap i v mem =
let dv = IB.get_downview b.IB.bsrc in DV.length_eq dv; let uv = UV.mk_buffer dv up_view128 in let addrs = IB.addrs_of_mem mem in let h = IB.hs_of_mem mem in UV.length_eq uv; let ptr = addrs b + 16 * i in let heap' = update_heap128 ptr v heap in let prefix, _, suffix = UV.split_at_i uv i h in let s_down = prefix `Seq.ap...
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.freeable
val freeable (#index : Type0) (c: block index) (i: index) (h: HS.mem) (s: state' c i) : Type0
val freeable (#index : Type0) (c: block index) (i: index) (h: HS.mem) (s: state' c i) : Type0
let freeable (#index : Type0) (c: block index) (i: index) (h: HS.mem) (s: state' c i) = freeable_s c i h (B.get h s 0) /\ B.freeable s
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 210, "start_col": 0, "start_line": 208 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block index -> i: index -> h: FStar.Monotonic.HyperStack.mem -> s: Hacl.Streaming.Functor.state' c i -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Interface.block", "FStar.Monotonic.HyperStack.mem", "Hacl.Streaming.Functor.state'", "Prims.l_and", "Hacl.Streaming.Functor.freeable_s", "LowStar.Monotonic.Buffer.get", "Hacl.Streaming.Functor.state_s", "Hacl.Streaming.Interface.__proj__Stateful__item__s", "Hacl.Streaming.Interface._...
[]
false
false
false
false
true
let freeable (#index: Type0) (c: block index) (i: index) (h: HS.mem) (s: state' c i) =
freeable_s c i h (B.get h s 0) /\ B.freeable s
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.invariant_loc_in_footprint
val invariant_loc_in_footprint (#index: Type0) (c: block index) (i: index) (s: state' c i) (m: HS.mem) : Lemma (requires (invariant c i m s)) (ensures (B.loc_in (footprint c i m s) m)) [SMTPat (invariant c i m s)]
val invariant_loc_in_footprint (#index: Type0) (c: block index) (i: index) (s: state' c i) (m: HS.mem) : Lemma (requires (invariant c i m s)) (ensures (B.loc_in (footprint c i m s) m)) [SMTPat (invariant c i m s)]
let invariant_loc_in_footprint #index c i s m = [@inline_let] let _ = c.state.invariant_loc_in_footprint #i in [@inline_let] let _ = c.key.invariant_loc_in_footprint #i in ()
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 218, "start_col": 0, "start_line": 213 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
c: Hacl.Streaming.Interface.block index -> i: index -> s: Hacl.Streaming.Functor.state' c i -> m: FStar.Monotonic.HyperStack.mem -> FStar.Pervasives.Lemma (requires Hacl.Streaming.Functor.invariant c i m s) (ensures LowStar.Monotonic.Buffer.loc_in (Hacl.Streaming.Functor.footprint c i m s) m) ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Streaming.Interface.block", "Hacl.Streaming.Functor.state'", "FStar.Monotonic.HyperStack.mem", "Hacl.Streaming.Interface.__proj__Stateful__item__s", "Hacl.Streaming.Interface.__proj__Block__item__key", "Prims.unit", "Hacl.Streaming.Interface.__proj__Stateful__item__invariant", "Prims.squash", ...
[]
true
false
true
false
false
let invariant_loc_in_footprint #index c i s m =
[@@ inline_let ]let _ = c.state.invariant_loc_in_footprint #i in [@@ inline_let ]let _ = c.key.invariant_loc_in_footprint #i in ()
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.total_len_h
val total_len_h : c: Hacl.Streaming.Interface.block index -> i: index -> h: FStar.Monotonic.HyperStack.mem -> p: Hacl.Streaming.Functor.state' c i -> Prims.GTot FStar.UInt64.t
let total_len_h #index (c: block index) (i: index) h (p: state' c i) = State?.total_len (B.deref h p)
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 32, "end_line": 788, "start_col": 0, "start_line": 787 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block index -> i: index -> h: FStar.Monotonic.HyperStack.mem -> p: Hacl.Streaming.Functor.state' c i -> Prims.GTot FStar.UInt64.t
Prims.GTot
[ "sometrivial" ]
[]
[ "Hacl.Streaming.Interface.block", "FStar.Monotonic.HyperStack.mem", "Hacl.Streaming.Functor.state'", "Hacl.Streaming.Functor.__proj__State__item__total_len", "Hacl.Streaming.Interface.__proj__Stateful__item__s", "Hacl.Streaming.Interface.__proj__Block__item__state", "Hacl.Streaming.Interface.optional_ke...
[]
false
false
false
false
false
let total_len_h #index (c: block index) (i: index) h (p: state' c i) =
State?.total_len (B.deref h p)
false
FStar.Pervasives.Native.fst
FStar.Pervasives.Native.fst
val fst (x: tuple2 'a 'b) : 'a
val fst (x: tuple2 'a 'b) : 'a
let fst (x: tuple2 'a 'b) : 'a = Mktuple2?._1 x
{ "file_name": "ulib/FStar.Pervasives.Native.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 47, "end_line": 62, "start_col": 0, "start_line": 62 }
(* 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" ], "interface_file": false, "source_file": "FStar.Pervasives.Native.fst" }
[ { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: ('a * 'b) -> 'a
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.__proj__Mktuple2__item___1" ]
[]
false
false
false
true
false
let fst (x: tuple2 'a 'b) : 'a =
Mktuple2?._1 x
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.split_at_last_all_seen
val split_at_last_all_seen : c: Hacl.Streaming.Interface.block index -> i: index -> h: FStar.Monotonic.HyperStack.mem -> p: Hacl.Streaming.Functor.state' c i -> Prims.GTot (Hacl.Streaming.Spec.bytes * Hacl.Streaming.Spec.bytes)
let split_at_last_all_seen #index (c: block index) (i: index) h (p: state' c i) = let all_seen = all_seen c i h p in let blocks, rest = split_at_last c i all_seen in blocks, rest
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 794, "start_col": 0, "start_line": 791 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block index -> i: index -> h: FStar.Monotonic.HyperStack.mem -> p: Hacl.Streaming.Functor.state' c i -> Prims.GTot (Hacl.Streaming.Spec.bytes * Hacl.Streaming.Spec.bytes)
Prims.GTot
[ "sometrivial" ]
[]
[ "Hacl.Streaming.Interface.block", "FStar.Monotonic.HyperStack.mem", "Hacl.Streaming.Functor.state'", "Hacl.Streaming.Spec.bytes", "FStar.Pervasives.Native.Mktuple2", "FStar.Pervasives.Native.tuple2", "Hacl.Streaming.Spec.split_at_last", "Hacl.Streaming.Functor.bytes", "Hacl.Streaming.Functor.all_see...
[]
false
false
false
false
false
let split_at_last_all_seen #index (c: block index) (i: index) h (p: state' c i) =
let all_seen = all_seen c i h p in let blocks, rest = split_at_last c i all_seen in blocks, rest
false
FStar.Pervasives.Native.fst
FStar.Pervasives.Native.snd
val snd (x: tuple2 'a 'b) : 'b
val snd (x: tuple2 'a 'b) : 'b
let snd (x: tuple2 'a 'b) : 'b = Mktuple2?._2 x
{ "file_name": "ulib/FStar.Pervasives.Native.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 47, "end_line": 63, "start_col": 0, "start_line": 63 }
(* 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" ], "interface_file": false, "source_file": "FStar.Pervasives.Native.fst" }
[ { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null } ]
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: ('a * 'b) -> 'b
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.__proj__Mktuple2__item___2" ]
[]
false
false
false
true
false
let snd (x: tuple2 'a 'b) : 'b =
Mktuple2?._2 x
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.index_of_state
val index_of_state: #index:Type0 -> c:block index -> i:G.erased index -> ( let i = G.reveal i in t:Type0 { t == c.state.s i } -> t':Type0 { t' == optional_key i c.km c.key } -> s:state c i t t' -> Stack index (fun h0 -> invariant c i h0 s) (fun h0 i' h1 -> h0 == h1 /\ i' == i))
val index_of_state: #index:Type0 -> c:block index -> i:G.erased index -> ( let i = G.reveal i in t:Type0 { t == c.state.s i } -> t':Type0 { t' == optional_key i c.km c.key } -> s:state c i t t' -> Stack index (fun h0 -> invariant c i h0 s) (fun h0 i' h1 -> h0 == h1 /\ i' == i))
let index_of_state #index c i t t' s = let open LowStar.BufferOps in let State block_state _ _ _ _ = !*s in c.index_of_state i block_state
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 32, "end_line": 257, "start_col": 0, "start_line": 254 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block index -> i: FStar.Ghost.erased index -> (let i = FStar.Ghost.reveal i in t: Type0{t == Stateful?.s (Block?.state c) i} -> t': Type0{t' == Hacl.Streaming.Interface.optional_key i (Block?.km c) (Block?.key c)} -> s: Hacl.Streaming.Functor.state c i t t' ...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Interface.block", "FStar.Ghost.erased", "Prims.eq2", "Hacl.Streaming.Interface.__proj__Stateful__item__s", "Hacl.Streaming.Interface.__proj__Block__item__state", "FStar.Ghost.reveal", "Hacl.Streaming.Interface.optional_key", "Hacl.Streaming.Interface.__proj__Block__item__km", "Hacl.S...
[]
false
false
false
false
false
let index_of_state #index c i t t' s =
let open LowStar.BufferOps in let State block_state _ _ _ _ = !*s in c.index_of_state i block_state
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.seen_length
val seen_length: #index:Type0 -> c:block index -> i:G.erased index -> ( let i = G.reveal i in t:Type0 { t == c.state.s i } -> t':Type0 { t' == optional_key i c.km c.key } -> s:state c i t t' -> Stack U64.t (fun h0 -> invariant c i h0 s) (fun h0 l h1 -> h0 == h1 /\ U64.v l == U32.v (c.init_input_len ...
val seen_length: #index:Type0 -> c:block index -> i:G.erased index -> ( let i = G.reveal i in t:Type0 { t == c.state.s i } -> t':Type0 { t' == optional_key i c.km c.key } -> s:state c i t t' -> Stack U64.t (fun h0 -> invariant c i h0 s) (fun h0 l h1 -> h0 == h1 /\ U64.v l == U32.v (c.init_input_len ...
let seen_length #index c i t t' s = let open LowStar.BufferOps in let State _ _ total_len _ _ = !*s in total_len
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 11, "end_line": 262, "start_col": 0, "start_line": 259 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block index -> i: FStar.Ghost.erased index -> (let i = FStar.Ghost.reveal i in t: Type0{t == Stateful?.s (Block?.state c) i} -> t': Type0{t' == Hacl.Streaming.Interface.optional_key i (Block?.km c) (Block?.key c)} -> s: Hacl.Streaming.Functor.state c i t t' ...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Interface.block", "FStar.Ghost.erased", "Prims.eq2", "Hacl.Streaming.Interface.__proj__Stateful__item__s", "Hacl.Streaming.Interface.__proj__Block__item__state", "FStar.Ghost.reveal", "Hacl.Streaming.Interface.optional_key", "Hacl.Streaming.Interface.__proj__Block__item__km", "Hacl.S...
[]
false
false
false
false
false
let seen_length #index c i t t' s =
let open LowStar.BufferOps in let State _ _ total_len _ _ = !*s in total_len
false
Vale.X64.BufferViewStore.fst
Vale.X64.BufferViewStore.bv_upd_update_heap64
val bv_upd_update_heap64: (b:IB.b8{DV.length (IB.get_downview b.IB.bsrc) % 8 == 0}) -> (heap:machine_heap) -> (i:nat{i < DV.length (IB.get_downview b.IB.bsrc) / 8}) -> (v:nat64) -> (mem:IB.interop_heap{MB.live (IB.hs_of_mem mem) b.IB.bsrc}) -> Lemma (requires IB.correct_down_p mem heap b) (ensure...
val bv_upd_update_heap64: (b:IB.b8{DV.length (IB.get_downview b.IB.bsrc) % 8 == 0}) -> (heap:machine_heap) -> (i:nat{i < DV.length (IB.get_downview b.IB.bsrc) / 8}) -> (v:nat64) -> (mem:IB.interop_heap{MB.live (IB.hs_of_mem mem) b.IB.bsrc}) -> Lemma (requires IB.correct_down_p mem heap b) (ensure...
let bv_upd_update_heap64 b heap i v mem = let dv = IB.get_downview b.IB.bsrc in DV.length_eq dv; let uv = UV.mk_buffer dv up_view64 in let addrs = IB.addrs_of_mem mem in let h = IB.hs_of_mem mem in UV.length_eq uv; let ptr = addrs b + 8 * i in let heap' = update_heap64 ptr v heap in let prefix, _, suf...
{ "file_name": "vale/code/arch/x64/Vale.X64.BufferViewStore.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 31, "end_line": 160, "start_col": 0, "start_line": 52 }
module Vale.X64.BufferViewStore open FStar.Mul open Vale.Interop.Views open Vale.Interop module MB = LowStar.Monotonic.Buffer module HS = FStar.HyperStack open Vale.Lib.BufferViewHelpers open Vale.Def.Types_s open Vale.Def.Words_s open Vale.Def.Words.Two_s open Vale.Def.Words.Two open Vale.Def.Words.Four_s open Vale.D...
{ "checked_file": "/", "dependencies": [ "Vale.Lib.BufferViewHelpers.fst.checked", "Vale.Interop.Views.fsti.checked", "Vale.Interop.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Words.Two_s.fsti.checked", "Vale.Def.Words.Two.fsti.checked", "Vale.Def.Words.Seq_s.fsti.checked",...
[ { "abbrev": false, "full_module": "FStar.Calc", "short_module": null }, { "abbrev": false, "full_module": "Vale.Arch.Types", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Seq", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "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.Interop.Types.b8 {LowStar.BufferView.Down.length (Vale.Interop.Types.get_downview (Buffer?.bsrc b)) % 8 == 0} -> heap: Vale.Arch.MachineHeap_s.machine_heap -> i: Prims.nat {i < LowStar.BufferView.Down.length (Vale.Interop.Types.get_downview (Buffer?.bsrc b)) / 8} -> ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Vale.Interop.Types.b8", "Prims.eq2", "Prims.int", "Prims.op_Modulus", "LowStar.BufferView.Down.length", "FStar.UInt8.t", "Vale.Interop.Types.get_downview", "Vale.Interop.Types.__proj__Buffer__item__src", "Vale.Interop.Types.b8_preorder", "Vale.Interop.Types.__proj__Buffer__item__writeable", "Va...
[]
false
false
true
false
false
let bv_upd_update_heap64 b heap i v mem =
let dv = IB.get_downview b.IB.bsrc in DV.length_eq dv; let uv = UV.mk_buffer dv up_view64 in let addrs = IB.addrs_of_mem mem in let h = IB.hs_of_mem mem in UV.length_eq uv; let ptr = addrs b + 8 * i in let heap' = update_heap64 ptr v heap in let prefix, _, suffix = UV.split_at_i uv i h in let s_down = prefix `Seq.appen...
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.frame_invariant
val frame_invariant: #index:Type0 -> c:block index -> i:index -> l:B.loc -> s:state' c i -> h0:HS.mem -> h1:HS.mem -> Lemma (requires ( invariant c i h0 s /\ B.loc_disjoint l (footprint c i h0 s) /\ B.modifies l h0 h1)) (ensures ( invariant c i h1 s /\ footprint c i h0 s == footprint c i h1 s /\...
val frame_invariant: #index:Type0 -> c:block index -> i:index -> l:B.loc -> s:state' c i -> h0:HS.mem -> h1:HS.mem -> Lemma (requires ( invariant c i h0 s /\ B.loc_disjoint l (footprint c i h0 s) /\ B.modifies l h0 h1)) (ensures ( invariant c i h1 s /\ footprint c i h0 s == footprint c i h1 s /\...
let frame_invariant #index c i l s h0 h1 = let state_t = B.deref h0 s in let State block_state _ _ _ p_key = state_t in c.state.frame_invariant #i l block_state h0 h1; stateful_frame_preserves_freeable #index #c.state #i l block_state h0 h1; allow_inversion key_management; match c.km with | Erased -> () ...
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 44, "end_line": 246, "start_col": 0, "start_line": 236 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block index -> i: index -> l: LowStar.Monotonic.Buffer.loc -> s: Hacl.Streaming.Functor.state' c i -> h0: FStar.Monotonic.HyperStack.mem -> h1: FStar.Monotonic.HyperStack.mem -> FStar.Pervasives.Lemma (requires Hacl.Streaming.Functor.invariant c i h0 ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Streaming.Interface.block", "LowStar.Monotonic.Buffer.loc", "Hacl.Streaming.Functor.state'", "FStar.Monotonic.HyperStack.mem", "Hacl.Streaming.Interface.__proj__Stateful__item__s", "Hacl.Streaming.Interface.__proj__Block__item__state", "LowStar.Buffer.buffer", "Lib.IntTypes.uint8", "Prims.b2t"...
[]
false
false
true
false
false
let frame_invariant #index c i l s h0 h1 =
let state_t = B.deref h0 s in let State block_state _ _ _ p_key = state_t in c.state.frame_invariant #i l block_state h0 h1; stateful_frame_preserves_freeable #index #c.state #i l block_state h0 h1; allow_inversion key_management; match c.km with | Erased -> () | Runtime -> stateful_frame_preserves_freeable #index #c...
false
Hacl.Spec.K256.Field52.Lemmas2.fst
Hacl.Spec.K256.Field52.Lemmas2.minus_x_mul_pow2_256_lemma
val minus_x_mul_pow2_256_lemma: m:scale64_5 -> f:felem5 -> Lemma (requires felem_fits5 f m) (ensures (let x, r = minus_x_mul_pow2_256 f in let (r0,r1,r2,r3,r4) = r in let (m0,m1,m2,m3,m4) = m in let (t0,t1,t2,t3,t4) = f in v x < pow2 16 /\ v x = v t4 / pow2 48 /\ v r4 = v t4 % pow2 48 /\ ...
val minus_x_mul_pow2_256_lemma: m:scale64_5 -> f:felem5 -> Lemma (requires felem_fits5 f m) (ensures (let x, r = minus_x_mul_pow2_256 f in let (r0,r1,r2,r3,r4) = r in let (m0,m1,m2,m3,m4) = m in let (t0,t1,t2,t3,t4) = f in v x < pow2 16 /\ v x = v t4 / pow2 48 /\ v r4 = v t4 % pow2 48 /\ ...
let minus_x_mul_pow2_256_lemma m f = let (m0,m1,m2,m3,m4) = m in let (t0,t1,t2,t3,t4) = f in let x = t4 >>. 48ul in let t4' = t4 &. mask48 in LD.lemma_mask48 t4; let r = (t0,t1,t2,t3,t4') in calc (==) { // as_nat5 f v t0 + v t1 * pow52 + v t2 * pow104 + v t3 * pow156 + v t4 * pow208; (==) { Math.L...
{ "file_name": "code/k256/Hacl.Spec.K256.Field52.Lemmas2.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 39, "end_line": 50, "start_col": 0, "start_line": 30 }
module Hacl.Spec.K256.Field52.Lemmas2 open FStar.Mul open Lib.IntTypes module S = Spec.K256 include Hacl.Spec.K256.Field52.Definitions include Hacl.Spec.K256.Field52 module ML = Hacl.Spec.K256.MathLemmas module LD = Hacl.Spec.K256.Field52.Definitions.Lemmas #set-options "--z3rlimit 100 --fuel 0 --ifuel 0" /// No...
{ "checked_file": "/", "dependencies": [ "Spec.K256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Spec.K256.MathLemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.Lemmas.fst.checked", "Hacl.Spec.K256.Field52.Definitions.fst.checked", "Hacl.Spec.K256.Field52....
[ { "abbrev": true, "full_module": "Hacl.Spec.K256.Field52.Definitions.Lemmas", "short_module": "LD" }, { "abbrev": true, "full_module": "Hacl.Spec.K256.MathLemmas", "short_module": "ML" }, { "abbrev": false, "full_module": "Hacl.Spec.K256.Field52", "short_module": null }...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
m: Hacl.Spec.K256.Field52.Definitions.scale64_5 -> f: Hacl.Spec.K256.Field52.Definitions.felem5 -> FStar.Pervasives.Lemma (requires Hacl.Spec.K256.Field52.Definitions.felem_fits5 f m) (ensures (let _ = Hacl.Spec.K256.Field52.minus_x_mul_pow2_256 f in (let FStar.Pervasives.Native.Mktuple2 #_ #_...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Spec.K256.Field52.Definitions.scale64_5", "Hacl.Spec.K256.Field52.Definitions.felem5", "Prims.nat", "Lib.IntTypes.uint64", "FStar.Math.Lemmas.lemma_div_lt", "Lib.IntTypes.v", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Prims.unit", "FStar.Calc.calc_finish", "Prims.int", "Prims.eq2", "Prim...
[]
false
false
true
false
false
let minus_x_mul_pow2_256_lemma m f =
let m0, m1, m2, m3, m4 = m in let t0, t1, t2, t3, t4 = f in let x = t4 >>. 48ul in let t4' = t4 &. mask48 in LD.lemma_mask48 t4; let r = (t0, t1, t2, t3, t4') in calc ( == ) { v t0 + v t1 * pow52 + v t2 * pow104 + v t3 * pow156 + v t4 * pow208; ( == ) { Math.Lemmas.euclidean_division_definition (v t4) (pow2 48) } ...
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.seen_h
val seen_h : c: Hacl.Streaming.Interface.block _ -> i: _ -> h: FStar.Monotonic.HyperStack.mem -> s: Hacl.Streaming.Functor.state' c i -> Prims.GTot Hacl.Streaming.Functor.bytes
let seen_h = seen
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 27, "end_line": 1192, "start_col": 10, "start_line": 1192 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block _ -> i: _ -> h: FStar.Monotonic.HyperStack.mem -> s: Hacl.Streaming.Functor.state' c i -> Prims.GTot Hacl.Streaming.Functor.bytes
Prims.GTot
[ "sometrivial" ]
[]
[ "Hacl.Streaming.Functor.seen", "Hacl.Streaming.Interface.block", "FStar.Monotonic.HyperStack.mem", "Hacl.Streaming.Functor.state'", "Hacl.Streaming.Functor.bytes" ]
[]
false
false
false
false
false
let seen_h =
seen
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.rest_finish
val rest_finish (#index: _) (c: block index) (i: index) (len: UInt32.t) : (x: UInt32.t { let l = U32.v (c.block_len i) in let n = fst (Lib.UpdateMulti.split_at_last_lazy_nb_rem l (U32.v len)) in 0 <= n * l /\ n * l <= U32.v len /\ U32.v x = U32.v len - (n * l) })
val rest_finish (#index: _) (c: block index) (i: index) (len: UInt32.t) : (x: UInt32.t { let l = U32.v (c.block_len i) in let n = fst (Lib.UpdateMulti.split_at_last_lazy_nb_rem l (U32.v len)) in 0 <= n * l /\ n * l <= U32.v len /\ U32.v x = U32.v len - (n * l) })
let rest_finish #index (c: block index) (i: index) (len: UInt32.t): (x:UInt32.t { let l = U32.v (c.block_len i) in let n = fst (Lib.UpdateMulti.split_at_last_lazy_nb_rem l (U32.v len)) in 0 <= n * l /\ n * l <= U32.v len /\ U32.v x = U32.v len - (n * l)}) = [@inline_let] let l = c.block_len i in [...
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 747, "start_col": 0, "start_line": 727 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block index -> i: index -> len: FStar.UInt32.t -> x: FStar.UInt32.t { let l = FStar.UInt32.v (Block?.block_len c i) in let n = FStar.Pervasives.Native.fst (Lib.UpdateMulti.split_at_last_lazy_nb_rem l (FStar.UInt32.v len)) in 0 <= ...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Interface.block", "FStar.UInt32.t", "Prims.op_AmpAmp", "FStar.UInt32.op_Equals_Hat", "FStar.UInt32.uint_to_t", "FStar.UInt32.op_Greater_Hat", "Hacl.Streaming.Interface.__proj__Block__item__block_len", "Prims.unit", "FStar.Math.Lemmas.nat_times_nat_is_nat", "Prims.nat", "FStar.Per...
[]
false
false
false
false
false
let rest_finish #index (c: block index) (i: index) (len: UInt32.t) : (x: UInt32.t { let l = U32.v (c.block_len i) in let n = fst (Lib.UpdateMulti.split_at_last_lazy_nb_rem l (U32.v len)) in 0 <= n * l /\ n * l <= U32.v len /\ U32.v x = U32.v len - (n * l) }) =
[@@ inline_let ]let l = c.block_len i in [@@ inline_let ]let r = len `U32.rem` l in split_at_last_num_blocks_lem c i (U32.v len); if U32.(r =^ uint_to_t 0) && U32.(len >^ uint_to_t 0) then ((let l = U32.v (c.block_len i) in let n = fst (Lib.UpdateMulti.split_at_last_lazy_nb_rem l (U32.v len)) in Math.Lemm...
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.all_seen_h
val all_seen_h : c: Hacl.Streaming.Interface.block _ -> i: _ -> h: FStar.Monotonic.HyperStack.mem -> s: Hacl.Streaming.Functor.state' c i -> Prims.GTot Hacl.Streaming.Functor.bytes
let all_seen_h = all_seen
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 35, "end_line": 1193, "start_col": 10, "start_line": 1193 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block _ -> i: _ -> h: FStar.Monotonic.HyperStack.mem -> s: Hacl.Streaming.Functor.state' c i -> Prims.GTot Hacl.Streaming.Functor.bytes
Prims.GTot
[ "sometrivial" ]
[]
[ "Hacl.Streaming.Functor.all_seen", "Hacl.Streaming.Interface.block", "FStar.Monotonic.HyperStack.mem", "Hacl.Streaming.Functor.state'", "Hacl.Streaming.Functor.bytes" ]
[]
false
false
false
false
false
let all_seen_h =
all_seen
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.add_len
val add_len (#index: _) (c: block index) (i: index) (total_len: UInt64.t) (len: UInt32.t) : Pure UInt64.t (requires U64.v total_len + U32.v len <= U64.v (c.max_input_len i)) (ensures fun x -> U64.v x = U64.v total_len + U32.v len /\ U64.v x <= U64.v (c.max_input_len i))
val add_len (#index: _) (c: block index) (i: index) (total_len: UInt64.t) (len: UInt32.t) : Pure UInt64.t (requires U64.v total_len + U32.v len <= U64.v (c.max_input_len i)) (ensures fun x -> U64.v x = U64.v total_len + U32.v len /\ U64.v x <= U64.v (c.max_input_len i))
let add_len #index (c: block index) (i: index) (total_len: UInt64.t) (len: UInt32.t): Pure UInt64.t (requires U64.v total_len + U32.v len <= U64.v (c.max_input_len i)) (ensures fun x -> U64.v x = U64.v total_len + U32.v len /\ U64.v x <= U64.v (c.max_input_len i)) = total_len `U64.add` Int.Cast.uint32_to_ui...
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 51, "end_line": 758, "start_col": 0, "start_line": 753 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block index -> i: index -> total_len: FStar.UInt64.t -> len: FStar.UInt32.t -> Prims.Pure FStar.UInt64.t
Prims.Pure
[]
[]
[ "Hacl.Streaming.Interface.block", "FStar.UInt64.t", "FStar.UInt32.t", "FStar.UInt64.add", "FStar.Int.Cast.uint32_to_uint64", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "FStar.UInt64.v", "FStar.UInt32.v", "Hacl.Streaming.Interface.__proj__Block__item__max_input_len", "Prims.l...
[]
false
false
false
false
false
let add_len #index (c: block index) (i: index) (total_len: UInt64.t) (len: UInt32.t) : Pure UInt64.t (requires U64.v total_len + U32.v len <= U64.v (c.max_input_len i)) (ensures fun x -> U64.v x = U64.v total_len + U32.v len /\ U64.v x <= U64.v (c.max_input_len i)) =
total_len `U64.add` (Int.Cast.uint32_to_uint64 len)
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.nblocks
val nblocks (#index: _) (c: block index) (i: index) (len: UInt32.t) : (x: UInt32.t { let l = U32.v (c.blocks_state_len i) in U32.v x * l <= U32.v len /\ U32.v x = split_at_last_num_blocks c i (U32.v len) })
val nblocks (#index: _) (c: block index) (i: index) (len: UInt32.t) : (x: UInt32.t { let l = U32.v (c.blocks_state_len i) in U32.v x * l <= U32.v len /\ U32.v x = split_at_last_num_blocks c i (U32.v len) })
let nblocks #index (c: block index) (i: index) (len: UInt32.t): (x:UInt32.t { let l = U32.v (c.blocks_state_len i) in U32.v x * l <= U32.v len /\ U32.v x = split_at_last_num_blocks c i (U32.v len) }) = let open FStar.Int.Cast in [@inline_let] let l = c.blocks_state_len i in [@inline_let] let r = res...
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 3, "end_line": 720, "start_col": 0, "start_line": 697 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block index -> i: index -> len: FStar.UInt32.t -> x: FStar.UInt32.t { let l = FStar.UInt32.v (Block?.blocks_state_len c i) in FStar.UInt32.v x * l <= FStar.UInt32.v len /\ FStar.UInt32.v x = Hacl.Streaming.Spec.split_at_last_num_blocks c i (FStar.UInt32.v len) }
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Interface.block", "FStar.UInt32.t", "Prims.unit", "Hacl.Streaming.Spec.split_at_last_num_blocks_spec", "FStar.Ghost.reveal", "Prims.nat", "Prims._assert", "Prims.b2t", "Prims.op_Equality", "Prims.int", "FStar.Mul.op_Star", "FStar.Ghost.erased", "FStar.Ghost.hide", "FStar.UI...
[]
false
false
false
false
false
let nblocks #index (c: block index) (i: index) (len: UInt32.t) : (x: UInt32.t { let l = U32.v (c.blocks_state_len i) in U32.v x * l <= U32.v len /\ U32.v x = split_at_last_num_blocks c i (U32.v len) }) =
let open FStar.Int.Cast in [@@ inline_let ]let l = c.blocks_state_len i in [@@ inline_let ]let r = rest c i (uint32_to_uint64 len) in let len_v:Ghost.erased nat = U32.v len in let l_v:Ghost.erased nat = U32.v l in let r_v:Ghost.erased nat = U32.v r in let n_s:Ghost.erased nat = split_at_last_num_blocks c i len_v in ass...
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.rest
val rest (#index: _) (c: block index) (i: index) (total_len: UInt64.t) : (x: UInt32.t { let n = split_at_last_num_blocks c i (U64.v total_len) in let l = U32.v (c.blocks_state_len i) in 0 <= n * l /\ n * l <= U64.v total_len /\ U32.v x = U64.v total_len - (n * l) })
val rest (#index: _) (c: block index) (i: index) (total_len: UInt64.t) : (x: UInt32.t { let n = split_at_last_num_blocks c i (U64.v total_len) in let l = U32.v (c.blocks_state_len i) in 0 <= n * l /\ n * l <= U64.v total_len /\ U32.v x = U64.v total_len - (n * l) })
let rest #index (c: block index) (i: index) (total_len: UInt64.t): (x:UInt32.t { let n = split_at_last_num_blocks c i (U64.v total_len) in let l = U32.v (c.blocks_state_len i) in 0 <= n * l /\ n * l <= U64.v total_len /\ U32.v x = U64.v total_len - (n * l)}) = let open FStar.Int.Cast in [@inline_l...
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 7, "end_line": 688, "start_col": 0, "start_line": 645 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block index -> i: index -> total_len: FStar.UInt64.t -> x: FStar.UInt32.t { let n = Hacl.Streaming.Spec.split_at_last_num_blocks c i (FStar.UInt64.v total_len) in let l = FStar.UInt32.v (Block?.blocks_state_len c i) in 0 <= n * l /\ n * l <= FStar.UInt64.v total_l...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Interface.block", "FStar.UInt64.t", "Prims.op_AmpAmp", "FStar.UInt64.op_Equals_Hat", "FStar.UInt64.uint_to_t", "FStar.UInt64.op_Greater_Hat", "Hacl.Streaming.Interface.__proj__Block__item__blocks_state_len", "Prims.unit", "Hacl.Streaming.Functor.split_at_last_num_blocks_lem", "FSta...
[]
false
false
false
false
false
let rest #index (c: block index) (i: index) (total_len: UInt64.t) : (x: UInt32.t { let n = split_at_last_num_blocks c i (U64.v total_len) in let l = U32.v (c.blocks_state_len i) in 0 <= n * l /\ n * l <= U64.v total_len /\ U32.v x = U64.v total_len - (n * l) }) =
let open FStar.Int.Cast in [@@ inline_let ]let l = uint32_to_uint64 (c.blocks_state_len i) in [@@ inline_let ]let r = total_len `U64.rem` l in let total_len_v:Ghost.erased nat = U64.v total_len in let l_v:Ghost.erased nat = U64.v l in let r_v:Ghost.erased nat = U64.v r in assert (Ghost.reveal r_v = total_len_v - ((tota...
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.state_is_updated
val state_is_updated : #index:Type0 -> (c: block index) -> i:G.erased index -> ( let i = G.reveal i in t:Type0 { t == c.state.s i } -> t':Type0 { t' == optional_key i c.km c.key } -> s:state c i t t' -> data: B.buffer uint8 -> len: UInt32.t -> h0: HS.mem -> h1: HS.mem -> Type0)
val state_is_updated : #index:Type0 -> (c: block index) -> i:G.erased index -> ( let i = G.reveal i in t:Type0 { t == c.state.s i } -> t':Type0 { t' == optional_key i c.km c.key } -> s:state c i t t' -> data: B.buffer uint8 -> len: UInt32.t -> h0: HS.mem -> h1: HS.mem -> Type0)
let state_is_updated #index c i t t' p data len h0 h1 = // Functional conditions about the memory updates let s0 = B.get h0 p 0 in let s1 = B.get h1 p 0 in let State block_state0 buf0 total_len0 seen0 key0 = s0 in let State block_state1 buf1 total_len1 seen1 key1 = s1 in block_state1 == block_state0 /\ b...
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 98, "end_line": 999, "start_col": 0, "start_line": 985 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block index -> i: FStar.Ghost.erased index -> (let i = FStar.Ghost.reveal i in t: Type0{t == Stateful?.s (Block?.state c) i} -> t': Type0{t' == Hacl.Streaming.Interface.optional_key i (Block?.km c) (Block?.key c)} -> s: Hacl.Streaming.Functor.state c i t t' -...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Interface.block", "FStar.Ghost.erased", "Prims.eq2", "Hacl.Streaming.Interface.__proj__Stateful__item__s", "Hacl.Streaming.Interface.__proj__Block__item__state", "FStar.Ghost.reveal", "Hacl.Streaming.Interface.optional_key", "Hacl.Streaming.Interface.__proj__Block__item__km", "Hacl.S...
[]
false
false
false
false
false
let state_is_updated #index c i t t' p data len h0 h1 =
let s0 = B.get h0 p 0 in let s1 = B.get h1 p 0 in let State block_state0 buf0 total_len0 seen0 key0 = s0 in let State block_state1 buf1 total_len1 seen1 key1 = s1 in block_state1 == block_state0 /\ buf1 == buf0 /\ U64.v total_len1 == U64.v total_len0 + U32.v len /\ key1 == key0 /\ seen1 `S.equal` (seen0 `S.append` (B.a...
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.add_len_small
val add_len_small (#index: _) (c: block index) (i: index) (total_len: UInt64.t) (len: UInt32.t) : Lemma (requires U32.v len <= U32.v (c.blocks_state_len i) - U32.v (rest c i total_len) /\ U64.v total_len + U32.v len <= U64.v (c.max_input_len i)) (ensures (rest c i (add_len c i total_len ...
val add_len_small (#index: _) (c: block index) (i: index) (total_len: UInt64.t) (len: UInt32.t) : Lemma (requires U32.v len <= U32.v (c.blocks_state_len i) - U32.v (rest c i total_len) /\ U64.v total_len + U32.v len <= U64.v (c.max_input_len i)) (ensures (rest c i (add_len c i total_len ...
let add_len_small #index (c: block index) (i: index) (total_len: UInt64.t) (len: UInt32.t): Lemma (requires U32.v len <= U32.v (c.blocks_state_len i) - U32.v (rest c i total_len) /\ U64.v total_len + U32.v len <= U64.v (c.max_input_len i)) (ensures (rest c i (add_len c i total_len len) = rest c i total_len ...
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 42, "end_line": 779, "start_col": 0, "start_line": 762 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block index -> i: index -> total_len: FStar.UInt64.t -> len: FStar.UInt32.t -> FStar.Pervasives.Lemma (requires FStar.UInt32.v len <= FStar.UInt32.v (Block?.blocks_state_len c i) - FStar.UInt32.v (Hacl.Streaming.Functor.rest c i total_len) /\ ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Streaming.Interface.block", "FStar.UInt64.t", "FStar.UInt32.t", "Hacl.Streaming.Spec.split_at_last_num_blocks_spec", "Prims.unit", "Prims._assert", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.op_Addition", "FStar.Mul.op_Star", "FStar.Math.Lemmas.euclidean_division_definition", ...
[]
true
false
true
false
false
let add_len_small #index (c: block index) (i: index) (total_len: UInt64.t) (len: UInt32.t) : Lemma (requires U32.v len <= U32.v (c.blocks_state_len i) - U32.v (rest c i total_len) /\ U64.v total_len + U32.v len <= U64.v (c.max_input_len i)) (ensures (rest c i (add_len c i total_len len) ...
let total_len_v = U64.v total_len in let l = U32.v (c.blocks_state_len i) in let b = total_len_v + U32.v len in let n = split_at_last_num_blocks c i total_len_v in let r = U32.v (rest c i total_len) in assert (total_len_v = n * l + r); let r' = U32.v (rest c i total_len) + U32.v len in assert (r' <= l); assert (r' = 0 ...
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.split_at_last_rest_eq
val split_at_last_rest_eq (#index: Type0) (c: block index) (i: index) (t: Type0{t == c.state.s i}) (t': Type0{t' == optional_key i c.km c.key}) (s: state c i t t') (h0: HS.mem) : Lemma (requires (invariant c i h0 s)) (ensures (let s = B.get h0 s 0 in ...
val split_at_last_rest_eq (#index: Type0) (c: block index) (i: index) (t: Type0{t == c.state.s i}) (t': Type0{t' == optional_key i c.km c.key}) (s: state c i t t') (h0: HS.mem) : Lemma (requires (invariant c i h0 s)) (ensures (let s = B.get h0 s 0 in ...
let split_at_last_rest_eq (#index : Type0) (c: block index) (i: index) (t:Type0 { t == c.state.s i }) (t':Type0 { t' == optional_key i c.km c.key }) (s: state c i t t') (h0: HS.mem) : Lemma (requires ( invari...
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 4, "end_line": 841, "start_col": 0, "start_line": 819 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block index -> i: index -> t: Type0{t == Stateful?.s (Block?.state c) i} -> t': Type0{t' == Hacl.Streaming.Interface.optional_key i (Block?.km c) (Block?.key c)} -> s: Hacl.Streaming.Functor.state c i t t' -> h0: FStar.Monotonic.HyperStack.mem -> FStar.Pervasives.L...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Hacl.Streaming.Interface.block", "Prims.eq2", "Hacl.Streaming.Interface.__proj__Stateful__item__s", "Hacl.Streaming.Interface.__proj__Block__item__state", "Hacl.Streaming.Interface.optional_key", "Hacl.Streaming.Interface.__proj__Block__item__km", "Hacl.Streaming.Interface.__proj__Block__item__key", ...
[]
false
false
true
false
false
let split_at_last_rest_eq (#index: Type0) (c: block index) (i: index) (t: Type0{t == c.state.s i}) (t': Type0{t' == optional_key i c.km c.key}) (s: state c i t t') (h0: HS.mem) : Lemma (requires (invariant c i h0 s)) (ensures (let s = B.get h0 s 0 in ...
let s = B.get h0 s 0 in let State block_state buf total_len seen_ k' = s in let key_v = optional_reveal #index #i #c.km #c.key h0 k' in let all_seen = S.append (c.init_input_s i key_v) seen_ in let _, r = split_at_last c i all_seen in let sz = rest c i total_len in ()
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.invariant_s_funct
val invariant_s_funct : #index:Type0 -> (c: block index) -> i:G.erased index -> ( let i = G.reveal i in t:Type0 { t == c.state.s i } -> t':Type0 { t' == optional_key i c.km c.key } -> s:state c i t t' -> data: B.buffer uint8 -> len: UInt32.t -> h0: HS.mem -> h1: HS.mem -> Pure Type0 (requires ...
val invariant_s_funct : #index:Type0 -> (c: block index) -> i:G.erased index -> ( let i = G.reveal i in t:Type0 { t == c.state.s i } -> t':Type0 { t' == optional_key i c.km c.key } -> s:state c i t t' -> data: B.buffer uint8 -> len: UInt32.t -> h0: HS.mem -> h1: HS.mem -> Pure Type0 (requires ...
let invariant_s_funct #index c i t t' p data len h0 h1 = let blocks, rest = split_at_last_all_seen c i h1 p in let s = B.get h1 p 0 in let State block_state buf_ total_len seen key = s in let key_v = optional_reveal #index #i #c.km #c.key h0 key in let init_s = c.init_s i key_v in (**) Math.Lemmas.modulo_le...
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 63, "end_line": 1029, "start_col": 0, "start_line": 1021 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block index -> i: FStar.Ghost.erased index -> (let i = FStar.Ghost.reveal i in t: Type0{t == Stateful?.s (Block?.state c) i} -> t': Type0{t' == Hacl.Streaming.Interface.optional_key i (Block?.km c) (Block?.key c)} -> s: Hacl.Streaming.Functor.state c i t t' -...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Interface.block", "FStar.Ghost.erased", "Prims.eq2", "Hacl.Streaming.Interface.__proj__Stateful__item__s", "Hacl.Streaming.Interface.__proj__Block__item__state", "FStar.Ghost.reveal", "Hacl.Streaming.Interface.optional_key", "Hacl.Streaming.Interface.__proj__Block__item__km", "Hacl.S...
[]
false
false
false
false
false
let invariant_s_funct #index c i t t' p data len h0 h1 =
let blocks, rest = split_at_last_all_seen c i h1 p in let s = B.get h1 p 0 in let State block_state buf_ total_len seen key = s in let key_v = optional_reveal #index #i #c.km #c.key h0 key in let init_s = c.init_s i key_v in Math.Lemmas.modulo_lemma 0 (U32.v (c.block_len i)); c.state.v i h1 block_state == c.update_mult...
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.modifies_footprint
val modifies_footprint: #index:Type0 -> (c: block index) -> i:G.erased index -> ( let i = G.reveal i in s:state' c i -> data: B.buffer uint8 -> len: UInt32.t -> h0: HS.mem -> h1: HS.mem -> Lemma (requires ( let State _ buf_ _ _ _ = B.deref h0 s in ( update_pre c i s data len h0 /\ ...
val modifies_footprint: #index:Type0 -> (c: block index) -> i:G.erased index -> ( let i = G.reveal i in s:state' c i -> data: B.buffer uint8 -> len: UInt32.t -> h0: HS.mem -> h1: HS.mem -> Lemma (requires ( let State _ buf_ _ _ _ = B.deref h0 s in ( update_pre c i s data len h0 /\ ...
let modifies_footprint c i p data len h0 h1 = let _ = c.state.frame_freeable #i in let _ = c.key.frame_freeable #i in let s0 = B.deref h0 p in let s1 = B.deref h0 p in let State bs0 buf0 _ _ k0 = s0 in let State bs1 buf0 _ _ k1 = s1 in c.state.frame_invariant (B.loc_buffer buf0) bs0 h0 h1; if c.km = Run...
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 57, "end_line": 902, "start_col": 0, "start_line": 893 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block index -> i: FStar.Ghost.erased index -> (let i = FStar.Ghost.reveal i in s: Hacl.Streaming.Functor.state' c i -> data: LowStar.Buffer.buffer Hacl.Streaming.Spec.uint8 -> len: FStar.UInt32.t -> h0: FStar.Monotonic.HyperStack.mem -> h1...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Interface.block", "FStar.Ghost.erased", "Hacl.Streaming.Functor.state'", "FStar.Ghost.reveal", "LowStar.Buffer.buffer", "Hacl.Streaming.Spec.uint8", "FStar.UInt32.t", "FStar.Monotonic.HyperStack.mem", "Hacl.Streaming.Interface.__proj__Stateful__item__s", "Hacl.Streaming.Interface._...
[]
false
false
false
false
false
let modifies_footprint c i p data len h0 h1 =
let _ = c.state.frame_freeable #i in let _ = c.key.frame_freeable #i in let s0 = B.deref h0 p in let s1 = B.deref h0 p in let State bs0 buf0 _ _ k0 = s0 in let State bs1 buf0 _ _ k1 = s1 in c.state.frame_invariant (B.loc_buffer buf0) bs0 h0 h1; if c.km = Runtime then c.key.frame_invariant #i (B.loc_buffer buf0) k0 h0 h...
false
Hacl.Impl.P256.Scalar.fst
Hacl.Impl.P256.Scalar.bn_is_lt_order_and_gt_zero_mask4
val bn_is_lt_order_and_gt_zero_mask4: f:felem -> Stack uint64 (requires fun h -> live h f) (ensures fun h0 r h1 -> modifies0 h0 h1 /\ (if 0 < as_nat h0 f && as_nat h0 f < S.order then v r = ones_v U64 else v r = 0))
val bn_is_lt_order_and_gt_zero_mask4: f:felem -> Stack uint64 (requires fun h -> live h f) (ensures fun h0 r h1 -> modifies0 h0 h1 /\ (if 0 < as_nat h0 f && as_nat h0 f < S.order then v r = ones_v U64 else v r = 0))
let bn_is_lt_order_and_gt_zero_mask4 f = let h0 = ST.get () in let is_lt_order = bn_is_lt_order_mask4 f in assert (v is_lt_order = (if as_nat h0 f < S.order then ones_v U64 else 0)); let is_eq_zero = bn_is_zero_mask4 f in assert (v is_eq_zero = (if as_nat h0 f = 0 then ones_v U64 else 0)); lognot_lemma is_e...
{ "file_name": "code/ecdsap256/Hacl.Impl.P256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 65, "start_col": 0, "start_line": 53 }
module Hacl.Impl.P256.Scalar open FStar.Mul open FStar.HyperStack.All open FStar.HyperStack module ST = FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Hacl.Impl.P256.Bignum open Hacl.Impl.P256.Constants module S = Spec.P256 module SM = Hacl.Spec.P256.Montgomery module BD = Hacl.Spec.Bignum.Definitions ...
{ "checked_file": "/", "dependencies": [ "Spec.P256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.P256.Montgomery.fsti.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Impl.P256.Constant...
[ { "abbrev": true, "full_module": "Hacl.Bignum.Montgomery", "short_module": "BM" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "BD" }, { "abbrev": false, "full_module": "Hacl.Impl.P256.Constants", "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
f: Hacl.Impl.P256.Bignum.felem -> FStar.HyperStack.ST.Stack Lib.IntTypes.uint64
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.P256.Bignum.felem", "Prims.unit", "Prims._assert", "Prims.eq2", "Prims.int", "Lib.IntTypes.v", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "Prims.op_AmpAmp", "Prims.op_LessThan", "Hacl.Impl.P256.Bignum.as_nat", "Spec.P256.PointOps.order", "Lib.IntTypes.ones_v", "Prims.bool", "Lib....
[]
false
true
false
false
false
let bn_is_lt_order_and_gt_zero_mask4 f =
let h0 = ST.get () in let is_lt_order = bn_is_lt_order_mask4 f in assert (v is_lt_order = (if as_nat h0 f < S.order then ones_v U64 else 0)); let is_eq_zero = bn_is_zero_mask4 f in assert (v is_eq_zero = (if as_nat h0 f = 0 then ones_v U64 else 0)); lognot_lemma is_eq_zero; assert (v (lognot is_eq_zero) = (if 0 < as_na...
false
Hacl.Impl.P256.Scalar.fst
Hacl.Impl.P256.Scalar.make_qone
val make_qone: f:felem -> Stack unit (requires fun h -> live h f) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ as_nat h1 f < S.order /\ qmont_as_nat h1 f == 1)
val make_qone: f:felem -> Stack unit (requires fun h -> live h f) (ensures fun h0 _ h1 -> modifies (loc f) h0 h1 /\ as_nat h1 f < S.order /\ qmont_as_nat h1 f == 1)
let make_qone f = [@inline_let] let f0 = u64 0xc46353d039cdaaf in [@inline_let] let f1 = u64 0x4319055258e8617b in [@inline_let] let f2 = u64 0x0 in [@inline_let] let f3 = u64 0xffffffff in assert_norm (v f0 + v f1 * pow2 64 + v f2 * pow2 128 + v f3 * pow2 192 < S.order); assert_norm (v f0 + v f1 * pow2 64 ...
{ "file_name": "code/ecdsap256/Hacl.Impl.P256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 35, "start_col": 0, "start_line": 27 }
module Hacl.Impl.P256.Scalar open FStar.Mul open FStar.HyperStack.All open FStar.HyperStack module ST = FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Hacl.Impl.P256.Bignum open Hacl.Impl.P256.Constants module S = Spec.P256 module SM = Hacl.Spec.P256.Montgomery module BD = Hacl.Spec.Bignum.Definitions ...
{ "checked_file": "/", "dependencies": [ "Spec.P256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.P256.Montgomery.fsti.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Impl.P256.Constant...
[ { "abbrev": true, "full_module": "Hacl.Bignum.Montgomery", "short_module": "BM" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "BD" }, { "abbrev": false, "full_module": "Hacl.Impl.P256.Constants", "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
f: Hacl.Impl.P256.Bignum.felem -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.P256.Bignum.felem", "Hacl.Impl.P256.Bignum.bn_make_u64_4", "Prims.unit", "Hacl.Spec.P256.Montgomery.lemma_to_from_qmont_id", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "Prims.op_Addition", "Lib.IntTypes.v", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "FStar.Mul.op_Star", ...
[]
false
true
false
false
false
let make_qone f =
[@@ inline_let ]let f0 = u64 0xc46353d039cdaaf in [@@ inline_let ]let f1 = u64 0x4319055258e8617b in [@@ inline_let ]let f2 = u64 0x0 in [@@ inline_let ]let f3 = u64 0xffffffff in assert_norm (v f0 + v f1 * pow2 64 + v f2 * pow2 128 + v f3 * pow2 192 < S.order); assert_norm (v f0 + v f1 * pow2 64 + v f2 * pow2 128 + v ...
false
Hacl.Impl.P256.Scalar.fst
Hacl.Impl.P256.Scalar.qmod_short_lemma
val qmod_short_lemma: a:nat{a < pow2 256} -> Lemma (let r = if a >= S.order then a - S.order else a in r = a % S.order)
val qmod_short_lemma: a:nat{a < pow2 256} -> Lemma (let r = if a >= S.order then a - S.order else a in r = a % S.order)
let qmod_short_lemma a = let r = if a >= S.order then a - S.order else a in if a >= S.order then begin Math.Lemmas.lemma_mod_sub a S.order 1; assert_norm (pow2 256 - S.order < S.order); Math.Lemmas.small_mod r S.order end else Math.Lemmas.small_mod r S.order
{ "file_name": "code/ecdsap256/Hacl.Impl.P256.Scalar.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 34, "end_line": 95, "start_col": 0, "start_line": 88 }
module Hacl.Impl.P256.Scalar open FStar.Mul open FStar.HyperStack.All open FStar.HyperStack module ST = FStar.HyperStack.ST open Lib.IntTypes open Lib.Buffer open Hacl.Impl.P256.Bignum open Hacl.Impl.P256.Constants module S = Spec.P256 module SM = Hacl.Spec.P256.Montgomery module BD = Hacl.Spec.Bignum.Definitions ...
{ "checked_file": "/", "dependencies": [ "Spec.P256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.P256.Montgomery.fsti.checked", "Hacl.Spec.Bignum.Definitions.fst.checked", "Hacl.Impl.P256.Constant...
[ { "abbrev": true, "full_module": "Hacl.Bignum.Montgomery", "short_module": "BM" }, { "abbrev": true, "full_module": "Hacl.Spec.Bignum.Definitions", "short_module": "BD" }, { "abbrev": true, "full_module": "Hacl.Spec.P256.Montgomery", "short_module": "SM" }, { "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
a: Prims.nat{a < Prims.pow2 256} -> FStar.Pervasives.Lemma (ensures (let r = (match a >= Spec.P256.PointOps.order with | true -> a - Spec.P256.PointOps.order | _ -> a) <: Prims.int in r = a % Spec.P256.PointOps.order))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.pow2", "Prims.op_GreaterThanOrEqual", "Spec.P256.PointOps.order", "FStar.Math.Lemmas.small_mod", "Prims.unit", "FStar.Pervasives.assert_norm", "Prims.op_Subtraction", "FStar.Math.Lemmas.lemma_mod_sub", "Prims.bool" ]
[]
false
false
true
false
false
let qmod_short_lemma a =
let r = if a >= S.order then a - S.order else a in if a >= S.order then (Math.Lemmas.lemma_mod_sub a S.order 1; assert_norm (pow2 256 - S.order < S.order); Math.Lemmas.small_mod r S.order) else Math.Lemmas.small_mod r S.order
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.free
val free: #index:Type0 -> c:block index -> i:G.erased index -> ( let i = G.reveal i in t:Type0 { t == c.state.s i } -> t':Type0 { t' == optional_key i c.km c.key } -> free_st #index c i t t')
val free: #index:Type0 -> c:block index -> i:G.erased index -> ( let i = G.reveal i in t:Type0 { t == c.state.s i } -> t':Type0 { t' == optional_key i c.km c.key } -> free_st #index c i t t')
let free #index c i t t' state = let _ = allow_inversion key_management in let open LowStar.BufferOps in let State block_state buf _ _ k' = !*state in let h0 = ST.get () in begin match c.km with | Runtime -> c.key.free i k' | Erased -> () end; let h1 = ST.get () in c.state.frame_freeable #i (optiona...
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 14, "end_line": 1817, "start_col": 0, "start_line": 1803 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block index -> i: FStar.Ghost.erased index -> (let i = FStar.Ghost.reveal i in t: Type0{t == Stateful?.s (Block?.state c) i} -> t': Type0{t' == Hacl.Streaming.Interface.optional_key i (Block?.km c) (Block?.key c)} -> Hacl.Streaming.Functor.free_st c i t t')
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Interface.block", "FStar.Ghost.erased", "Prims.eq2", "Hacl.Streaming.Interface.__proj__Stateful__item__s", "Hacl.Streaming.Interface.__proj__Block__item__state", "FStar.Ghost.reveal", "Hacl.Streaming.Interface.optional_key", "Hacl.Streaming.Interface.__proj__Block__item__km", "Hacl.S...
[]
false
false
false
false
false
let free #index c i t t' state =
let _ = allow_inversion key_management in let open LowStar.BufferOps in let State block_state buf _ _ k' = !*state in let h0 = ST.get () in (match c.km with | Runtime -> c.key.free i k' | Erased -> ()); let h1 = ST.get () in c.state.frame_freeable #i (optional_footprint #index #i #c.km #c.key h0 k') block_state h0 ...
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.update
val update: #index:Type0 -> c:block index -> i:G.erased index -> ( let i = G.reveal i in t:Type0 { t == c.state.s i } -> t':Type0 { t' == optional_key i c.km c.key } -> update_st #index c i t t')
val update: #index:Type0 -> c:block index -> i:G.erased index -> ( let i = G.reveal i in t:Type0 { t == c.state.s i } -> t':Type0 { t' == optional_key i c.km c.key } -> update_st #index c i t t')
let update #index c i t t' state chunk chunk_len = let open LowStar.BufferOps in let s = !*state in let State block_state buf_ total_len seen k' = s in let i = c.index_of_state i block_state in if FStar.UInt64.(FStar.Int.Cast.uint32_to_uint64 chunk_len >^ c.max_input_len i -^ total_len) then Hacl.Streami...
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 32, "end_line": 1529, "start_col": 0, "start_line": 1493 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block index -> i: FStar.Ghost.erased index -> (let i = FStar.Ghost.reveal i in t: Type0{t == Stateful?.s (Block?.state c) i} -> t': Type0{t' == Hacl.Streaming.Interface.optional_key i (Block?.km c) (Block?.key c)} -> Hacl.Streaming.Functor.update_st c i t t')
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Interface.block", "FStar.Ghost.erased", "Prims.eq2", "Hacl.Streaming.Interface.__proj__Stateful__item__s", "Hacl.Streaming.Interface.__proj__Block__item__state", "FStar.Ghost.reveal", "Hacl.Streaming.Interface.optional_key", "Hacl.Streaming.Interface.__proj__Block__item__km", "Hacl.S...
[]
false
false
false
false
false
let update #index c i t t' state chunk chunk_len =
let open LowStar.BufferOps in let s = !*state in let State block_state buf_ total_len seen k' = s in let i = c.index_of_state i block_state in if let open FStar.UInt64 in FStar.Int.Cast.uint32_to_uint64 chunk_len >^ c.max_input_len i -^ total_len then Hacl.Streaming.Types.MaximumLengthExceeded else let sz = rest ...
false
LowParse.Low.VCList.fst
LowParse.Low.VCList.valid_nlist_nil_recip
val valid_nlist_nil_recip (#k: parser_kind) (#t: Type) (p: parser k t) (h: HS.mem) (#rrel #rel: _) (sl: slice rrel rel) (pos: U32.t) : Lemma (requires (valid (parse_nlist 0 p) h sl pos)) (ensures (valid_content_pos (parse_nlist 0 p) h sl pos [] pos))
val valid_nlist_nil_recip (#k: parser_kind) (#t: Type) (p: parser k t) (h: HS.mem) (#rrel #rel: _) (sl: slice rrel rel) (pos: U32.t) : Lemma (requires (valid (parse_nlist 0 p) h sl pos)) (ensures (valid_content_pos (parse_nlist 0 p) h sl pos [] pos))
let valid_nlist_nil_recip (#k: parser_kind) (#t: Type) (p: parser k t) (h: HS.mem) (#rrel #rel: _) (sl: slice rrel rel) (pos: U32.t) : Lemma (requires (valid (parse_nlist 0 p) h sl pos)) (ensures (valid_content_pos (parse_nlist 0 p) h sl pos [] pos)) = valid_facts (parse_nlist 0 p) h sl pos; parse_n...
{ "file_name": "src/lowparse/LowParse.Low.VCList.fst", "git_rev": "00217c4a89f5ba56002ba9aa5b4a9d5903bfe9fa", "git_url": "https://github.com/project-everest/everparse.git", "project_name": "everparse" }
{ "end_col": 51, "end_line": 39, "start_col": 0, "start_line": 27 }
module LowParse.Low.VCList include LowParse.Spec.VCList include LowParse.Low.List module L = FStar.List.Tot module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module U32 = FStar.UInt32 module B = LowStar.Buffer module Cast = FStar.Int.Cast module U64 = FStar.UInt64 let valid_nlist_nil (#k: parser_kind) ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Buffer.fst.checked", "LowParse.Spec.VCList.fsti.checked", "LowParse.Low.List.fst.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.List.Tot.fst.checked", ...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.Int.Cast", "short_module": "Cast" }, { "abbrev": true, "full_module": "LowStar.Buffer", "short_module": "B" }, { "abbrev": true, "full_module": "F...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: LowParse.Spec.Base.parser k t -> h: FStar.Monotonic.HyperStack.mem -> sl: LowParse.Slice.slice rrel rel -> pos: FStar.UInt32.t -> FStar.Pervasives.Lemma (requires LowParse.Low.Base.Spec.valid (LowParse.Spec.VCList.parse_nlist 0 p) h sl pos) (ensures LowParse.Low.Base.Spec.valid...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "LowParse.Spec.Base.parser_kind", "LowParse.Spec.Base.parser", "FStar.Monotonic.HyperStack.mem", "LowParse.Slice.srel", "LowParse.Bytes.byte", "LowParse.Slice.slice", "FStar.UInt32.t", "LowParse.Spec.VCList.parse_nlist_eq", "LowParse.Slice.bytes_of_slice_from", "Prims.unit", "LowParse.Low.Base.S...
[]
true
false
true
false
false
let valid_nlist_nil_recip (#k: parser_kind) (#t: Type) (p: parser k t) (h: HS.mem) (#rrel #rel: _) (sl: slice rrel rel) (pos: U32.t) : Lemma (requires (valid (parse_nlist 0 p) h sl pos)) (ensures (valid_content_pos (parse_nlist 0 p) h sl pos [] pos)) =
valid_facts (parse_nlist 0 p) h sl pos; parse_nlist_eq 0 p (bytes_of_slice_from h sl pos)
false
Hacl.Streaming.Functor.fst
Hacl.Streaming.Functor.modifies_footprint'
val modifies_footprint': #index:Type0 -> (c: block index) -> i:G.erased index -> ( let i = G.reveal i in p:state' c i -> data: B.buffer uint8 -> len: UInt32.t -> h0: HS.mem -> h1: HS.mem -> Lemma (requires ( let State bs0 buf0 _ _ k0 = B.deref h0 p in let State bs1 buf1 _ _ k1 = B.de...
val modifies_footprint': #index:Type0 -> (c: block index) -> i:G.erased index -> ( let i = G.reveal i in p:state' c i -> data: B.buffer uint8 -> len: UInt32.t -> h0: HS.mem -> h1: HS.mem -> Lemma (requires ( let State bs0 buf0 _ _ k0 = B.deref h0 p in let State bs1 buf1 _ _ k1 = B.de...
let modifies_footprint' c i p data len h0 h1 = let _ = c.state.frame_freeable #i in let _ = c.key.frame_freeable #i in let _ = c.state.frame_invariant #i in let _ = c.key.frame_invariant #i in let _ = allow_inversion key_management in let s0 = B.deref h0 p in let s1 = B.deref h0 p in let State bs0 buf0 ...
{ "file_name": "code/streaming/Hacl.Streaming.Functor.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 62, "end_line": 962, "start_col": 0, "start_line": 950 }
module Hacl.Streaming.Functor /// Provided an instance of the type class, this creates a streaming API on top. /// This means that every function in this module takes two extra arguments /// compared to the previous streaming module specialized for hashes: the type /// of the index, and a type class for that index. Th...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "LowStar.Ignore.fsti.checked", "LowStar.BufferOps.fst.checked", "LowStar.Buffer.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.IntTypes.fsti.checked", "Hacl.Streaming.Types.fst.checked", "Hacl.Streaming.Spec.fst.checked...
[ { "abbrev": false, "full_module": "Hacl.Streaming.Spec", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "LowStar.BufferOps", "short_module": null }, { "abbrev": false, "full_modu...
{ "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
c: Hacl.Streaming.Interface.block index -> i: FStar.Ghost.erased index -> (let i = FStar.Ghost.reveal i in p: Hacl.Streaming.Functor.state' c i -> data: LowStar.Buffer.buffer Hacl.Streaming.Spec.uint8 -> len: FStar.UInt32.t -> h0: FStar.Monotonic.HyperStack.mem -> h1...
Prims.Tot
[ "total" ]
[]
[ "Hacl.Streaming.Interface.block", "FStar.Ghost.erased", "Hacl.Streaming.Functor.state'", "FStar.Ghost.reveal", "LowStar.Buffer.buffer", "Hacl.Streaming.Spec.uint8", "FStar.UInt32.t", "FStar.Monotonic.HyperStack.mem", "Hacl.Streaming.Interface.__proj__Stateful__item__s", "Hacl.Streaming.Interface._...
[]
false
false
false
false
false
let modifies_footprint' c i p data len h0 h1 =
let _ = c.state.frame_freeable #i in let _ = c.key.frame_freeable #i in let _ = c.state.frame_invariant #i in let _ = c.key.frame_invariant #i in let _ = allow_inversion key_management in let s0 = B.deref h0 p in let s1 = B.deref h0 p in let State bs0 buf0 _ _ k0 = s0 in let State bs1 buf1 _ _ k1 = s1 in c.state.frame_...
false