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
Pulse.C.Types.Array.fsti
Pulse.C.Types.Array.mk_array
val mk_array (#t: Type) (#td: typedef t) (a: array_ref td) (len: array_len_t a) : Tot (array td)
val mk_array (#t: Type) (#td: typedef t) (a: array_ref td) (len: array_len_t a) : Tot (array td)
let mk_array (#t: Type) (#td: typedef t) (a: array_ref td) (len: array_len_t a) : Tot (array td) = mk_array_or_null a len
{ "file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 24, "end_line": 235, "start_col": 0, "start_line": 234 }
module Pulse.C.Types.Array open Pulse.Lib.Pervasives include Pulse.C.Types.Base open Pulse.C.Typenat module SZ = FStar.SizeT // To be extracted as: t[tn] // Per the C standard, base array types must be of nonzero size inline_for_extraction [@@noextract_to "krml"] let array_size_t = (n: SZ.t { SZ.v n > 0 }) val base_a...
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "Pulse.C.Types.Base.fsti.checked", "Pulse.C.Types.Array.Base.fst.checked", "Pulse.C.Typenat.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.che...
[ { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "SZ" }, { "abbrev": false, "full_module": "Pulse.C.Typenat", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Types.Base", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Pulse.C.Types.Array.array_ref td -> len: Pulse.C.Types.Array.array_len_t a -> Pulse.C.Types.Array.array td
Prims.Tot
[ "total" ]
[]
[ "Pulse.C.Types.Base.typedef", "Pulse.C.Types.Array.array_ref", "Pulse.C.Types.Array.array_len_t", "Pulse.C.Types.Array.mk_array_or_null", "Pulse.C.Types.Array.array" ]
[]
false
false
false
false
false
let mk_array (#t: Type) (#td: typedef t) (a: array_ref td) (len: array_len_t a) : Tot (array td) =
mk_array_or_null a len
false
Sealed.Plugins.fst
Sealed.Plugins.get_seal_tac
val get_seal_tac (i: int) : Tac (sealed int)
val get_seal_tac (i: int) : Tac (sealed int)
let get_seal_tac (i:int) : Tac (sealed int) = seal (i + 1)
{ "file_name": "examples/native_tactics/Sealed.Plugins.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 58, "end_line": 12, "start_col": 0, "start_line": 12 }
module Sealed.Plugins open FStar.Sealed open FStar.Tactics.V2 [@@plugin] let use_seal (s:sealed int) : Tac int = unseal s + 1 [@@plugin] let get_seal (i:int) : sealed int = seal (i + 1)
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Sealed.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Sealed.Plugins.fst" }
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Sealed", "short_module": null }, { "abbrev": false, "full_module": "Sealed", "short_module": null }, { "abbrev": false, "full_module": "Seale...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: Prims.int -> FStar.Tactics.Effect.Tac (FStar.Sealed.sealed Prims.int)
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.int", "FStar.Sealed.seal", "Prims.op_Addition", "FStar.Sealed.sealed" ]
[]
false
true
false
false
false
let get_seal_tac (i: int) : Tac (sealed int) =
seal (i + 1)
false
Sealed.Plugins.fst
Sealed.Plugins.get_seal
val get_seal (i: int) : sealed int
val get_seal (i: int) : sealed int
let get_seal (i:int) : sealed int = seal (i + 1)
{ "file_name": "examples/native_tactics/Sealed.Plugins.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 48, "end_line": 9, "start_col": 0, "start_line": 9 }
module Sealed.Plugins open FStar.Sealed open FStar.Tactics.V2 [@@plugin] let use_seal (s:sealed int) : Tac int = unseal s + 1
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Sealed.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Sealed.Plugins.fst" }
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Sealed", "short_module": null }, { "abbrev": false, "full_module": "Sealed", "short_module": null }, { "abbrev": false, "full_module": "Seale...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
i: Prims.int -> FStar.Sealed.sealed Prims.int
Prims.Tot
[ "total" ]
[]
[ "Prims.int", "FStar.Sealed.seal", "Prims.op_Addition", "FStar.Sealed.sealed" ]
[]
false
false
false
true
false
let get_seal (i: int) : sealed int =
seal (i + 1)
false
Pulse.C.Types.Array.fsti
Pulse.C.Types.Array.full_seq_seq_of_base_array
val full_seq_seq_of_base_array (#t tn: Type0) (td: typedef t) (#n: array_size_t) (b: base_array_t t tn n) : Lemma (ensures (full_seq td (seq_of_base_array b) <==> full (base_array0 tn td n) b)) [SMTPat (full_seq td (seq_of_base_array b))]
val full_seq_seq_of_base_array (#t tn: Type0) (td: typedef t) (#n: array_size_t) (b: base_array_t t tn n) : Lemma (ensures (full_seq td (seq_of_base_array b) <==> full (base_array0 tn td n) b)) [SMTPat (full_seq td (seq_of_base_array b))]
let full_seq_seq_of_base_array (#t: Type0) (tn: Type0) (td: typedef t) (#n: array_size_t) (b: base_array_t t tn n) : Lemma (ensures (full_seq td (seq_of_base_array b) <==> full (base_array0 tn td n) b)) [SMTPat (full_seq td (seq_of_base_array b))] = assert (forall (i: base_array_index_t n) . base_array_index b ...
{ "file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 110, "end_line": 530, "start_col": 0, "start_line": 524 }
module Pulse.C.Types.Array open Pulse.Lib.Pervasives include Pulse.C.Types.Base open Pulse.C.Typenat module SZ = FStar.SizeT // To be extracted as: t[tn] // Per the C standard, base array types must be of nonzero size inline_for_extraction [@@noextract_to "krml"] let array_size_t = (n: SZ.t { SZ.v n > 0 }) val base_a...
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "Pulse.C.Types.Base.fsti.checked", "Pulse.C.Types.Array.Base.fst.checked", "Pulse.C.Typenat.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.che...
[ { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "SZ" }, { "abbrev": false, "full_module": "Pulse.C.Typenat", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Types.Base", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
tn: Type0 -> td: Pulse.C.Types.Base.typedef t -> b: Pulse.C.Types.Array.base_array_t t tn n -> FStar.Pervasives.Lemma (ensures Pulse.C.Types.Array.full_seq td (Pulse.C.Types.Array.seq_of_base_array b) <==> Pulse.C.Types.Base.full (Pulse.C.Types.Array.base_array0 tn td n) b) [SMTPat (Pulse....
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Pulse.C.Types.Base.typedef", "Pulse.C.Types.Array.array_size_t", "Pulse.C.Types.Array.base_array_t", "Prims._assert", "Prims.l_Forall", "Pulse.C.Types.Array.base_array_index_t", "Prims.eq2", "Pulse.C.Types.Array.base_array_index", "FStar.Seq.Base.index", "Pulse.C.Types.Array.seq_of_base_array", ...
[]
false
false
true
false
false
let full_seq_seq_of_base_array (#t tn: Type0) (td: typedef t) (#n: array_size_t) (b: base_array_t t tn n) : Lemma (ensures (full_seq td (seq_of_base_array b) <==> full (base_array0 tn td n) b)) [SMTPat (full_seq td (seq_of_base_array b))] =
assert (forall (i: base_array_index_t n). base_array_index b i == Seq.index (seq_of_base_array b) (SZ.v i))
false
DM4F_layered.fst
DM4F_layered.st_monotonic
val st_monotonic (#st #a: _) (w: wp0 st a) : Type0
val st_monotonic (#st #a: _) (w: wp0 st a) : Type0
let st_monotonic #st #a (w : wp0 st a) : Type0 = //forall s0 p1 p2. (forall r. p1 r ==> p2 r) ==> w s0 p1 ==> w s0 p2 // ^ this version seems to be less SMT-friendly forall s0 p1 p2. (forall x s1. p1 x s1 ==> p2 x s1) ==> w s0 p1 ==> w s0 p2
{ "file_name": "examples/layeredeffects/DM4F_layered.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 77, "end_line": 35, "start_col": 0, "start_line": 32 }
(* 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", "ID2.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.Calc.fsti.checked", "DM4F_Utils.fst.checked" ], "int...
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "ID2", "short_module": null }, { "abbrev": false, "full_module": "DM4F_Utils", "short_module": null }, { "abbrev": false, "full_module": "FStar.Perv...
{ "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
w: DM4F_layered.wp0 st a -> Type0
Prims.Tot
[ "total" ]
[]
[ "DM4F_layered.wp0", "Prims.l_Forall", "Prims.logical", "Prims.l_imp" ]
[]
false
false
false
true
true
let st_monotonic #st #a (w: wp0 st a) : Type0 =
forall s0 p1 p2. (forall x s1. p1 x s1 ==> p2 x s1) ==> w s0 p1 ==> w s0 p2
false
Pulse.C.Types.Array.fsti
Pulse.C.Types.Array.has_array_of_base_inj
val has_array_of_base_inj (#t: Type) (#tn: Type0) (#n: array_size_t) (#td: typedef t) (r: ref (base_array0 tn td n)) (a1 a2: array td) : Lemma (requires (has_array_of_base #t #tn #n #td r a1 /\ has_array_of_base #t #tn #n #td r a2)) (ensures (a1 == a2))
val has_array_of_base_inj (#t: Type) (#tn: Type0) (#n: array_size_t) (#td: typedef t) (r: ref (base_array0 tn td n)) (a1 a2: array td) : Lemma (requires (has_array_of_base #t #tn #n #td r a1 /\ has_array_of_base #t #tn #n #td r a2)) (ensures (a1 == a2))
let has_array_of_base_inj (#t: Type) (#tn: Type0) (#n: array_size_t) (#td: typedef t) (r: ref (base_array0 tn td n)) (a1 a2: array td) : Lemma (requires ( has_array_of_base #t #tn #n #td r a1 /\ has_array_of_base #t #tn #n #td r a2 )) (ensures (a1 == a2)) = let (| ar1, _ |) = a1 in let (...
{ "file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 50, "end_line": 347, "start_col": 0, "start_line": 332 }
module Pulse.C.Types.Array open Pulse.Lib.Pervasives include Pulse.C.Types.Base open Pulse.C.Typenat module SZ = FStar.SizeT // To be extracted as: t[tn] // Per the C standard, base array types must be of nonzero size inline_for_extraction [@@noextract_to "krml"] let array_size_t = (n: SZ.t { SZ.v n > 0 }) val base_a...
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "Pulse.C.Types.Base.fsti.checked", "Pulse.C.Types.Array.Base.fst.checked", "Pulse.C.Typenat.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.che...
[ { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "SZ" }, { "abbrev": false, "full_module": "Pulse.C.Typenat", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Types.Base", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Pulse.C.Types.Base.ref (Pulse.C.Types.Array.base_array0 tn td n) -> a1: Pulse.C.Types.Array.array td -> a2: Pulse.C.Types.Array.array td -> FStar.Pervasives.Lemma (requires Pulse.C.Types.Array.has_array_of_base r a1 /\ Pulse.C.Types.Array.has_array_of_base r a2) (ensures a1 == a2)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Pulse.C.Types.Array.array_size_t", "Pulse.C.Types.Base.typedef", "Pulse.C.Types.Base.ref", "Pulse.C.Types.Array.base_array_t", "Pulse.C.Types.Array.base_array0", "Pulse.C.Types.Array.array", "Pulse.C.Types.Array.array_ptr", "Pulse.C.Types.Array.array_len_t", "Pulse.C.Types.Array.array_ref_base_offs...
[]
false
false
true
false
false
let has_array_of_base_inj (#t: Type) (#tn: Type0) (#n: array_size_t) (#td: typedef t) (r: ref (base_array0 tn td n)) (a1 a2: array td) : Lemma (requires (has_array_of_base #t #tn #n #td r a1 /\ has_array_of_base #t #tn #n #td r a2)) (ensures (a1 == a2)) =
let (| ar1 , _ |) = a1 in let (| ar2 , _ |) = a2 in array_ref_base_offset_inj #t #td #tn ar1 r ar2 r
false
Pulse.C.Types.Array.fsti
Pulse.C.Types.Array.array_ref_of
val array_ref_of (#t: Type) (#td: typedef t) (ar: array td) : Tot (array_ref td)
val array_ref_of (#t: Type) (#td: typedef t) (ar: array td) : Tot (array_ref td)
let array_ref_of (#t: Type) (#td: typedef t) (ar: array td) : Tot (array_ref td) = array_ptr_of ar
{ "file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 17, "end_line": 231, "start_col": 0, "start_line": 230 }
module Pulse.C.Types.Array open Pulse.Lib.Pervasives include Pulse.C.Types.Base open Pulse.C.Typenat module SZ = FStar.SizeT // To be extracted as: t[tn] // Per the C standard, base array types must be of nonzero size inline_for_extraction [@@noextract_to "krml"] let array_size_t = (n: SZ.t { SZ.v n > 0 }) val base_a...
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "Pulse.C.Types.Base.fsti.checked", "Pulse.C.Types.Array.Base.fst.checked", "Pulse.C.Typenat.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.che...
[ { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "SZ" }, { "abbrev": false, "full_module": "Pulse.C.Typenat", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Types.Base", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ar: Pulse.C.Types.Array.array td -> Pulse.C.Types.Array.array_ref td
Prims.Tot
[ "total" ]
[]
[ "Pulse.C.Types.Base.typedef", "Pulse.C.Types.Array.array", "Pulse.C.Types.Array.array_ptr_of", "Pulse.C.Types.Array.array_ref" ]
[]
false
false
false
false
false
let array_ref_of (#t: Type) (#td: typedef t) (ar: array td) : Tot (array_ref td) =
array_ptr_of ar
false
Pulse.C.Types.Array.fsti
Pulse.C.Types.Array.has_array_of_base
val has_array_of_base (#t: Type) (#tn: Type0) (#n: array_size_t) (#td: typedef t) (r: ref (base_array0 tn td n)) (a: array td) : GTot prop
val has_array_of_base (#t: Type) (#tn: Type0) (#n: array_size_t) (#td: typedef t) (r: ref (base_array0 tn td n)) (a: array td) : GTot prop
let has_array_of_base (#t: Type) (#tn: Type0) (#n: array_size_t) (#td: typedef t) (r: ref (base_array0 tn td n)) (a: array td) : GTot prop = let (| al, len |) = a in array_ref_base_size al == n /\ has_array_ref_base al #tn r /\ array_ref_offset al == 0sz /\ Ghost.reveal len == n
{ "file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 25, "end_line": 330, "start_col": 0, "start_line": 318 }
module Pulse.C.Types.Array open Pulse.Lib.Pervasives include Pulse.C.Types.Base open Pulse.C.Typenat module SZ = FStar.SizeT // To be extracted as: t[tn] // Per the C standard, base array types must be of nonzero size inline_for_extraction [@@noextract_to "krml"] let array_size_t = (n: SZ.t { SZ.v n > 0 }) val base_a...
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "Pulse.C.Types.Base.fsti.checked", "Pulse.C.Types.Array.Base.fst.checked", "Pulse.C.Typenat.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.che...
[ { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "SZ" }, { "abbrev": false, "full_module": "Pulse.C.Typenat", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Types.Base", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Pulse.C.Types.Base.ref (Pulse.C.Types.Array.base_array0 tn td n) -> a: Pulse.C.Types.Array.array td -> Prims.GTot Prims.prop
Prims.GTot
[ "sometrivial" ]
[]
[ "Pulse.C.Types.Array.array_size_t", "Pulse.C.Types.Base.typedef", "Pulse.C.Types.Base.ref", "Pulse.C.Types.Array.base_array_t", "Pulse.C.Types.Array.base_array0", "Pulse.C.Types.Array.array", "Pulse.C.Types.Array.array_ptr", "Pulse.C.Types.Array.array_len_t", "Prims.l_and", "Prims.eq2", "FStar.S...
[]
false
false
false
false
true
let has_array_of_base (#t: Type) (#tn: Type0) (#n: array_size_t) (#td: typedef t) (r: ref (base_array0 tn td n)) (a: array td) : GTot prop =
let (| al , len |) = a in array_ref_base_size al == n /\ has_array_ref_base al #tn r /\ array_ref_offset al == 0sz /\ Ghost.reveal len == n
false
Sealed.Plugins.fst
Sealed.Plugins.use_seal
val use_seal (s: sealed int) : Tac int
val use_seal (s: sealed int) : Tac int
let use_seal (s:sealed int) : Tac int = unseal s + 1
{ "file_name": "examples/native_tactics/Sealed.Plugins.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 52, "end_line": 6, "start_col": 0, "start_line": 6 }
module Sealed.Plugins open FStar.Sealed open FStar.Tactics.V2
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Sealed.fsti.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Sealed.Plugins.fst" }
[ { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "FStar.Sealed", "short_module": null }, { "abbrev": false, "full_module": "Sealed", "short_module": null }, { "abbrev": false, "full_module": "Seale...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: FStar.Sealed.sealed Prims.int -> FStar.Tactics.Effect.Tac Prims.int
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Sealed.sealed", "Prims.int", "Prims.op_Addition", "FStar.Tactics.Unseal.unseal" ]
[]
false
true
false
false
false
let use_seal (s: sealed int) : Tac int =
unseal s + 1
false
Pulse.C.Types.Array.fsti
Pulse.C.Types.Array.array_pts_to_or_null
val array_pts_to_or_null (#t: Type) (#td: typedef t) (r: array_or_null td) (v: Ghost.erased (Seq.seq t)) : Tot vprop
val array_pts_to_or_null (#t: Type) (#td: typedef t) (r: array_or_null td) (v: Ghost.erased (Seq.seq t)) : Tot vprop
let array_pts_to_or_null (#t: Type) (#td: typedef t) (r: array_or_null td) (v: Ghost.erased (Seq.seq t)) : Tot vprop = if g_array_is_null r then emp else array_pts_to r v
{ "file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 23, "end_line": 259, "start_col": 0, "start_line": 251 }
module Pulse.C.Types.Array open Pulse.Lib.Pervasives include Pulse.C.Types.Base open Pulse.C.Typenat module SZ = FStar.SizeT // To be extracted as: t[tn] // Per the C standard, base array types must be of nonzero size inline_for_extraction [@@noextract_to "krml"] let array_size_t = (n: SZ.t { SZ.v n > 0 }) val base_a...
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "Pulse.C.Types.Base.fsti.checked", "Pulse.C.Types.Array.Base.fst.checked", "Pulse.C.Typenat.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.che...
[ { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "SZ" }, { "abbrev": false, "full_module": "Pulse.C.Typenat", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Types.Base", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Pulse.C.Types.Array.array_or_null td -> v: FStar.Ghost.erased (FStar.Seq.Base.seq t) -> Pulse.Lib.Core.vprop
Prims.Tot
[ "total" ]
[]
[ "Pulse.C.Types.Base.typedef", "Pulse.C.Types.Array.array_or_null", "FStar.Ghost.erased", "FStar.Seq.Base.seq", "Pulse.C.Types.Array.g_array_is_null", "Pulse.Lib.Core.emp", "Prims.bool", "Pulse.C.Types.Array.array_pts_to", "Pulse.Lib.Core.vprop" ]
[]
false
false
false
false
false
let array_pts_to_or_null (#t: Type) (#td: typedef t) (r: array_or_null td) (v: Ghost.erased (Seq.seq t)) : Tot vprop =
if g_array_is_null r then emp else array_pts_to r v
false
Pulse.C.Types.Array.fsti
Pulse.C.Types.Array.seq_of_base_array
val seq_of_base_array (#t #tn: Type) (#n: array_size_t) (v: base_array_t t tn n) : GTot (Seq.lseq t (SZ.v n))
val seq_of_base_array (#t #tn: Type) (#n: array_size_t) (v: base_array_t t tn n) : GTot (Seq.lseq t (SZ.v n))
let seq_of_base_array (#t: Type) (#tn: Type) (#n: array_size_t) (v: base_array_t t tn n) : GTot (Seq.lseq t (SZ.v n)) = Seq.init_ghost (SZ.v n) (fun i -> base_array_index v (SZ.uint_to_t i))
{ "file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 72, "end_line": 355, "start_col": 0, "start_line": 349 }
module Pulse.C.Types.Array open Pulse.Lib.Pervasives include Pulse.C.Types.Base open Pulse.C.Typenat module SZ = FStar.SizeT // To be extracted as: t[tn] // Per the C standard, base array types must be of nonzero size inline_for_extraction [@@noextract_to "krml"] let array_size_t = (n: SZ.t { SZ.v n > 0 }) val base_a...
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "Pulse.C.Types.Base.fsti.checked", "Pulse.C.Types.Array.Base.fst.checked", "Pulse.C.Typenat.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.che...
[ { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "SZ" }, { "abbrev": false, "full_module": "Pulse.C.Typenat", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Types.Base", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
v: Pulse.C.Types.Array.base_array_t t tn n -> Prims.GTot (FStar.Seq.Properties.lseq t (FStar.SizeT.v n))
Prims.GTot
[ "sometrivial" ]
[]
[ "Pulse.C.Types.Array.array_size_t", "Pulse.C.Types.Array.base_array_t", "FStar.Seq.Base.init_ghost", "FStar.SizeT.v", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Pulse.C.Types.Array.base_array_index", "FStar.SizeT.uint_to_t", "FStar.Seq.Properties.lseq" ]
[]
false
false
false
false
false
let seq_of_base_array (#t #tn: Type) (#n: array_size_t) (v: base_array_t t tn n) : GTot (Seq.lseq t (SZ.v n)) =
Seq.init_ghost (SZ.v n) (fun i -> base_array_index v (SZ.uint_to_t i))
false
ExtractRefs.fst
ExtractRefs.main_ref
val main_ref: Prims.unit -> Steel U32.t emp (fun _ -> emp) (requires fun _ -> True) (ensures fun _ x _ -> x == 2ul)
val main_ref: Prims.unit -> Steel U32.t emp (fun _ -> emp) (requires fun _ -> True) (ensures fun _ x _ -> x == 2ul)
let main_ref () : Steel U32.t emp (fun _ -> emp) (requires fun _ -> True) (ensures fun _ x _ -> x == 2ul) = // Allocating reference r let r = malloc 0ul in // Writing value 2 in the newly allocated reference write r 2ul; // Reading value of r in memory. This was set to 2 just above let v = rea...
{ "file_name": "share/steel/tutorial/ExtractRefs.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 5, "end_line": 44, "start_col": 0, "start_line": 32 }
module ExtractRefs open FStar.Ghost open Steel.FractionalPermission open Steel.Effect.Atomic open Steel.Effect open Steel.Reference module U32 = FStar.UInt32 /// Some examples using Steel references with fractional permissions #push-options "--fuel 0 --ifuel 0 --ide_id_info_off" (** Swap examples **) /// A selecto...
{ "checked_file": "/", "dependencies": [ "Steel.Reference.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.UInt32.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Ghost.fsti.che...
[ { "abbrev": true, "full_module": "FStar.UInt32", "short_module": "U32" }, { "abbrev": false, "full_module": "Steel.Reference", "short_module": null }, { "abbrev": false, "full_module": "Steel.Effect", "short_module": null }, { "abbrev": false, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> Steel.Effect.Steel FStar.UInt32.t
Steel.Effect.Steel
[]
[]
[ "Prims.unit", "FStar.UInt32.t", "Steel.Reference.free", "Steel.Reference.read", "Steel.Reference.write", "FStar.UInt32.__uint_to_t", "Steel.Reference.ref", "Steel.Reference.malloc", "Steel.Effect.Common.emp", "Steel.Effect.Common.vprop", "Steel.Effect.Common.rmem", "Prims.l_True", "Prims.eq2...
[]
false
true
false
false
false
let main_ref () : Steel U32.t emp (fun _ -> emp) (requires fun _ -> True) (ensures fun _ x _ -> x == 2ul) =
let r = malloc 0ul in write r 2ul; let v = read r in free r; v
false
DM4F_layered.fst
DM4F_layered.stronger
val stronger (#a: Type) (#st: Type0) (w1 w2: wp st a) : Type0
val stronger (#a: Type) (#st: Type0) (w1 w2: wp st a) : Type0
let stronger (#a:Type) (#st:Type0) (w1 w2 : wp st a) : Type0 = forall s0 p. w1 s0 p ==> w2 s0 p
{ "file_name": "examples/layeredeffects/DM4F_layered.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 36, "end_line": 105, "start_col": 0, "start_line": 101 }
(* 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", "ID2.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.Calc.fsti.checked", "DM4F_Utils.fst.checked" ], "int...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "ID2", "short_module": null }, { "abbrev": false, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
w1: DM4F_layered.wp st a -> w2: DM4F_layered.wp st a -> Type0
Prims.Tot
[ "total" ]
[]
[ "DM4F_layered.wp", "Prims.l_Forall", "DM4F_layered.post_t", "Prims.l_imp" ]
[]
false
false
false
true
true
let stronger (#a: Type) (#st: Type0) (w1 w2: wp st a) : Type0 =
forall s0 p. w1 s0 p ==> w2 s0 p
false
Pulse.C.Types.Array.fsti
Pulse.C.Types.Array.freeable_or_null_array
val freeable_or_null_array (#t: Type) (#td: typedef t) (a: array_or_null td) : Tot vprop
val freeable_or_null_array (#t: Type) (#td: typedef t) (a: array_or_null td) : Tot vprop
let freeable_or_null_array (#t: Type) (#td: typedef t) (a: array_or_null td) : Tot vprop = if g_array_is_null a then emp else freeable_array a
{ "file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 23, "end_line": 473, "start_col": 0, "start_line": 466 }
module Pulse.C.Types.Array open Pulse.Lib.Pervasives include Pulse.C.Types.Base open Pulse.C.Typenat module SZ = FStar.SizeT // To be extracted as: t[tn] // Per the C standard, base array types must be of nonzero size inline_for_extraction [@@noextract_to "krml"] let array_size_t = (n: SZ.t { SZ.v n > 0 }) val base_a...
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "Pulse.C.Types.Base.fsti.checked", "Pulse.C.Types.Array.Base.fst.checked", "Pulse.C.Typenat.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.che...
[ { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "SZ" }, { "abbrev": false, "full_module": "Pulse.C.Typenat", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Types.Base", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Pulse.C.Types.Array.array_or_null td -> Pulse.Lib.Core.vprop
Prims.Tot
[ "total" ]
[]
[ "Pulse.C.Types.Base.typedef", "Pulse.C.Types.Array.array_or_null", "Pulse.C.Types.Array.g_array_is_null", "Pulse.Lib.Core.emp", "Prims.bool", "Pulse.C.Types.Array.freeable_array", "Pulse.Lib.Core.vprop" ]
[]
false
false
false
false
false
let freeable_or_null_array (#t: Type) (#td: typedef t) (a: array_or_null td) : Tot vprop =
if g_array_is_null a then emp else freeable_array a
false
Pulse.C.Types.Array.fsti
Pulse.C.Types.Array.array_split_l
val array_split_l (#t: Type) (#td: typedef t) (a: array td) (i: SZ.t) : Pure (array td) (requires (SZ.v i <= SZ.v (dsnd a))) (ensures (fun _ -> True))
val array_split_l (#t: Type) (#td: typedef t) (a: array td) (i: SZ.t) : Pure (array td) (requires (SZ.v i <= SZ.v (dsnd a))) (ensures (fun _ -> True))
let array_split_l (#t: Type) (#td: typedef t) (a: array td) (i: SZ.t) : Pure (array td) (requires (SZ.v i <= SZ.v (dsnd a))) (ensures (fun _ -> True)) = let (| al, _ |) = a in (| al, Ghost.hide i |)
{ "file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 24, "end_line": 870, "start_col": 0, "start_line": 861 }
module Pulse.C.Types.Array open Pulse.Lib.Pervasives include Pulse.C.Types.Base open Pulse.C.Typenat module SZ = FStar.SizeT // To be extracted as: t[tn] // Per the C standard, base array types must be of nonzero size inline_for_extraction [@@noextract_to "krml"] let array_size_t = (n: SZ.t { SZ.v n > 0 }) val base_a...
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "Pulse.C.Types.Base.fsti.checked", "Pulse.C.Types.Array.Base.fst.checked", "Pulse.C.Typenat.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.che...
[ { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "SZ" }, { "abbrev": false, "full_module": "Pulse.C.Typenat", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Types.Base", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Pulse.C.Types.Array.array td -> i: FStar.SizeT.t -> Prims.Pure (Pulse.C.Types.Array.array td)
Prims.Pure
[]
[]
[ "Pulse.C.Types.Base.typedef", "Pulse.C.Types.Array.array", "FStar.SizeT.t", "Pulse.C.Types.Array.array_ptr", "Pulse.C.Types.Array.array_len_t", "Prims.Mkdtuple2", "FStar.Ghost.hide", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.SizeT.v", "FStar.Ghost.reveal", "FStar.Pervasives.dsnd", "Pri...
[]
false
false
false
false
false
let array_split_l (#t: Type) (#td: typedef t) (a: array td) (i: SZ.t) : Pure (array td) (requires (SZ.v i <= SZ.v (dsnd a))) (ensures (fun _ -> True)) =
let (| al , _ |) = a in (| al, Ghost.hide i |)
false
Pulse.C.Types.Array.fsti
Pulse.C.Types.Array.array_split_r
val array_split_r (#t: Type) (#td: typedef t) (a: array td) (i: SZ.t) : Ghost (array td) (requires (SZ.v i <= SZ.v (dsnd a))) (ensures (fun _ -> True))
val array_split_r (#t: Type) (#td: typedef t) (a: array td) (i: SZ.t) : Ghost (array td) (requires (SZ.v i <= SZ.v (dsnd a))) (ensures (fun _ -> True))
let array_split_r (#t: Type) (#td: typedef t) (a: array td) (i: SZ.t) : Ghost (array td) (requires (SZ.v i <= SZ.v (dsnd a))) (ensures (fun _ -> True)) = let (| al, len |) = a in (| array_ref_shift al i, Ghost.hide (len `SZ.sub` i) |)
{ "file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 57, "end_line": 881, "start_col": 0, "start_line": 872 }
module Pulse.C.Types.Array open Pulse.Lib.Pervasives include Pulse.C.Types.Base open Pulse.C.Typenat module SZ = FStar.SizeT // To be extracted as: t[tn] // Per the C standard, base array types must be of nonzero size inline_for_extraction [@@noextract_to "krml"] let array_size_t = (n: SZ.t { SZ.v n > 0 }) val base_a...
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "Pulse.C.Types.Base.fsti.checked", "Pulse.C.Types.Array.Base.fst.checked", "Pulse.C.Typenat.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.che...
[ { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "SZ" }, { "abbrev": false, "full_module": "Pulse.C.Typenat", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Types.Base", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Pulse.C.Types.Array.array td -> i: FStar.SizeT.t -> Prims.Ghost (Pulse.C.Types.Array.array td)
Prims.Ghost
[]
[]
[ "Pulse.C.Types.Base.typedef", "Pulse.C.Types.Array.array", "FStar.SizeT.t", "Pulse.C.Types.Array.array_ptr", "Pulse.C.Types.Array.array_len_t", "Prims.Mkdtuple2", "Pulse.C.Types.Array.array_ref_shift", "FStar.Ghost.hide", "FStar.SizeT.sub", "FStar.Ghost.reveal", "Prims.b2t", "Prims.op_LessThan...
[]
false
false
false
false
false
let array_split_r (#t: Type) (#td: typedef t) (a: array td) (i: SZ.t) : Ghost (array td) (requires (SZ.v i <= SZ.v (dsnd a))) (ensures (fun _ -> True)) =
let (| al , len |) = a in (| array_ref_shift al i, Ghost.hide (len `SZ.sub` i) |)
false
Pulse.C.Types.Array.fsti
Pulse.C.Types.Array.fractionable_seq_seq_of_base_array
val fractionable_seq_seq_of_base_array (#t tn: Type0) (td: typedef t) (#n: array_size_t) (b: base_array_t t tn n) : Lemma (ensures (fractionable_seq td (seq_of_base_array b) <==> fractionable (base_array0 tn td n) b) ) [SMTPat (fractionable_seq td (seq_of_base_array b))]
val fractionable_seq_seq_of_base_array (#t tn: Type0) (td: typedef t) (#n: array_size_t) (b: base_array_t t tn n) : Lemma (ensures (fractionable_seq td (seq_of_base_array b) <==> fractionable (base_array0 tn td n) b) ) [SMTPat (fractionable_seq td (seq_of_base_array b))]
let fractionable_seq_seq_of_base_array (#t: Type0) (tn: Type0) (td: typedef t) (#n: array_size_t) (b: base_array_t t tn n) : Lemma (ensures (fractionable_seq td (seq_of_base_array b) <==> fractionable (base_array0 tn td n) b)) [SMTPat (fractionable_seq td (seq_of_base_array b))] = assert (forall (i: base_array_...
{ "file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 110, "end_line": 1041, "start_col": 0, "start_line": 1035 }
module Pulse.C.Types.Array open Pulse.Lib.Pervasives include Pulse.C.Types.Base open Pulse.C.Typenat module SZ = FStar.SizeT // To be extracted as: t[tn] // Per the C standard, base array types must be of nonzero size inline_for_extraction [@@noextract_to "krml"] let array_size_t = (n: SZ.t { SZ.v n > 0 }) val base_a...
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "Pulse.C.Types.Base.fsti.checked", "Pulse.C.Types.Array.Base.fst.checked", "Pulse.C.Typenat.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.che...
[ { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "SZ" }, { "abbrev": false, "full_module": "Pulse.C.Typenat", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Types.Base", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
tn: Type0 -> td: Pulse.C.Types.Base.typedef t -> b: Pulse.C.Types.Array.base_array_t t tn n -> FStar.Pervasives.Lemma (ensures Pulse.C.Types.Array.fractionable_seq td (Pulse.C.Types.Array.seq_of_base_array b) <==> Pulse.C.Types.Base.fractionable (Pulse.C.Types.Array.base_array0 tn td n) b) ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Pulse.C.Types.Base.typedef", "Pulse.C.Types.Array.array_size_t", "Pulse.C.Types.Array.base_array_t", "Prims._assert", "Prims.l_Forall", "Pulse.C.Types.Array.base_array_index_t", "Prims.eq2", "Pulse.C.Types.Array.base_array_index", "FStar.Seq.Base.index", "Pulse.C.Types.Array.seq_of_base_array", ...
[]
false
false
true
false
false
let fractionable_seq_seq_of_base_array (#t tn: Type0) (td: typedef t) (#n: array_size_t) (b: base_array_t t tn n) : Lemma (ensures (fractionable_seq td (seq_of_base_array b) <==> fractionable (base_array0 tn td n) b) ) [SMTPat (fractionable_seq td (seq_of_base_array b))] =
assert (forall (i: base_array_index_t n). base_array_index b i == Seq.index (seq_of_base_array b) (SZ.v i))
false
DM4F_layered.fst
DM4F_layered.return_wp
val return_wp (#a: Type) (#st: Type0) (x: a) : wp st a
val return_wp (#a: Type) (#st: Type0) (x: a) : wp st a
let return_wp (#a:Type) (#st:Type0) (x:a) : wp st a = fun s0 p -> p x s0
{ "file_name": "examples/layeredeffects/DM4F_layered.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 20, "end_line": 46, "start_col": 0, "start_line": 45 }
(* 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", "ID2.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.Calc.fsti.checked", "DM4F_Utils.fst.checked" ], "int...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "ID2", "short_module": null }, { "abbrev": false, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
x: a -> DM4F_layered.wp st a
Prims.Tot
[ "total" ]
[]
[ "DM4F_layered.wp" ]
[]
false
false
false
true
false
let return_wp (#a: Type) (#st: Type0) (x: a) : wp st a =
fun s0 p -> p x s0
false
DM4F_layered.fst
DM4F_layered.bind_wp
val bind_wp (#a #b: Type) (#st: Type0) (w1: wp st a) (w2: (a -> wp st b)) : wp st b
val bind_wp (#a #b: Type) (#st: Type0) (w1: wp st a) (w2: (a -> wp st b)) : wp st b
let bind_wp (#a:Type) (#b:Type) (#st:Type0) (w1 : wp st a) (w2 : a -> wp st b) : wp st b = fun s0 p -> w1 s0 (fun y s1 -> w2 y s1 p)
{ "file_name": "examples/layeredeffects/DM4F_layered.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 43, "end_line": 54, "start_col": 0, "start_line": 52 }
(* 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", "ID2.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.Calc.fsti.checked", "DM4F_Utils.fst.checked" ], "int...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "ID2", "short_module": null }, { "abbrev": false, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
w1: DM4F_layered.wp st a -> w2: (_: a -> DM4F_layered.wp st b) -> DM4F_layered.wp st b
Prims.Tot
[ "total" ]
[]
[ "DM4F_layered.wp", "DM4F_layered.post_t" ]
[]
false
false
false
true
false
let bind_wp (#a #b: Type) (#st: Type0) (w1: wp st a) (w2: (a -> wp st b)) : wp st b =
fun s0 p -> w1 s0 (fun y s1 -> w2 y s1 p)
false
Pulse.C.Types.Array.fsti
Pulse.C.Types.Array.mk_fraction_seq
val mk_fraction_seq (#t: Type) (td: typedef t) (s: Seq.seq t) (p: perm) : Ghost (Seq.seq t) (requires (fractionable_seq td s)) (ensures (fun _ -> True))
val mk_fraction_seq (#t: Type) (td: typedef t) (s: Seq.seq t) (p: perm) : Ghost (Seq.seq t) (requires (fractionable_seq td s)) (ensures (fun _ -> True))
let mk_fraction_seq (#t: Type) (td: typedef t) (s: Seq.seq t) (p: perm) : Ghost (Seq.seq t) (requires (fractionable_seq td s)) (ensures (fun _ -> True)) = Seq.init_ghost (Seq.length s) (fun i -> mk_fraction td (Seq.index s i) p)
{ "file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 75, "end_line": 985, "start_col": 0, "start_line": 982 }
module Pulse.C.Types.Array open Pulse.Lib.Pervasives include Pulse.C.Types.Base open Pulse.C.Typenat module SZ = FStar.SizeT // To be extracted as: t[tn] // Per the C standard, base array types must be of nonzero size inline_for_extraction [@@noextract_to "krml"] let array_size_t = (n: SZ.t { SZ.v n > 0 }) val base_a...
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "Pulse.C.Types.Base.fsti.checked", "Pulse.C.Types.Array.Base.fst.checked", "Pulse.C.Typenat.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.che...
[ { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "SZ" }, { "abbrev": false, "full_module": "Pulse.C.Typenat", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Types.Base", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
td: Pulse.C.Types.Base.typedef t -> s: FStar.Seq.Base.seq t -> p: PulseCore.FractionalPermission.perm -> Prims.Ghost (FStar.Seq.Base.seq t)
Prims.Ghost
[]
[]
[ "Pulse.C.Types.Base.typedef", "FStar.Seq.Base.seq", "PulseCore.FractionalPermission.perm", "FStar.Seq.Base.init_ghost", "FStar.Seq.Base.length", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Pulse.C.Types.Base.mk_fraction", "FStar.Seq.Base.index", "Pulse.C.Types.Array.fractionable_seq", "Pri...
[]
false
false
false
false
false
let mk_fraction_seq (#t: Type) (td: typedef t) (s: Seq.seq t) (p: perm) : Ghost (Seq.seq t) (requires (fractionable_seq td s)) (ensures (fun _ -> True)) =
Seq.init_ghost (Seq.length s) (fun i -> mk_fraction td (Seq.index s i) p)
false
DM4F_layered.fst
DM4F_layered.return
val return (a: Type) (x: a) (st: Type0) : repr a st (return_wp x)
val return (a: Type) (x: a) (st: Type0) : repr a st (return_wp x)
let return (a:Type) (x:a) (st:Type0) : repr a st (return_wp x) = fun s0 -> (x, s0)
{ "file_name": "examples/layeredeffects/DM4F_layered.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 19, "end_line": 49, "start_col": 0, "start_line": 48 }
(* 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", "ID2.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.Calc.fsti.checked", "DM4F_Utils.fst.checked" ], "int...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "ID2", "short_module": null }, { "abbrev": false, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> x: a -> st: Type0 -> DM4F_layered.repr a st (DM4F_layered.return_wp x)
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.Native.Mktuple2", "FStar.Pervasives.Native.tuple2", "DM4F_layered.repr", "DM4F_layered.return_wp" ]
[]
false
false
false
false
false
let return (a: Type) (x: a) (st: Type0) : repr a st (return_wp x) =
fun s0 -> (x, s0)
false
Pulse.C.Types.Array.fsti
Pulse.C.Types.Array.array_ref_split_post
val array_ref_split_post (#t: Type) (#td: typedef t) (s: Ghost.erased (Seq.seq t)) (a: array td) (i: SZ.t) (sl sr: Ghost.erased (Seq.seq t)) : GTot prop
val array_ref_split_post (#t: Type) (#td: typedef t) (s: Ghost.erased (Seq.seq t)) (a: array td) (i: SZ.t) (sl sr: Ghost.erased (Seq.seq t)) : GTot prop
let array_ref_split_post (#t: Type) (#td: typedef t) (s: Ghost.erased (Seq.seq t)) (a: array td) (i: SZ.t) (sl sr: Ghost.erased (Seq.seq t)) : GTot prop = SZ.v i <= array_length a /\ Seq.length s == array_length a /\ Ghost.reveal sl == Seq.slice s 0 (SZ.v i) /\ Ghost.reveal sr == Seq.slice s (SZ.v i) (S...
{ "file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 56, "end_line": 906, "start_col": 0, "start_line": 896 }
module Pulse.C.Types.Array open Pulse.Lib.Pervasives include Pulse.C.Types.Base open Pulse.C.Typenat module SZ = FStar.SizeT // To be extracted as: t[tn] // Per the C standard, base array types must be of nonzero size inline_for_extraction [@@noextract_to "krml"] let array_size_t = (n: SZ.t { SZ.v n > 0 }) val base_a...
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "Pulse.C.Types.Base.fsti.checked", "Pulse.C.Types.Array.Base.fst.checked", "Pulse.C.Typenat.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.che...
[ { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "SZ" }, { "abbrev": false, "full_module": "Pulse.C.Typenat", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Types.Base", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: FStar.Ghost.erased (FStar.Seq.Base.seq t) -> a: Pulse.C.Types.Array.array td -> i: FStar.SizeT.t -> sl: FStar.Ghost.erased (FStar.Seq.Base.seq t) -> sr: FStar.Ghost.erased (FStar.Seq.Base.seq t) -> Prims.GTot Prims.prop
Prims.GTot
[ "sometrivial" ]
[]
[ "Pulse.C.Types.Base.typedef", "FStar.Ghost.erased", "FStar.Seq.Base.seq", "Pulse.C.Types.Array.array", "FStar.SizeT.t", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "FStar.SizeT.v", "Pulse.C.Types.Array.array_length", "Prims.eq2", "Prims.nat", "FStar.Seq.Base.length", "FStar.Gho...
[]
false
false
false
false
true
let array_ref_split_post (#t: Type) (#td: typedef t) (s: Ghost.erased (Seq.seq t)) (a: array td) (i: SZ.t) (sl sr: Ghost.erased (Seq.seq t)) : GTot prop =
SZ.v i <= array_length a /\ Seq.length s == array_length a /\ Ghost.reveal sl == Seq.slice s 0 (SZ.v i) /\ Ghost.reveal sr == Seq.slice s (SZ.v i) (Seq.length s)
false
DM4F_layered.fst
DM4F_layered.wp_squash_lem
val wp_squash_lem (#a #st: _) (w: wp st a) (p: post_t st a) (s0: st) : Lemma (requires w s0 p) (ensures w s0 (fun x y -> squash (p x y)))
val wp_squash_lem (#a #st: _) (w: wp st a) (p: post_t st a) (s0: st) : Lemma (requires w s0 p) (ensures w s0 (fun x y -> squash (p x y)))
let wp_squash_lem #a #st (w : wp st a) (p : post_t st a) (s0:st) : Lemma (requires w s0 p) (ensures w s0 (fun x y -> squash (p x y))) = calc (==>) { w s0 p; ==> {} w s0 (fun x y -> p x y); ==> { elim_mon w (fun x y -> p x y) (fun x y -> squash (p x y)) s0 } // grr w s0 (fun x y -> squa...
{ "file_name": "examples/layeredeffects/DM4F_layered.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 72, "start_col": 0, "start_line": 64 }
(* 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", "ID2.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.Calc.fsti.checked", "DM4F_Utils.fst.checked" ], "int...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "ID2", "short_module": null }, { "abbrev": false, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
w: DM4F_layered.wp st a -> p: DM4F_layered.post_t st a -> s0: st -> FStar.Pervasives.Lemma (requires w s0 p) (ensures w s0 (fun x y -> Prims.squash (p x y)))
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "DM4F_layered.wp", "DM4F_layered.post_t", "FStar.Calc.calc_finish", "Prims.logical", "Prims.l_imp", "Prims.squash", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", "Prims.unit", "FStar.Calc.calc_step", "FStar.Calc.calc_init", "FStar.Calc.calc_pack", "FStar.Calc.calc_push_impl", "DM...
[]
false
false
true
false
false
let wp_squash_lem #a #st (w: wp st a) (p: post_t st a) (s0: st) : Lemma (requires w s0 p) (ensures w s0 (fun x y -> squash (p x y))) =
calc ( ==> ) { w s0 p; ( ==> ) { () } w s0 (fun x y -> p x y); ( ==> ) { elim_mon w (fun x y -> p x y) (fun x y -> squash (p x y)) s0 } w s0 (fun x y -> squash (p x y)); }
false
Pulse.C.Types.Array.fsti
Pulse.C.Types.Array.array_blit_post
val array_blit_post (#t: _) (#td: typedef t) (s0 s1: Ghost.erased (Seq.seq t)) (src: array td) (idx_src: SZ.t) (dst: array td) (idx_dst len: SZ.t) (s1': Ghost.erased (Seq.seq t)) : GTot prop
val array_blit_post (#t: _) (#td: typedef t) (s0 s1: Ghost.erased (Seq.seq t)) (src: array td) (idx_src: SZ.t) (dst: array td) (idx_dst len: SZ.t) (s1': Ghost.erased (Seq.seq t)) : GTot prop
let array_blit_post (#t:_) (#td: typedef t) (s0 s1:Ghost.erased (Seq.seq t)) (src:array td) (idx_src: SZ.t) (dst:array td) (idx_dst: SZ.t) (len: SZ.t) (s1' : Ghost.erased (Seq.seq t)) : GTot prop = SZ.v idx_src + SZ.v len <= array_length src /\ SZ.v idx_dst + SZ.v len <= array_length dst /\ array_le...
{ "file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 61, "end_line": 1063, "start_col": 0, "start_line": 1043 }
module Pulse.C.Types.Array open Pulse.Lib.Pervasives include Pulse.C.Types.Base open Pulse.C.Typenat module SZ = FStar.SizeT // To be extracted as: t[tn] // Per the C standard, base array types must be of nonzero size inline_for_extraction [@@noextract_to "krml"] let array_size_t = (n: SZ.t { SZ.v n > 0 }) val base_a...
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "Pulse.C.Types.Base.fsti.checked", "Pulse.C.Types.Array.Base.fst.checked", "Pulse.C.Typenat.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.che...
[ { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "SZ" }, { "abbrev": false, "full_module": "Pulse.C.Typenat", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Types.Base", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s0: FStar.Ghost.erased (FStar.Seq.Base.seq t) -> s1: FStar.Ghost.erased (FStar.Seq.Base.seq t) -> src: Pulse.C.Types.Array.array td -> idx_src: FStar.SizeT.t -> dst: Pulse.C.Types.Array.array td -> idx_dst: FStar.SizeT.t -> len: FStar.SizeT.t -> s1': FStar.Ghost.erased (FStar.Seq.Base.s...
Prims.GTot
[ "sometrivial" ]
[]
[ "Pulse.C.Types.Base.typedef", "FStar.Ghost.erased", "FStar.Seq.Base.seq", "Pulse.C.Types.Array.array", "FStar.SizeT.t", "Prims.l_and", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_Addition", "FStar.SizeT.v", "Pulse.C.Types.Array.array_length", "Prims.eq2", "Prims.nat", "FStar.Seq.Bas...
[]
false
false
false
false
true
let array_blit_post (#t: _) (#td: typedef t) (s0 s1: Ghost.erased (Seq.seq t)) (src: array td) (idx_src: SZ.t) (dst: array td) (idx_dst len: SZ.t) (s1': Ghost.erased (Seq.seq t)) : GTot prop =
SZ.v idx_src + SZ.v len <= array_length src /\ SZ.v idx_dst + SZ.v len <= array_length dst /\ array_length src == Seq.length s0 /\ array_length dst == Seq.length s1 /\ Seq.length s1' == Seq.length s1 /\ (Seq.slice s1' (SZ.v idx_dst) (SZ.v idx_dst + SZ.v len)) `Seq.equal` (Seq.slice s0 (SZ.v idx_src) (SZ.v idx_src + SZ....
false
DM4F_layered.fst
DM4F_layered.lift_id_st_wp
val lift_id_st_wp (#a #st: _) (w: pure_wp a) : wp st a
val lift_id_st_wp (#a #st: _) (w: pure_wp a) : wp st a
let lift_id_st_wp #a #st (w : pure_wp a) : wp st a = elim_pure_wp_monotonicity_forall (); fun s0 p -> w (fun x -> p x s0)
{ "file_name": "examples/layeredeffects/DM4F_layered.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 33, "end_line": 132, "start_col": 0, "start_line": 130 }
(* 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", "ID2.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.Calc.fsti.checked", "DM4F_Utils.fst.checked" ], "int...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "ID2", "short_module": null }, { "abbrev": false, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
w: Prims.pure_wp a -> DM4F_layered.wp st a
Prims.Tot
[ "total" ]
[]
[ "Prims.pure_wp", "Prims.l_True", "Prims.pure_pre", "Prims.unit", "FStar.Monotonic.Pure.elim_pure_wp_monotonicity_forall", "DM4F_layered.wp" ]
[]
false
false
false
true
false
let lift_id_st_wp #a #st (w: pure_wp a) : wp st a =
elim_pure_wp_monotonicity_forall (); fun s0 p -> w (fun x -> p x s0)
false
DM4F_layered.fst
DM4F_layered.bind
val bind (a b: Type) (st: Type0) (wp_c: wp st a) (wp_f: (a -> wp st b)) (c: repr a st wp_c) (f: (x: a -> repr b st (wp_f x))) : repr b st (bind_wp wp_c wp_f)
val bind (a b: Type) (st: Type0) (wp_c: wp st a) (wp_f: (a -> wp st b)) (c: repr a st wp_c) (f: (x: a -> repr b st (wp_f x))) : repr b st (bind_wp wp_c wp_f)
let bind (a:Type) (b:Type) (st:Type0) (wp_c : wp st a) (wp_f : a -> wp st b) (c : repr a st wp_c) (f : (x:a -> repr b st (wp_f x))) : repr b st (bind_wp wp_c wp_f) by (explode (); let w = nth_var 3 in apply_lemma (`(wp_squash_lem (`#(binding_to_term w)))); dump "") = fun s0 -> let ...
{ "file_name": "examples/layeredeffects/DM4F_layered.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 12, "end_line": 86, "start_col": 0, "start_line": 74 }
(* 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", "ID2.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.Calc.fsti.checked", "DM4F_Utils.fst.checked" ], "int...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "ID2", "short_module": null }, { "abbrev": false, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> b: Type -> st: Type0 -> wp_c: DM4F_layered.wp st a -> wp_f: (_: a -> DM4F_layered.wp st b) -> c: DM4F_layered.repr a st wp_c -> f: (x: a -> DM4F_layered.repr b st (wp_f x)) -> DM4F_layered.repr b st (DM4F_layered.bind_wp wp_c wp_f)
Prims.Tot
[ "total" ]
[]
[ "DM4F_layered.wp", "DM4F_layered.repr", "FStar.Pervasives.Native.tuple2", "DM4F_layered.bind_wp", "Prims.unit", "FStar.Stubs.Tactics.V2.Builtins.dump", "FStar.Tactics.V2.Derived.apply_lemma", "FStar.Stubs.Reflection.Types.term", "FStar.Tactics.V2.SyntaxCoercions.binding_to_term", "FStar.Tactics.Na...
[]
false
false
false
false
false
let bind (a b: Type) (st: Type0) (wp_c: wp st a) (wp_f: (a -> wp st b)) (c: repr a st wp_c) (f: (x: a -> repr b st (wp_f x))) : repr b st (bind_wp wp_c wp_f) by (explode (); let w = nth_var 3 in apply_lemma (`(wp_squash_lem (`#(binding_to_term w)))); dump "") = ...
fun s0 -> let y, s1 = c s0 in f y s1
false
DM4F_layered.fst
DM4F_layered.subcomp
val subcomp (a: Type) (st: Type0) (wpf wpg: wp st a) (f: repr a st wpf) : Pure (repr a st wpg) (requires (stronger wpg wpf)) (ensures (fun _ -> True))
val subcomp (a: Type) (st: Type0) (wpf wpg: wp st a) (f: repr a st wpf) : Pure (repr a st wpg) (requires (stronger wpg wpf)) (ensures (fun _ -> True))
let subcomp (a:Type) (st:Type0) (wpf wpg : wp st a) (f : repr a st wpf) : Pure (repr a st wpg) (requires (stronger wpg wpf)) (ensures (fun _ -> True)) = f
{ "file_name": "examples/layeredeffects/DM4F_layered.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 5, "end_line": 115, "start_col": 0, "start_line": 107 }
(* 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", "ID2.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.Calc.fsti.checked", "DM4F_Utils.fst.checked" ], "int...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "ID2", "short_module": null }, { "abbrev": false, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> st: Type0 -> wpf: DM4F_layered.wp st a -> wpg: DM4F_layered.wp st a -> f: DM4F_layered.repr a st wpf -> Prims.Pure (DM4F_layered.repr a st wpg)
Prims.Pure
[]
[]
[ "DM4F_layered.wp", "DM4F_layered.repr", "DM4F_layered.stronger", "Prims.l_True" ]
[]
false
false
false
false
false
let subcomp (a: Type) (st: Type0) (wpf wpg: wp st a) (f: repr a st wpf) : Pure (repr a st wpg) (requires (stronger wpg wpf)) (ensures (fun _ -> True)) =
f
false
Pulse.C.Types.Array.fsti
Pulse.C.Types.Array.mk_fraction_seq_full
val mk_fraction_seq_full (#t: Type0) (td: typedef t) (x: Seq.seq t) : Lemma (requires (fractionable_seq td x)) (ensures (mk_fraction_seq td x full_perm == x)) [SMTPat (mk_fraction_seq td x full_perm)]
val mk_fraction_seq_full (#t: Type0) (td: typedef t) (x: Seq.seq t) : Lemma (requires (fractionable_seq td x)) (ensures (mk_fraction_seq td x full_perm == x)) [SMTPat (mk_fraction_seq td x full_perm)]
let mk_fraction_seq_full (#t: Type0) (td: typedef t) (x: Seq.seq t) : Lemma (requires (fractionable_seq td x)) (ensures (mk_fraction_seq td x full_perm == x)) [SMTPat (mk_fraction_seq td x full_perm)] = assert (mk_fraction_seq td x full_perm `Seq.equal` x)
{ "file_name": "share/steel/examples/pulse/lib/c/Pulse.C.Types.Array.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 55, "end_line": 991, "start_col": 0, "start_line": 987 }
module Pulse.C.Types.Array open Pulse.Lib.Pervasives include Pulse.C.Types.Base open Pulse.C.Typenat module SZ = FStar.SizeT // To be extracted as: t[tn] // Per the C standard, base array types must be of nonzero size inline_for_extraction [@@noextract_to "krml"] let array_size_t = (n: SZ.t { SZ.v n > 0 }) val base_a...
{ "checked_file": "/", "dependencies": [ "Pulse.Lib.Pervasives.fst.checked", "Pulse.C.Types.Base.fsti.checked", "Pulse.C.Types.Array.Base.fst.checked", "Pulse.C.Typenat.fsti.checked", "prims.fst.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.fsti.che...
[ { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "SZ" }, { "abbrev": false, "full_module": "Pulse.C.Typenat", "short_module": null }, { "abbrev": false, "full_module": "Pulse.C.Types.Base", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
td: Pulse.C.Types.Base.typedef t -> x: FStar.Seq.Base.seq t -> FStar.Pervasives.Lemma (requires Pulse.C.Types.Array.fractionable_seq td x) (ensures Pulse.C.Types.Array.mk_fraction_seq td x PulseCore.FractionalPermission.full_perm == x) [SMTPat (Pulse.C.Types.Array.mk_fraction_seq td x PulseCore.Fr...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Pulse.C.Types.Base.typedef", "FStar.Seq.Base.seq", "Prims._assert", "FStar.Seq.Base.equal", "Pulse.C.Types.Array.mk_fraction_seq", "PulseCore.FractionalPermission.full_perm", "Prims.unit", "Pulse.C.Types.Array.fractionable_seq", "Prims.squash", "Prims.eq2", "Prims.Cons", "FStar.Pervasives.pat...
[]
true
false
true
false
false
let mk_fraction_seq_full (#t: Type0) (td: typedef t) (x: Seq.seq t) : Lemma (requires (fractionable_seq td x)) (ensures (mk_fraction_seq td x full_perm == x)) [SMTPat (mk_fraction_seq td x full_perm)] =
assert ((mk_fraction_seq td x full_perm) `Seq.equal` x)
false
DM4F_layered.fst
DM4F_layered.ite_wp
val ite_wp (#a #st: _) (b: bool) (w1 w2: wp st a) : wp st a
val ite_wp (#a #st: _) (b: bool) (w1 w2: wp st a) : wp st a
let ite_wp #a #st (b:bool) (w1 w2 : wp st a) : wp st a = fun s0 p -> (b ==> w1 s0 p) /\ ((~b) ==> w2 s0 p)
{ "file_name": "examples/layeredeffects/DM4F_layered.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 51, "end_line": 89, "start_col": 0, "start_line": 88 }
(* 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", "ID2.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.Calc.fsti.checked", "DM4F_Utils.fst.checked" ], "int...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "ID2", "short_module": null }, { "abbrev": false, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Prims.bool -> w1: DM4F_layered.wp st a -> w2: DM4F_layered.wp st a -> DM4F_layered.wp st a
Prims.Tot
[ "total" ]
[]
[ "Prims.bool", "DM4F_layered.wp", "DM4F_layered.post_t", "Prims.l_and", "Prims.l_imp", "Prims.b2t", "Prims.l_not", "Prims.logical" ]
[]
false
false
false
true
false
let ite_wp #a #st (b: bool) (w1: wp st a) (w2: wp st a) : wp st a =
fun s0 p -> (b ==> w1 s0 p) /\ ((~b) ==> w2 s0 p)
false
DM4F_layered.fst
DM4F_layered.lift_id_st
val lift_id_st (a wp st: _) (f: ID2.repr a wp) : repr a st (lift_id_st_wp wp)
val lift_id_st (a wp st: _) (f: ID2.repr a wp) : repr a st (lift_id_st_wp wp)
let lift_id_st a wp st (f : ID2.repr a wp) : repr a st (lift_id_st_wp wp) = elim_pure_wp_monotonicity_forall (); fun s0 -> (f (), s0)
{ "file_name": "examples/layeredeffects/DM4F_layered.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 24, "end_line": 137, "start_col": 0, "start_line": 134 }
(* 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", "ID2.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.Calc.fsti.checked", "DM4F_Utils.fst.checked" ], "int...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "ID2", "short_module": null }, { "abbrev": false, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> wp: Prims.pure_wp a -> st: Type0 -> f: ID2.repr a wp -> DM4F_layered.repr a st (DM4F_layered.lift_id_st_wp wp)
Prims.Tot
[ "total" ]
[]
[ "Prims.pure_wp", "ID2.repr", "FStar.Pervasives.Native.Mktuple2", "FStar.Pervasives.Native.tuple2", "Prims.unit", "FStar.Monotonic.Pure.elim_pure_wp_monotonicity_forall", "DM4F_layered.repr", "DM4F_layered.lift_id_st_wp" ]
[]
false
false
false
false
false
let lift_id_st a wp st (f: ID2.repr a wp) : repr a st (lift_id_st_wp wp) =
elim_pure_wp_monotonicity_forall (); fun s0 -> (f (), s0)
false
DM4F_layered.fst
DM4F_layered.lift_pure_st_wp
val lift_pure_st_wp (#a #st: _) (w: pure_wp a) : wp st a
val lift_pure_st_wp (#a #st: _) (w: pure_wp a) : wp st a
let lift_pure_st_wp #a #st (w : pure_wp a) : wp st a = FStar.Monotonic.Pure.elim_pure_wp_monotonicity w; let r = fun s0 p -> w (fun x -> p x s0) in r
{ "file_name": "examples/layeredeffects/DM4F_layered.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 3, "end_line": 128, "start_col": 0, "start_line": 125 }
(* 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", "ID2.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.Calc.fsti.checked", "DM4F_Utils.fst.checked" ], "int...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "ID2", "short_module": null }, { "abbrev": false, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
w: Prims.pure_wp a -> DM4F_layered.wp st a
Prims.Tot
[ "total" ]
[]
[ "Prims.pure_wp", "Prims.l_True", "Prims.pure_pre", "Prims.unit", "FStar.Monotonic.Pure.elim_pure_wp_monotonicity", "DM4F_layered.wp" ]
[]
false
false
false
true
false
let lift_pure_st_wp #a #st (w: pure_wp a) : wp st a =
FStar.Monotonic.Pure.elim_pure_wp_monotonicity w; let r = fun s0 p -> w (fun x -> p x s0) in r
false
DM4F_layered.fst
DM4F_layered.test
val test: Prims.unit -> ST int int null
val test: Prims.unit -> ST int int null
let test () : ST int int null = let x = get () in put (x + x); get () + get ()
{ "file_name": "examples/layeredeffects/DM4F_layered.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 17, "end_line": 153, "start_col": 0, "start_line": 150 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "ID2.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.Calc.fsti.checked", "DM4F_Utils.fst.checked" ], "int...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "ID2", "short_module": null }, { "abbrev": false, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> DM4F_layered.ST Prims.int
DM4F_layered.ST
[]
[]
[ "Prims.unit", "Prims.op_Addition", "Prims.int", "DM4F_layered.get", "DM4F_layered.put", "DM4F_layered.null" ]
[]
false
true
false
false
false
let test () : ST int int null =
let x = get () in put (x + x); get () + get ()
false
DM4F_layered.fst
DM4F_layered.null
val null (#st #a: _) : wp st a
val null (#st #a: _) : wp st a
let null #st #a : wp st a = fun s0 p -> forall x s1. p x s1
{ "file_name": "examples/layeredeffects/DM4F_layered.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 33, "end_line": 142, "start_col": 0, "start_line": 141 }
(* 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", "ID2.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.Calc.fsti.checked", "DM4F_Utils.fst.checked" ], "int...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "ID2", "short_module": null }, { "abbrev": false, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
DM4F_layered.wp st a
Prims.Tot
[ "total" ]
[]
[ "Prims.l_Forall", "Prims.logical", "DM4F_layered.wp" ]
[]
false
false
false
true
false
let null #st #a : wp st a =
fun s0 p -> forall x s1. p x s1
false
DM4F_layered.fst
DM4F_layered.put
val put (#st: _) (s: st) : ST unit st (fun _ p -> p () s)
val put (#st: _) (s: st) : ST unit st (fun _ p -> p () s)
let put #st (s:st) : ST unit st (fun _ p -> p () s) = ST?.reflect (fun _ -> ((), s))
{ "file_name": "examples/layeredeffects/DM4F_layered.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 32, "end_line": 148, "start_col": 0, "start_line": 147 }
(* 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", "ID2.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.Calc.fsti.checked", "DM4F_Utils.fst.checked" ], "int...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "ID2", "short_module": null }, { "abbrev": false, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: st -> DM4F_layered.ST Prims.unit
DM4F_layered.ST
[]
[]
[ "FStar.Pervasives.Native.Mktuple2", "Prims.unit", "FStar.Pervasives.Native.tuple2" ]
[]
false
true
false
false
false
let put #st (s: st) : ST unit st (fun _ p -> p () s) =
ST?.reflect (fun _ -> ((), s))
false
DM4F_layered.fst
DM4F_layered.get
val get: #st: _ -> Prims.unit -> ST st st (fun s0 p -> p s0 s0)
val get: #st: _ -> Prims.unit -> ST st st (fun s0 p -> p s0 s0)
let get #st () : ST st st (fun s0 p -> p s0 s0) = ST?.reflect (fun s0 -> (s0, s0))
{ "file_name": "examples/layeredeffects/DM4F_layered.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 34, "end_line": 145, "start_col": 0, "start_line": 144 }
(* 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", "ID2.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Monotonic.Pure.fst.checked", "FStar.Calc.fsti.checked", "DM4F_Utils.fst.checked" ], "int...
[ { "abbrev": false, "full_module": "FStar.Monotonic.Pure", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.V2", "short_module": null }, { "abbrev": false, "full_module": "ID2", "short_module": null }, { "abbrev": false, "full_module": "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> DM4F_layered.ST st
DM4F_layered.ST
[]
[]
[ "Prims.unit", "FStar.Pervasives.Native.Mktuple2", "FStar.Pervasives.Native.tuple2" ]
[]
false
true
false
false
false
let get #st () : ST st st (fun s0 p -> p s0 s0) =
ST?.reflect (fun s0 -> (s0, s0))
false
Lib.IntTypes.fst
Lib.IntTypes.eq_mask_lemma_signed
val eq_mask_lemma_signed: #t:inttype{signed t /\ ~(S128? t)} -> a:int_t t SEC -> b:int_t t SEC -> Lemma (if v a = v b then v (eq_mask a b) == ones_v t else v (eq_mask a b) == 0)
val eq_mask_lemma_signed: #t:inttype{signed t /\ ~(S128? t)} -> a:int_t t SEC -> b:int_t t SEC -> Lemma (if v a = v b then v (eq_mask a b) == ones_v t else v (eq_mask a b) == 0)
let eq_mask_lemma_signed #t a b = match t with | S8 -> begin assert_norm (pow2 8 = 2 * pow2 7); if 0 <= v a then modulo_lemma (v a) (pow2 8) else begin modulo_addition_lemma (v a) 1 (pow2 8); modulo_lemma (v a + pow2 8) (pow2 8) end end | S16 -> begin assert_nor...
{ "file_name": "lib/Lib.IntTypes.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 7, "end_line": 860, "start_col": 0, "start_line": 821 }
module Lib.IntTypes open FStar.Math.Lemmas #push-options "--max_fuel 0 --max_ifuel 1 --z3rlimit 200" let pow2_2 _ = assert_norm (pow2 2 = 4) let pow2_3 _ = assert_norm (pow2 3 = 8) let pow2_4 _ = assert_norm (pow2 4 = 16) let pow2_127 _ = assert_norm (pow2 127 = 0x80000000000000000000000000000000) let bits_nu...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.UInt128.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Nat...
[ { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Lib", "short_module": null }, { "abbrev": false, "full_module": "Lib", ...
{ "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
a: Lib.IntTypes.int_t t Lib.IntTypes.SEC -> b: Lib.IntTypes.int_t t Lib.IntTypes.SEC -> FStar.Pervasives.Lemma (ensures ((match Lib.IntTypes.v a = Lib.IntTypes.v b with | true -> Lib.IntTypes.v (Lib.IntTypes.eq_mask a b) == Lib.IntTypes.ones_v t | _ -> Lib.IntTypes.v (Lib.IntTypes.eq_mas...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Lib.IntTypes.inttype", "Prims.l_and", "Prims.b2t", "Lib.IntTypes.signed", "Prims.l_not", "Lib.IntTypes.uu___is_S128", "Lib.IntTypes.int_t", "Lib.IntTypes.SEC", "Prims.op_LessThanOrEqual", "Lib.IntTypes.v", "FStar.Math.Lemmas.modulo_lemma", "Prims.pow2", "Prims.bool", "Prims.op_Addition", ...
[]
false
false
true
false
false
let eq_mask_lemma_signed #t a b =
match t with | S8 -> assert_norm (pow2 8 = 2 * pow2 7); if 0 <= v a then modulo_lemma (v a) (pow2 8) else (modulo_addition_lemma (v a) 1 (pow2 8); modulo_lemma (v a + pow2 8) (pow2 8)) | S16 -> assert_norm (pow2 16 = 2 * pow2 15); if 0 <= v a then modulo_lemma (v a) (pow2 16) else (modulo_...
false
Hacl.Poly1305_128.fst
Hacl.Poly1305_128.poly1305_update1
val poly1305_update1: poly1305_update1_st M128
val poly1305_update1: poly1305_update1_st M128
let poly1305_update1 = poly1305_update1 #M128
{ "file_name": "code/poly1305/Hacl.Poly1305_128.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 45, "end_line": 17, "start_col": 0, "start_line": 17 }
module Hacl.Poly1305_128 open FStar.HyperStack open FStar.HyperStack.All open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Fields open Hacl.Impl.Poly1305 open Hacl.Meta.Poly1305 friend Hacl.Meta.Poly1305 let poly1305_init = poly1305_init #M128
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Meta.Poly1305.fst.checked", "Hacl.Meta.Poly1305.fst.checked", "Hacl.Impl.Poly1305.Fields.fst.checked", "Hacl.Impl.Poly1305.fsti.checked", "FStar.Pervasives.fsti...
[ { "abbrev": false, "full_module": "Hacl.Meta.Poly1305", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Poly1305", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Poly1305.Fields", "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
Hacl.Impl.Poly1305.poly1305_update1_st Hacl.Impl.Poly1305.Fields.M128
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Poly1305.poly1305_update1", "Hacl.Impl.Poly1305.Fields.M128" ]
[]
false
false
false
true
false
let poly1305_update1 =
poly1305_update1 #M128
false
IfcExample.fst
IfcExample.c1_ni
val c1_ni : unit -> Lemma (ni_com env c1 Low)
val c1_ni : unit -> Lemma (ni_com env c1 Low)
let c1_ni () = while_com env (AVar c) c1_6 (AVar c) Low
{ "file_name": "examples/rel/IfcExample.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 55, "end_line": 81, "start_col": 0, "start_line": 81 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "While.fst.checked", "Rel.fst.checked", "prims.fst.checked", "IfcRules.fst.checked", "FStar.ST.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Heap.fst.checked" ], "interface_file": false, "source_file": "IfcExample.fst" }
[ { "abbrev": false, "full_module": "FStar.ST", "short_module": null }, { "abbrev": false, "full_module": "FStar.Heap", "short_module": null }, { "abbrev": false, "full_module": "IfcRules", "short_module": null }, { "abbrev": false, "full_module": "While", "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
_: Prims.unit -> FStar.Pervasives.Lemma (ensures IfcRules.ni_com IfcExample.env IfcExample.c1 IfcRules.Low)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Prims.unit", "IfcRules.while_com", "IfcExample.env", "While.AVar", "IfcExample.c", "IfcExample.c1_6", "IfcRules.Low" ]
[]
true
false
true
false
false
let c1_ni () =
while_com env (AVar c) c1_6 (AVar c) Low
false
Hacl.Poly1305_128.fst
Hacl.Poly1305_128.poly1305_init
val poly1305_init: poly1305_init_st M128
val poly1305_init: poly1305_init_st M128
let poly1305_init = poly1305_init #M128
{ "file_name": "code/poly1305/Hacl.Poly1305_128.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 39, "end_line": 15, "start_col": 0, "start_line": 15 }
module Hacl.Poly1305_128 open FStar.HyperStack open FStar.HyperStack.All open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Fields open Hacl.Impl.Poly1305 open Hacl.Meta.Poly1305 friend Hacl.Meta.Poly1305
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Meta.Poly1305.fst.checked", "Hacl.Meta.Poly1305.fst.checked", "Hacl.Impl.Poly1305.Fields.fst.checked", "Hacl.Impl.Poly1305.fsti.checked", "FStar.Pervasives.fsti...
[ { "abbrev": false, "full_module": "Hacl.Meta.Poly1305", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Poly1305", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Poly1305.Fields", "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
Hacl.Impl.Poly1305.poly1305_init_st Hacl.Impl.Poly1305.Fields.M128
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Poly1305.poly1305_init", "Hacl.Impl.Poly1305.Fields.M128" ]
[]
false
false
false
true
false
let poly1305_init =
poly1305_init #M128
false
Hacl.Impl.P256.Constants.fst
Hacl.Impl.P256.Constants.make_order
val make_order: n:felem -> Stack unit (requires fun h -> live h n) (ensures fun h0 _ h1 -> modifies (loc n) h0 h1 /\ as_nat h1 n == S.order)
val make_order: n:felem -> Stack unit (requires fun h -> live h n) (ensures fun h0 _ h1 -> modifies (loc n) h0 h1 /\ as_nat h1 n == S.order)
let make_order n = // 0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551 [@inline_let] let n0 = u64 0xf3b9cac2fc632551 in [@inline_let] let n1 = u64 0xbce6faada7179e84 in [@inline_let] let n2 = u64 0xffffffffffffffff in [@inline_let] let n3 = u64 0xffffffff00000000 in assert_norm (v n0 + v n...
{ "file_name": "code/ecdsap256/Hacl.Impl.P256.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 47, "start_col": 0, "start_line": 40 }
module Hacl.Impl.P256.Constants 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 module S = Spec.P256 module SM = Hacl.Spec.P256.Montgomery #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val make_prime: n:f...
{ "checked_file": "/", "dependencies": [ "Spec.P256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.P256.Montgomery.fsti.checked", "Hacl.Impl.P256.Bignum.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", ...
[ { "abbrev": true, "full_module": "Hacl.Spec.P256.Montgomery", "short_module": "SM" }, { "abbrev": true, "full_module": "Spec.P256", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.P256.Bignum", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.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", "FStar.Pervasives.assert_norm", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.op_Addition", "Lib.IntTypes.v", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "FStar.Mul.op_Star", "Prims.pow2", "Spec.P256.Po...
[]
false
true
false
false
false
let make_order n =
[@@ inline_let ]let n0 = u64 0xf3b9cac2fc632551 in [@@ inline_let ]let n1 = u64 0xbce6faada7179e84 in [@@ inline_let ]let n2 = u64 0xffffffffffffffff in [@@ inline_let ]let n3 = u64 0xffffffff00000000 in assert_norm (v n0 + v n1 * pow2 64 + v n2 * pow2 128 + v n3 * pow2 192 = S.order); bn_make_u64_4 n n0 n1 n2 n3
false
Lib.Sequence.fst
Lib.Sequence.index_generate_blocks
val index_generate_blocks: #t:Type0 -> len:size_pos -> max:nat -> n:pos{n <= max} -> f:(i:nat{i < max} -> unit -> unit & s:seq t{length s == len}) -> i:nat{i < n * len} -> Lemma (Math.Lemmas.lemma_mult_le_right len n max; div_mul_lt len i max; let a_spec (i:nat{i <= max}) = unit in...
val index_generate_blocks: #t:Type0 -> len:size_pos -> max:nat -> n:pos{n <= max} -> f:(i:nat{i < max} -> unit -> unit & s:seq t{length s == len}) -> i:nat{i < n * len} -> Lemma (Math.Lemmas.lemma_mult_le_right len n max; div_mul_lt len i max; let a_spec (i:nat{i <= max}) = unit in...
let rec index_generate_blocks #t len max n f i = assert (0 < n); let a_spec (i:nat{i <= max}) = unit in let _,s = generate_blocks #t len max (n-1) a_spec f () in let _,s' = f (n-1) () in let _,s1 = generate_blocks #t len max n a_spec f () in unfold_generate_blocks #t len max a_spec f () (n-1); Seq.Propert...
{ "file_name": "lib/Lib.Sequence.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 7, "end_line": 367, "start_col": 0, "start_line": 348 }
module Lib.Sequence open FStar.Mul open Lib.IntTypes open Lib.LoopCombinators #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0 --using_facts_from '-* +Prims +FStar.Pervasives +FStar.Math.Lemmas +FStar.Seq +Lib.IntTypes +Lib.Sequence'" let index #a #len s n = Seq.index s n let create #a len init = Seq.create #...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.Properties.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked"...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
len: Lib.IntTypes.size_pos -> max: Prims.nat -> n: Prims.pos{n <= max} -> f: (i: Prims.nat{i < max} -> _: Prims.unit -> Prims.unit * s: Lib.Sequence.seq t {Lib.Sequence.length s == len}) -> i: Prims.nat{i < n * len} -> FStar.Pervasives.Lemma (ensures (FStar.Math.Lemmas.l...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Lib.IntTypes.size_pos", "Prims.nat", "Prims.pos", "Prims.b2t", "Prims.op_LessThanOrEqual", "Prims.op_LessThan", "Prims.unit", "FStar.Pervasives.Native.tuple2", "Lib.Sequence.seq", "Prims.eq2", "Prims.int", "Prims.l_or", "Prims.op_GreaterThanOrEqual", "Prims.l_and", "Prims.op_GreaterThan...
[ "recursion" ]
false
false
true
false
false
let rec index_generate_blocks #t len max n f i =
assert (0 < n); let a_spec (i: nat{i <= max}) = unit in let _, s = generate_blocks #t len max (n - 1) a_spec f () in let _, s' = f (n - 1) () in let _, s1 = generate_blocks #t len max n a_spec f () in unfold_generate_blocks #t len max a_spec f () (n - 1); Seq.Properties.lemma_split s1 (n * len - len); Seq.Properties.le...
false
Hacl.Poly1305_128.fst
Hacl.Poly1305_128.poly1305_update
val poly1305_update: poly1305_update_st M128
val poly1305_update: poly1305_update_st M128
let poly1305_update = poly1305_update #M128
{ "file_name": "code/poly1305/Hacl.Poly1305_128.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 43, "end_line": 19, "start_col": 0, "start_line": 19 }
module Hacl.Poly1305_128 open FStar.HyperStack open FStar.HyperStack.All open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Fields open Hacl.Impl.Poly1305 open Hacl.Meta.Poly1305 friend Hacl.Meta.Poly1305 let poly1305_init = poly1305_init #M128 let poly1305_update1 = poly1305_update1 #M128
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Meta.Poly1305.fst.checked", "Hacl.Meta.Poly1305.fst.checked", "Hacl.Impl.Poly1305.Fields.fst.checked", "Hacl.Impl.Poly1305.fsti.checked", "FStar.Pervasives.fsti...
[ { "abbrev": false, "full_module": "Hacl.Meta.Poly1305", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Poly1305", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Poly1305.Fields", "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
Hacl.Impl.Poly1305.poly1305_update_st Hacl.Impl.Poly1305.Fields.M128
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Poly1305.poly1305_update", "Hacl.Impl.Poly1305.Fields.M128" ]
[]
false
false
false
true
false
let poly1305_update =
poly1305_update #M128
false
Hacl.Poly1305_128.fst
Hacl.Poly1305_128.poly1305_finish
val poly1305_finish: poly1305_finish_st M128
val poly1305_finish: poly1305_finish_st M128
let poly1305_finish = poly1305_finish #M128
{ "file_name": "code/poly1305/Hacl.Poly1305_128.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 43, "end_line": 21, "start_col": 0, "start_line": 21 }
module Hacl.Poly1305_128 open FStar.HyperStack open FStar.HyperStack.All open Lib.IntTypes open Lib.Buffer open Hacl.Impl.Poly1305.Fields open Hacl.Impl.Poly1305 open Hacl.Meta.Poly1305 friend Hacl.Meta.Poly1305 let poly1305_init = poly1305_init #M128 let poly1305_update1 = poly1305_update1 #M128 let poly1305_up...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Meta.Poly1305.fst.checked", "Hacl.Meta.Poly1305.fst.checked", "Hacl.Impl.Poly1305.Fields.fst.checked", "Hacl.Impl.Poly1305.fsti.checked", "FStar.Pervasives.fsti...
[ { "abbrev": false, "full_module": "Hacl.Meta.Poly1305", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Poly1305", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Impl.Poly1305.Fields", "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
Hacl.Impl.Poly1305.poly1305_finish_st Hacl.Impl.Poly1305.Fields.M128
Prims.Tot
[ "total" ]
[]
[ "Hacl.Impl.Poly1305.poly1305_finish", "Hacl.Impl.Poly1305.Fields.M128" ]
[]
false
false
false
true
false
let poly1305_finish =
poly1305_finish #M128
false
Hacl.Impl.P256.Constants.fst
Hacl.Impl.P256.Constants.make_prime
val make_prime: n:felem -> Stack unit (requires fun h -> live h n) (ensures fun h0 _ h1 -> modifies (loc n) h0 h1 /\ as_nat h1 n == S.prime)
val make_prime: n:felem -> Stack unit (requires fun h -> live h n) (ensures fun h0 _ h1 -> modifies (loc n) h0 h1 /\ as_nat h1 n == S.prime)
let make_prime n = // 0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff [@inline_let] let n0 = u64 0xffffffffffffffff in [@inline_let] let n1 = u64 0xffffffff in [@inline_let] let n2 = u64 0x0 in [@inline_let] let n3 = u64 0xffffffff00000001 in assert_norm (v n0 + v n1 * pow2 64 + v n2 * po...
{ "file_name": "code/ecdsap256/Hacl.Impl.P256.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 31, "start_col": 0, "start_line": 24 }
module Hacl.Impl.P256.Constants 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 module S = Spec.P256 module SM = Hacl.Spec.P256.Montgomery #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val make_prime: n:f...
{ "checked_file": "/", "dependencies": [ "Spec.P256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.P256.Montgomery.fsti.checked", "Hacl.Impl.P256.Bignum.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", ...
[ { "abbrev": true, "full_module": "Hacl.Spec.P256.Montgomery", "short_module": "SM" }, { "abbrev": true, "full_module": "Spec.P256", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.P256.Bignum", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.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", "FStar.Pervasives.assert_norm", "Prims.b2t", "Prims.op_Equality", "Prims.int", "Prims.op_Addition", "Lib.IntTypes.v", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "FStar.Mul.op_Star", "Prims.pow2", "Spec.P256.Po...
[]
false
true
false
false
false
let make_prime n =
[@@ inline_let ]let n0 = u64 0xffffffffffffffff in [@@ inline_let ]let n1 = u64 0xffffffff in [@@ inline_let ]let n2 = u64 0x0 in [@@ inline_let ]let n3 = u64 0xffffffff00000001 in assert_norm (v n0 + v n1 * pow2 64 + v n2 * pow2 128 + v n3 * pow2 192 = S.prime); bn_make_u64_4 n n0 n1 n2 n3
false
Hacl.Impl.P256.Constants.fst
Hacl.Impl.P256.Constants.make_g_x
val make_g_x: n:felem -> Stack unit (requires fun h -> live h n) (ensures fun h0 _ h1 -> modifies (loc n) h0 h1 /\ as_nat h1 n < S.prime /\ SM.from_mont (as_nat h1 n) == S.g_x)
val make_g_x: n:felem -> Stack unit (requires fun h -> live h n) (ensures fun h0 _ h1 -> modifies (loc n) h0 h1 /\ as_nat h1 n < S.prime /\ SM.from_mont (as_nat h1 n) == S.g_x)
let make_g_x n = // g_x = 0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296 // mont_g_x = 0x18905f76a53755c679fb732b7762251075ba95fc5fedb60179e730d418a9143c [@inline_let] let n0 = u64 0x79e730d418a9143c in [@inline_let] let n1 = u64 0x75ba95fc5fedb601 in [@inline_let] let n2 = u64 0x79fb732b7...
{ "file_name": "code/ecdsap256/Hacl.Impl.P256.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 107, "start_col": 0, "start_line": 97 }
module Hacl.Impl.P256.Constants 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 module S = Spec.P256 module SM = Hacl.Spec.P256.Montgomery #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val make_prime: n:f...
{ "checked_file": "/", "dependencies": [ "Spec.P256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.P256.Montgomery.fsti.checked", "Hacl.Impl.P256.Bignum.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", ...
[ { "abbrev": true, "full_module": "Hacl.Spec.P256.Montgomery", "short_module": "SM" }, { "abbrev": true, "full_module": "Spec.P256", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.P256.Bignum", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.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_mont_id", "Spec.P256.PointOps.g_x", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "Hacl.Spec.P256.Montgomery.to_mont", "Prims.op_Addition", "Lib.IntTypes.v", ...
[]
false
true
false
false
false
let make_g_x n =
[@@ inline_let ]let n0 = u64 0x79e730d418a9143c in [@@ inline_let ]let n1 = u64 0x75ba95fc5fedb601 in [@@ inline_let ]let n2 = u64 0x79fb732b77622510 in [@@ inline_let ]let n3 = u64 0x18905f76a53755c6 in assert_norm (v n0 + v n1 * pow2 64 + v n2 * pow2 128 + v n3 * pow2 192 < S.prime); assert_norm (SM.to_mont S.g_x == ...
false
Hacl.Impl.P256.Constants.fst
Hacl.Impl.P256.Constants.make_fmont_R2
val make_fmont_R2: n:felem -> Stack unit (requires fun h -> live h n) (ensures fun h0 _ h1 -> modifies (loc n) h0 h1 /\ as_nat h1 n == SM.fmont_R * SM.fmont_R % S.prime)
val make_fmont_R2: n:felem -> Stack unit (requires fun h -> live h n) (ensures fun h0 _ h1 -> modifies (loc n) h0 h1 /\ as_nat h1 n == SM.fmont_R * SM.fmont_R % S.prime)
let make_fmont_R2 n = // 0x4fffffffdfffffffffffffffefffffffbffffffff0000000000000003 [@inline_let] let n0 = u64 0x3 in [@inline_let] let n1 = u64 0xfffffffbffffffff in [@inline_let] let n2 = u64 0xfffffffffffffffe in [@inline_let] let n3 = u64 0x4fffffffd in assert_norm (v n0 + v n1 * pow2 64 + v n2 * pow2 ...
{ "file_name": "code/ecdsap256/Hacl.Impl.P256.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 144, "start_col": 0, "start_line": 136 }
module Hacl.Impl.P256.Constants 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 module S = Spec.P256 module SM = Hacl.Spec.P256.Montgomery #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val make_prime: n:f...
{ "checked_file": "/", "dependencies": [ "Spec.P256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.P256.Montgomery.fsti.checked", "Hacl.Impl.P256.Bignum.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", ...
[ { "abbrev": true, "full_module": "Hacl.Spec.P256.Montgomery", "short_module": "SM" }, { "abbrev": true, "full_module": "Spec.P256", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.P256.Bignum", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.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", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "Prims.op_Addition", "Lib.IntTypes.v", "Lib.IntTypes.U64", "Lib.IntTypes.SEC", "FStar.Mul.op_Star", "Prims.pow2", "Prims.op_Modulus", "Hacl.Spec.P25...
[]
false
true
false
false
false
let make_fmont_R2 n =
[@@ inline_let ]let n0 = u64 0x3 in [@@ inline_let ]let n1 = u64 0xfffffffbffffffff in [@@ inline_let ]let n2 = u64 0xfffffffffffffffe in [@@ inline_let ]let n3 = u64 0x4fffffffd in assert_norm (v n0 + v n1 * pow2 64 + v n2 * pow2 128 + v n3 * pow2 192 == SM.fmont_R * SM.fmont_R % S.prime); bn_make_u64_4 n n0 n1 n2...
false
Hacl.Impl.P256.Constants.fst
Hacl.Impl.P256.Constants.make_g_y
val make_g_y: n:felem -> Stack unit (requires fun h -> live h n) (ensures fun h0 _ h1 -> modifies (loc n) h0 h1 /\ as_nat h1 n < S.prime /\ SM.from_mont (as_nat h1 n) == S.g_y)
val make_g_y: n:felem -> Stack unit (requires fun h -> live h n) (ensures fun h0 _ h1 -> modifies (loc n) h0 h1 /\ as_nat h1 n < S.prime /\ SM.from_mont (as_nat h1 n) == S.g_y)
let make_g_y n = // g_y = 0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5 // mont_g_x = 0x8571ff1825885d85d2e88688dd21f3258b4ab8e4ba19e45cddf25357ce95560a [@inline_let] let n0 = u64 0xddf25357ce95560a in [@inline_let] let n1 = u64 0x8b4ab8e4ba19e45c in [@inline_let] let n2 = u64 0xd2e88688d...
{ "file_name": "code/ecdsap256/Hacl.Impl.P256.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 127, "start_col": 0, "start_line": 117 }
module Hacl.Impl.P256.Constants 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 module S = Spec.P256 module SM = Hacl.Spec.P256.Montgomery #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val make_prime: n:f...
{ "checked_file": "/", "dependencies": [ "Spec.P256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.P256.Montgomery.fsti.checked", "Hacl.Impl.P256.Bignum.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", ...
[ { "abbrev": true, "full_module": "Hacl.Spec.P256.Montgomery", "short_module": "SM" }, { "abbrev": true, "full_module": "Spec.P256", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.P256.Bignum", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Hacl.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_mont_id", "Spec.P256.PointOps.g_y", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "Hacl.Spec.P256.Montgomery.to_mont", "Prims.op_Addition", "Lib.IntTypes.v", ...
[]
false
true
false
false
false
let make_g_y n =
[@@ inline_let ]let n0 = u64 0xddf25357ce95560a in [@@ inline_let ]let n1 = u64 0x8b4ab8e4ba19e45c in [@@ inline_let ]let n2 = u64 0xd2e88688dd21f325 in [@@ inline_let ]let n3 = u64 0x8571ff1825885d85 in assert_norm (v n0 + v n1 * pow2 64 + v n2 * pow2 128 + v n3 * pow2 192 < S.prime); assert_norm (SM.to_mont S.g_y == ...
false
Hacl.Impl.P256.Constants.fst
Hacl.Impl.P256.Constants.make_a_coeff
val make_a_coeff: a:felem -> Stack unit (requires fun h -> live h a) (ensures fun h0 _ h1 -> modifies (loc a) h0 h1 /\ as_nat h1 a < S.prime /\ SM.from_mont (as_nat h1 a) == S.a_coeff)
val make_a_coeff: a:felem -> Stack unit (requires fun h -> live h a) (ensures fun h0 _ h1 -> modifies (loc a) h0 h1 /\ as_nat h1 a < S.prime /\ SM.from_mont (as_nat h1 a) == S.a_coeff)
let make_a_coeff a = // a_coeff = 0xffffffff00000001000000000000000000000000fffffffffffffffffffffffc // a_coeff_mont = 0xfffffffc00000004000000000000000000000003fffffffffffffffffffffffc [@inline_let] let n0 = u64 0xfffffffffffffffc in [@inline_let] let n1 = u64 0x3ffffffff in [@inline_let] let n2 = u64 0...
{ "file_name": "code/ecdsap256/Hacl.Impl.P256.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 67, "start_col": 0, "start_line": 57 }
module Hacl.Impl.P256.Constants 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 module S = Spec.P256 module SM = Hacl.Spec.P256.Montgomery #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val make_prime: n:f...
{ "checked_file": "/", "dependencies": [ "Spec.P256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.P256.Montgomery.fsti.checked", "Hacl.Impl.P256.Bignum.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", ...
[ { "abbrev": true, "full_module": "Hacl.Spec.P256.Montgomery", "short_module": "SM" }, { "abbrev": true, "full_module": "Spec.P256", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.P256.Bignum", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Hacl.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_mont_id", "Spec.P256.PointOps.a_coeff", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "Hacl.Spec.P256.Montgomery.to_mont", "Prims.op_Addition", "Lib.IntTypes.v...
[]
false
true
false
false
false
let make_a_coeff a =
[@@ inline_let ]let n0 = u64 0xfffffffffffffffc in [@@ inline_let ]let n1 = u64 0x3ffffffff in [@@ inline_let ]let n2 = u64 0x0 in [@@ inline_let ]let n3 = u64 0xfffffffc00000004 in assert_norm (v n0 + v n1 * pow2 64 + v n2 * pow2 128 + v n3 * pow2 192 < S.prime); assert_norm (SM.to_mont S.a_coeff == v n0 + v n1 * pow2...
false
Hacl.Impl.P256.Constants.fst
Hacl.Impl.P256.Constants.make_b_coeff
val make_b_coeff: b:felem -> Stack unit (requires fun h -> live h b) (ensures fun h0 _ h1 -> modifies (loc b) h0 h1 /\ as_nat h1 b < S.prime /\ SM.from_mont (as_nat h1 b) == S.b_coeff)
val make_b_coeff: b:felem -> Stack unit (requires fun h -> live h b) (ensures fun h0 _ h1 -> modifies (loc b) h0 h1 /\ as_nat h1 b < S.prime /\ SM.from_mont (as_nat h1 b) == S.b_coeff)
let make_b_coeff b = // b_coeff = 0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b // b_coeff_mont = 0xdc30061d04874834e5a220abf7212ed6acf005cd78843090d89cdf6229c4bddf [@inline_let] let n0 = u64 0xd89cdf6229c4bddf in [@inline_let] let n1 = u64 0xacf005cd78843090 in [@inline_let] let n2 ...
{ "file_name": "code/ecdsap256/Hacl.Impl.P256.Constants.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 87, "start_col": 0, "start_line": 77 }
module Hacl.Impl.P256.Constants 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 module S = Spec.P256 module SM = Hacl.Spec.P256.Montgomery #set-options "--z3rlimit 50 --fuel 0 --ifuel 0" val make_prime: n:f...
{ "checked_file": "/", "dependencies": [ "Spec.P256.fst.checked", "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.P256.Montgomery.fsti.checked", "Hacl.Impl.P256.Bignum.fsti.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", ...
[ { "abbrev": true, "full_module": "Hacl.Spec.P256.Montgomery", "short_module": "SM" }, { "abbrev": true, "full_module": "Spec.P256", "short_module": "S" }, { "abbrev": false, "full_module": "Hacl.Impl.P256.Bignum", "short_module": null }, { "abbrev": false, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Hacl.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_mont_id", "Spec.P256.PointOps.b_coeff", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "Hacl.Spec.P256.Montgomery.to_mont", "Prims.op_Addition", "Lib.IntTypes.v...
[]
false
true
false
false
false
let make_b_coeff b =
[@@ inline_let ]let n0 = u64 0xd89cdf6229c4bddf in [@@ inline_let ]let n1 = u64 0xacf005cd78843090 in [@@ inline_let ]let n2 = u64 0xe5a220abf7212ed6 in [@@ inline_let ]let n3 = u64 0xdc30061d04874834 in assert_norm (v n0 + v n1 * pow2 64 + v n2 * pow2 128 + v n3 * pow2 192 < S.prime); assert_norm (SM.to_mont S.b_coeff...
false
Lib.IntTypes.fst
Lib.IntTypes.cast_mod
val cast_mod: #t:inttype{signed t} -> #l:secrecy_level -> t':inttype{signed t'} -> l':secrecy_level{PUB? l \/ SEC? l'} -> a:int_t t l -> b:int_t t' l'{v b == v a @%. t'}
val cast_mod: #t:inttype{signed t} -> #l:secrecy_level -> t':inttype{signed t'} -> l':secrecy_level{PUB? l \/ SEC? l'} -> a:int_t t l -> b:int_t t' l'{v b == v a @%. t'}
let cast_mod #t #l t' l' a = assert_norm (pow2 7 = 128); assert_norm (pow2 15 = 32768); if bits t' >= bits t then cast t' l' a else begin let m = size (bits t') in mod_mask_lemma a m; let b = conditional_subtract t' (a `logand` mod_mask m) in cast t' l' b end
{ "file_name": "lib/Lib.IntTypes.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 7, "end_line": 1022, "start_col": 0, "start_line": 1011 }
module Lib.IntTypes open FStar.Math.Lemmas #push-options "--max_fuel 0 --max_ifuel 1 --z3rlimit 200" let pow2_2 _ = assert_norm (pow2 2 = 4) let pow2_3 _ = assert_norm (pow2 3 = 8) let pow2_4 _ = assert_norm (pow2 4 = 16) let pow2_127 _ = assert_norm (pow2 127 = 0x80000000000000000000000000000000) let bits_nu...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.UInt8.fsti.checked", "FStar.UInt64.fsti.checked", "FStar.UInt32.fsti.checked", "FStar.UInt16.fsti.checked", "FStar.UInt128.fsti.checked", "FStar.UInt.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Nat...
[ { "abbrev": false, "full_module": "FStar.Math.Lemmas", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Lib", "short_module": null }, { "abbrev": false, "full_module": "Lib", ...
{ "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
t': Lib.IntTypes.inttype{Lib.IntTypes.signed t'} -> l': Lib.IntTypes.secrecy_level{PUB? l \/ SEC? l'} -> a: Lib.IntTypes.int_t t l -> b: Lib.IntTypes.int_t t' l' {Lib.IntTypes.v b == Lib.IntTypes.v a @%. t'}
Prims.Tot
[ "total" ]
[]
[ "Lib.IntTypes.inttype", "Prims.b2t", "Lib.IntTypes.signed", "Lib.IntTypes.secrecy_level", "Prims.l_or", "Lib.IntTypes.uu___is_PUB", "Lib.IntTypes.uu___is_SEC", "Lib.IntTypes.int_t", "Prims.op_GreaterThanOrEqual", "Lib.IntTypes.bits", "Lib.IntTypes.cast", "Prims.bool", "Prims.op_Equality", ...
[]
false
false
false
false
false
let cast_mod #t #l t' l' a =
assert_norm (pow2 7 = 128); assert_norm (pow2 15 = 32768); if bits t' >= bits t then cast t' l' a else let m = size (bits t') in mod_mask_lemma a m; let b = conditional_subtract t' (a `logand` (mod_mask m)) in cast t' l' b
false
Lib.Sequence.fst
Lib.Sequence.index_map_blocks_multi
val index_map_blocks_multi: #a:Type0 -> bs:size_pos -> max:pos -> n:pos{n <= max} -> inp:seq a{length inp == max * bs} -> f:(i:nat{i < max} -> lseq a bs -> lseq a bs) -> i:nat{i < n * bs} -> Lemma ( div_mul_lt bs i n; let j = i / bs in let block: lseq a bs = Seq.slice inp (j * bs) ((j + 1)...
val index_map_blocks_multi: #a:Type0 -> bs:size_pos -> max:pos -> n:pos{n <= max} -> inp:seq a{length inp == max * bs} -> f:(i:nat{i < max} -> lseq a bs -> lseq a bs) -> i:nat{i < n * bs} -> Lemma ( div_mul_lt bs i n; let j = i / bs in let block: lseq a bs = Seq.slice inp (j * bs) ((j + 1)...
let rec index_map_blocks_multi #a bs max n inp f i = let map_blocks_a = map_blocks_a a bs max in let map_blocks_f = map_blocks_f #a bs max inp f in let acc0 = Seq.empty #a in let s1 = repeat_gen n map_blocks_a map_blocks_f acc0 in unfold_repeat_gen n map_blocks_a map_blocks_f acc0 (n-1); let s = repeat_gen ...
{ "file_name": "lib/Lib.Sequence.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 287, "start_col": 0, "start_line": 271 }
module Lib.Sequence open FStar.Mul open Lib.IntTypes open Lib.LoopCombinators #set-options "--z3rlimit 30 --max_fuel 0 --max_ifuel 0 --using_facts_from '-* +Prims +FStar.Pervasives +FStar.Math.Lemmas +FStar.Seq +Lib.IntTypes +Lib.Sequence'" let index #a #len s n = Seq.index s n let create #a len init = Seq.create #...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.LoopCombinators.fsti.checked", "Lib.IntTypes.fsti.checked", "FStar.Seq.Properties.fsti.checked", "FStar.Seq.fst.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked"...
[ { "abbrev": false, "full_module": "Lib.LoopCombinators", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 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
bs: Lib.IntTypes.size_pos -> max: Prims.pos -> n: Prims.pos{n <= max} -> inp: Lib.Sequence.seq a {Lib.Sequence.length inp == max * bs} -> f: (i: Prims.nat{i < max} -> _: Lib.Sequence.lseq a bs -> Lib.Sequence.lseq a bs) -> i: Prims.nat{i < n * bs} -> FStar.Pervasives.Lemma (ensures ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Lib.IntTypes.size_pos", "Prims.pos", "Prims.b2t", "Prims.op_LessThanOrEqual", "Lib.Sequence.seq", "Prims.eq2", "Prims.int", "Lib.Sequence.length", "FStar.Mul.op_Star", "Prims.nat", "Prims.op_LessThan", "Lib.Sequence.lseq", "Prims.op_Subtraction", "Lib.Sequence.index_map_blocks_multi", "...
[ "recursion" ]
false
false
true
false
false
let rec index_map_blocks_multi #a bs max n inp f i =
let map_blocks_a = map_blocks_a a bs max in let map_blocks_f = map_blocks_f #a bs max inp f in let acc0 = Seq.empty #a in let s1 = repeat_gen n map_blocks_a map_blocks_f acc0 in unfold_repeat_gen n map_blocks_a map_blocks_f acc0 (n - 1); let s = repeat_gen (n - 1) map_blocks_a map_blocks_f acc0 in let s' = f (n - 1) (S...
false
Hacl.HMAC_DRBG.fsti
Hacl.HMAC_DRBG.supported_alg
val supported_alg : Type0
let supported_alg = S.supported_alg
{ "file_name": "code/drbg/Hacl.HMAC_DRBG.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 35, "end_line": 57, "start_col": 0, "start_line": 57 }
module Hacl.HMAC_DRBG open FStar.HyperStack.ST open Spec.Hash.Definitions open Lib.IntTypes open Lib.Buffer module HS = FStar.HyperStack module B = LowStar.Buffer module LSeq = Lib.Sequence module HMAC = Hacl.HMAC module S = Spec.HMAC_DRBG /// HMAC-DRBG /// /// See 10.1.2 and B.2 of /// https://nvlpubs.nist.gov/n...
{ "checked_file": "/", "dependencies": [ "Spec.HMAC_DRBG.fsti.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.HMAC.fsti.checked", "FStar.Pe...
[ { "abbrev": true, "full_module": "Spec.HMAC_DRBG", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.HMAC", "short_module": "HMAC" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "LowSt...
{ "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
Type0
Prims.Tot
[ "total" ]
[]
[ "Spec.HMAC_DRBG.supported_alg" ]
[]
false
false
false
true
true
let supported_alg =
S.supported_alg
false
OWGCounter.fst
OWGCounter.incr
val incr: r: ref int -> r_mine: ghost_ref int -> r_other: ghost_ref int -> b: G.erased bool -> l: lock (lock_inv r (if b then r_mine else r_other) (if b then r_other else r_mine)) -> n_ghost: G.erased int -> Prims.unit -> SteelT unit (ghost_pts_to r_mine half_perm n_ghost) (fun...
val incr: r: ref int -> r_mine: ghost_ref int -> r_other: ghost_ref int -> b: G.erased bool -> l: lock (lock_inv r (if b then r_mine else r_other) (if b then r_other else r_mine)) -> n_ghost: G.erased int -> Prims.unit -> SteelT unit (ghost_pts_to r_mine half_perm n_ghost) (fun...
let incr (r:ref int) (r_mine r_other:ghost_ref int) (b:G.erased bool) (l:lock (lock_inv r (if b then r_mine else r_other) (if b then r_other else r_mine))) (n_ghost:G.erased int) () : SteelT unit (ghost_pts_to r_mine half_perm n_ghost) (fun _ -> ghost_pts_to r_mine half_perm (n...
{ "file_name": "share/steel/examples/steel/OWGCounter.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 35, "end_line": 233, "start_col": 0, "start_line": 217 }
(* Copyright 2019 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.SpinLock.fsti.checked", "Steel.Reference.fsti.checked", "Steel.Memory.fsti.checked", "Steel.FractionalPermission.fst.checked", "Steel.Effect.Atomic.fsti.checked", "Steel.Effect.fsti.checked", "prims.fst.checked", "FStar.Tactics.Effect.f...
[ { "abbrev": true, "full_module": "Steel.Effect.Atomic", "short_module": "A" }, { "abbrev": true, "full_module": "Steel.FractionalPermission", "short_module": "P" }, { "abbrev": true, "full_module": "Steel.Reference", "short_module": "R" }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Steel.Reference.ref Prims.int -> r_mine: Steel.Reference.ghost_ref Prims.int -> r_other: Steel.Reference.ghost_ref Prims.int -> b: FStar.Ghost.erased Prims.bool -> l: Steel.SpinLock.lock (OWGCounter.lock_inv r (match FStar.Ghost.reveal b with | true -> r_mine ...
Steel.Effect.SteelT
[]
[]
[ "Steel.Reference.ref", "Prims.int", "Steel.Reference.ghost_ref", "FStar.Ghost.erased", "Prims.bool", "Steel.SpinLock.lock", "OWGCounter.lock_inv", "FStar.Ghost.reveal", "Prims.unit", "OWGCounter.og_release", "Steel.Effect.Atomic.intro_exists", "FStar.Pervasives.Native.tuple2", "FStar.Ghost.h...
[]
false
true
false
false
false
let incr (r: ref int) (r_mine: ghost_ref int) (r_other: ghost_ref int) (b: G.erased bool) (l: lock (lock_inv r (if b then r_mine else r_other) (if b then r_other else r_mine))) (n_ghost: G.erased int) () : SteelT unit (ghost_pts_to r_mine half_perm n_ghost) (fun...
og_acquire r r_mine r_other b l; let w:G.erased (int & int) = witness_exists () in incr_ctr r; incr_ghost_contrib #n_ghost #(fst w) r_mine; rewrite_slprop (pts_to r full_perm ((fst w + snd w) + 1)) (pts_to r full_perm ((fst w + 1) + snd w)) (fun _ -> ()); intro_exists (fst w + 1, snd w) (lock_inv_pred r r_mine r_ot...
false
Hacl.HMAC_DRBG.fsti
Hacl.HMAC_DRBG.disjoint_st
val disjoint_st : st: Hacl.HMAC_DRBG.state a -> b: Lib.Buffer.buffer Lib.IntTypes.uint8 -> Type0
let disjoint_st (#a:supported_alg) (st:state a) (b:buffer uint8) = B.loc_disjoint (footprint st) (B.loc_buffer b)
{ "file_name": "code/drbg/Hacl.HMAC_DRBG.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 48, "end_line": 100, "start_col": 0, "start_line": 99 }
module Hacl.HMAC_DRBG open FStar.HyperStack.ST open Spec.Hash.Definitions open Lib.IntTypes open Lib.Buffer module HS = FStar.HyperStack module B = LowStar.Buffer module LSeq = Lib.Sequence module HMAC = Hacl.HMAC module S = Spec.HMAC_DRBG /// HMAC-DRBG /// /// See 10.1.2 and B.2 of /// https://nvlpubs.nist.gov/n...
{ "checked_file": "/", "dependencies": [ "Spec.HMAC_DRBG.fsti.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.HMAC.fsti.checked", "FStar.Pe...
[ { "abbrev": true, "full_module": "Spec.HMAC_DRBG", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.HMAC", "short_module": "HMAC" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "LowSt...
{ "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
st: Hacl.HMAC_DRBG.state a -> b: Lib.Buffer.buffer Lib.IntTypes.uint8 -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.HMAC_DRBG.supported_alg", "Hacl.HMAC_DRBG.state", "Lib.Buffer.buffer", "Lib.IntTypes.uint8", "LowStar.Monotonic.Buffer.loc_disjoint", "Hacl.HMAC_DRBG.footprint", "LowStar.Monotonic.Buffer.loc_buffer", "LowStar.Buffer.trivial_preorder" ]
[]
false
false
false
false
true
let disjoint_st (#a: supported_alg) (st: state a) (b: buffer uint8) =
B.loc_disjoint (footprint st) (B.loc_buffer b)
false
Hacl.HMAC_DRBG.fsti
Hacl.HMAC_DRBG.reseed_interval
val reseed_interval:n: size_t{v n == S.reseed_interval}
val reseed_interval:n: size_t{v n == S.reseed_interval}
let reseed_interval: n:size_t{v n == S.reseed_interval} = assert_norm (S.reseed_interval < pow2 32); normalize_term (mk_int S.reseed_interval)
{ "file_name": "code/drbg/Hacl.HMAC_DRBG.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 43, "end_line": 61, "start_col": 0, "start_line": 59 }
module Hacl.HMAC_DRBG open FStar.HyperStack.ST open Spec.Hash.Definitions open Lib.IntTypes open Lib.Buffer module HS = FStar.HyperStack module B = LowStar.Buffer module LSeq = Lib.Sequence module HMAC = Hacl.HMAC module S = Spec.HMAC_DRBG /// HMAC-DRBG /// /// See 10.1.2 and B.2 of /// https://nvlpubs.nist.gov/n...
{ "checked_file": "/", "dependencies": [ "Spec.HMAC_DRBG.fsti.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.HMAC.fsti.checked", "FStar.Pe...
[ { "abbrev": true, "full_module": "Spec.HMAC_DRBG", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.HMAC", "short_module": "HMAC" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "LowSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB {Lib.IntTypes.v n == Spec.HMAC_DRBG.reseed_interval}
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.normalize_term", "Lib.IntTypes.int_t", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Prims.eq2", "Prims.int", "Prims.l_or", "Lib.IntTypes.range", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.v", "Spec.HMAC_DRBG.reseed_interval", "Lib.IntTypes.mk_int", "Prims.unit", "FS...
[]
false
false
false
false
false
let reseed_interval:n: size_t{v n == S.reseed_interval} =
assert_norm (S.reseed_interval < pow2 32); normalize_term (mk_int S.reseed_interval)
false
Hacl.HMAC_DRBG.fsti
Hacl.HMAC_DRBG.max_length
val max_length:n: size_t{v n == S.max_length}
val max_length:n: size_t{v n == S.max_length}
let max_length: n:size_t{v n == S.max_length} = assert_norm (S.max_length < pow2 32); normalize_term (mk_int S.max_length)
{ "file_name": "code/drbg/Hacl.HMAC_DRBG.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 69, "start_col": 0, "start_line": 67 }
module Hacl.HMAC_DRBG open FStar.HyperStack.ST open Spec.Hash.Definitions open Lib.IntTypes open Lib.Buffer module HS = FStar.HyperStack module B = LowStar.Buffer module LSeq = Lib.Sequence module HMAC = Hacl.HMAC module S = Spec.HMAC_DRBG /// HMAC-DRBG /// /// See 10.1.2 and B.2 of /// https://nvlpubs.nist.gov/n...
{ "checked_file": "/", "dependencies": [ "Spec.HMAC_DRBG.fsti.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.HMAC.fsti.checked", "FStar.Pe...
[ { "abbrev": true, "full_module": "Spec.HMAC_DRBG", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.HMAC", "short_module": "HMAC" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "LowSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB {Lib.IntTypes.v n == Spec.HMAC_DRBG.max_length}
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.normalize_term", "Lib.IntTypes.int_t", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Prims.eq2", "Prims.int", "Prims.l_or", "Lib.IntTypes.range", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.v", "Spec.HMAC_DRBG.max_length", "Lib.IntTypes.mk_int", "Prims.unit", "FStar.P...
[]
false
false
false
false
false
let max_length:n: size_t{v n == S.max_length} =
assert_norm (S.max_length < pow2 32); normalize_term (mk_int S.max_length)
false
Hacl.HMAC_DRBG.fsti
Hacl.HMAC_DRBG.max_personalization_string_length
val max_personalization_string_length:n: size_t{v n == S.max_personalization_string_length}
val max_personalization_string_length:n: size_t{v n == S.max_personalization_string_length}
let max_personalization_string_length: n:size_t{v n == S.max_personalization_string_length} = assert_norm (S.max_personalization_string_length < pow2 32); normalize_term (mk_int S.max_personalization_string_length)
{ "file_name": "code/drbg/Hacl.HMAC_DRBG.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 61, "end_line": 73, "start_col": 0, "start_line": 71 }
module Hacl.HMAC_DRBG open FStar.HyperStack.ST open Spec.Hash.Definitions open Lib.IntTypes open Lib.Buffer module HS = FStar.HyperStack module B = LowStar.Buffer module LSeq = Lib.Sequence module HMAC = Hacl.HMAC module S = Spec.HMAC_DRBG /// HMAC-DRBG /// /// See 10.1.2 and B.2 of /// https://nvlpubs.nist.gov/n...
{ "checked_file": "/", "dependencies": [ "Spec.HMAC_DRBG.fsti.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.HMAC.fsti.checked", "FStar.Pe...
[ { "abbrev": true, "full_module": "Spec.HMAC_DRBG", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.HMAC", "short_module": "HMAC" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "LowSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB {Lib.IntTypes.v n == Spec.HMAC_DRBG.max_personalization_string_length}
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.normalize_term", "Lib.IntTypes.int_t", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Prims.eq2", "Prims.int", "Prims.l_or", "Lib.IntTypes.range", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.v", "Spec.HMAC_DRBG.max_personalization_string_length", "Lib.IntTypes.mk_int", "...
[]
false
false
false
false
false
let max_personalization_string_length:n: size_t{v n == S.max_personalization_string_length} =
assert_norm (S.max_personalization_string_length < pow2 32); normalize_term (mk_int S.max_personalization_string_length)
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.inspect_universe
val inspect_universe (u:universe) : Tot named_universe_view
val inspect_universe (u:universe) : Tot named_universe_view
let inspect_universe (u:universe) : named_universe_view = let v = R.inspect_universe u in open_universe_view v
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 22, "end_line": 45, "start_col": 0, "start_line": 43 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Util", "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
u474: FStar.Tactics.NamedView.universe -> FStar.Tactics.NamedView.named_universe_view
Prims.Tot
[ "total" ]
[]
[ "FStar.Tactics.NamedView.universe", "FStar.Tactics.NamedView.open_universe_view", "FStar.Stubs.Reflection.V2.Data.universe_view", "Prims.precedes", "FStar.Stubs.Reflection.Types.universe", "FStar.Stubs.Reflection.V2.Builtins.inspect_universe", "FStar.Tactics.NamedView.named_universe_view" ]
[]
false
false
false
true
false
let inspect_universe (u: universe) : named_universe_view =
let v = R.inspect_universe u in open_universe_view v
false
Hacl.HMAC_DRBG.fsti
Hacl.HMAC_DRBG.max_additional_input_length
val max_additional_input_length:n: size_t{v n == S.max_additional_input_length}
val max_additional_input_length:n: size_t{v n == S.max_additional_input_length}
let max_additional_input_length: n:size_t{v n == S.max_additional_input_length} = assert_norm (S.max_additional_input_length < pow2 32); normalize_term (mk_int S.max_additional_input_length)
{ "file_name": "code/drbg/Hacl.HMAC_DRBG.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 55, "end_line": 77, "start_col": 0, "start_line": 75 }
module Hacl.HMAC_DRBG open FStar.HyperStack.ST open Spec.Hash.Definitions open Lib.IntTypes open Lib.Buffer module HS = FStar.HyperStack module B = LowStar.Buffer module LSeq = Lib.Sequence module HMAC = Hacl.HMAC module S = Spec.HMAC_DRBG /// HMAC-DRBG /// /// See 10.1.2 and B.2 of /// https://nvlpubs.nist.gov/n...
{ "checked_file": "/", "dependencies": [ "Spec.HMAC_DRBG.fsti.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.HMAC.fsti.checked", "FStar.Pe...
[ { "abbrev": true, "full_module": "Spec.HMAC_DRBG", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.HMAC", "short_module": "HMAC" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "LowSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB {Lib.IntTypes.v n == Spec.HMAC_DRBG.max_additional_input_length}
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.normalize_term", "Lib.IntTypes.int_t", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Prims.eq2", "Prims.int", "Prims.l_or", "Lib.IntTypes.range", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.v", "Spec.HMAC_DRBG.max_additional_input_length", "Lib.IntTypes.mk_int", "Prims....
[]
false
false
false
false
false
let max_additional_input_length:n: size_t{v n == S.max_additional_input_length} =
assert_norm (S.max_additional_input_length < pow2 32); normalize_term (mk_int S.max_additional_input_length)
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.pack_universe
val pack_universe (uv:named_universe_view) : Tot universe
val pack_universe (uv:named_universe_view) : Tot universe
let pack_universe (uv:named_universe_view) : universe = let uv = close_universe_view uv in R.pack_universe uv
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 20, "end_line": 59, "start_col": 0, "start_line": 57 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Util", "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
uv: FStar.Tactics.NamedView.named_universe_view -> FStar.Tactics.NamedView.universe
Prims.Tot
[ "total" ]
[]
[ "FStar.Tactics.NamedView.named_universe_view", "FStar.Stubs.Reflection.V2.Builtins.pack_universe", "FStar.Stubs.Reflection.V2.Data.universe_view", "FStar.Tactics.NamedView.close_universe_view", "FStar.Tactics.NamedView.universe" ]
[]
false
false
false
true
false
let pack_universe (uv: named_universe_view) : universe =
let uv = close_universe_view uv in R.pack_universe uv
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.__binding_to_binder
val __binding_to_binder (bnd: binding) (b: R.binder) : binder
val __binding_to_binder (bnd: binding) (b: R.binder) : binder
let __binding_to_binder (bnd : binding) (b : R.binder) : binder = { ppname = bnd.ppname; uniq = bnd.uniq; sort = bnd.sort; qual = (inspect_binder b).qual; attrs = (inspect_binder b).attrs; }
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 3, "end_line": 69, "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", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
bnd: FStar.Tactics.NamedView.binding -> b: FStar.Stubs.Reflection.Types.binder -> FStar.Tactics.NamedView.binder
Prims.Tot
[ "total" ]
[]
[ "FStar.Tactics.NamedView.binding", "FStar.Stubs.Reflection.Types.binder", "FStar.Tactics.NamedView.Mkbinder", "FStar.Stubs.Reflection.V2.Data.__proj__Mkbinding__item__uniq", "FStar.Stubs.Reflection.V2.Data.__proj__Mkbinding__item__ppname", "FStar.Stubs.Reflection.V2.Data.__proj__Mkbinding__item__sort", ...
[]
false
false
false
true
false
let __binding_to_binder (bnd: binding) (b: R.binder) : binder =
{ ppname = bnd.ppname; uniq = bnd.uniq; sort = bnd.sort; qual = (inspect_binder b).qual; attrs = (inspect_binder b).attrs }
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.r_binder_to_namedv
val r_binder_to_namedv (b: binder) : R.namedv
val r_binder_to_namedv (b: binder) : R.namedv
let r_binder_to_namedv (b : binder) : R.namedv = pack_namedv { uniq = b.uniq; sort = seal b.sort; ppname = b.ppname; }
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 3, "end_line": 77, "start_col": 0, "start_line": 72 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
b: FStar.Tactics.NamedView.binder -> FStar.Stubs.Reflection.Types.namedv
Prims.Tot
[ "total" ]
[]
[ "FStar.Tactics.NamedView.binder", "FStar.Stubs.Reflection.V2.Builtins.pack_namedv", "FStar.Stubs.Reflection.V2.Data.Mknamedv_view", "FStar.Tactics.NamedView.__proj__Mkbinder__item__uniq", "FStar.Sealed.seal", "FStar.Stubs.Reflection.Types.typ", "FStar.Tactics.NamedView.__proj__Mkbinder__item__sort", "...
[]
false
false
false
true
false
let r_binder_to_namedv (b: binder) : R.namedv =
pack_namedv ({ uniq = b.uniq; sort = seal b.sort; ppname = b.ppname })
false
Hacl.HMAC_DRBG.fsti
Hacl.HMAC_DRBG.free_st
val free_st : a: Hacl.HMAC_DRBG.supported_alg -> Type0
let free_st (a: supported_alg) = s:state a -> ST unit (requires fun h0 -> freeable s /\ invariant s h0) (ensures fun h0 _ h1 -> B.(modifies (footprint s) h0 h1))
{ "file_name": "code/drbg/Hacl.HMAC_DRBG.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 37, "end_line": 253, "start_col": 0, "start_line": 247 }
module Hacl.HMAC_DRBG open FStar.HyperStack.ST open Spec.Hash.Definitions open Lib.IntTypes open Lib.Buffer module HS = FStar.HyperStack module B = LowStar.Buffer module LSeq = Lib.Sequence module HMAC = Hacl.HMAC module S = Spec.HMAC_DRBG /// HMAC-DRBG /// /// See 10.1.2 and B.2 of /// https://nvlpubs.nist.gov/n...
{ "checked_file": "/", "dependencies": [ "Spec.HMAC_DRBG.fsti.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.HMAC.fsti.checked", "FStar.Pe...
[ { "abbrev": true, "full_module": "Spec.HMAC_DRBG", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.HMAC", "short_module": "HMAC" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "LowSt...
{ "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
a: Hacl.HMAC_DRBG.supported_alg -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.HMAC_DRBG.supported_alg", "Hacl.HMAC_DRBG.state", "Prims.unit", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "Hacl.HMAC_DRBG.freeable", "Hacl.HMAC_DRBG.invariant", "LowStar.Monotonic.Buffer.modifies", "Hacl.HMAC_DRBG.footprint" ]
[]
false
false
false
true
true
let free_st (a: supported_alg) =
s: state a -> ST unit (requires fun h0 -> freeable s /\ invariant s h0) (ensures fun h0 _ h1 -> let open B in modifies (footprint s) h0 h1)
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.open_binder
val open_binder (b: R.binder) : Tac binder
val open_binder (b: R.binder) : Tac binder
let open_binder (b : R.binder) : Tac binder = let n = fresh () in let bv = inspect_binder b in { uniq = n; sort = bv.sort; ppname = bv.ppname; qual = bv.qual; attrs = bv.attrs; }
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 3, "end_line": 89, "start_col": 0, "start_line": 80 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
b: FStar.Stubs.Reflection.Types.binder -> FStar.Tactics.Effect.Tac FStar.Tactics.NamedView.binder
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Stubs.Reflection.Types.binder", "FStar.Tactics.NamedView.Mkbinder", "FStar.Stubs.Reflection.V2.Data.__proj__Mkbinder_view__item__ppname", "FStar.Stubs.Reflection.V2.Data.__proj__Mkbinder_view__item__sort", "FStar.Stubs.Reflection.V2.Data.__proj__Mkbinder_view__item__qual", "FStar.Stubs.Reflection.V...
[]
false
true
false
false
false
let open_binder (b: R.binder) : Tac binder =
let n = fresh () in let bv = inspect_binder b in { uniq = n; sort = bv.sort; ppname = bv.ppname; qual = bv.qual; attrs = bv.attrs }
false
Hacl.HMAC_DRBG.fsti
Hacl.HMAC_DRBG.max_output_length
val max_output_length:n: size_t{v n == S.max_output_length}
val max_output_length:n: size_t{v n == S.max_output_length}
let max_output_length: n:size_t{v n == S.max_output_length} = assert_norm (S.max_output_length < pow2 32); normalize_term (mk_int S.max_output_length)
{ "file_name": "code/drbg/Hacl.HMAC_DRBG.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 45, "end_line": 65, "start_col": 0, "start_line": 63 }
module Hacl.HMAC_DRBG open FStar.HyperStack.ST open Spec.Hash.Definitions open Lib.IntTypes open Lib.Buffer module HS = FStar.HyperStack module B = LowStar.Buffer module LSeq = Lib.Sequence module HMAC = Hacl.HMAC module S = Spec.HMAC_DRBG /// HMAC-DRBG /// /// See 10.1.2 and B.2 of /// https://nvlpubs.nist.gov/n...
{ "checked_file": "/", "dependencies": [ "Spec.HMAC_DRBG.fsti.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.HMAC.fsti.checked", "FStar.Pe...
[ { "abbrev": true, "full_module": "Spec.HMAC_DRBG", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.HMAC", "short_module": "HMAC" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "LowSt...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
n: Lib.IntTypes.int_t Lib.IntTypes.U32 Lib.IntTypes.PUB {Lib.IntTypes.v n == Spec.HMAC_DRBG.max_output_length}
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.normalize_term", "Lib.IntTypes.int_t", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Prims.eq2", "Prims.int", "Prims.l_or", "Lib.IntTypes.range", "Prims.b2t", "Prims.op_GreaterThan", "Lib.IntTypes.v", "Spec.HMAC_DRBG.max_output_length", "Lib.IntTypes.mk_int", "Prims.unit", "...
[]
false
false
false
false
false
let max_output_length:n: size_t{v n == S.max_output_length} =
assert_norm (S.max_output_length < pow2 32); normalize_term (mk_int S.max_output_length)
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.open_term_with
val open_term_with (b: R.binder) (nb: binder) (t: term) : Tac term
val open_term_with (b: R.binder) (nb: binder) (t: term) : Tac term
let open_term_with (b : R.binder) (nb : binder) (t : term) : Tac term = let nv : R.namedv = pack_namedv { uniq = nb.uniq; sort = seal nb.sort; ppname = nb.ppname; } in let t' = subst_term [DB 0 nv] t in t'
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 4, "end_line": 109, "start_col": 0, "start_line": 101 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
b: FStar.Stubs.Reflection.Types.binder -> nb: FStar.Tactics.NamedView.binder -> t: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac FStar.Tactics.NamedView.term
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Stubs.Reflection.Types.binder", "FStar.Tactics.NamedView.binder", "FStar.Tactics.NamedView.term", "FStar.Stubs.Reflection.Types.term", "FStar.Stubs.Reflection.V2.Builtins.subst_term", "Prims.Cons", "FStar.Stubs.Syntax.Syntax.subst_elt", "FStar.Stubs.Syntax.Syntax.DB", "Prims.Nil", "FStar.St...
[]
false
true
false
false
false
let open_term_with (b: R.binder) (nb: binder) (t: term) : Tac term =
let nv:R.namedv = pack_namedv ({ uniq = nb.uniq; sort = seal nb.sort; ppname = nb.ppname }) in let t' = subst_term [DB 0 nv] t in t'
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.open_universe_view
val open_universe_view (v: RD.universe_view) : named_universe_view
val open_universe_view (v: RD.universe_view) : named_universe_view
let open_universe_view (v:RD.universe_view) : named_universe_view = match v with | R.Uv_Zero -> Uv_Zero | R.Uv_Succ u -> Uv_Succ u | R.Uv_Max us -> Uv_Max us | R.Uv_BVar n -> Uv_BVar n | R.Uv_Name i -> Uv_Name (inspect_ident i) | R.Uv_Unif uvar -> Uv_Unif uvar | R.Uv_Unk -> Uv_Unk
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 22, "end_line": 41, "start_col": 0, "start_line": 33 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
v: FStar.Stubs.Reflection.V2.Data.universe_view -> FStar.Tactics.NamedView.named_universe_view
Prims.Tot
[ "total" ]
[]
[ "FStar.Stubs.Reflection.V2.Data.universe_view", "FStar.Tactics.NamedView.Uv_Zero", "FStar.Stubs.Reflection.Types.universe", "FStar.Tactics.NamedView.Uv_Succ", "FStar.Stubs.Reflection.V2.Data.universes", "FStar.Tactics.NamedView.Uv_Max", "Prims.nat", "FStar.Tactics.NamedView.Uv_BVar", "FStar.Stubs.Re...
[]
false
false
false
true
false
let open_universe_view (v: RD.universe_view) : named_universe_view =
match v with | R.Uv_Zero -> Uv_Zero | R.Uv_Succ u -> Uv_Succ u | R.Uv_Max us -> Uv_Max us | R.Uv_BVar n -> Uv_BVar n | R.Uv_Name i -> Uv_Name (inspect_ident i) | R.Uv_Unif uvar -> Uv_Unif uvar | R.Uv_Unk -> Uv_Unk
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.open_term
val open_term (b: R.binder) (t: term) : Tac (binder & term)
val open_term (b: R.binder) (t: term) : Tac (binder & term)
let open_term (b : R.binder) (t : term) : Tac (binder & term) = let bndr : binder = open_binder b in (bndr, open_term_with b bndr t)
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 33, "end_line": 114, "start_col": 0, "start_line": 112 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
b: FStar.Stubs.Reflection.Types.binder -> t: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac (FStar.Tactics.NamedView.binder * FStar.Tactics.NamedView.term)
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Stubs.Reflection.Types.binder", "FStar.Tactics.NamedView.term", "FStar.Pervasives.Native.Mktuple2", "FStar.Tactics.NamedView.binder", "FStar.Pervasives.Native.tuple2", "FStar.Tactics.NamedView.open_term_with", "FStar.Tactics.NamedView.open_binder" ]
[]
false
true
false
false
false
let open_term (b: R.binder) (t: term) : Tac (binder & term) =
let bndr:binder = open_binder b in (bndr, open_term_with b bndr t)
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.close_binder
val close_binder (b: binder) : R.binder
val close_binder (b: binder) : R.binder
let close_binder (b : binder) : R.binder = pack_binder { sort = b.sort; qual = b.qual; ppname = b.ppname; attrs = b.attrs; }
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 3, "end_line": 98, "start_col": 0, "start_line": 92 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
b: FStar.Tactics.NamedView.binder -> FStar.Stubs.Reflection.Types.binder
Prims.Tot
[ "total" ]
[]
[ "FStar.Tactics.NamedView.binder", "FStar.Stubs.Reflection.V2.Builtins.pack_binder", "FStar.Stubs.Reflection.V2.Data.Mkbinder_view", "FStar.Tactics.NamedView.__proj__Mkbinder__item__sort", "FStar.Tactics.NamedView.__proj__Mkbinder__item__qual", "FStar.Tactics.NamedView.__proj__Mkbinder__item__attrs", "FS...
[]
false
false
false
true
false
let close_binder (b: binder) : R.binder =
pack_binder ({ sort = b.sort; qual = b.qual; ppname = b.ppname; attrs = b.attrs })
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.subst_comp
val subst_comp (s: subst_t) (c: comp) : comp
val subst_comp (s: subst_t) (c: comp) : comp
let subst_comp (s : subst_t) (c : comp) : comp = inspect_comp (R.subst_comp s (pack_comp c))
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 45, "end_line": 117, "start_col": 0, "start_line": 116 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
s: FStar.Stubs.Syntax.Syntax.subst_t -> c: FStar.Tactics.NamedView.comp -> FStar.Tactics.NamedView.comp
Prims.Tot
[ "total" ]
[]
[ "FStar.Stubs.Syntax.Syntax.subst_t", "FStar.Tactics.NamedView.comp", "FStar.Stubs.Reflection.V2.Builtins.inspect_comp", "FStar.Stubs.Reflection.V2.Builtins.subst_comp", "FStar.Stubs.Reflection.V2.Builtins.pack_comp" ]
[]
false
false
false
true
false
let subst_comp (s: subst_t) (c: comp) : comp =
inspect_comp (R.subst_comp s (pack_comp c))
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.open_comp
val open_comp (b: R.binder) (t: comp) : Tac (binder & comp)
val open_comp (b: R.binder) (t: comp) : Tac (binder & comp)
let open_comp (b : R.binder) (t : comp) : Tac (binder & comp) = let n = fresh () in let bv : binder_view = inspect_binder b in let nv : R.namedv = pack_namedv { uniq = n; sort = seal bv.sort; ppname = bv.ppname; } in let t' = subst_comp [DB 0 nv] t in let bndr : binder = { uniq = n; ...
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 12, "end_line": 138, "start_col": 0, "start_line": 120 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
b: FStar.Stubs.Reflection.Types.binder -> t: FStar.Tactics.NamedView.comp -> FStar.Tactics.Effect.Tac (FStar.Tactics.NamedView.binder * FStar.Tactics.NamedView.comp)
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Stubs.Reflection.Types.binder", "FStar.Tactics.NamedView.comp", "FStar.Pervasives.Native.Mktuple2", "FStar.Tactics.NamedView.binder", "FStar.Tactics.NamedView.Mkbinder", "FStar.Stubs.Reflection.V2.Data.__proj__Mkbinder_view__item__ppname", "FStar.Stubs.Reflection.V2.Data.__proj__Mkbinder_view__it...
[]
false
true
false
false
false
let open_comp (b: R.binder) (t: comp) : Tac (binder & comp) =
let n = fresh () in let bv:binder_view = inspect_binder b in let nv:R.namedv = pack_namedv ({ uniq = n; sort = seal bv.sort; ppname = bv.ppname }) in let t' = subst_comp [DB 0 nv] t in let bndr:binder = { uniq = n; sort = bv.sort; ppname = bv.ppname; qual = bv.qual; attrs = bv.attrs } in (bndr, t')
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.close_term
val close_term (b:binder) (t:term) : Tot (R.binder & term)
val close_term (b:binder) (t:term) : Tot (R.binder & term)
let close_term (b:binder) (t:term) : R.binder & term = let nv = r_binder_to_namedv b in let t' = subst_term [NM nv 0] t in let b = pack_binder { sort = b.sort; ppname = b.ppname; qual = b.qual; attrs = b.attrs } in (b, t')
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 9, "end_line": 200, "start_col": 0, "start_line": 196 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Util", "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
b: FStar.Tactics.NamedView.binder -> t: FStar.Tactics.NamedView.term -> FStar.Stubs.Reflection.Types.binder * FStar.Tactics.NamedView.term
Prims.Tot
[ "total" ]
[]
[ "FStar.Tactics.NamedView.binder", "FStar.Tactics.NamedView.term", "FStar.Pervasives.Native.Mktuple2", "FStar.Stubs.Reflection.Types.binder", "FStar.Stubs.Reflection.V2.Builtins.pack_binder", "FStar.Stubs.Reflection.V2.Data.Mkbinder_view", "FStar.Tactics.NamedView.__proj__Mkbinder__item__sort", "FStar....
[]
false
false
false
true
false
let close_term (b: binder) (t: term) : R.binder & term =
let nv = r_binder_to_namedv b in let t' = subst_term [NM nv 0] t in let b = pack_binder ({ sort = b.sort; ppname = b.ppname; qual = b.qual; attrs = b.attrs }) in (b, t')
false
Hacl.HMAC_DRBG.fsti
Hacl.HMAC_DRBG.min_length
val min_length (a: supported_alg) : n: size_t{v n == S.min_length a}
val min_length (a: supported_alg) : n: size_t{v n == S.min_length a}
let min_length (a:supported_alg) : n:size_t{v n == S.min_length a} = assert_norm (S.min_length a < pow2 32); match a with | SHA1 -> normalize_term (mk_int (S.min_length SHA1)) | SHA2_256 | SHA2_384 | SHA2_512 -> normalize_term (mk_int (S.min_length SHA2_256))
{ "file_name": "code/drbg/Hacl.HMAC_DRBG.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 85, "end_line": 86, "start_col": 0, "start_line": 82 }
module Hacl.HMAC_DRBG open FStar.HyperStack.ST open Spec.Hash.Definitions open Lib.IntTypes open Lib.Buffer module HS = FStar.HyperStack module B = LowStar.Buffer module LSeq = Lib.Sequence module HMAC = Hacl.HMAC module S = Spec.HMAC_DRBG /// HMAC-DRBG /// /// See 10.1.2 and B.2 of /// https://nvlpubs.nist.gov/n...
{ "checked_file": "/", "dependencies": [ "Spec.HMAC_DRBG.fsti.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.HMAC.fsti.checked", "FStar.Pe...
[ { "abbrev": true, "full_module": "Spec.HMAC_DRBG", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.HMAC", "short_module": "HMAC" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "LowSt...
{ "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
a: Hacl.HMAC_DRBG.supported_alg -> n: Lib.IntTypes.size_t{Lib.IntTypes.v n == Spec.HMAC_DRBG.min_length a}
Prims.Tot
[ "total" ]
[]
[ "Hacl.HMAC_DRBG.supported_alg", "FStar.Pervasives.normalize_term", "Lib.IntTypes.size_t", "Prims.eq2", "Prims.int", "Lib.IntTypes.v", "Lib.IntTypes.U32", "Lib.IntTypes.PUB", "Spec.HMAC_DRBG.min_length", "Lib.IntTypes.mk_int", "Spec.Hash.Definitions.SHA1", "Spec.Hash.Definitions.SHA2_256", "P...
[]
false
false
false
false
false
let min_length (a: supported_alg) : n: size_t{v n == S.min_length a} =
assert_norm (S.min_length a < pow2 32); match a with | SHA1 -> normalize_term (mk_int (S.min_length SHA1)) | SHA2_256 | SHA2_384 | SHA2_512 -> normalize_term (mk_int (S.min_length SHA2_256))
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.close_comp
val close_comp (b: binder) (t: comp) : R.binder & comp
val close_comp (b: binder) (t: comp) : R.binder & comp
let close_comp (b:binder) (t:comp) : R.binder & comp = let nv = r_binder_to_namedv b in let t' = subst_comp [NM nv 0] t in let b = pack_binder { sort = b.sort; ppname = b.ppname; qual = b.qual; attrs = b.attrs } in (b, t')
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 9, "end_line": 206, "start_col": 0, "start_line": 202 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
b: FStar.Tactics.NamedView.binder -> t: FStar.Tactics.NamedView.comp -> FStar.Stubs.Reflection.Types.binder * FStar.Tactics.NamedView.comp
Prims.Tot
[ "total" ]
[]
[ "FStar.Tactics.NamedView.binder", "FStar.Tactics.NamedView.comp", "FStar.Pervasives.Native.Mktuple2", "FStar.Stubs.Reflection.Types.binder", "FStar.Stubs.Reflection.V2.Builtins.pack_binder", "FStar.Stubs.Reflection.V2.Data.Mkbinder_view", "FStar.Tactics.NamedView.__proj__Mkbinder__item__sort", "FStar....
[]
false
false
false
true
false
let close_comp (b: binder) (t: comp) : R.binder & comp =
let nv = r_binder_to_namedv b in let t' = subst_comp [NM nv 0] t in let b = pack_binder ({ sort = b.sort; ppname = b.ppname; qual = b.qual; attrs = b.attrs }) in (b, t')
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.open_comp_with
val open_comp_with (b: R.binder) (nb: binder) (c: comp) : Tac comp
val open_comp_with (b: R.binder) (nb: binder) (c: comp) : Tac comp
let open_comp_with (b : R.binder) (nb : binder) (c : comp) : Tac comp = let nv : R.namedv = pack_namedv { uniq = nb.uniq; sort = seal nb.sort; ppname = nb.ppname; } in let t' = subst_comp [DB 0 nv] c in t'
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 4, "end_line": 149, "start_col": 0, "start_line": 141 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
b: FStar.Stubs.Reflection.Types.binder -> nb: FStar.Tactics.NamedView.binder -> c: FStar.Tactics.NamedView.comp -> FStar.Tactics.Effect.Tac FStar.Tactics.NamedView.comp
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Stubs.Reflection.Types.binder", "FStar.Tactics.NamedView.binder", "FStar.Tactics.NamedView.comp", "FStar.Tactics.NamedView.subst_comp", "Prims.Cons", "FStar.Stubs.Syntax.Syntax.subst_elt", "FStar.Stubs.Syntax.Syntax.DB", "Prims.Nil", "FStar.Stubs.Reflection.Types.namedv", "FStar.Stubs.Refle...
[]
false
true
false
false
false
let open_comp_with (b: R.binder) (nb: binder) (c: comp) : Tac comp =
let nv:R.namedv = pack_namedv ({ uniq = nb.uniq; sort = seal nb.sort; ppname = nb.ppname }) in let t' = subst_comp [DB 0 nv] c in t'
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.r_subst_binder_sort
val r_subst_binder_sort (s: subst_t) (b: R.binder) : R.binder
val r_subst_binder_sort (s: subst_t) (b: R.binder) : R.binder
let r_subst_binder_sort (s : subst_t) (b : R.binder) : R.binder = let v = inspect_binder b in let v = { v with sort = subst_term s v.sort } in pack_binder v
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 15, "end_line": 229, "start_col": 0, "start_line": 226 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
s: FStar.Stubs.Syntax.Syntax.subst_t -> b: FStar.Stubs.Reflection.Types.binder -> FStar.Stubs.Reflection.Types.binder
Prims.Tot
[ "total" ]
[]
[ "FStar.Stubs.Syntax.Syntax.subst_t", "FStar.Stubs.Reflection.Types.binder", "FStar.Stubs.Reflection.V2.Builtins.pack_binder", "FStar.Stubs.Reflection.V2.Data.binder_view", "FStar.Stubs.Reflection.V2.Data.Mkbinder_view", "FStar.Stubs.Reflection.V2.Builtins.subst_term", "FStar.Stubs.Reflection.V2.Data.__p...
[]
false
false
false
true
false
let r_subst_binder_sort (s: subst_t) (b: R.binder) : R.binder =
let v = inspect_binder b in let v = { v with sort = subst_term s v.sort } in pack_binder v
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.subst_binder_sort
val subst_binder_sort (s: subst_t) (b: binder) : binder
val subst_binder_sort (s: subst_t) (b: binder) : binder
let subst_binder_sort (s : subst_t) (b : binder) : binder = { b with sort = subst_term s b.sort }
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 39, "end_line": 232, "start_col": 0, "start_line": 231 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
s: FStar.Stubs.Syntax.Syntax.subst_t -> b: FStar.Tactics.NamedView.binder -> FStar.Tactics.NamedView.binder
Prims.Tot
[ "total" ]
[]
[ "FStar.Stubs.Syntax.Syntax.subst_t", "FStar.Tactics.NamedView.binder", "FStar.Tactics.NamedView.Mkbinder", "FStar.Tactics.NamedView.__proj__Mkbinder__item__uniq", "FStar.Tactics.NamedView.__proj__Mkbinder__item__ppname", "FStar.Stubs.Reflection.V2.Builtins.subst_term", "FStar.Tactics.NamedView.__proj__M...
[]
false
false
false
true
false
let subst_binder_sort (s: subst_t) (b: binder) : binder =
{ b with sort = subst_term s b.sort }
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.open_term_n
val open_term_n (bs: list R.binder) (t: term) : Tac (list binder & term)
val open_term_n (bs: list R.binder) (t: term) : Tac (list binder & term)
let open_term_n (bs : list R.binder) (t : term) : Tac (list binder & term) = let nbs, s = __open_term_n_aux bs [] [] in List.Tot.rev nbs, subst_term s t
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 34, "end_line": 248, "start_col": 0, "start_line": 246 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
bs: Prims.list FStar.Stubs.Reflection.Types.binder -> t: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac (Prims.list FStar.Tactics.NamedView.binder * FStar.Tactics.NamedView.term)
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.list", "FStar.Stubs.Reflection.Types.binder", "FStar.Tactics.NamedView.term", "FStar.Tactics.NamedView.binder", "FStar.Stubs.Syntax.Syntax.subst_t", "FStar.Pervasives.Native.Mktuple2", "FStar.List.Tot.Base.rev", "FStar.Stubs.Reflection.V2.Builtins.subst_term", "FStar.Pervasives.Native.tuple2"...
[]
false
true
false
false
false
let open_term_n (bs: list R.binder) (t: term) : Tac (list binder & term) =
let nbs, s = __open_term_n_aux bs [] [] in List.Tot.rev nbs, subst_term s t
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.close_universe_view
val close_universe_view (v: named_universe_view) : R.universe_view
val close_universe_view (v: named_universe_view) : R.universe_view
let close_universe_view (v:named_universe_view) : R.universe_view = match v with | Uv_Zero -> R.Uv_Zero | Uv_Succ u -> R.Uv_Succ u | Uv_Max us -> R.Uv_Max us | Uv_BVar n -> R.Uv_BVar n | Uv_Name i -> R.Uv_Name (pack_ident i) | Uv_Unif uvar -> R.Uv_Unif uvar | Uv_Unk -> R.Uv_Unk
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 22, "end_line": 55, "start_col": 0, "start_line": 47 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
v: FStar.Tactics.NamedView.named_universe_view -> FStar.Stubs.Reflection.V2.Data.universe_view
Prims.Tot
[ "total" ]
[]
[ "FStar.Tactics.NamedView.named_universe_view", "FStar.Stubs.Reflection.V2.Data.Uv_Zero", "FStar.Tactics.NamedView.universe", "FStar.Stubs.Reflection.V2.Data.Uv_Succ", "FStar.Stubs.Reflection.V2.Data.universes", "FStar.Stubs.Reflection.V2.Data.Uv_Max", "Prims.nat", "FStar.Stubs.Reflection.V2.Data.Uv_BV...
[]
false
false
false
true
false
let close_universe_view (v: named_universe_view) : R.universe_view =
match v with | Uv_Zero -> R.Uv_Zero | Uv_Succ u -> R.Uv_Succ u | Uv_Max us -> R.Uv_Max us | Uv_BVar n -> R.Uv_BVar n | Uv_Name i -> R.Uv_Name (pack_ident i) | Uv_Unif uvar -> R.Uv_Unif uvar | Uv_Unk -> R.Uv_Unk
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.open_term_n_with
val open_term_n_with (bs: list R.binder) (nbs: list binder) (t: term) : Tac term
val open_term_n_with (bs: list R.binder) (nbs: list binder) (t: term) : Tac term
let rec open_term_n_with (bs : list R.binder) (nbs : list binder) (t : term) : Tac term = match bs, nbs with | [], [] -> t | b::bs, nb::nbs -> let t' = open_term_n_with bs nbs t in let t'' = open_term_with b nb t' in t'' | _ -> raise LengthMismatch
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 29, "end_line": 258, "start_col": 0, "start_line": 251 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
bs: Prims.list FStar.Stubs.Reflection.Types.binder -> nbs: Prims.list FStar.Tactics.NamedView.binder -> t: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac FStar.Tactics.NamedView.term
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.list", "FStar.Stubs.Reflection.Types.binder", "FStar.Tactics.NamedView.binder", "FStar.Tactics.NamedView.term", "FStar.Pervasives.Native.Mktuple2", "FStar.Tactics.NamedView.open_term_with", "FStar.Tactics.NamedView.open_term_n_with", "FStar.Pervasives.Native.tuple2", "FStar.Tactics.Effect.rai...
[ "recursion" ]
false
true
false
false
false
let rec open_term_n_with (bs: list R.binder) (nbs: list binder) (t: term) : Tac term =
match bs, nbs with | [], [] -> t | b :: bs, nb :: nbs -> let t' = open_term_n_with bs nbs t in let t'' = open_term_with b nb t' in t'' | _ -> raise LengthMismatch
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.open_branch
val open_branch (b: R.branch) : Tac branch
val open_branch (b: R.branch) : Tac branch
let open_branch (b : R.branch) : Tac branch = let (pat, t) = b in let pat, s = open_pat pat [] in let t' = subst_term s t in (pat, t')
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 11, "end_line": 331, "start_col": 0, "start_line": 327 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
b: FStar.Stubs.Reflection.V2.Data.branch -> FStar.Tactics.Effect.Tac FStar.Tactics.NamedView.branch
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Stubs.Reflection.V2.Data.branch", "FStar.Stubs.Reflection.V2.Data.pattern", "FStar.Stubs.Reflection.Types.term", "FStar.Tactics.NamedView.pattern", "FStar.Stubs.Syntax.Syntax.subst_t", "FStar.Pervasives.Native.Mktuple2", "FStar.Tactics.NamedView.term", "FStar.Stubs.Reflection.V2.Builtins.subst_...
[]
false
true
false
false
false
let open_branch (b: R.branch) : Tac branch =
let pat, t = b in let pat, s = open_pat pat [] in let t' = subst_term s t in (pat, t')
false
Hacl.HMAC_DRBG.fsti
Hacl.HMAC_DRBG.instantiate_st
val instantiate_st : a: Hacl.HMAC_DRBG.supported_alg -> Type0
let instantiate_st (a:supported_alg) = st:state a -> entropy_input_len:size_t -> entropy_input:lbuffer uint8 entropy_input_len -> nonce_len:size_t -> nonce:lbuffer uint8 nonce_len -> personalization_string_len:size_t -> personalization_string:lbuffer uint8 personalization_string_len -> Stack unit (r...
{ "file_name": "code/drbg/Hacl.HMAC_DRBG.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 41, "end_line": 154, "start_col": 0, "start_line": 131 }
module Hacl.HMAC_DRBG open FStar.HyperStack.ST open Spec.Hash.Definitions open Lib.IntTypes open Lib.Buffer module HS = FStar.HyperStack module B = LowStar.Buffer module LSeq = Lib.Sequence module HMAC = Hacl.HMAC module S = Spec.HMAC_DRBG /// HMAC-DRBG /// /// See 10.1.2 and B.2 of /// https://nvlpubs.nist.gov/n...
{ "checked_file": "/", "dependencies": [ "Spec.HMAC_DRBG.fsti.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.HMAC.fsti.checked", "FStar.Pe...
[ { "abbrev": true, "full_module": "Spec.HMAC_DRBG", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.HMAC", "short_module": "HMAC" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "LowSt...
{ "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
a: Hacl.HMAC_DRBG.supported_alg -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.HMAC_DRBG.supported_alg", "Hacl.HMAC_DRBG.state", "Lib.IntTypes.size_t", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "Prims.unit", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "Lib.Buffer.live", "Lib.Buffer.MUT", "Hacl.HMAC_DRBG.invariant", "Prims.b2t", "Prims.op_LessThanOrEqual", ...
[]
false
false
false
true
true
let instantiate_st (a: supported_alg) =
st: state a -> entropy_input_len: size_t -> entropy_input: lbuffer uint8 entropy_input_len -> nonce_len: size_t -> nonce: lbuffer uint8 nonce_len -> personalization_string_len: size_t -> personalization_string: lbuffer uint8 personalization_string_len -> Stack unit (requires ...
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.open_term_simple
val open_term_simple (b: R.simple_binder) (t: term) : Tac (simple_binder & term)
val open_term_simple (b: R.simple_binder) (t: term) : Tac (simple_binder & term)
let open_term_simple (b : R.simple_binder) (t : term) : Tac (simple_binder & term) = let n = fresh () in let bv : binder_view = inspect_binder b in let nv : R.namedv = pack_namedv { uniq = n; sort = seal bv.sort; ppname = bv.ppname; } in let t' = subst_term [DB 0 nv] t in let bndr : binder...
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 12, "end_line": 172, "start_col": 0, "start_line": 154 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
b: FStar.Stubs.Reflection.V2.Data.simple_binder -> t: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac (FStar.Tactics.NamedView.simple_binder * FStar.Tactics.NamedView.term)
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Stubs.Reflection.V2.Data.simple_binder", "FStar.Tactics.NamedView.term", "FStar.Pervasives.Native.Mktuple2", "FStar.Tactics.NamedView.simple_binder", "FStar.Tactics.NamedView.binder", "FStar.Tactics.NamedView.Mkbinder", "FStar.Stubs.Reflection.V2.Data.__proj__Mkbinder_view__item__ppname", "FSta...
[]
false
true
false
false
false
let open_term_simple (b: R.simple_binder) (t: term) : Tac (simple_binder & term) =
let n = fresh () in let bv:binder_view = inspect_binder b in let nv:R.namedv = pack_namedv ({ uniq = n; sort = seal bv.sort; ppname = bv.ppname }) in let t' = subst_term [DB 0 nv] t in let bndr:binder = { uniq = n; sort = bv.sort; ppname = bv.ppname; qual = bv.qual; attrs = bv.attrs } in (bndr, t')
false
Hacl.HMAC_DRBG.fsti
Hacl.HMAC_DRBG.generate_st
val generate_st : a: Hacl.HMAC_DRBG.supported_alg -> Type0
let generate_st (a:supported_alg) = output:buffer uint8 -> st:state a -> n:size_t -> additional_input_len:size_t -> additional_input:lbuffer uint8 additional_input_len -> Stack bool (requires fun h0 -> live h0 output /\ invariant st h0 /\ live h0 additional_input /\ disjoint_st st output /\ disj...
{ "file_name": "code/drbg/Hacl.HMAC_DRBG.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 41, "end_line": 231, "start_col": 0, "start_line": 208 }
module Hacl.HMAC_DRBG open FStar.HyperStack.ST open Spec.Hash.Definitions open Lib.IntTypes open Lib.Buffer module HS = FStar.HyperStack module B = LowStar.Buffer module LSeq = Lib.Sequence module HMAC = Hacl.HMAC module S = Spec.HMAC_DRBG /// HMAC-DRBG /// /// See 10.1.2 and B.2 of /// https://nvlpubs.nist.gov/n...
{ "checked_file": "/", "dependencies": [ "Spec.HMAC_DRBG.fsti.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.HMAC.fsti.checked", "FStar.Pe...
[ { "abbrev": true, "full_module": "Spec.HMAC_DRBG", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.HMAC", "short_module": "HMAC" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "LowSt...
{ "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
a: Hacl.HMAC_DRBG.supported_alg -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.HMAC_DRBG.supported_alg", "Lib.Buffer.buffer", "Lib.IntTypes.uint8", "Hacl.HMAC_DRBG.state", "Lib.IntTypes.size_t", "Lib.Buffer.lbuffer", "Prims.bool", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "Lib.Buffer.live", "Lib.Buffer.MUT", "Hacl.HMAC_DRBG.invariant", "Hacl.HMAC_DRBG.disj...
[]
false
false
false
true
true
let generate_st (a: supported_alg) =
output: buffer uint8 -> st: state a -> n: size_t -> additional_input_len: size_t -> additional_input: lbuffer uint8 additional_input_len -> Stack bool (requires fun h0 -> live h0 output /\ invariant st h0 /\ live h0 additional_input /\ disjoint_st st output /\ di...
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.__open_term_n_aux
val __open_term_n_aux (bs: list R.binder) (nbs: list binder) (s: subst_t) : Tac (list binder & subst_t)
val __open_term_n_aux (bs: list R.binder) (nbs: list binder) (s: subst_t) : Tac (list binder & subst_t)
let rec __open_term_n_aux (bs : list R.binder) (nbs : list binder) (s : subst_t) : Tac (list binder & subst_t) = match bs with | [] -> nbs, s | b::bs -> let b = r_subst_binder_sort s b in let b = open_binder b in let nv = r_binder_to_namedv b in __open_term_n_aux bs (b::nbs) (DB 0 nv :: shift_subs...
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 62, "end_line": 243, "start_col": 0, "start_line": 236 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
bs: Prims.list FStar.Stubs.Reflection.Types.binder -> nbs: Prims.list FStar.Tactics.NamedView.binder -> s: FStar.Stubs.Syntax.Syntax.subst_t -> FStar.Tactics.Effect.Tac (Prims.list FStar.Tactics.NamedView.binder * FStar.Stubs.Syntax.Syntax.subst_t)
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.list", "FStar.Stubs.Reflection.Types.binder", "FStar.Tactics.NamedView.binder", "FStar.Stubs.Syntax.Syntax.subst_t", "FStar.Pervasives.Native.Mktuple2", "FStar.Pervasives.Native.tuple2", "FStar.Tactics.NamedView.__open_term_n_aux", "Prims.Cons", "FStar.Stubs.Syntax.Syntax.subst_elt", "FStar...
[ "recursion" ]
false
true
false
false
false
let rec __open_term_n_aux (bs: list R.binder) (nbs: list binder) (s: subst_t) : Tac (list binder & subst_t) =
match bs with | [] -> nbs, s | b :: bs -> let b = r_subst_binder_sort s b in let b = open_binder b in let nv = r_binder_to_namedv b in __open_term_n_aux bs (b :: nbs) (DB 0 nv :: shift_subst 1 s)
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.close_branch
val close_branch (b: branch) : Tot R.branch
val close_branch (b: branch) : Tot R.branch
let close_branch (b : branch) : Tot R.branch = let (pat, t) = b in let pat, s = close_pat pat [] in let t' = subst_term s t in (pat, t')
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 11, "end_line": 371, "start_col": 0, "start_line": 367 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
b: FStar.Tactics.NamedView.branch -> FStar.Stubs.Reflection.V2.Data.branch
Prims.Tot
[ "total" ]
[]
[ "FStar.Tactics.NamedView.branch", "FStar.Tactics.NamedView.pattern", "FStar.Tactics.NamedView.term", "FStar.Stubs.Reflection.V2.Data.pattern", "FStar.Stubs.Syntax.Syntax.subst_t", "FStar.Pervasives.Native.Mktuple2", "FStar.Stubs.Reflection.Types.term", "FStar.Stubs.Reflection.V2.Builtins.subst_term", ...
[]
false
false
false
true
false
let close_branch (b: branch) : Tot R.branch =
let pat, t = b in let pat, s = close_pat pat [] in let t' = subst_term s t in (pat, t')
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.open_comp_simple
val open_comp_simple (b: R.simple_binder) (t: comp) : Tac (simple_binder & comp)
val open_comp_simple (b: R.simple_binder) (t: comp) : Tac (simple_binder & comp)
let open_comp_simple (b : R.simple_binder) (t : comp) : Tac (simple_binder & comp) = let n = fresh () in let bv : binder_view = inspect_binder b in let nv : R.namedv = pack_namedv { uniq = n; sort = seal bv.sort; ppname = bv.ppname; } in let t' = subst_comp [DB 0 nv] t in let bndr : binder...
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 12, "end_line": 193, "start_col": 0, "start_line": 175 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
b: FStar.Stubs.Reflection.V2.Data.simple_binder -> t: FStar.Tactics.NamedView.comp -> FStar.Tactics.Effect.Tac (FStar.Tactics.NamedView.simple_binder * FStar.Tactics.NamedView.comp)
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Stubs.Reflection.V2.Data.simple_binder", "FStar.Tactics.NamedView.comp", "FStar.Pervasives.Native.Mktuple2", "FStar.Tactics.NamedView.simple_binder", "FStar.Tactics.NamedView.binder", "FStar.Tactics.NamedView.Mkbinder", "FStar.Stubs.Reflection.V2.Data.__proj__Mkbinder_view__item__ppname", "FSta...
[]
false
true
false
false
false
let open_comp_simple (b: R.simple_binder) (t: comp) : Tac (simple_binder & comp) =
let n = fresh () in let bv:binder_view = inspect_binder b in let nv:R.namedv = pack_namedv ({ uniq = n; sort = seal bv.sort; ppname = bv.ppname }) in let t' = subst_comp [DB 0 nv] t in let bndr:binder = { uniq = n; sort = bv.sort; ppname = bv.ppname; qual = bv.qual; attrs = bv.attrs } in (bndr, t')
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.inspect
val inspect (t:term) : Tac named_term_view
val inspect (t:term) : Tac named_term_view
let inspect (t:term) : Tac named_term_view = let t = compress t in let tv = inspect_ln t in open_view tv
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 14, "end_line": 513, "start_col": 0, "start_line": 510 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Util", "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
t: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac FStar.Tactics.NamedView.named_term_view
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Tactics.NamedView.term", "FStar.Tactics.NamedView.open_view", "FStar.Tactics.NamedView.named_term_view", "FStar.Stubs.Reflection.V2.Data.term_view", "Prims.precedes", "FStar.Stubs.Reflection.Types.term", "FStar.Stubs.Reflection.V2.Builtins.inspect_ln", "FStar.Stubs.Tactics.V2.Builtins.compress"...
[]
false
true
false
false
false
let inspect (t: term) : Tac named_term_view =
let t = compress t in let tv = inspect_ln t in open_view tv
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.close_term_n
val close_term_n (bs: list binder) (t: term) : list R.binder & term
val close_term_n (bs: list binder) (t: term) : list R.binder & term
let close_term_n (bs : list binder) (t : term) : list R.binder & term = let rec aux (bs : list binder) (cbs : list R.binder) (s : subst_t) : list R.binder & subst_t = match bs with | [] -> cbs, s | b::bs -> let b = subst_binder_sort s b in let nv = r_binder_to_namedv b in let b = close_b...
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 34, "end_line": 272, "start_col": 0, "start_line": 261 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
bs: Prims.list FStar.Tactics.NamedView.binder -> t: FStar.Tactics.NamedView.term -> Prims.list FStar.Stubs.Reflection.Types.binder * FStar.Tactics.NamedView.term
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "FStar.Tactics.NamedView.binder", "FStar.Tactics.NamedView.term", "FStar.Stubs.Reflection.Types.binder", "FStar.Stubs.Syntax.Syntax.subst_t", "FStar.Pervasives.Native.Mktuple2", "FStar.List.Tot.Base.rev", "FStar.Stubs.Reflection.V2.Builtins.subst_term", "FStar.Pervasives.Native.tuple2"...
[]
false
false
false
true
false
let close_term_n (bs: list binder) (t: term) : list R.binder & term =
let rec aux (bs: list binder) (cbs: list R.binder) (s: subst_t) : list R.binder & subst_t = match bs with | [] -> cbs, s | b :: bs -> let b = subst_binder_sort s b in let nv = r_binder_to_namedv b in let b = close_binder b in aux bs (b :: cbs) (NM nv 0 :: shift_subst 1 s) in let cbs, s = aux bs []...
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.open_univ_s
val open_univ_s (us: list R.univ_name) : Tac (list univ_name & subst_t)
val open_univ_s (us: list R.univ_name) : Tac (list univ_name & subst_t)
let open_univ_s (us : list R.univ_name) : Tac (list univ_name & subst_t) = let n = List.Tot.length us in let s = mapi (fun i u -> UN (n-1-i) (R.pack_universe (R.Uv_Name u))) us in Util.map (fun i -> inspect_ident i) us, s
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 43, "end_line": 524, "start_col": 0, "start_line": 521 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
us: Prims.list FStar.Stubs.Reflection.Types.univ_name -> FStar.Tactics.Effect.Tac (Prims.list FStar.Tactics.NamedView.univ_name * FStar.Stubs.Syntax.Syntax.subst_t)
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.list", "FStar.Stubs.Reflection.Types.univ_name", "FStar.Pervasives.Native.Mktuple2", "FStar.Tactics.NamedView.univ_name", "FStar.Stubs.Syntax.Syntax.subst_t", "FStar.Pervasives.Native.tuple2", "FStar.Tactics.Util.map", "FStar.Stubs.Reflection.Types.ident", "FStar.Stubs.Reflection.V2.Data.iden...
[]
false
true
false
false
false
let open_univ_s (us: list R.univ_name) : Tac (list univ_name & subst_t) =
let n = List.Tot.length us in let s = mapi (fun i u -> UN (n - 1 - i) (R.pack_universe (R.Uv_Name u))) us in Util.map (fun i -> inspect_ident i) us, s
false
Hacl.HMAC_DRBG.fsti
Hacl.HMAC_DRBG.reseed_st
val reseed_st : a: Hacl.HMAC_DRBG.supported_alg -> Type0
let reseed_st (a:supported_alg) = st:state a -> entropy_input_len:size_t -> entropy_input:lbuffer uint8 entropy_input_len -> additional_input_len:size_t -> additional_input:lbuffer uint8 additional_input_len -> Stack unit (requires fun h0 -> invariant st h0 /\ live h0 entropy_input /\ live h0 additi...
{ "file_name": "code/drbg/Hacl.HMAC_DRBG.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 35, "end_line": 192, "start_col": 0, "start_line": 172 }
module Hacl.HMAC_DRBG open FStar.HyperStack.ST open Spec.Hash.Definitions open Lib.IntTypes open Lib.Buffer module HS = FStar.HyperStack module B = LowStar.Buffer module LSeq = Lib.Sequence module HMAC = Hacl.HMAC module S = Spec.HMAC_DRBG /// HMAC-DRBG /// /// See 10.1.2 and B.2 of /// https://nvlpubs.nist.gov/n...
{ "checked_file": "/", "dependencies": [ "Spec.HMAC_DRBG.fsti.checked", "Spec.Hash.Definitions.fst.checked", "prims.fst.checked", "LowStar.Buffer.fst.checked", "Lib.Sequence.fsti.checked", "Lib.IntTypes.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.HMAC.fsti.checked", "FStar.Pe...
[ { "abbrev": true, "full_module": "Spec.HMAC_DRBG", "short_module": "S" }, { "abbrev": true, "full_module": "Hacl.HMAC", "short_module": "HMAC" }, { "abbrev": true, "full_module": "Lib.Sequence", "short_module": "LSeq" }, { "abbrev": true, "full_module": "LowSt...
{ "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
a: Hacl.HMAC_DRBG.supported_alg -> Type0
Prims.Tot
[ "total" ]
[]
[ "Hacl.HMAC_DRBG.supported_alg", "Hacl.HMAC_DRBG.state", "Lib.IntTypes.size_t", "Lib.Buffer.lbuffer", "Lib.IntTypes.uint8", "Prims.unit", "FStar.Monotonic.HyperStack.mem", "Prims.l_and", "Hacl.HMAC_DRBG.invariant", "Lib.Buffer.live", "Lib.Buffer.MUT", "Hacl.HMAC_DRBG.disjoint_st", "Prims.b2t"...
[]
false
false
false
true
true
let reseed_st (a: supported_alg) =
st: state a -> entropy_input_len: size_t -> entropy_input: lbuffer uint8 entropy_input_len -> additional_input_len: size_t -> additional_input: lbuffer uint8 additional_input_len -> Stack unit (requires fun h0 -> invariant st h0 /\ live h0 entropy_input /\ live h0 addition...
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.pack
val pack (tv:named_term_view) : Tot term
val pack (tv:named_term_view) : Tot term
let pack (tv:named_term_view) : Tot term = let tv = close_view tv in pack_ln tv
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 12, "end_line": 518, "start_col": 0, "start_line": 516 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "short_module": null }, { "abbrev": false, "full_module": "FStar.Tactics.Util", "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
tv: FStar.Tactics.NamedView.named_term_view -> FStar.Tactics.NamedView.term
Prims.Tot
[ "total" ]
[]
[ "FStar.Tactics.NamedView.named_term_view", "FStar.Stubs.Reflection.V2.Builtins.pack_ln", "FStar.Stubs.Reflection.V2.Data.term_view", "FStar.Tactics.NamedView.close_view", "FStar.Tactics.NamedView.term" ]
[]
false
false
false
true
false
let pack (tv: named_term_view) : Tot term =
let tv = close_view tv in pack_ln tv
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.close_univ_s
val close_univ_s (us: list univ_name) : list R.univ_name & subst_t
val close_univ_s (us: list univ_name) : list R.univ_name & subst_t
let close_univ_s (us : list univ_name) : list R.univ_name & subst_t = let n = List.Tot.length us in let us = List.Tot.map (fun i -> pack_ident i) us in let s = List.Tot.mapi (fun i u -> UD u (n-i-1)) us in us, s
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 7, "end_line": 531, "start_col": 0, "start_line": 527 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
us: Prims.list FStar.Tactics.NamedView.univ_name -> Prims.list FStar.Stubs.Reflection.Types.univ_name * FStar.Stubs.Syntax.Syntax.subst_t
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "FStar.Tactics.NamedView.univ_name", "FStar.Pervasives.Native.Mktuple2", "FStar.Stubs.Reflection.Types.univ_name", "FStar.Stubs.Syntax.Syntax.subst_t", "FStar.Stubs.Syntax.Syntax.subst_elt", "FStar.List.Tot.Base.mapi", "FStar.Stubs.Reflection.Types.ident", "Prims.int", "FStar.Stubs.S...
[]
false
false
false
true
false
let close_univ_s (us: list univ_name) : list R.univ_name & subst_t =
let n = List.Tot.length us in let us = List.Tot.map (fun i -> pack_ident i) us in let s = List.Tot.mapi (fun i u -> UD u (n - i - 1)) us in us, s
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.close_term_simple
val close_term_simple (b: simple_binder) (t: term) : R.simple_binder & term
val close_term_simple (b: simple_binder) (t: term) : R.simple_binder & term
let close_term_simple (b:simple_binder) (t:term) : R.simple_binder & term = let nv = r_binder_to_namedv b in let t' = subst_term [NM nv 0] t in let bv : binder_view = { sort = b.sort; ppname = b.ppname; qual = b.qual; attrs = b.attrs } in let b = pack_binder bv in inspect_pack_binder bv; (b, t')
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 9, "end_line": 215, "start_col": 0, "start_line": 209 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
b: FStar.Tactics.NamedView.simple_binder -> t: FStar.Tactics.NamedView.term -> FStar.Stubs.Reflection.V2.Data.simple_binder * FStar.Tactics.NamedView.term
Prims.Tot
[ "total" ]
[]
[ "FStar.Tactics.NamedView.simple_binder", "FStar.Tactics.NamedView.term", "FStar.Pervasives.Native.Mktuple2", "FStar.Stubs.Reflection.V2.Data.simple_binder", "Prims.unit", "FStar.Stubs.Reflection.V2.Builtins.inspect_pack_binder", "FStar.Stubs.Reflection.Types.binder", "FStar.Stubs.Reflection.V2.Builtin...
[]
false
false
false
true
false
let close_term_simple (b: simple_binder) (t: term) : R.simple_binder & term =
let nv = r_binder_to_namedv b in let t' = subst_term [NM nv 0] t in let bv:binder_view = { sort = b.sort; ppname = b.ppname; qual = b.qual; attrs = b.attrs } in let b = pack_binder bv in inspect_pack_binder bv; (b, t')
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.close_comp_simple
val close_comp_simple (b: simple_binder) (t: comp) : R.simple_binder & comp
val close_comp_simple (b: simple_binder) (t: comp) : R.simple_binder & comp
let close_comp_simple (b:simple_binder) (t:comp) : R.simple_binder & comp = let nv = r_binder_to_namedv b in let t' = subst_comp [NM nv 0] t in let bv : binder_view = { sort = b.sort; ppname = b.ppname; qual = b.qual; attrs = b.attrs } in let b = pack_binder bv in inspect_pack_binder bv; (b, t')
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 9, "end_line": 223, "start_col": 0, "start_line": 217 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
b: FStar.Tactics.NamedView.simple_binder -> t: FStar.Tactics.NamedView.comp -> FStar.Stubs.Reflection.V2.Data.simple_binder * FStar.Tactics.NamedView.comp
Prims.Tot
[ "total" ]
[]
[ "FStar.Tactics.NamedView.simple_binder", "FStar.Tactics.NamedView.comp", "FStar.Pervasives.Native.Mktuple2", "FStar.Stubs.Reflection.V2.Data.simple_binder", "Prims.unit", "FStar.Stubs.Reflection.V2.Builtins.inspect_pack_binder", "FStar.Stubs.Reflection.Types.binder", "FStar.Stubs.Reflection.V2.Builtin...
[]
false
false
false
true
false
let close_comp_simple (b: simple_binder) (t: comp) : R.simple_binder & comp =
let nv = r_binder_to_namedv b in let t' = subst_comp [NM nv 0] t in let bv:binder_view = { sort = b.sort; ppname = b.ppname; qual = b.qual; attrs = b.attrs } in let b = pack_binder bv in inspect_pack_binder bv; (b, t')
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.subst_r_binders
val subst_r_binders (s: subst_t) (bs: list R.binder) : list R.binder
val subst_r_binders (s: subst_t) (bs: list R.binder) : list R.binder
let subst_r_binders (s:subst_t) (bs : list R.binder) : list R.binder = List.Tot.mapi (fun i b -> r_subst_binder_sort (shift_subst i s) b) bs
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 71, "end_line": 551, "start_col": 0, "start_line": 550 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
s: FStar.Stubs.Syntax.Syntax.subst_t -> bs: Prims.list FStar.Stubs.Reflection.Types.binder -> Prims.list FStar.Stubs.Reflection.Types.binder
Prims.Tot
[ "total" ]
[]
[ "FStar.Stubs.Syntax.Syntax.subst_t", "Prims.list", "FStar.Stubs.Reflection.Types.binder", "FStar.List.Tot.Base.mapi", "Prims.int", "FStar.Tactics.NamedView.r_subst_binder_sort", "FStar.Reflection.V2.Derived.shift_subst" ]
[]
false
false
false
true
false
let subst_r_binders (s: subst_t) (bs: list R.binder) : list R.binder =
List.Tot.mapi (fun i b -> r_subst_binder_sort (shift_subst i s) b) bs
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.close_lb
val close_lb (lb: letbinding) : R.letbinding
val close_lb (lb: letbinding) : R.letbinding
let close_lb (lb : letbinding) : R.letbinding = let {lb_fv; lb_us; lb_typ; lb_def} = lb in let lb_us, s = close_univ_s lb_us in let lb_typ = subst_term s lb_typ in let lb_def = subst_term s lb_def in pack_lb { lb_fv; lb_us; lb_typ; lb_def }
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 42, "end_line": 547, "start_col": 0, "start_line": 542 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
lb: FStar.Tactics.NamedView.letbinding -> FStar.Stubs.Reflection.Types.letbinding
Prims.Tot
[ "total" ]
[]
[ "FStar.Tactics.NamedView.letbinding", "FStar.Stubs.Reflection.Types.fv", "Prims.list", "FStar.Tactics.NamedView.univ_name", "FStar.Stubs.Reflection.Types.typ", "FStar.Tactics.NamedView.term", "FStar.Stubs.Reflection.Types.univ_name", "FStar.Stubs.Syntax.Syntax.subst_t", "FStar.Stubs.Reflection.V2.Bu...
[]
false
false
false
true
false
let close_lb (lb: letbinding) : R.letbinding =
let { lb_fv = lb_fv ; lb_us = lb_us ; lb_typ = lb_typ ; lb_def = lb_def } = lb in let lb_us, s = close_univ_s lb_us in let lb_typ = subst_term s lb_typ in let lb_def = subst_term s lb_def in pack_lb ({ lb_fv = lb_fv; lb_us = lb_us; lb_typ = lb_typ; lb_def = lb_def })
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.open_lb
val open_lb (lb: R.letbinding) : Tac letbinding
val open_lb (lb: R.letbinding) : Tac letbinding
let open_lb (lb : R.letbinding) : Tac letbinding = let {lb_fv; lb_us; lb_typ; lb_def} = inspect_lb lb in let lb_us, s = open_univ_s lb_us in let lb_typ = subst_term s lb_typ in let lb_def = subst_term s lb_def in { lb_fv; lb_us; lb_typ; lb_def }
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 34, "end_line": 539, "start_col": 0, "start_line": 534 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
lb: FStar.Stubs.Reflection.Types.letbinding -> FStar.Tactics.Effect.Tac FStar.Tactics.NamedView.letbinding
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Stubs.Reflection.Types.letbinding", "FStar.Stubs.Reflection.Types.fv", "Prims.list", "FStar.Stubs.Reflection.Types.univ_name", "FStar.Stubs.Reflection.Types.typ", "FStar.Stubs.Reflection.Types.term", "FStar.Tactics.NamedView.univ_name", "FStar.Stubs.Syntax.Syntax.subst_t", "FStar.Tactics.Name...
[]
false
true
false
false
false
let open_lb (lb: R.letbinding) : Tac letbinding =
let { lb_fv = lb_fv ; lb_us = lb_us ; lb_typ = lb_typ ; lb_def = lb_def } = inspect_lb lb in let lb_us, s = open_univ_s lb_us in let lb_typ = subst_term s lb_typ in let lb_def = subst_term s lb_def in { lb_fv = lb_fv; lb_us = lb_us; lb_typ = lb_typ; lb_def = lb_def }
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.open_term_n_simple
val open_term_n_simple (bs: list R.simple_binder) (t: term) : Tac (list simple_binder & term)
val open_term_n_simple (bs: list R.simple_binder) (t: term) : Tac (list simple_binder & term)
let rec open_term_n_simple (bs : list R.simple_binder) (t : term) : Tac (list simple_binder & term) = match bs with | [] -> ([], t) | b::bs -> let bs', t' = open_term_n_simple bs t in let b', t'' = open_term_simple b t' in (b'::bs', t'')
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 18, "end_line": 281, "start_col": 0, "start_line": 275 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
bs: Prims.list FStar.Stubs.Reflection.V2.Data.simple_binder -> t: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac (Prims.list FStar.Tactics.NamedView.simple_binder * FStar.Tactics.NamedView.term)
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.list", "FStar.Stubs.Reflection.V2.Data.simple_binder", "FStar.Tactics.NamedView.term", "FStar.Pervasives.Native.Mktuple2", "FStar.Tactics.NamedView.simple_binder", "Prims.Nil", "FStar.Pervasives.Native.tuple2", "Prims.Cons", "FStar.Tactics.NamedView.open_term_simple", "FStar.Tactics.NamedVi...
[ "recursion" ]
false
true
false
false
false
let rec open_term_n_simple (bs: list R.simple_binder) (t: term) : Tac (list simple_binder & term) =
match bs with | [] -> ([], t) | b :: bs -> let bs', t' = open_term_n_simple bs t in let b', t'' = open_term_simple b t' in (b' :: bs', t'')
false
FStar.Tactics.NamedView.fst
FStar.Tactics.NamedView.close_term_n_simple
val close_term_n_simple (bs: list simple_binder) (t: term) : list R.simple_binder & term
val close_term_n_simple (bs: list simple_binder) (t: term) : list R.simple_binder & term
let rec close_term_n_simple (bs : list simple_binder) (t : term) : list R.simple_binder & term = match bs with | [] -> ([], t) | b::bs -> let bs', t' = close_term_n_simple bs t in let b', t'' = close_term_simple b t' in (b'::bs', t'')
{ "file_name": "ulib/FStar.Tactics.NamedView.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 18, "end_line": 290, "start_col": 0, "start_line": 284 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.Util.fst.checked", "FStar.Tactics.Effect.fsti.checked", "FStar.Stubs.Tactics.V2.Builtins.fsti.checked", "FStar.Stubs.Reflection.V2.Data.fsti.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.Native....
[ { "abbrev": true, "full_module": "FStar.Stubs.Reflection.V2.Data", "short_module": "RD" }, { "abbrev": true, "full_module": "FStar.Reflection.V2", "short_module": "R" }, { "abbrev": false, "full_module": "FStar.Stubs.Tactics.V2.Builtins", "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
bs: Prims.list FStar.Tactics.NamedView.simple_binder -> t: FStar.Tactics.NamedView.term -> Prims.list FStar.Stubs.Reflection.V2.Data.simple_binder * FStar.Tactics.NamedView.term
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "FStar.Tactics.NamedView.simple_binder", "FStar.Tactics.NamedView.term", "FStar.Pervasives.Native.Mktuple2", "FStar.Stubs.Reflection.V2.Data.simple_binder", "Prims.Nil", "Prims.Cons", "FStar.Pervasives.Native.tuple2", "FStar.Tactics.NamedView.close_term_simple", "FStar.Tactics.NamedV...
[ "recursion" ]
false
false
false
true
false
let rec close_term_n_simple (bs: list simple_binder) (t: term) : list R.simple_binder & term =
match bs with | [] -> ([], t) | b :: bs -> let bs', t' = close_term_n_simple bs t in let b', t'' = close_term_simple b t' in (b' :: bs', t'')
false