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
Vale.X64.Memory.fsti
Vale.X64.Memory.vuint32
val vuint32 : Vale.Arch.HeapTypes_s.base_typ
let vuint32 = TUInt32
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 28, "end_line": 69, "start_col": 7, "start_line": 69 }
module Vale.X64.Memory include Vale.Arch.HeapTypes_s open FStar.Mul open Vale.Def.Prop_s open Vale.X64.Machine_s open Vale.Arch.HeapImpl module Map16 = Vale.Lib.Map16 unfold let vale_heap = vale_heap unfold let vale_full_heap = vale_full_heap unfold let heaplet_id = heaplet_id [@va_qattr] let get_vale_heap (vhi:vale_...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Map16.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst...
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev": true, "full_module": "FStar.Heap", "short_module": "H" }, { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Vale.Arch.HeapTypes_s.base_typ
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapTypes_s.TUInt32" ]
[]
false
false
false
true
false
let vuint32 =
TUInt32
false
Vale.X64.Memory.fsti
Vale.X64.Memory.scale2
val scale2 (index: int) : int
val scale2 (index: int) : int
let scale2 (index:int) : int = scale_by 2 index
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 54, "end_line": 42, "start_col": 7, "start_line": 42 }
module Vale.X64.Memory include Vale.Arch.HeapTypes_s open FStar.Mul open Vale.Def.Prop_s open Vale.X64.Machine_s open Vale.Arch.HeapImpl module Map16 = Vale.Lib.Map16 unfold let vale_heap = vale_heap unfold let vale_full_heap = vale_full_heap unfold let heaplet_id = heaplet_id [@va_qattr] let get_vale_heap (vhi:vale_...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Map16.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst...
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev": true, "full_module": "FStar.Heap", "short_module": "H" }, { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
index: Prims.int -> Prims.int
Prims.Tot
[ "total" ]
[]
[ "Prims.int", "Vale.X64.Memory.scale_by" ]
[]
false
false
false
true
false
let scale2 (index: int) : int =
scale_by 2 index
false
Vale.X64.Memory.fsti
Vale.X64.Memory.buffer32
val buffer32 : Type0
let buffer32 = buffer vuint32
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 75, "start_col": 0, "start_line": 75 }
module Vale.X64.Memory include Vale.Arch.HeapTypes_s open FStar.Mul open Vale.Def.Prop_s open Vale.X64.Machine_s open Vale.Arch.HeapImpl module Map16 = Vale.Lib.Map16 unfold let vale_heap = vale_heap unfold let vale_full_heap = vale_full_heap unfold let heaplet_id = heaplet_id [@va_qattr] let get_vale_heap (vhi:vale_...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Map16.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst...
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev": true, "full_module": "FStar.Heap", "short_module": "H" }, { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Memory.buffer", "Vale.X64.Memory.vuint32" ]
[]
false
false
false
true
true
let buffer32 =
buffer vuint32
false
Vale.X64.Memory.fsti
Vale.X64.Memory.vuint64
val vuint64 : Vale.Arch.HeapTypes_s.base_typ
let vuint64 = TUInt64
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 28, "end_line": 70, "start_col": 7, "start_line": 70 }
module Vale.X64.Memory include Vale.Arch.HeapTypes_s open FStar.Mul open Vale.Def.Prop_s open Vale.X64.Machine_s open Vale.Arch.HeapImpl module Map16 = Vale.Lib.Map16 unfold let vale_heap = vale_heap unfold let vale_full_heap = vale_full_heap unfold let heaplet_id = heaplet_id [@va_qattr] let get_vale_heap (vhi:vale_...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Map16.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst...
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev": true, "full_module": "FStar.Heap", "short_module": "H" }, { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Vale.Arch.HeapTypes_s.base_typ
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapTypes_s.TUInt64" ]
[]
false
false
false
true
false
let vuint64 =
TUInt64
false
Vale.X64.Memory.fsti
Vale.X64.Memory.vuint128
val vuint128 : Vale.Arch.HeapTypes_s.base_typ
let vuint128 = TUInt128
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 30, "end_line": 71, "start_col": 7, "start_line": 71 }
module Vale.X64.Memory include Vale.Arch.HeapTypes_s open FStar.Mul open Vale.Def.Prop_s open Vale.X64.Machine_s open Vale.Arch.HeapImpl module Map16 = Vale.Lib.Map16 unfold let vale_heap = vale_heap unfold let vale_full_heap = vale_full_heap unfold let heaplet_id = heaplet_id [@va_qattr] let get_vale_heap (vhi:vale_...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Map16.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst...
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev": true, "full_module": "FStar.Heap", "short_module": "H" }, { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Vale.Arch.HeapTypes_s.base_typ
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapTypes_s.TUInt128" ]
[]
false
false
false
true
false
let vuint128 =
TUInt128
false
Vale.X64.Memory.fsti
Vale.X64.Memory.buffer8
val buffer8 : Type0
let buffer8 = buffer vuint8
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 27, "end_line": 73, "start_col": 0, "start_line": 73 }
module Vale.X64.Memory include Vale.Arch.HeapTypes_s open FStar.Mul open Vale.Def.Prop_s open Vale.X64.Machine_s open Vale.Arch.HeapImpl module Map16 = Vale.Lib.Map16 unfold let vale_heap = vale_heap unfold let vale_full_heap = vale_full_heap unfold let heaplet_id = heaplet_id [@va_qattr] let get_vale_heap (vhi:vale_...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Map16.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst...
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev": true, "full_module": "FStar.Heap", "short_module": "H" }, { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Memory.buffer", "Vale.X64.Memory.vuint8" ]
[]
false
false
false
true
true
let buffer8 =
buffer vuint8
false
Vale.X64.Memory.fsti
Vale.X64.Memory.buffer64
val buffer64 : Type0
let buffer64 = buffer vuint64
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 76, "start_col": 0, "start_line": 76 }
module Vale.X64.Memory include Vale.Arch.HeapTypes_s open FStar.Mul open Vale.Def.Prop_s open Vale.X64.Machine_s open Vale.Arch.HeapImpl module Map16 = Vale.Lib.Map16 unfold let vale_heap = vale_heap unfold let vale_full_heap = vale_full_heap unfold let heaplet_id = heaplet_id [@va_qattr] let get_vale_heap (vhi:vale_...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Map16.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst...
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev": true, "full_module": "FStar.Heap", "short_module": "H" }, { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Memory.buffer", "Vale.X64.Memory.vuint64" ]
[]
false
false
false
true
true
let buffer64 =
buffer vuint64
false
Vale.X64.Memory.fsti
Vale.X64.Memory.buffer16
val buffer16 : Type0
let buffer16 = buffer vuint16
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 74, "start_col": 0, "start_line": 74 }
module Vale.X64.Memory include Vale.Arch.HeapTypes_s open FStar.Mul open Vale.Def.Prop_s open Vale.X64.Machine_s open Vale.Arch.HeapImpl module Map16 = Vale.Lib.Map16 unfold let vale_heap = vale_heap unfold let vale_full_heap = vale_full_heap unfold let heaplet_id = heaplet_id [@va_qattr] let get_vale_heap (vhi:vale_...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Map16.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst...
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev": true, "full_module": "FStar.Heap", "short_module": "H" }, { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Memory.buffer", "Vale.X64.Memory.vuint16" ]
[]
false
false
false
true
true
let buffer16 =
buffer vuint16
false
Vale.X64.Memory.fsti
Vale.X64.Memory.valid_taint_buf64
val valid_taint_buf64 (b: buffer64) (h: vale_heap) (mt: memtaint) (tn: taint) : GTot prop0
val valid_taint_buf64 (b: buffer64) (h: vale_heap) (mt: memtaint) (tn: taint) : GTot prop0
let valid_taint_buf64 (b:buffer64) (h:vale_heap) (mt:memtaint) (tn:taint) : GTot prop0 = valid_taint_buf b h mt tn
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 27, "end_line": 311, "start_col": 0, "start_line": 310 }
module Vale.X64.Memory include Vale.Arch.HeapTypes_s open FStar.Mul open Vale.Def.Prop_s open Vale.X64.Machine_s open Vale.Arch.HeapImpl module Map16 = Vale.Lib.Map16 unfold let vale_heap = vale_heap unfold let vale_full_heap = vale_full_heap unfold let heaplet_id = heaplet_id [@va_qattr] let get_vale_heap (vhi:vale_...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Map16.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Vale.X64.Memory.buffer64 -> h: Vale.X64.Memory.vale_heap -> mt: Vale.X64.Memory.memtaint -> tn: Vale.Arch.HeapTypes_s.taint -> Prims.GTot Vale.Def.Prop_s.prop0
Prims.GTot
[ "sometrivial" ]
[]
[ "Vale.X64.Memory.buffer64", "Vale.X64.Memory.vale_heap", "Vale.X64.Memory.memtaint", "Vale.Arch.HeapTypes_s.taint", "Vale.X64.Memory.valid_taint_buf", "Vale.X64.Memory.vuint64", "Vale.Def.Prop_s.prop0" ]
[]
false
false
false
false
false
let valid_taint_buf64 (b: buffer64) (h: vale_heap) (mt: memtaint) (tn: taint) : GTot prop0 =
valid_taint_buf b h mt tn
false
Vale.X64.Memory.fsti
Vale.X64.Memory.locs_disjoint
val locs_disjoint (ls: list loc) : prop0
val locs_disjoint (ls: list loc) : prop0
let locs_disjoint (ls:list loc) : prop0 = BigOps.normal (BigOps.pairwise_and' (fun x y -> loc_disjoint x y /\ loc_disjoint y x) ls)
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 91, "end_line": 83, "start_col": 0, "start_line": 82 }
module Vale.X64.Memory include Vale.Arch.HeapTypes_s open FStar.Mul open Vale.Def.Prop_s open Vale.X64.Machine_s open Vale.Arch.HeapImpl module Map16 = Vale.Lib.Map16 unfold let vale_heap = vale_heap unfold let vale_full_heap = vale_full_heap unfold let heaplet_id = heaplet_id [@va_qattr] let get_vale_heap (vhi:vale_...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Map16.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst...
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev": true, "full_module": "FStar.Heap", "short_module": "H" }, { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ls: Prims.list Vale.X64.Memory.loc -> Vale.Def.Prop_s.prop0
Prims.Tot
[ "total" ]
[]
[ "Prims.list", "Vale.X64.Memory.loc", "FStar.BigOps.normal", "FStar.BigOps.pairwise_and'", "Prims.l_and", "Vale.X64.Memory.loc_disjoint", "Vale.Def.Prop_s.prop0" ]
[]
false
false
false
true
false
let locs_disjoint (ls: list loc) : prop0 =
BigOps.normal (BigOps.pairwise_and' (fun x y -> loc_disjoint x y /\ loc_disjoint y x) ls)
false
Vale.X64.Memory.fsti
Vale.X64.Memory.buffer128
val buffer128 : Type0
let buffer128 = buffer vuint128
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 31, "end_line": 77, "start_col": 0, "start_line": 77 }
module Vale.X64.Memory include Vale.Arch.HeapTypes_s open FStar.Mul open Vale.Def.Prop_s open Vale.X64.Machine_s open Vale.Arch.HeapImpl module Map16 = Vale.Lib.Map16 unfold let vale_heap = vale_heap unfold let vale_full_heap = vale_full_heap unfold let heaplet_id = heaplet_id [@va_qattr] let get_vale_heap (vhi:vale_...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Map16.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst...
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev": true, "full_module": "FStar.Heap", "short_module": "H" }, { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
Type0
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Memory.buffer", "Vale.X64.Memory.vuint128" ]
[]
false
false
false
true
true
let buffer128 =
buffer vuint128
false
Vale.X64.Memory.fsti
Vale.X64.Memory.buffer_info_disjoint
val buffer_info_disjoint : bi1: Vale.Arch.HeapImpl.buffer_info -> bi2: Vale.Arch.HeapImpl.buffer_info -> Prims.logical
let buffer_info_disjoint (bi1 bi2:buffer_info) = bi1.bi_typ =!= bi2.bi_typ \/ bi1.bi_heaplet =!= bi2.bi_heaplet ==> loc_disjoint (loc_buffer bi1.bi_buffer) (loc_buffer bi2.bi_buffer)
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 68, "end_line": 374, "start_col": 0, "start_line": 372 }
module Vale.X64.Memory include Vale.Arch.HeapTypes_s open FStar.Mul open Vale.Def.Prop_s open Vale.X64.Machine_s open Vale.Arch.HeapImpl module Map16 = Vale.Lib.Map16 unfold let vale_heap = vale_heap unfold let vale_full_heap = vale_full_heap unfold let heaplet_id = heaplet_id [@va_qattr] let get_vale_heap (vhi:vale_...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Map16.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
bi1: Vale.Arch.HeapImpl.buffer_info -> bi2: Vale.Arch.HeapImpl.buffer_info -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapImpl.buffer_info", "Prims.l_imp", "Prims.l_or", "Prims.l_not", "Prims.eq2", "Vale.Arch.HeapTypes_s.base_typ", "Vale.Arch.HeapImpl.__proj__Mkbuffer_info__item__bi_typ", "Vale.Arch.HeapImpl.heaplet_id", "Vale.Arch.HeapImpl.__proj__Mkbuffer_info__item__bi_heaplet", "Vale.X64.Memory.loc...
[]
false
false
false
true
true
let buffer_info_disjoint (bi1 bi2: buffer_info) =
bi1.bi_typ =!= bi2.bi_typ \/ bi1.bi_heaplet =!= bi2.bi_heaplet ==> loc_disjoint (loc_buffer bi1.bi_buffer) (loc_buffer bi2.bi_buffer)
false
Vale.X64.Memory.fsti
Vale.X64.Memory.valid_layout_buffer
val valid_layout_buffer : b: Vale.X64.Memory.buffer t -> layout: Vale.Arch.HeapImpl.vale_heap_layout -> h: Vale.X64.Memory.vale_heap -> write: Prims.bool -> Prims.logical
let valid_layout_buffer (#t:base_typ) (b:buffer t) (layout:vale_heap_layout) (h:vale_heap) (write:bool) = valid_layout_buffer_id t b layout (get_heaplet_id h) false /\ valid_layout_buffer_id t b layout (get_heaplet_id h) write
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 60, "end_line": 395, "start_col": 0, "start_line": 393 }
module Vale.X64.Memory include Vale.Arch.HeapTypes_s open FStar.Mul open Vale.Def.Prop_s open Vale.X64.Machine_s open Vale.Arch.HeapImpl module Map16 = Vale.Lib.Map16 unfold let vale_heap = vale_heap unfold let vale_full_heap = vale_full_heap unfold let heaplet_id = heaplet_id [@va_qattr] let get_vale_heap (vhi:vale_...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Map16.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Vale.X64.Memory.buffer t -> layout: Vale.Arch.HeapImpl.vale_heap_layout -> h: Vale.X64.Memory.vale_heap -> write: Prims.bool -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Vale.X64.Memory.buffer", "Vale.Arch.HeapImpl.vale_heap_layout", "Vale.X64.Memory.vale_heap", "Prims.bool", "Prims.l_and", "Vale.X64.Memory.valid_layout_buffer_id", "Vale.X64.Memory.get_heaplet_id", "Prims.logical" ]
[]
false
false
false
false
true
let valid_layout_buffer (#t: base_typ) (b: buffer t) (layout: vale_heap_layout) (h: vale_heap) (write: bool) =
valid_layout_buffer_id t b layout (get_heaplet_id h) false /\ valid_layout_buffer_id t b layout (get_heaplet_id h) write
false
Vale.X64.Memory.fsti
Vale.X64.Memory.valid_taint_buf128
val valid_taint_buf128 (b: buffer128) (h: vale_heap) (mt: memtaint) (tn: taint) : GTot prop0
val valid_taint_buf128 (b: buffer128) (h: vale_heap) (mt: memtaint) (tn: taint) : GTot prop0
let valid_taint_buf128 (b:buffer128) (h:vale_heap) (mt:memtaint) (tn:taint) : GTot prop0 = valid_taint_buf b h mt tn
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 27, "end_line": 313, "start_col": 0, "start_line": 312 }
module Vale.X64.Memory include Vale.Arch.HeapTypes_s open FStar.Mul open Vale.Def.Prop_s open Vale.X64.Machine_s open Vale.Arch.HeapImpl module Map16 = Vale.Lib.Map16 unfold let vale_heap = vale_heap unfold let vale_full_heap = vale_full_heap unfold let heaplet_id = heaplet_id [@va_qattr] let get_vale_heap (vhi:vale_...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Map16.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
b: Vale.X64.Memory.buffer128 -> h: Vale.X64.Memory.vale_heap -> mt: Vale.X64.Memory.memtaint -> tn: Vale.Arch.HeapTypes_s.taint -> Prims.GTot Vale.Def.Prop_s.prop0
Prims.GTot
[ "sometrivial" ]
[]
[ "Vale.X64.Memory.buffer128", "Vale.X64.Memory.vale_heap", "Vale.X64.Memory.memtaint", "Vale.Arch.HeapTypes_s.taint", "Vale.X64.Memory.valid_taint_buf", "Vale.X64.Memory.vuint128", "Vale.Def.Prop_s.prop0" ]
[]
false
false
false
false
false
let valid_taint_buf128 (b: buffer128) (h: vale_heap) (mt: memtaint) (tn: taint) : GTot prop0 =
valid_taint_buf b h mt tn
false
Vale.X64.Memory.fsti
Vale.X64.Memory.buffer_info_has_id
val buffer_info_has_id : bs: FStar.Seq.Base.seq Vale.Arch.HeapImpl.buffer_info -> i: Prims.nat -> id: Vale.X64.Memory.heaplet_id -> Prims.logical
let buffer_info_has_id (bs:Seq.seq buffer_info) (i:nat) (id:heaplet_id) = i < Seq.length bs /\ (Seq.index bs i).bi_heaplet == id
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 56, "end_line": 410, "start_col": 0, "start_line": 409 }
module Vale.X64.Memory include Vale.Arch.HeapTypes_s open FStar.Mul open Vale.Def.Prop_s open Vale.X64.Machine_s open Vale.Arch.HeapImpl module Map16 = Vale.Lib.Map16 unfold let vale_heap = vale_heap unfold let vale_full_heap = vale_full_heap unfold let heaplet_id = heaplet_id [@va_qattr] let get_vale_heap (vhi:vale_...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Map16.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
bs: FStar.Seq.Base.seq Vale.Arch.HeapImpl.buffer_info -> i: Prims.nat -> id: Vale.X64.Memory.heaplet_id -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "FStar.Seq.Base.seq", "Vale.Arch.HeapImpl.buffer_info", "Prims.nat", "Vale.X64.Memory.heaplet_id", "Prims.l_and", "Prims.b2t", "Prims.op_LessThan", "FStar.Seq.Base.length", "Prims.eq2", "Vale.Arch.HeapImpl.heaplet_id", "Vale.Arch.HeapImpl.__proj__Mkbuffer_info__item__bi_heaplet", "FStar.Seq.Ba...
[]
false
false
false
true
true
let buffer_info_has_id (bs: Seq.seq buffer_info) (i: nat) (id: heaplet_id) =
i < Seq.length bs /\ (Seq.index bs i).bi_heaplet == id
false
Hacl.Impl.Load56.fst
Hacl.Impl.Load56.lemma_load_32_bytes
val lemma_load_32_bytes (k: lbytes 32) (b0 b1 b2 b3 b4: uint64) : Lemma (requires v b0 == nat_from_bytes_le (Seq.slice k 0 7) /\ v b1 == nat_from_bytes_le (Seq.slice k 7 14) /\ v b2 == nat_from_bytes_le (Seq.slice k 14 21) /\ v b3 == nat_from_bytes_le (Seq.slice k 21 28) /\ v b...
val lemma_load_32_bytes (k: lbytes 32) (b0 b1 b2 b3 b4: uint64) : Lemma (requires v b0 == nat_from_bytes_le (Seq.slice k 0 7) /\ v b1 == nat_from_bytes_le (Seq.slice k 7 14) /\ v b2 == nat_from_bytes_le (Seq.slice k 14 21) /\ v b3 == nat_from_bytes_le (Seq.slice k 21 28) /\ v b...
let lemma_load_32_bytes (k:lbytes 32) (b0 b1 b2 b3 b4:uint64) : Lemma (requires v b0 == nat_from_bytes_le (Seq.slice k 0 7) /\ v b1 == nat_from_bytes_le (Seq.slice k 7 14) /\ v b2 == nat_from_bytes_le (Seq.slice k 14 21) /\ v b3 == nat_from_bytes_le (Seq.slice k 21 28) /\ v b4 == nat_from_bytes_le...
{ "file_name": "code/ed25519/Hacl.Impl.Load56.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 87, "end_line": 212, "start_col": 0, "start_line": 192 }
module Hacl.Impl.Load56 module ST = FStar.HyperStack.ST open FStar.HyperStack.All open FStar.Mul open Lib.IntTypes open Lib.ByteSequence open Lib.Buffer open Lib.ByteBuffer module F56 = Hacl.Impl.BignumQ.Mul module S56 = Hacl.Spec.BignumQ.Definitions #reset-options "--z3rlimit 50 --max_fuel 0 --max_ifuel 0" inline...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Lib.IntTypes.fsti.checked", "Lib.ByteSequence.fsti.checked", "Lib.ByteBuffer.fsti.checked", "Lib.Buffer.fsti.checked", "Hacl.Spec.BignumQ.Definitions.fst.checked", "Hacl.Impl.BignumQ.Mul.fsti.checked", "Hacl.Bignum25519.f...
[ { "abbrev": true, "full_module": "Hacl.Spec.BignumQ.Definitions", "short_module": "S56" }, { "abbrev": true, "full_module": "Hacl.Impl.BignumQ.Mul", "short_module": "F56" }, { "abbrev": false, "full_module": "Lib.ByteBuffer", "short_module": null }, { "abbrev": fa...
{ "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
k: Lib.ByteSequence.lbytes 32 -> b0: Lib.IntTypes.uint64 -> b1: Lib.IntTypes.uint64 -> b2: Lib.IntTypes.uint64 -> b3: Lib.IntTypes.uint64 -> b4: Lib.IntTypes.uint64 -> FStar.Pervasives.Lemma (requires Lib.IntTypes.v b0 == Lib.ByteSequence.nat_from_bytes_le (FStar.Seq.Base.slice ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Lib.ByteSequence.lbytes", "Lib.IntTypes.uint64", "FStar.Pervasives.assert_norm", "Prims.eq2", "Prims.int", "Prims.pow2", "Prims.unit", "Prims._assert", "FStar.Seq.Base.equal", "Lib.IntTypes.uint_t", "Lib.IntTypes.U8", "Lib.IntTypes.SEC", "FStar.Seq.Base.append", "FStar.Seq.Base.slice", ...
[]
true
false
true
false
false
let lemma_load_32_bytes (k: lbytes 32) (b0 b1 b2 b3 b4: uint64) : Lemma (requires v b0 == nat_from_bytes_le (Seq.slice k 0 7) /\ v b1 == nat_from_bytes_le (Seq.slice k 7 14) /\ v b2 == nat_from_bytes_le (Seq.slice k 14 21) /\ v b3 == nat_from_bytes_le (Seq.slice k 21 28) /\ v b...
lemma_nat_from_bytes_le_append (Seq.slice k 0 7) (Seq.slice k 7 14); lemma_nat_from_bytes_le_append (Seq.slice k 0 14) (Seq.slice k 14 21); lemma_nat_from_bytes_le_append (Seq.slice k 0 21) (Seq.slice k 21 28); lemma_nat_from_bytes_le_append (Seq.slice k 0 28) (Seq.slice k 28 32); assert ((Seq.append (Seq.slice k 0 7) ...
false
Vale.X64.Memory.fsti
Vale.X64.Memory.base_typ_as_vale_type
val base_typ_as_vale_type (t: base_typ) : Tot eqtype
val base_typ_as_vale_type (t: base_typ) : Tot eqtype
let base_typ_as_vale_type (t:base_typ) : Tot eqtype = match t with | TUInt8 -> nat8 | TUInt16 -> nat16 | TUInt32 -> nat32 | TUInt64 -> nat64 | TUInt128 -> quad32
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 22, "end_line": 39, "start_col": 0, "start_line": 33 }
module Vale.X64.Memory include Vale.Arch.HeapTypes_s open FStar.Mul open Vale.Def.Prop_s open Vale.X64.Machine_s open Vale.Arch.HeapImpl module Map16 = Vale.Lib.Map16 unfold let vale_heap = vale_heap unfold let vale_full_heap = vale_full_heap unfold let heaplet_id = heaplet_id [@va_qattr] let get_vale_heap (vhi:vale_...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Map16.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst...
[ { "abbrev": true, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": "S" }, { "abbrev": true, "full_module": "FStar.Heap", "short_module": "H" }, { "abbrev": false, "full_module": "Vale.Lib.BufferViewHelpers", "short_module": null }, { "abbrev": true, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Vale.Arch.HeapTypes_s.base_typ -> Prims.eqtype
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.HeapTypes_s.base_typ", "Vale.X64.Memory.nat8", "Vale.X64.Memory.nat16", "Vale.X64.Memory.nat32", "Vale.X64.Memory.nat64", "Vale.X64.Memory.quad32", "Prims.eqtype" ]
[]
false
false
false
true
false
let base_typ_as_vale_type (t: base_typ) : Tot eqtype =
match t with | TUInt8 -> nat8 | TUInt16 -> nat16 | TUInt32 -> nat32 | TUInt64 -> nat64 | TUInt128 -> quad32
false
Pulse.Reflection.Util.fst
Pulse.Reflection.Util.mk_opaque_let
val mk_opaque_let (g: R.env) (nm: string) (tm: Ghost.erased R.term) (ty: R.typ{RT.typing g tm (T.E_Total, ty)}) : T.Tac (RT.sigelt_for g)
val mk_opaque_let (g: R.env) (nm: string) (tm: Ghost.erased R.term) (ty: R.typ{RT.typing g tm (T.E_Total, ty)}) : T.Tac (RT.sigelt_for g)
let mk_opaque_let (g:R.env) (nm:string) (tm:Ghost.erased R.term) (ty:R.typ{RT.typing g tm (T.E_Total, ty)}) : T.Tac (RT.sigelt_for g) = let fv = R.pack_fv (T.cur_module () @ [nm]) in let lb = R.pack_lb ({ lb_fv = fv; lb_us = []; lb_typ = ty; lb_def = (`_) }) in let se = R.pack_sigelt (R.Sg_Let false [lb]) in le...
{ "file_name": "lib/steel/pulse/Pulse.Reflection.Util.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 18, "end_line": 739, "start_col": 0, "start_line": 732 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.RuntimeUtils.fsti.checked", "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Reflection.Typing.fsti.checked", "FStar.Pervasives.Native.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.L...
[ { "abbrev": false, "full_module": "FStar.List.Tot", "short_module": null }, { "abbrev": true, "full_module": "Pulse.RuntimeUtils", "short_module": "RU" }, { "abbrev": true, "full_module": "FStar.Reflection.Typing", "short_module": "RT" }, { "abbrev": true, "fu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
g: FStar.Stubs.Reflection.Types.env -> nm: Prims.string -> tm: FStar.Ghost.erased FStar.Stubs.Reflection.Types.term -> ty: FStar.Stubs.Reflection.Types.typ { FStar.Reflection.Typing.typing g (FStar.Ghost.reveal tm) (FStar.Stubs.TypeChecker.Core.E_Total, ...
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Stubs.Reflection.Types.env", "Prims.string", "FStar.Ghost.erased", "FStar.Stubs.Reflection.Types.term", "FStar.Stubs.Reflection.Types.typ", "FStar.Reflection.Typing.typing", "FStar.Ghost.reveal", "FStar.Pervasives.Native.Mktuple2", "FStar.Stubs.TypeChecker.Core.tot_or_ghost", "FStar.Stubs.T...
[]
false
true
false
false
false
let mk_opaque_let (g: R.env) (nm: string) (tm: Ghost.erased R.term) (ty: R.typ{RT.typing g tm (T.E_Total, ty)}) : T.Tac (RT.sigelt_for g) =
let fv = R.pack_fv (T.cur_module () @ [nm]) in let lb = R.pack_lb ({ lb_fv = fv; lb_us = []; lb_typ = ty; lb_def = (`_) }) in let se = R.pack_sigelt (R.Sg_Let false [lb]) in let pf:RT.sigelt_typing g se = RT.ST_Let_Opaque g fv ty () in (true, se, None)
false
Vale.X64.Memory.fsti
Vale.X64.Memory.init_heaplets_req
val init_heaplets_req : h: Vale.X64.Memory.vale_heap -> bs: FStar.Seq.Base.seq Vale.Arch.HeapImpl.buffer_info -> Prims.logical
let init_heaplets_req (h:vale_heap) (bs:Seq.seq buffer_info) = (forall (i:nat).{:pattern (Seq.index bs i)} i < Seq.length bs ==> buffer_readable h (Seq.index bs i).bi_buffer) /\ (forall (i1 i2:nat).{:pattern (Seq.index bs i1); (Seq.index bs i2)} i1 < Seq.length bs /\ i2 < Seq.length bs ==> buffer_info_disjo...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 106, "end_line": 381, "start_col": 0, "start_line": 377 }
module Vale.X64.Memory include Vale.Arch.HeapTypes_s open FStar.Mul open Vale.Def.Prop_s open Vale.X64.Machine_s open Vale.Arch.HeapImpl module Map16 = Vale.Lib.Map16 unfold let vale_heap = vale_heap unfold let vale_full_heap = vale_full_heap unfold let heaplet_id = heaplet_id [@va_qattr] let get_vale_heap (vhi:vale_...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Map16.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
h: Vale.X64.Memory.vale_heap -> bs: FStar.Seq.Base.seq Vale.Arch.HeapImpl.buffer_info -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Memory.vale_heap", "FStar.Seq.Base.seq", "Vale.Arch.HeapImpl.buffer_info", "Prims.l_and", "Prims.l_Forall", "Prims.nat", "Prims.l_imp", "Prims.b2t", "Prims.op_LessThan", "FStar.Seq.Base.length", "Vale.X64.Memory.buffer_readable", "Vale.Arch.HeapImpl.__proj__Mkbuffer_info__item__bi_ty...
[]
false
false
false
true
true
let init_heaplets_req (h: vale_heap) (bs: Seq.seq buffer_info) =
(forall (i: nat). {:pattern (Seq.index bs i)} i < Seq.length bs ==> buffer_readable h (Seq.index bs i).bi_buffer) /\ (forall (i1: nat) (i2: nat). {:pattern (Seq.index bs i1); (Seq.index bs i2)} i1 < Seq.length bs /\ i2 < Seq.length bs ==> buffer_info_disjoint (Seq.index bs i1) (Seq.index bs i2))
false
Vale.X64.Memory.fsti
Vale.X64.Memory.loc_mutable_buffers
val loc_mutable_buffers (buffers: list buffer_info) : GTot loc
val loc_mutable_buffers (buffers: list buffer_info) : GTot loc
let rec loc_mutable_buffers (buffers:list buffer_info) : GTot loc = match buffers with | [] -> loc_none | [{bi_mutable = Mutable; bi_buffer = b}] -> loc_buffer b | ({bi_mutable = Immutable})::t -> loc_mutable_buffers t | ({bi_mutable = Mutable; bi_buffer = b})::t -> loc_union (loc_buffer b) (loc_mutable_buffe...
{ "file_name": "vale/code/arch/x64/Vale.X64.Memory.fsti", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 98, "end_line": 389, "start_col": 0, "start_line": 384 }
module Vale.X64.Memory include Vale.Arch.HeapTypes_s open FStar.Mul open Vale.Def.Prop_s open Vale.X64.Machine_s open Vale.Arch.HeapImpl module Map16 = Vale.Lib.Map16 unfold let vale_heap = vale_heap unfold let vale_full_heap = vale_full_heap unfold let heaplet_id = heaplet_id [@va_qattr] let get_vale_heap (vhi:vale_...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_s.fst.checked", "Vale.Lib.Map16.fsti.checked", "Vale.Def.Words_s.fsti.checked", "Vale.Def.Types_s.fst.checked", "Vale.Def.Prop_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.HeapImpl.fsti.checked", "prims.fst...
[ { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Lib.Seqs_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.Def.Words.Four_s", "short_module": null }, { "abbrev": false, "...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
buffers: Prims.list Vale.Arch.HeapImpl.buffer_info -> Prims.GTot Vale.X64.Memory.loc
Prims.GTot
[ "sometrivial" ]
[]
[ "Prims.list", "Vale.Arch.HeapImpl.buffer_info", "Vale.X64.Memory.loc_none", "Vale.Arch.HeapTypes_s.base_typ", "Vale.Arch.HeapImpl.buffer", "Vale.Arch.HeapImpl.heaplet_id", "Vale.Arch.HeapTypes_s.taint", "Vale.X64.Memory.loc_buffer", "Vale.X64.Memory.loc_mutable_buffers", "Vale.X64.Memory.loc_union...
[ "recursion" ]
false
false
false
false
false
let rec loc_mutable_buffers (buffers: list buffer_info) : GTot loc =
match buffers with | [] -> loc_none | [{ bi_mutable = Mutable ; bi_buffer = b }] -> loc_buffer b | { bi_mutable = Immutable } :: t -> loc_mutable_buffers t | { bi_mutable = Mutable ; bi_buffer = b } :: t -> loc_union (loc_buffer b) (loc_mutable_buffers t)
false
MerkleTree.Low.fst
MerkleTree.Low.hash_vv_insert_copy
val hash_vv_insert_copy: #hsz:hash_size_t -> lv:uint32_t{lv < merkle_tree_size_lg} -> i:Ghost.erased index_t -> j:index_t{ Ghost.reveal i <= j && U32.v j < pow2 (32 - U32.v lv) - 1 && j < uint32_32_max} -> hs:hash_vv hsz {V.size_of hs = merkle_tree_size_lg} -> v:hash #hsz -> HST.ST unit (re...
val hash_vv_insert_copy: #hsz:hash_size_t -> lv:uint32_t{lv < merkle_tree_size_lg} -> i:Ghost.erased index_t -> j:index_t{ Ghost.reveal i <= j && U32.v j < pow2 (32 - U32.v lv) - 1 && j < uint32_32_max} -> hs:hash_vv hsz {V.size_of hs = merkle_tree_size_lg} -> v:hash #hsz -> HST.ST unit (re...
let hash_vv_insert_copy #hsz lv i j hs v = let hh0 = HST.get () in mt_safe_elts_rec hh0 lv hs (Ghost.reveal i) j; /// 1) Insert an element at the level `lv`, where the new vector is not yet /// connected to `hs`. let ihv = RV.insert_copy (hcpy hsz) (V.index hs lv) v in let hh1 = HST.get () in // 1-0) Ba...
{ "file_name": "src/MerkleTree.Low.fst", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 46, "end_line": 563, "start_col": 0, "start_line": 466 }
module MerkleTree.Low open EverCrypt.Helpers open FStar.All open FStar.Integers open FStar.Mul open LowStar.Buffer open LowStar.BufferOps open LowStar.Vector open LowStar.Regional open LowStar.RVector open LowStar.Regional.Instances module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MHS = FStar.Mo...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.New.High.fst.checked", "MerkleTree.Low.VectorExtras.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "LowStar.Vector.fst.checked"...
[ { "abbrev": false, "full_module": "MerkleTree.Low.VectorExtras", "short_module": null }, { "abbrev": false, "full_module": "MerkleTree.Low.Hashfunctions", "short_module": null }, { "abbrev": false, "full_module": "MerkleTree.Low.Datastructures", "short_module": null }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
lv: LowStar.Vector.uint32_t{lv < MerkleTree.Low.merkle_tree_size_lg} -> i: FStar.Ghost.erased MerkleTree.Low.index_t -> j: MerkleTree.Low.index_t { FStar.Ghost.reveal i <= j && FStar.UInt32.v j < Prims.pow2 (32 - FStar.UInt32.v lv) - 1 && j < MerkleTree.Low.uint32_32_max } -> hs...
FStar.HyperStack.ST.ST
[]
[]
[ "MerkleTree.Low.Datastructures.hash_size_t", "LowStar.Vector.uint32_t", "Prims.b2t", "FStar.Integers.op_Less", "FStar.Integers.Unsigned", "FStar.Integers.W32", "MerkleTree.Low.merkle_tree_size_lg", "FStar.Ghost.erased", "MerkleTree.Low.index_t", "Prims.op_AmpAmp", "FStar.Integers.op_Less_Equals"...
[]
false
true
false
false
false
let hash_vv_insert_copy #hsz lv i j hs v =
let hh0 = HST.get () in mt_safe_elts_rec hh0 lv hs (Ghost.reveal i) j; let ihv = RV.insert_copy (hcpy hsz) (V.index hs lv) v in let hh1 = HST.get () in V.forall2_forall_left hh0 hs 0ul (V.size_of hs) lv (fun b1 b2 -> HH.disjoint (Rgl?.region_of (hvreg hsz) b1) (Rgl?.region_of (hvreg hsz) b2)); V.forall2_foral...
false
Pulse.Soundness.Comp.fst
Pulse.Soundness.Comp.stc_soundness
val stc_soundness (#g:stt_env) (#st:st_comp) (d_st:st_comp_typing g st) : GTot (RT.tot_typing ( elab_env g) (elab_term st.res) (RT.tm_type st.u) & RT.tot_typing (elab_env g) (elab_term st.pre) vprop_tm &...
val stc_soundness (#g:stt_env) (#st:st_comp) (d_st:st_comp_typing g st) : GTot (RT.tot_typing ( elab_env g) (elab_term st.res) (RT.tm_type st.u) & RT.tot_typing (elab_env g) (elab_term st.pre) vprop_tm &...
let stc_soundness (#g:stt_env) (#st:st_comp) (d_st:st_comp_typing g st) : GTot (RT.tot_typing (elab_env g) (elab_term st.res) (RT.tm_type st.u) & RT.tot_typing (elab_env g) (elab_term st.pre) vprop_tm & ...
{ "file_name": "lib/steel/pulse/Pulse.Soundness.Comp.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 37, "end_line": 58, "start_col": 0, "start_line": 28 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Soundness.STT.fsti.checked", "Pulse.Soundness.Common.fst.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.Elaborate.Core.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.f...
[ { "abbrev": true, "full_module": "Pulse.Soundness.STT", "short_module": "STT" }, { "abbrev": false, "full_module": "Pulse.Soundness.Common", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate", "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
d_st: Pulse.Typing.st_comp_typing g st -> Prims.GTot ((FStar.Reflection.Typing.tot_typing (Pulse.Typing.elab_env g) (Pulse.Elaborate.Pure.elab_term (Mkst_comp?.res st)) (FStar.Reflection.Typing.tm_type (Mkst_comp?.u st)) * FStar.Reflection.Typing.tot_typing (Pulse.Typing.elab_env g) ...
Prims.GTot
[ "sometrivial" ]
[]
[ "Pulse.Soundness.Common.stt_env", "Pulse.Syntax.Base.st_comp", "Pulse.Typing.st_comp_typing", "Pulse.Typing.Env.env", "Pulse.Syntax.Base.var", "Prims.l_and", "Prims.b2t", "FStar.Pervasives.Native.uu___is_None", "Pulse.Syntax.Base.typ", "Pulse.Typing.Env.lookup", "Prims.l_not", "FStar.Set.mem",...
[]
false
false
false
false
false
let stc_soundness (#g: stt_env) (#st: st_comp) (d_st: st_comp_typing g st) : GTot (RT.tot_typing (elab_env g) (elab_term st.res) (RT.tm_type st.u) & RT.tot_typing (elab_env g) (elab_term st.pre) vprop_tm & RT.tot_typing (elab_env g) (mk_abs (elab_term st.res) R.Q_Explicit (elab_term st.post)...
let STC _ st x dres dpre dpost = d_st in let res_typing = tot_typing_soundness dres in let pre_typing = tot_typing_soundness dpre in calc ( == ) { RT.close_term (elab_term (open_term st.post x)) x; ( == ) { elab_open_commute st.post x } RT.close_term (RT.open_term (elab_term st.post) x) x; ( == ) { (elab_freeva...
false
MerkleTree.Low.fst
MerkleTree.Low.mt_verify_
val mt_verify_: #hsz:hash_size_t -> #hash_spec:MTS.hash_fun_t #(U32.v hsz) -> k:index_t -> j:index_t{k <= j} -> mtr:HH.rid -> p:const_path_p -> ppos:uint32_t -> acc:hash #hsz -> actd:bool -> hash_fun:hash_fun_t #hsz #hash_spec -> HST.ST unit (requires (fun h0 -> let p = CB.cast p in p...
val mt_verify_: #hsz:hash_size_t -> #hash_spec:MTS.hash_fun_t #(U32.v hsz) -> k:index_t -> j:index_t{k <= j} -> mtr:HH.rid -> p:const_path_p -> ppos:uint32_t -> acc:hash #hsz -> actd:bool -> hash_fun:hash_fun_t #hsz #hash_spec -> HST.ST unit (requires (fun h0 -> let p = CB.cast p in p...
let rec mt_verify_ #hsz #hash_spec k j mtr p ppos acc actd hash_fun = let ncp:path_p = CB.cast p in let hh0 = HST.get () in if j = 0ul then () else (let nactd = actd || (j % 2ul = 1ul) in if k % 2ul = 0ul then begin if j = k || (j = k + 1ul && not actd) then mt_verify_ (k / 2ul) (j / ...
{ "file_name": "src/MerkleTree.Low.fst", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 11, "end_line": 2883, "start_col": 0, "start_line": 2849 }
module MerkleTree.Low open EverCrypt.Helpers open FStar.All open FStar.Integers open FStar.Mul open LowStar.Buffer open LowStar.BufferOps open LowStar.Vector open LowStar.Regional open LowStar.RVector open LowStar.Regional.Instances module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MHS = FStar.Mo...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.New.High.fst.checked", "MerkleTree.Low.VectorExtras.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "LowStar.Vector.fst.checked"...
[ { "abbrev": false, "full_module": "MerkleTree.Low.VectorExtras", "short_module": null }, { "abbrev": false, "full_module": "MerkleTree.Low.Hashfunctions", "short_module": null }, { "abbrev": false, "full_module": "MerkleTree.Low.Datastructures", "short_module": null }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
k: MerkleTree.Low.index_t -> j: MerkleTree.Low.index_t{k <= j} -> mtr: FStar.Monotonic.HyperHeap.rid -> p: MerkleTree.Low.const_path_p -> ppos: LowStar.Vector.uint32_t -> acc: MerkleTree.Low.Datastructures.hash -> actd: Prims.bool -> hash_fun: MerkleTree.Low.Hashfunctions.hash_fun_t -...
FStar.HyperStack.ST.ST
[]
[]
[ "MerkleTree.Low.Datastructures.hash_size_t", "MerkleTree.Spec.hash_fun_t", "FStar.UInt32.v", "MerkleTree.Low.index_t", "Prims.b2t", "FStar.Integers.op_Less_Equals", "FStar.Integers.Unsigned", "FStar.Integers.W32", "FStar.Monotonic.HyperHeap.rid", "MerkleTree.Low.const_path_p", "LowStar.Vector.ui...
[ "recursion" ]
false
true
false
false
false
let rec mt_verify_ #hsz #hash_spec k j mtr p ppos acc actd hash_fun =
let ncp:path_p = CB.cast p in let hh0 = HST.get () in if j = 0ul then () else (let nactd = actd || (j % 2ul = 1ul) in if k % 2ul = 0ul then if j = k || (j = k + 1ul && not actd) then mt_verify_ (k / 2ul) (j / 2ul) mtr p ppos acc nactd hash_fun else let ncpd = !*ncp in let pha...
false
Pulse.Soundness.Comp.fst
Pulse.Soundness.Comp.comp_typing_soundness
val comp_typing_soundness (g:stt_env) (c:comp) (uc:universe) (d:comp_typing g c uc) : GTot (RT.tot_typing (elab_env g) (elab_comp c) (RT.tm_type uc))
val comp_typing_soundness (g:stt_env) (c:comp) (uc:universe) (d:comp_typing g c uc) : GTot (RT.tot_typing (elab_env g) (elab_comp c) (RT.tm_type uc))
let comp_typing_soundness (g:stt_env) (c:comp) (uc:universe) (d:comp_typing g c uc) : GTot (RT.tot_typing (elab_env g) (elab_comp c) (RT.tm_type uc)) (decreases d) = match d with ...
{ "file_name": "lib/steel/pulse/Pulse.Soundness.Comp.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 60, "end_line": 84, "start_col": 0, "start_line": 61 }
(* Copyright 2023 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Pulse.Typing.fst.checked", "Pulse.Syntax.fst.checked", "Pulse.Soundness.STT.fsti.checked", "Pulse.Soundness.Common.fst.checked", "Pulse.Reflection.Util.fst.checked", "Pulse.Elaborate.Core.fst.checked", "Pulse.Elaborate.fsti.checked", "prims.f...
[ { "abbrev": true, "full_module": "Pulse.Soundness.STT", "short_module": "STT" }, { "abbrev": false, "full_module": "Pulse.Soundness.Common", "short_module": null }, { "abbrev": false, "full_module": "Pulse.Elaborate", "short_module": null }, { "abbrev": false, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 2, "max_fuel": 2, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
g: Pulse.Soundness.Common.stt_env -> c: Pulse.Syntax.Base.comp -> uc: Pulse.Syntax.Base.universe -> d: Pulse.Typing.comp_typing g c uc -> Prims.GTot (FStar.Reflection.Typing.tot_typing (Pulse.Typing.elab_env g) (Pulse.Elaborate.Pure.elab_comp c) (FStar.Reflection.Typing.tm_type uc...
Prims.GTot
[ "sometrivial" ]
[]
[ "Pulse.Soundness.Common.stt_env", "Pulse.Syntax.Base.comp", "Pulse.Syntax.Base.universe", "Pulse.Typing.comp_typing", "Pulse.Typing.Env.env", "Pulse.Syntax.Base.term", "Pulse.Typing.universe_of", "Pulse.Soundness.Common.tot_typing_soundness", "Pulse.Syntax.Pure.tm_type", "Pulse.Syntax.Base.st_comp...
[]
false
false
false
false
false
let comp_typing_soundness (g: stt_env) (c: comp) (uc: universe) (d: comp_typing g c uc) : GTot (RT.tot_typing (elab_env g) (elab_comp c) (RT.tm_type uc)) (decreases d) =
match d with | CT_Tot _ t _ dt -> tot_typing_soundness dt | CT_ST _ st d_st -> let res_typing, pre_typing, post_typing = stc_soundness d_st in STT.stt_typing res_typing pre_typing post_typing | CT_STAtomic _ i obs st d_i d_st -> let i_typing = tot_typing_soundness d_i in let res_typing, pre_typing, post_typing ...
false
MerkleTree.Low.fst
MerkleTree.Low.mt_flush_to
val mt_flush_to: mt:mt_p -> idx:offset_t -> HST.ST unit (requires (fun h0 -> mt_safe h0 mt /\ mt_flush_to_pre_nst (B.get h0 mt 0) idx)) (ensures (fun h0 _ h1 -> // memory safety modifies (mt_loc mt) h0 h1 /\ mt_safe h1 mt /\ // correctness (let mtv0 = B.get h0 mt 0 in let mtv1...
val mt_flush_to: mt:mt_p -> idx:offset_t -> HST.ST unit (requires (fun h0 -> mt_safe h0 mt /\ mt_flush_to_pre_nst (B.get h0 mt 0) idx)) (ensures (fun h0 _ h1 -> // memory safety modifies (mt_loc mt) h0 h1 /\ mt_safe h1 mt /\ // correctness (let mtv0 = B.get h0 mt 0 in let mtv1...
let mt_flush_to mt idx = let hh0 = HST.get () in let mtv = !*mt in let offset = MT?.offset mtv in let j = MT?.j mtv in let hsz = MT?.hash_size mtv in let idx = split_offset offset idx in let hs = MT?.hs mtv in mt_flush_to_ hsz 0ul hs (MT?.i mtv) idx (Ghost.hide (MT?.j mtv)); let hh1 = HST.get () in ...
{ "file_name": "src/MerkleTree.Low.fst", "git_rev": "7d7bdc20f2033171e279c176b26e84f9069d23c6", "git_url": "https://github.com/hacl-star/merkle-tree.git", "project_name": "merkle-tree" }
{ "end_col": 73, "end_line": 2492, "start_col": 0, "start_line": 2451 }
module MerkleTree.Low open EverCrypt.Helpers open FStar.All open FStar.Integers open FStar.Mul open LowStar.Buffer open LowStar.BufferOps open LowStar.Vector open LowStar.Regional open LowStar.RVector open LowStar.Regional.Instances module HS = FStar.HyperStack module HST = FStar.HyperStack.ST module MHS = FStar.Mo...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "MerkleTree.Spec.fst.checked", "MerkleTree.New.High.fst.checked", "MerkleTree.Low.VectorExtras.fst.checked", "MerkleTree.Low.Hashfunctions.fst.checked", "MerkleTree.Low.Datastructures.fst.checked", "LowStar.Vector.fst.checked"...
[ { "abbrev": false, "full_module": "MerkleTree.Low.VectorExtras", "short_module": null }, { "abbrev": false, "full_module": "MerkleTree.Low.Hashfunctions", "short_module": null }, { "abbrev": false, "full_module": "MerkleTree.Low.Datastructures", "short_module": null }, ...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mt: MerkleTree.Low.mt_p -> idx: MerkleTree.Low.offset_t -> FStar.HyperStack.ST.ST Prims.unit
FStar.HyperStack.ST.ST
[]
[]
[ "MerkleTree.Low.mt_p", "MerkleTree.Low.offset_t", "MerkleTree.Low.mt_safe_elts_preserved", "MerkleTree.Low.__proj__MT__item__hash_size", "FStar.UInt32.__uint_to_t", "MerkleTree.Low.__proj__MT__item__j", "LowStar.Monotonic.Buffer.loc_buffer", "MerkleTree.Low.merkle_tree", "LowStar.Buffer.trivial_preo...
[]
false
true
false
false
false
let mt_flush_to mt idx =
let hh0 = HST.get () in let mtv = !*mt in let offset = MT?.offset mtv in let j = MT?.j mtv in let hsz = MT?.hash_size mtv in let idx = split_offset offset idx in let hs = MT?.hs mtv in mt_flush_to_ hsz 0ul hs (MT?.i mtv) idx (Ghost.hide (MT?.j mtv)); let hh1 = HST.get () in RV.rv_loc_elems_included hh0 hs 0ul (V.size_o...
false
Vale.X64.Leakage_s.fst
Vale.X64.Leakage_s.publicFlagValuesAreSame
val publicFlagValuesAreSame : ts: Vale.X64.Leakage_s.leakage_taints -> s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> Prims.logical
let publicFlagValuesAreSame (ts:leakage_taints) (s1:machine_state) (s2:machine_state) = ts.flagsTaint = Public ==> (s1.ms_flags == s2.ms_flags)
{ "file_name": "vale/specs/hardware/Vale.X64.Leakage_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 57, "end_line": 17, "start_col": 0, "start_line": 16 }
module Vale.X64.Leakage_s open FStar.Mul open Vale.Arch.HeapTypes_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Machine_Semantics_s module F = FStar.FunctionalExtensionality type reg_taint = F.restricted_t reg (fun _ -> taint) noeq type leakage_taints = | LeakageTaints: regTaint: reg_taint -> flagsTa...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.Heap.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Map.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "a...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ts: Vale.X64.Leakage_s.leakage_taints -> s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Leakage_s.leakage_taints", "Vale.X64.Machine_Semantics_s.machine_state", "Prims.l_imp", "Prims.b2t", "Prims.op_Equality", "Vale.Arch.HeapTypes_s.taint", "Vale.X64.Leakage_s.__proj__LeakageTaints__item__flagsTaint", "Vale.Arch.HeapTypes_s.Public", "Prims.eq2", "Vale.X64.Machine_Semantics_...
[]
false
false
false
true
true
let publicFlagValuesAreSame (ts: leakage_taints) (s1 s2: machine_state) =
ts.flagsTaint = Public ==> (s1.ms_flags == s2.ms_flags)
false
Vale.X64.Leakage_s.fst
Vale.X64.Leakage_s.publicMemValuesAreSame
val publicMemValuesAreSame : s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> Prims.logical
let publicMemValuesAreSame (s1:machine_state) (s2:machine_state) = forall x.{:pattern (heap_taint s1.ms_heap).[x] \/ (heap_taint s2.ms_heap).[x] \/ (heap_get s1.ms_heap).[x] \/ (heap_get s2.ms_heap).[x]} publicMemValueIsSame (heap_get s1.ms_heap) (heap_get s2.ms_heap) (heap_taint s1.ms_heap) (heap_taint s2.ms_hea...
{ "file_name": "vale/specs/hardware/Vale.X64.Leakage_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 118, "end_line": 39, "start_col": 0, "start_line": 37 }
module Vale.X64.Leakage_s open FStar.Mul open Vale.Arch.HeapTypes_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Machine_Semantics_s module F = FStar.FunctionalExtensionality type reg_taint = F.restricted_t reg (fun _ -> taint) noeq type leakage_taints = | LeakageTaints: regTaint: reg_taint -> flagsTa...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.Heap.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Map.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "a...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_Semantics_s.machine_state", "Prims.l_Forall", "Prims.int", "Vale.X64.Leakage_s.publicMemValueIsSame", "Vale.Arch.Heap.heap_get", "Vale.X64.Machine_Semantics_s.__proj__Mkmachine_state__item__ms_heap", "Vale.Arch.Heap.heap_taint", "Vale.X64.Machine_Semantics_s.op_String_Access", "Val...
[]
false
false
false
true
true
let publicMemValuesAreSame (s1 s2: machine_state) =
forall x. {:pattern (heap_taint s1.ms_heap).[ x ]\/(heap_taint s2.ms_heap).[ x ]\/(heap_get s1.ms_heap).[ x ]\/(heap_get s2.ms_heap).[ x ]} publicMemValueIsSame (heap_get s1.ms_heap) (heap_get s2.ms_heap) (heap_taint s1.ms_heap) (heap_taint s2.ms_heap) x
false
Vale.X64.Leakage_s.fst
Vale.X64.Leakage_s.publicMemValueIsSame
val publicMemValueIsSame : mem1: Vale.Arch.MachineHeap_s.machine_heap -> mem2: Vale.Arch.MachineHeap_s.machine_heap -> memTaint1: FStar.Map.t Prims.int Vale.Arch.HeapTypes_s.taint -> memTaint2: FStar.Map.t Prims.int Vale.Arch.HeapTypes_s.taint -> x: Prims.int -> Prims.logical
let publicMemValueIsSame (mem1 mem2:machine_heap) (memTaint1 memTaint2:Map.t int taint) (x:int) = (Public? (memTaint1.[x]) || Public? (memTaint2.[x])) ==> mem1.[x] == mem2.[x]
{ "file_name": "vale/specs/hardware/Vale.X64.Leakage_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 25, "end_line": 35, "start_col": 0, "start_line": 30 }
module Vale.X64.Leakage_s open FStar.Mul open Vale.Arch.HeapTypes_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Machine_Semantics_s module F = FStar.FunctionalExtensionality type reg_taint = F.restricted_t reg (fun _ -> taint) noeq type leakage_taints = | LeakageTaints: regTaint: reg_taint -> flagsTa...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.Heap.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Map.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "a...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
mem1: Vale.Arch.MachineHeap_s.machine_heap -> mem2: Vale.Arch.MachineHeap_s.machine_heap -> memTaint1: FStar.Map.t Prims.int Vale.Arch.HeapTypes_s.taint -> memTaint2: FStar.Map.t Prims.int Vale.Arch.HeapTypes_s.taint -> x: Prims.int -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.MachineHeap_s.machine_heap", "FStar.Map.t", "Prims.int", "Vale.Arch.HeapTypes_s.taint", "Prims.l_imp", "Prims.b2t", "Prims.op_BarBar", "Vale.Arch.HeapTypes_s.uu___is_Public", "Vale.X64.Machine_Semantics_s.op_String_Access", "Prims.eq2", "Vale.Def.Types_s.nat8", "Prims.logical" ]
[]
false
false
false
true
true
let publicMemValueIsSame (mem1 mem2: machine_heap) (memTaint1 memTaint2: Map.t int taint) (x: int) =
(Public? (memTaint1.[ x ]) || Public? (memTaint2.[ x ])) ==> mem1.[ x ] == mem2.[ x ]
false
Vale.X64.Leakage_s.fst
Vale.X64.Leakage_s.publicStackValuesAreSame
val publicStackValuesAreSame : s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> Prims.logical
let publicStackValuesAreSame (s1:machine_state) (s2:machine_state) = let Machine_stack _ stack1 = s1.ms_stack in let Machine_stack _ stack2 = s2.ms_stack in forall x.{:pattern s1.ms_stackTaint.[x] \/ s2.ms_stackTaint.[x] \/ stack1.[x] \/ stack2.[x]} publicStackValueIsSame stack1 stack2 s1.ms_stackTaint s2.ms_...
{ "file_name": "vale/specs/hardware/Vale.X64.Leakage_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 76, "end_line": 52, "start_col": 0, "start_line": 48 }
module Vale.X64.Leakage_s open FStar.Mul open Vale.Arch.HeapTypes_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Machine_Semantics_s module F = FStar.FunctionalExtensionality type reg_taint = F.restricted_t reg (fun _ -> taint) noeq type leakage_taints = | LeakageTaints: regTaint: reg_taint -> flagsTa...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.Heap.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Map.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "a...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_Semantics_s.machine_state", "Vale.Def.Types_s.nat64", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "FStar.Map.t", "Prims.int", "Vale.Def.Types_s.nat8", "Prims.l_Forall", "Vale.X64.Leakage_s.publicStackValueIsSame", "Vale.X64.Machine_Semantics_s.__proj__Mkmachine_state__item__ms_st...
[]
false
false
false
true
true
let publicStackValuesAreSame (s1 s2: machine_state) =
let Machine_stack _ stack1 = s1.ms_stack in let Machine_stack _ stack2 = s2.ms_stack in forall x. {:pattern s1.ms_stackTaint.[ x ]\/s2.ms_stackTaint.[ x ]\/stack1.[ x ]\/stack2.[ x ]} publicStackValueIsSame stack1 stack2 s1.ms_stackTaint s2.ms_stackTaint x
false
Vale.X64.Leakage_s.fst
Vale.X64.Leakage_s.publicStackValueIsSame
val publicStackValueIsSame : stack1: Vale.Arch.MachineHeap_s.machine_heap -> stack2: Vale.Arch.MachineHeap_s.machine_heap -> stackTaint1: FStar.Map.t Prims.int Vale.Arch.HeapTypes_s.taint -> stackTaint2: FStar.Map.t Prims.int Vale.Arch.HeapTypes_s.taint -> x: Prims.int -> Prims.logical
let publicStackValueIsSame (stack1 stack2:machine_heap) (stackTaint1 stackTaint2:Map.t int taint) (x:int) = (Public? (stackTaint1.[x]) || Public? (stackTaint2.[x])) ==> stack1.[x] == stack2.[x]
{ "file_name": "vale/specs/hardware/Vale.X64.Leakage_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 46, "start_col": 0, "start_line": 41 }
module Vale.X64.Leakage_s open FStar.Mul open Vale.Arch.HeapTypes_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Machine_Semantics_s module F = FStar.FunctionalExtensionality type reg_taint = F.restricted_t reg (fun _ -> taint) noeq type leakage_taints = | LeakageTaints: regTaint: reg_taint -> flagsTa...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.Heap.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Map.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "a...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
stack1: Vale.Arch.MachineHeap_s.machine_heap -> stack2: Vale.Arch.MachineHeap_s.machine_heap -> stackTaint1: FStar.Map.t Prims.int Vale.Arch.HeapTypes_s.taint -> stackTaint2: FStar.Map.t Prims.int Vale.Arch.HeapTypes_s.taint -> x: Prims.int -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.Arch.MachineHeap_s.machine_heap", "FStar.Map.t", "Prims.int", "Vale.Arch.HeapTypes_s.taint", "Prims.l_imp", "Prims.b2t", "Prims.op_BarBar", "Vale.Arch.HeapTypes_s.uu___is_Public", "Vale.X64.Machine_Semantics_s.op_String_Access", "Prims.eq2", "Vale.Def.Types_s.nat8", "Prims.logical" ]
[]
false
false
false
true
true
let publicStackValueIsSame (stack1 stack2: machine_heap) (stackTaint1 stackTaint2: Map.t int taint) (x: int) =
(Public? (stackTaint1.[ x ]) || Public? (stackTaint2.[ x ])) ==> stack1.[ x ] == stack2.[ x ]
false
Vale.X64.Leakage_s.fst
Vale.X64.Leakage_s.publicValuesAreSame
val publicValuesAreSame : ts: Vale.X64.Leakage_s.leakage_taints -> s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> Prims.logical
let publicValuesAreSame (ts:leakage_taints) (s1:machine_state) (s2:machine_state) = publicRegisterValuesAreSame ts s1 s2 /\ publicFlagValuesAreSame ts s1 s2 /\ publicCfFlagValuesAreSame ts s1 s2 /\ publicOfFlagValuesAreSame ts s1 s2 /\ publicMemValuesAreSame s1 s2 /\ publicStackValuesAreSame s1 s2
{ "file_name": "vale/specs/hardware/Vale.X64.Leakage_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 35, "end_line": 60, "start_col": 0, "start_line": 54 }
module Vale.X64.Leakage_s open FStar.Mul open Vale.Arch.HeapTypes_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Machine_Semantics_s module F = FStar.FunctionalExtensionality type reg_taint = F.restricted_t reg (fun _ -> taint) noeq type leakage_taints = | LeakageTaints: regTaint: reg_taint -> flagsTa...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.Heap.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Map.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "a...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ts: Vale.X64.Leakage_s.leakage_taints -> s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Leakage_s.leakage_taints", "Vale.X64.Machine_Semantics_s.machine_state", "Prims.l_and", "Vale.X64.Leakage_s.publicRegisterValuesAreSame", "Vale.X64.Leakage_s.publicFlagValuesAreSame", "Vale.X64.Leakage_s.publicCfFlagValuesAreSame", "Vale.X64.Leakage_s.publicOfFlagValuesAreSame", "Vale.X64.Le...
[]
false
false
false
true
true
let publicValuesAreSame (ts: leakage_taints) (s1 s2: machine_state) =
publicRegisterValuesAreSame ts s1 s2 /\ publicFlagValuesAreSame ts s1 s2 /\ publicCfFlagValuesAreSame ts s1 s2 /\ publicOfFlagValuesAreSame ts s1 s2 /\ publicMemValuesAreSame s1 s2 /\ publicStackValuesAreSame s1 s2
false
Vale.X64.Leakage_s.fst
Vale.X64.Leakage_s.isConstantTime
val isConstantTime : code: Vale.X64.Machine_Semantics_s.code -> ts: Vale.X64.Leakage_s.leakage_taints -> Prims.logical
let isConstantTime (code:code) (ts:leakage_taints) = forall s1 s2 fuel. isConstantTimeGivenStates code fuel ts s1 s2
{ "file_name": "vale/specs/hardware/Vale.X64.Leakage_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 50, "end_line": 78, "start_col": 0, "start_line": 76 }
module Vale.X64.Leakage_s open FStar.Mul open Vale.Arch.HeapTypes_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Machine_Semantics_s module F = FStar.FunctionalExtensionality type reg_taint = F.restricted_t reg (fun _ -> taint) noeq type leakage_taints = | LeakageTaints: regTaint: reg_taint -> flagsTa...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.Heap.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Map.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "a...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
code: Vale.X64.Machine_Semantics_s.code -> ts: Vale.X64.Leakage_s.leakage_taints -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_Semantics_s.code", "Vale.X64.Leakage_s.leakage_taints", "Prims.l_Forall", "Vale.X64.Machine_Semantics_s.machine_state", "Prims.nat", "Vale.X64.Leakage_s.isConstantTimeGivenStates", "Prims.logical" ]
[]
false
false
false
true
true
let isConstantTime (code: code) (ts: leakage_taints) =
forall s1 s2 fuel. isConstantTimeGivenStates code fuel ts s1 s2
false
Vale.X64.Leakage_s.fst
Vale.X64.Leakage_s.isExplicitLeakageFree
val isExplicitLeakageFree : code: Vale.X64.Machine_Semantics_s.code -> ts: Vale.X64.Leakage_s.leakage_taints -> ts': Vale.X64.Leakage_s.leakage_taints -> Prims.logical
let isExplicitLeakageFree (code:code) (ts:leakage_taints) (ts':leakage_taints) = forall s1 s2 fuel. isExplicitLeakageFreeGivenStates code fuel ts ts' s1 s2
{ "file_name": "vale/specs/hardware/Vale.X64.Leakage_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 59, "end_line": 99, "start_col": 0, "start_line": 97 }
module Vale.X64.Leakage_s open FStar.Mul open Vale.Arch.HeapTypes_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Machine_Semantics_s module F = FStar.FunctionalExtensionality type reg_taint = F.restricted_t reg (fun _ -> taint) noeq type leakage_taints = | LeakageTaints: regTaint: reg_taint -> flagsTa...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.Heap.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Map.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "a...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
code: Vale.X64.Machine_Semantics_s.code -> ts: Vale.X64.Leakage_s.leakage_taints -> ts': Vale.X64.Leakage_s.leakage_taints -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_Semantics_s.code", "Vale.X64.Leakage_s.leakage_taints", "Prims.l_Forall", "Vale.X64.Machine_Semantics_s.machine_state", "Prims.nat", "Vale.X64.Leakage_s.isExplicitLeakageFreeGivenStates", "Prims.logical" ]
[]
false
false
false
true
true
let isExplicitLeakageFree (code: code) (ts ts': leakage_taints) =
forall s1 s2 fuel. isExplicitLeakageFreeGivenStates code fuel ts ts' s1 s2
false
Vale.X64.Leakage_s.fst
Vale.X64.Leakage_s.publicCfFlagValuesAreSame
val publicCfFlagValuesAreSame : ts: Vale.X64.Leakage_s.leakage_taints -> s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> Prims.logical
let publicCfFlagValuesAreSame (ts:leakage_taints) (s1:machine_state) (s2:machine_state) = Public? ts.cfFlagsTaint ==> (cf s1.ms_flags = cf s2.ms_flags)
{ "file_name": "vale/specs/hardware/Vale.X64.Leakage_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 63, "end_line": 20, "start_col": 0, "start_line": 19 }
module Vale.X64.Leakage_s open FStar.Mul open Vale.Arch.HeapTypes_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Machine_Semantics_s module F = FStar.FunctionalExtensionality type reg_taint = F.restricted_t reg (fun _ -> taint) noeq type leakage_taints = | LeakageTaints: regTaint: reg_taint -> flagsTa...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.Heap.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Map.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "a...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ts: Vale.X64.Leakage_s.leakage_taints -> s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Leakage_s.leakage_taints", "Vale.X64.Machine_Semantics_s.machine_state", "Prims.l_imp", "Prims.b2t", "Vale.Arch.HeapTypes_s.uu___is_Public", "Vale.X64.Leakage_s.__proj__LeakageTaints__item__cfFlagsTaint", "Prims.op_Equality", "Vale.X64.Machine_Semantics_s.flag_val_t", "Vale.X64.Machine_Sem...
[]
false
false
false
true
true
let publicCfFlagValuesAreSame (ts: leakage_taints) (s1 s2: machine_state) =
Public? ts.cfFlagsTaint ==> (cf s1.ms_flags = cf s2.ms_flags)
false
Vale.X64.Leakage_s.fst
Vale.X64.Leakage_s.publicRegisterValuesAreSame
val publicRegisterValuesAreSame : ts: Vale.X64.Leakage_s.leakage_taints -> s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> Prims.logical
let publicRegisterValuesAreSame (ts:leakage_taints) (s1:machine_state) (s2:machine_state) = forall r.{:pattern ts.regTaint r \/ s1.ms_regs r \/ s2.ms_regs r} ts.regTaint r = Public ==> (s1.ms_regs r = s2.ms_regs r)
{ "file_name": "vale/specs/hardware/Vale.X64.Leakage_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 33, "end_line": 28, "start_col": 0, "start_line": 25 }
module Vale.X64.Leakage_s open FStar.Mul open Vale.Arch.HeapTypes_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Machine_Semantics_s module F = FStar.FunctionalExtensionality type reg_taint = F.restricted_t reg (fun _ -> taint) noeq type leakage_taints = | LeakageTaints: regTaint: reg_taint -> flagsTa...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.Heap.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Map.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "a...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ts: Vale.X64.Leakage_s.leakage_taints -> s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Leakage_s.leakage_taints", "Vale.X64.Machine_Semantics_s.machine_state", "Prims.l_Forall", "Vale.X64.Machine_s.reg", "Prims.l_imp", "Prims.b2t", "Prims.op_Equality", "Vale.Arch.HeapTypes_s.taint", "Vale.X64.Leakage_s.__proj__LeakageTaints__item__regTaint", "Vale.Arch.HeapTypes_s.Public",...
[]
false
false
false
true
true
let publicRegisterValuesAreSame (ts: leakage_taints) (s1 s2: machine_state) =
forall r. {:pattern ts.regTaint r\/s1.ms_regs r\/s2.ms_regs r} ts.regTaint r = Public ==> (s1.ms_regs r = s2.ms_regs r)
false
Vale.X64.Leakage_s.fst
Vale.X64.Leakage_s.publicOfFlagValuesAreSame
val publicOfFlagValuesAreSame : ts: Vale.X64.Leakage_s.leakage_taints -> s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> Prims.logical
let publicOfFlagValuesAreSame (ts:leakage_taints) (s1:machine_state) (s2:machine_state) = Public? ts.ofFlagsTaint ==> (overflow s1.ms_flags = overflow s2.ms_flags)
{ "file_name": "vale/specs/hardware/Vale.X64.Leakage_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 75, "end_line": 23, "start_col": 0, "start_line": 22 }
module Vale.X64.Leakage_s open FStar.Mul open Vale.Arch.HeapTypes_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Machine_Semantics_s module F = FStar.FunctionalExtensionality type reg_taint = F.restricted_t reg (fun _ -> taint) noeq type leakage_taints = | LeakageTaints: regTaint: reg_taint -> flagsTa...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.Heap.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Map.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "a...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ts: Vale.X64.Leakage_s.leakage_taints -> s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Leakage_s.leakage_taints", "Vale.X64.Machine_Semantics_s.machine_state", "Prims.l_imp", "Prims.b2t", "Vale.Arch.HeapTypes_s.uu___is_Public", "Vale.X64.Leakage_s.__proj__LeakageTaints__item__ofFlagsTaint", "Prims.op_Equality", "Vale.X64.Machine_Semantics_s.flag_val_t", "Vale.X64.Machine_Sem...
[]
false
false
false
true
true
let publicOfFlagValuesAreSame (ts: leakage_taints) (s1 s2: machine_state) =
Public? ts.ofFlagsTaint ==> (overflow s1.ms_flags = overflow s2.ms_flags)
false
Vale.X64.Leakage_s.fst
Vale.X64.Leakage_s.isExplicitLeakageFreeGivenStates
val isExplicitLeakageFreeGivenStates : code: Vale.X64.Machine_Semantics_s.code -> fuel: Prims.nat -> ts: Vale.X64.Leakage_s.leakage_taints -> ts': Vale.X64.Leakage_s.leakage_taints -> s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> Prims.logical
let isExplicitLeakageFreeGivenStates (code:code) (fuel:nat) (ts:leakage_taints) (ts':leakage_taints) (s1:machine_state) (s2:machine_state) = is_explicit_leakage_free_lhs code fuel ts ts' s1 s2 ==> is_explicit_leakage_free_rhs code fuel ts ts' s1 s2
{ "file_name": "vale/specs/hardware/Vale.X64.Leakage_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 111, "end_line": 95, "start_col": 0, "start_line": 93 }
module Vale.X64.Leakage_s open FStar.Mul open Vale.Arch.HeapTypes_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Machine_Semantics_s module F = FStar.FunctionalExtensionality type reg_taint = F.restricted_t reg (fun _ -> taint) noeq type leakage_taints = | LeakageTaints: regTaint: reg_taint -> flagsTa...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.Heap.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Map.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "a...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
code: Vale.X64.Machine_Semantics_s.code -> fuel: Prims.nat -> ts: Vale.X64.Leakage_s.leakage_taints -> ts': Vale.X64.Leakage_s.leakage_taints -> s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_Semantics_s.code", "Prims.nat", "Vale.X64.Leakage_s.leakage_taints", "Vale.X64.Machine_Semantics_s.machine_state", "Prims.l_imp", "Vale.X64.Leakage_s.is_explicit_leakage_free_lhs", "Vale.X64.Leakage_s.is_explicit_leakage_free_rhs", "Prims.logical" ]
[]
false
false
false
true
true
let isExplicitLeakageFreeGivenStates (code: code) (fuel: nat) (ts ts': leakage_taints) (s1 s2: machine_state) =
is_explicit_leakage_free_lhs code fuel ts ts' s1 s2 ==> is_explicit_leakage_free_rhs code fuel ts ts' s1 s2
false
Vale.X64.Leakage_s.fst
Vale.X64.Leakage_s.isLeakageFree
val isLeakageFree : code: Vale.X64.Machine_Semantics_s.code -> ts: Vale.X64.Leakage_s.leakage_taints -> ts': Vale.X64.Leakage_s.leakage_taints -> Prims.logical
let isLeakageFree (code:code) (ts:leakage_taints) (ts':leakage_taints) = isConstantTime code ts /\ isExplicitLeakageFree code ts ts'
{ "file_name": "vale/specs/hardware/Vale.X64.Leakage_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 38, "end_line": 103, "start_col": 0, "start_line": 101 }
module Vale.X64.Leakage_s open FStar.Mul open Vale.Arch.HeapTypes_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Machine_Semantics_s module F = FStar.FunctionalExtensionality type reg_taint = F.restricted_t reg (fun _ -> taint) noeq type leakage_taints = | LeakageTaints: regTaint: reg_taint -> flagsTa...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.Heap.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Map.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "a...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
code: Vale.X64.Machine_Semantics_s.code -> ts: Vale.X64.Leakage_s.leakage_taints -> ts': Vale.X64.Leakage_s.leakage_taints -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_Semantics_s.code", "Vale.X64.Leakage_s.leakage_taints", "Prims.l_and", "Vale.X64.Leakage_s.isConstantTime", "Vale.X64.Leakage_s.isExplicitLeakageFree", "Prims.logical" ]
[]
false
false
false
true
true
let isLeakageFree (code: code) (ts ts': leakage_taints) =
isConstantTime code ts /\ isExplicitLeakageFree code ts ts'
false
IMSTsub.fst
IMSTsub.st_pre
val st_pre : s: Type0 -> Type
let st_pre (s:Type0) = s -> GTot Type0
{ "file_name": "examples/indexed_effects/IMSTsub.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 40, "end_line": 30, "start_col": 0, "start_line": 30 }
(* 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.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Monotonic.Witnessed.fsti.checked" ], "interface_file": false, "source_file": "IMSTsub.fst" }
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Type0 -> Type
Prims.Tot
[ "total" ]
[]
[]
[]
false
false
false
true
true
let st_pre (s: Type0) =
s -> GTot Type0
false
IMSTsub.fst
IMSTsub.st_post'
val st_post' : s: Type0 -> a: Type -> pre: Type -> Type
let st_post' (s:Type0) (a:Type) (pre:Type) = a -> (_:s{pre}) -> GTot Type0
{ "file_name": "examples/indexed_effects/IMSTsub.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 74, "end_line": 31, "start_col": 0, "start_line": 31 }
(* 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.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Monotonic.Witnessed.fsti.checked" ], "interface_file": false, "source_file": "IMSTsub.fst" }
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Type0 -> a: Type -> pre: Type -> Type
Prims.Tot
[ "total" ]
[]
[]
[]
false
false
false
true
true
let st_post' (s: Type0) (a pre: Type) =
a -> _: s{pre} -> GTot Type0
false
IMSTsub.fst
IMSTsub.st_wp
val st_wp : a: Type -> Type
let st_wp (a:Type) = s:Type0 -> (preorder s) -> st_post_h s a -> Tot (st_pre_h s)
{ "file_name": "examples/indexed_effects/IMSTsub.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 84, "end_line": 33, "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.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Monotonic.Witnessed.fsti.checked" ], "interface_file": false, "source_file": "IMSTsub.fst" }
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> Type
Prims.Tot
[ "total" ]
[]
[ "FStar.Preorder.preorder", "FStar.Pervasives.st_post_h", "FStar.Pervasives.st_pre_h" ]
[]
false
false
false
true
true
let st_wp (a: Type) =
s: Type0 -> (preorder s) -> st_post_h s a -> Tot (st_pre_h s)
false
IMSTsub.fst
IMSTsub.st_return
val st_return : a: Type -> x: a -> s: Type0 -> rel: FStar.Preorder.preorder s -> post: IMSTsub.st_post s a -> s0: s -> Prims.logical
let st_return (a:Type) (x:a) (s:Type0) (rel:preorder s) (post:st_post s a) (s0:s) = forall v. v == x ==> post v s0
{ "file_name": "examples/indexed_effects/IMSTsub.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 34, "end_line": 38, "start_col": 0, "start_line": 37 }
(* 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.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Monotonic.Witnessed.fsti.checked" ], "interface_file": false, "source_file": "IMSTsub.fst" }
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> x: a -> s: Type0 -> rel: FStar.Preorder.preorder s -> post: IMSTsub.st_post s a -> s0: s -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "FStar.Preorder.preorder", "IMSTsub.st_post", "Prims.l_Forall", "Prims.l_imp", "Prims.eq2", "Prims.logical" ]
[]
false
false
false
true
true
let st_return (a: Type) (x: a) (s: Type0) (rel: preorder s) (post: st_post s a) (s0: s) =
forall v. v == x ==> post v s0
false
IMSTsub.fst
IMSTsub.st_post
val st_post : s: Type0 -> a: Type -> Type
let st_post (s:Type0) (a:Type) = st_post_h' s a True
{ "file_name": "examples/indexed_effects/IMSTsub.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 53, "end_line": 32, "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", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Monotonic.Witnessed.fsti.checked" ], "interface_file": false, "source_file": "IMSTsub.fst" }
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Type0 -> a: Type -> Type
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.st_post_h'", "Prims.l_True" ]
[]
false
false
false
true
true
let st_post (s: Type0) (a: Type) =
st_post_h' s a True
false
IMSTsub.fst
IMSTsub.st_bind
val st_bind : a: Type -> b: Type -> wp1: IMSTsub.st_wp a -> wp2: (_: a -> IMSTsub.st_wp b) -> s: Type0 -> rel: FStar.Preorder.preorder s -> post: IMSTsub.st_post s b -> s0: s -> Type0
let st_bind (a:Type) (b:Type) (wp1:st_wp a) (wp2: (a -> Tot (st_wp b))) (s:Type0) (rel:preorder s) (post:st_post s b) (s0:s) = wp1 s rel (fun x s1 -> wp2 x s rel post s1) s0
{ "file_name": "examples/indexed_effects/IMSTsub.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 50, "end_line": 44, "start_col": 0, "start_line": 41 }
(* 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.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Monotonic.Witnessed.fsti.checked" ], "interface_file": false, "source_file": "IMSTsub.fst" }
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> b: Type -> wp1: IMSTsub.st_wp a -> wp2: (_: a -> IMSTsub.st_wp b) -> s: Type0 -> rel: FStar.Preorder.preorder s -> post: IMSTsub.st_post s b -> s0: s -> Type0
Prims.Tot
[ "total" ]
[]
[ "IMSTsub.st_wp", "FStar.Preorder.preorder", "IMSTsub.st_post", "Prims.l_True" ]
[]
false
false
false
true
true
let st_bind (a b: Type) (wp1: st_wp a) (wp2: (a -> Tot (st_wp b))) (s: Type0) (rel: preorder s) (post: st_post s b) (s0: s) =
wp1 s rel (fun x s1 -> wp2 x s rel post s1) s0
false
Vale.X64.Leakage_s.fst
Vale.X64.Leakage_s.constTimeInvariant
val constTimeInvariant : ts: Vale.X64.Leakage_s.leakage_taints -> s: Vale.X64.Machine_Semantics_s.machine_state -> s': Vale.X64.Machine_Semantics_s.machine_state -> Prims.logical
let constTimeInvariant (ts:leakage_taints) (s:machine_state) (s':machine_state) = publicValuesAreSame ts s s' /\ s.ms_trace = s'.ms_trace
{ "file_name": "vale/specs/hardware/Vale.X64.Leakage_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 29, "end_line": 64, "start_col": 0, "start_line": 62 }
module Vale.X64.Leakage_s open FStar.Mul open Vale.Arch.HeapTypes_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Machine_Semantics_s module F = FStar.FunctionalExtensionality type reg_taint = F.restricted_t reg (fun _ -> taint) noeq type leakage_taints = | LeakageTaints: regTaint: reg_taint -> flagsTa...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.Heap.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Map.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "a...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ts: Vale.X64.Leakage_s.leakage_taints -> s: Vale.X64.Machine_Semantics_s.machine_state -> s': Vale.X64.Machine_Semantics_s.machine_state -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Leakage_s.leakage_taints", "Vale.X64.Machine_Semantics_s.machine_state", "Prims.l_and", "Vale.X64.Leakage_s.publicValuesAreSame", "Prims.b2t", "Prims.op_Equality", "Prims.list", "Vale.X64.Machine_s.observation", "Vale.X64.Machine_Semantics_s.__proj__Mkmachine_state__item__ms_trace", "Pri...
[]
false
false
false
true
true
let constTimeInvariant (ts: leakage_taints) (s s': machine_state) =
publicValuesAreSame ts s s' /\ s.ms_trace = s'.ms_trace
false
IMSTsub.fst
IMSTsub.st_ite
val st_ite : a: Type -> wp: IMSTsub.st_wp a -> s: Type0 -> rel: FStar.Preorder.preorder s -> post: IMSTsub.st_post s a -> s0: s -> Prims.logical
let st_ite (a:Type) (wp:st_wp a) (s:Type0) (rel:preorder s) (post:st_post s a) (s0:s) = forall (k:st_post s a). (forall (x:a) (s1:s).{:pattern (guard_free (k x s1))} post x s1 ==> k x s1) ==> wp s rel k s0
{ "file_name": "examples/indexed_effects/IMSTsub.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 24, "end_line": 56, "start_col": 0, "start_line": 53 }
(* 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.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Monotonic.Witnessed.fsti.checked" ], "interface_file": false, "source_file": "IMSTsub.fst" }
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> wp: IMSTsub.st_wp a -> s: Type0 -> rel: FStar.Preorder.preorder s -> post: IMSTsub.st_post s a -> s0: s -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "IMSTsub.st_wp", "FStar.Preorder.preorder", "IMSTsub.st_post", "Prims.l_Forall", "Prims.l_imp", "Prims.guard_free", "Prims.logical" ]
[]
false
false
false
true
true
let st_ite (a: Type) (wp: st_wp a) (s: Type0) (rel: preorder s) (post: st_post s a) (s0: s) =
forall (k: st_post s a). (forall (x: a) (s1: s). {:pattern (guard_free (k x s1))} post x s1 ==> k x s1) ==> wp s rel k s0
false
IMSTsub.fst
IMSTsub.st_close
val st_close : a: Type -> b: Type -> wp: (_: b -> Prims.GTot (IMSTsub.st_wp a)) -> s: Type0 -> rel: FStar.Preorder.preorder s -> p: IMSTsub.st_post s a -> s0: s -> Prims.logical
let st_close (a:Type) (b:Type) (wp:(b -> GTot (st_wp a))) (s:Type0) (rel:preorder s) (p:st_post s a) (s0:s) = forall x. wp x s rel p s0
{ "file_name": "examples/indexed_effects/IMSTsub.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 29, "end_line": 66, "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", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Monotonic.Witnessed.fsti.checked" ], "interface_file": false, "source_file": "IMSTsub.fst" }
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> b: Type -> wp: (_: b -> Prims.GTot (IMSTsub.st_wp a)) -> s: Type0 -> rel: FStar.Preorder.preorder s -> p: IMSTsub.st_post s a -> s0: s -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "IMSTsub.st_wp", "FStar.Preorder.preorder", "IMSTsub.st_post", "Prims.l_Forall", "Prims.logical" ]
[]
false
false
false
false
true
let st_close (a b: Type) (wp: (b -> GTot (st_wp a))) (s: Type0) (rel: preorder s) (p: st_post s a) (s0: s) =
forall x. wp x s rel p s0
false
IMSTsub.fst
IMSTsub.st_if_then_else
val st_if_then_else : a: Type -> p: Type0 -> wp_then: IMSTsub.st_wp a -> wp_else: IMSTsub.st_wp a -> s: Type0 -> rel: FStar.Preorder.preorder s -> post: IMSTsub.st_post s a -> s0: s -> Prims.logical
let st_if_then_else (a:Type) (p:Type) (wp_then:st_wp a) (wp_else:st_wp a) (s:Type0) (rel:preorder s) (post:st_post s a) (s0:s) = l_ITE p (wp_then s rel post s0) (wp_else s rel post s0)
{ "file_name": "examples/indexed_effects/IMSTsub.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 59, "end_line": 50, "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.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Monotonic.Witnessed.fsti.checked" ], "interface_file": false, "source_file": "IMSTsub.fst" }
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> p: Type0 -> wp_then: IMSTsub.st_wp a -> wp_else: IMSTsub.st_wp a -> s: Type0 -> rel: FStar.Preorder.preorder s -> post: IMSTsub.st_post s a -> s0: s -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "IMSTsub.st_wp", "FStar.Preorder.preorder", "IMSTsub.st_post", "Prims.l_ITE", "Prims.logical" ]
[]
false
false
false
true
true
let st_if_then_else (a p: Type) (wp_then wp_else: st_wp a) (s: Type0) (rel: preorder s) (post: st_post s a) (s0: s) =
l_ITE p (wp_then s rel post s0) (wp_else s rel post s0)
false
IMSTsub.fst
IMSTsub.st_trivial
val st_trivial : a: Type -> wp: IMSTsub.st_wp a -> Prims.logical
let st_trivial (a:Type) (wp:st_wp a) = forall s rel s0. wp s rel (fun _ _ -> True) s0
{ "file_name": "examples/indexed_effects/IMSTsub.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 50, "end_line": 70, "start_col": 0, "start_line": 69 }
(* 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.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Monotonic.Witnessed.fsti.checked" ], "interface_file": false, "source_file": "IMSTsub.fst" }
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> wp: IMSTsub.st_wp a -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "IMSTsub.st_wp", "Prims.l_Forall", "FStar.Preorder.preorder", "Prims.l_True", "Prims.logical" ]
[]
false
false
false
true
true
let st_trivial (a: Type) (wp: st_wp a) =
forall s rel s0. wp s rel (fun _ _ -> True) s0
false
IMSTsub.fst
IMSTsub.st_stronger
val st_stronger : a: Type -> wp1: IMSTsub.st_wp a -> wp2: IMSTsub.st_wp a -> Prims.logical
let st_stronger (a:Type) (wp1:st_wp a) (wp2:st_wp a) = forall (s:Type0) (rel:preorder s) (p:st_post s a) (s0:s) . wp1 s rel p s0 ==> wp2 s rel p s0
{ "file_name": "examples/indexed_effects/IMSTsub.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 39, "end_line": 61, "start_col": 0, "start_line": 59 }
(* 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.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Monotonic.Witnessed.fsti.checked" ], "interface_file": false, "source_file": "IMSTsub.fst" }
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> wp1: IMSTsub.st_wp a -> wp2: IMSTsub.st_wp a -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "IMSTsub.st_wp", "Prims.l_Forall", "FStar.Preorder.preorder", "IMSTsub.st_post", "Prims.l_imp", "Prims.logical" ]
[]
false
false
false
true
true
let st_stronger (a: Type) (wp1 wp2: st_wp a) =
forall (s: Type0) (rel: preorder s) (p: st_post s a) (s0: s). wp1 s rel p s0 ==> wp2 s rel p s0
false
IMSTsub.fst
IMSTsub.st_wp'
val st_wp' : a: Type -> s: Type0 -> Type
let st_wp' (a:Type) (s:Type0) = st_post s a -> Tot (st_pre s)
{ "file_name": "examples/indexed_effects/IMSTsub.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 33, "end_line": 98, "start_col": 0, "start_line": 97 }
(* 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.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Monotonic.Witnessed.fsti.checked" ], "interface_file": false, "source_file": "IMSTsub.fst" }
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> s: Type0 -> Type
Prims.Tot
[ "total" ]
[]
[ "IMSTsub.st_post", "IMSTsub.st_pre" ]
[]
false
false
false
true
true
let st_wp' (a: Type) (s: Type0) =
st_post s a -> Tot (st_pre s)
false
Vale.X64.Leakage_s.fst
Vale.X64.Leakage_s.is_explicit_leakage_free_lhs
val is_explicit_leakage_free_lhs : code: Vale.X64.Machine_Semantics_s.code -> fuel: Prims.nat -> ts: Vale.X64.Leakage_s.leakage_taints -> ts': Vale.X64.Leakage_s.leakage_taints -> s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> Prims.logical
let is_explicit_leakage_free_lhs (code:code) (fuel:nat) (ts:leakage_taints) (ts':leakage_taints) (s1:machine_state) (s2:machine_state) = s1.ms_ok /\ s2.ms_ok /\ constTimeInvariant ts s1 s2 /\ (let r1 = machine_eval_code code fuel s1 in let r2 = machine_eval_code code fuel s2 ...
{ "file_name": "vale/specs/hardware/Vale.X64.Leakage_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 70, "end_line": 85, "start_col": 0, "start_line": 80 }
module Vale.X64.Leakage_s open FStar.Mul open Vale.Arch.HeapTypes_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Machine_Semantics_s module F = FStar.FunctionalExtensionality type reg_taint = F.restricted_t reg (fun _ -> taint) noeq type leakage_taints = | LeakageTaints: regTaint: reg_taint -> flagsTa...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.Heap.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Map.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "a...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
code: Vale.X64.Machine_Semantics_s.code -> fuel: Prims.nat -> ts: Vale.X64.Leakage_s.leakage_taints -> ts': Vale.X64.Leakage_s.leakage_taints -> s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_Semantics_s.code", "Prims.nat", "Vale.X64.Leakage_s.leakage_taints", "Vale.X64.Machine_Semantics_s.machine_state", "Prims.l_and", "Prims.b2t", "Vale.X64.Machine_Semantics_s.__proj__Mkmachine_state__item__ms_ok", "Vale.X64.Leakage_s.constTimeInvariant", "FStar.Pervasives.Native.uu__...
[]
false
false
false
true
true
let is_explicit_leakage_free_lhs (code: code) (fuel: nat) (ts ts': leakage_taints) (s1 s2: machine_state) =
s1.ms_ok /\ s2.ms_ok /\ constTimeInvariant ts s1 s2 /\ (let r1 = machine_eval_code code fuel s1 in let r2 = machine_eval_code code fuel s2 in Some? r1 /\ Some? r2 /\ (Some?.v r1).ms_ok /\ (Some?.v r2).ms_ok)
false
IMSTsub.fst
IMSTsub.lift_div_imst
val lift_div_imst : a: Type -> wp: Prims.pure_wp a -> s: Type0 -> rel: FStar.Preorder.preorder s -> post: IMSTsub.st_post s a -> s0: s -> Prims.pure_pre
let lift_div_imst (a:Type) (wp:pure_wp a) (s:Type0) (rel:preorder s) (post:st_post s a) (s0:s) = wp (fun x -> post x s0)
{ "file_name": "examples/indexed_effects/IMSTsub.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 27, "end_line": 91, "start_col": 0, "start_line": 89 }
(* 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.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Monotonic.Witnessed.fsti.checked" ], "interface_file": false, "source_file": "IMSTsub.fst" }
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> wp: Prims.pure_wp a -> s: Type0 -> rel: FStar.Preorder.preorder s -> post: IMSTsub.st_post s a -> s0: s -> Prims.pure_pre
Prims.Tot
[ "total" ]
[]
[ "Prims.pure_wp", "FStar.Preorder.preorder", "IMSTsub.st_post", "Prims.l_True", "Prims.pure_pre" ]
[]
false
false
false
true
false
let lift_div_imst (a: Type) (wp: pure_wp a) (s: Type0) (rel: preorder s) (post: st_post s a) (s0: s) =
wp (fun x -> post x s0)
false
IMSTsub.fst
IMSTsub.nat_rel'
val nat_rel':relation nat
val nat_rel':relation nat
let nat_rel' : relation nat = fun i j -> i <= j
{ "file_name": "examples/indexed_effects/IMSTsub.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 21, "end_line": 125, "start_col": 0, "start_line": 124 }
(* 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.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Monotonic.Witnessed.fsti.checked" ], "interface_file": false, "source_file": "IMSTsub.fst" }
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
FStar.Preorder.relation Prims.nat
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.b2t", "Prims.op_LessThanOrEqual" ]
[]
false
false
false
true
false
let nat_rel':relation nat =
fun i j -> i <= j
false
HaclExample2.fst
HaclExample2.five
val five : Type0
let five = normalize (nat_t_of_nat 5)
{ "file_name": "share/steel/examples/steelc/HaclExample2.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 69, "end_line": 19, "start_col": 32, "start_line": 19 }
module HaclExample2 open Steel.ST.GenElim open Steel.ST.C.Types open Steel.C.Typenat open Steel.C.Typestring module SZ = FStar.SizeT module U64 = FStar.UInt64 (** In this file we demonstrate how Steel could be used to manipulate the following data type used in Hacl*: https://github.com/project-everest/hacl-star...
{ "checked_file": "/", "dependencies": [ "Steel.ST.GenElim.fsti.checked", "Steel.ST.C.Types.fst.checked", "Steel.C.Typestring.fsti.checked", "Steel.C.Typenat.fsti.checked", "prims.fst.checked", "FStar.UInt64.fsti.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FSt...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "SZ" }, { "abbrev": false, "full_module": "Steel.C.Typestring", "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
Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.normalize", "Steel.C.Typenat.nat_t_of_nat" ]
[]
false
false
false
true
true
let five =
normalize (nat_t_of_nat 5)
false
IMSTsub.fst
IMSTsub.witnessed
val witnessed (#s: Type) (#rel: preorder s) (p: predicate s) : Type0
val witnessed (#s: Type) (#rel: preorder s) (p: predicate s) : Type0
let witnessed (#s:Type) (#rel:preorder s) (p:predicate s) :Type0 = W.witnessed rel p
{ "file_name": "examples/indexed_effects/IMSTsub.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 84, "end_line": 112, "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.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Monotonic.Witnessed.fsti.checked" ], "interface_file": false, "source_file": "IMSTsub.fst" }
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
p: FStar.Preorder.predicate s -> Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.Preorder.preorder", "FStar.Preorder.predicate", "FStar.Monotonic.Witnessed.witnessed" ]
[]
false
false
false
true
true
let witnessed (#s: Type) (#rel: preorder s) (p: predicate s) : Type0 =
W.witnessed rel p
false
Vale.X64.Leakage_s.fst
Vale.X64.Leakage_s.is_explicit_leakage_free_rhs
val is_explicit_leakage_free_rhs : code: Vale.X64.Machine_Semantics_s.code -> fuel: Prims.nat -> ts: Vale.X64.Leakage_s.leakage_taints -> ts': Vale.X64.Leakage_s.leakage_taints -> s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> Prims.logical
let is_explicit_leakage_free_rhs (code:code) (fuel:nat) (ts:leakage_taints) (ts':leakage_taints) (s1:machine_state) (s2:machine_state) = let r1 = machine_eval_code code fuel s1 in let r2 = machine_eval_code code fuel s2 in Some? r1 /\ Some? r2 /\ publicValuesAreSame ts' (Some?...
{ "file_name": "vale/specs/hardware/Vale.X64.Leakage_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 77, "end_line": 91, "start_col": 0, "start_line": 87 }
module Vale.X64.Leakage_s open FStar.Mul open Vale.Arch.HeapTypes_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Machine_Semantics_s module F = FStar.FunctionalExtensionality type reg_taint = F.restricted_t reg (fun _ -> taint) noeq type leakage_taints = | LeakageTaints: regTaint: reg_taint -> flagsTa...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.Heap.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Map.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "a...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
code: Vale.X64.Machine_Semantics_s.code -> fuel: Prims.nat -> ts: Vale.X64.Leakage_s.leakage_taints -> ts': Vale.X64.Leakage_s.leakage_taints -> s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_Semantics_s.code", "Prims.nat", "Vale.X64.Leakage_s.leakage_taints", "Vale.X64.Machine_Semantics_s.machine_state", "Prims.l_and", "Prims.b2t", "FStar.Pervasives.Native.uu___is_Some", "Vale.X64.Leakage_s.publicValuesAreSame", "FStar.Pervasives.Native.__proj__Some__item__v", "FStar...
[]
false
false
false
true
true
let is_explicit_leakage_free_rhs (code: code) (fuel: nat) (ts ts': leakage_taints) (s1 s2: machine_state) =
let r1 = machine_eval_code code fuel s1 in let r2 = machine_eval_code code fuel s2 in Some? r1 /\ Some? r2 /\ publicValuesAreSame ts' (Some?.v r1) (Some?.v r2)
false
HaclExample2.fst
HaclExample2.twenty
val twenty : Type0
let twenty = normalize (nat_t_of_nat 20)
{ "file_name": "share/steel/examples/steelc/HaclExample2.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 72, "end_line": 20, "start_col": 32, "start_line": 20 }
module HaclExample2 open Steel.ST.GenElim open Steel.ST.C.Types open Steel.C.Typenat open Steel.C.Typestring module SZ = FStar.SizeT module U64 = FStar.UInt64 (** In this file we demonstrate how Steel could be used to manipulate the following data type used in Hacl*: https://github.com/project-everest/hacl-star...
{ "checked_file": "/", "dependencies": [ "Steel.ST.GenElim.fsti.checked", "Steel.ST.C.Types.fst.checked", "Steel.C.Typestring.fsti.checked", "Steel.C.Typenat.fsti.checked", "prims.fst.checked", "FStar.UInt64.fsti.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FSt...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "SZ" }, { "abbrev": false, "full_module": "Steel.C.Typestring", "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
Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.normalize", "Steel.C.Typenat.nat_t_of_nat" ]
[]
false
false
false
true
true
let twenty =
normalize (nat_t_of_nat 20)
false
Vale.X64.Leakage_s.fst
Vale.X64.Leakage_s.isConstantTimeGivenStates
val isConstantTimeGivenStates : code: Vale.X64.Machine_Semantics_s.code -> fuel: Prims.nat -> ts: Vale.X64.Leakage_s.leakage_taints -> s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> Prims.logical
let isConstantTimeGivenStates (code:code) (fuel:nat) (ts:leakage_taints) (s1:machine_state) (s2:machine_state) = let r1 = machine_eval_code code fuel s1 in let r2 = machine_eval_code code fuel s2 in ( (Some? r1) /\ (Some? r2) /\ s1.ms_ok /\ (Some?.v r1).ms_ok /\ s2.ms_ok /\ (Some?.v r2).ms_ok /\ constTim...
{ "file_name": "vale/specs/hardware/Vale.X64.Leakage_s.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 53, "end_line": 74, "start_col": 0, "start_line": 67 }
module Vale.X64.Leakage_s open FStar.Mul open Vale.Arch.HeapTypes_s open Vale.Arch.Heap open Vale.X64.Machine_s open Vale.X64.Machine_Semantics_s module F = FStar.FunctionalExtensionality type reg_taint = F.restricted_t reg (fun _ -> taint) noeq type leakage_taints = | LeakageTaints: regTaint: reg_taint -> flagsTa...
{ "checked_file": "/", "dependencies": [ "Vale.X64.Machine_Semantics_s.fst.checked", "Vale.X64.Machine_s.fst.checked", "Vale.Arch.HeapTypes_s.fst.checked", "Vale.Arch.Heap.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Map.fsti.ch...
[ { "abbrev": true, "full_module": "FStar.FunctionalExtensionality", "short_module": "F" }, { "abbrev": false, "full_module": "Vale.X64.Machine_Semantics_s", "short_module": null }, { "abbrev": false, "full_module": "Vale.X64.Machine_s", "short_module": null }, { "a...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 0, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
code: Vale.X64.Machine_Semantics_s.code -> fuel: Prims.nat -> ts: Vale.X64.Leakage_s.leakage_taints -> s1: Vale.X64.Machine_Semantics_s.machine_state -> s2: Vale.X64.Machine_Semantics_s.machine_state -> Prims.logical
Prims.Tot
[ "total" ]
[]
[ "Vale.X64.Machine_Semantics_s.code", "Prims.nat", "Vale.X64.Leakage_s.leakage_taints", "Vale.X64.Machine_Semantics_s.machine_state", "Prims.l_imp", "Prims.l_and", "Prims.b2t", "FStar.Pervasives.Native.uu___is_Some", "Vale.X64.Machine_Semantics_s.__proj__Mkmachine_state__item__ms_ok", "FStar.Pervas...
[]
false
false
false
true
true
let isConstantTimeGivenStates (code: code) (fuel: nat) (ts: leakage_taints) (s1 s2: machine_state) =
let r1 = machine_eval_code code fuel s1 in let r2 = machine_eval_code code fuel s2 in ((Some? r1) /\ (Some? r2) /\ s1.ms_ok /\ (Some?.v r1).ms_ok /\ s2.ms_ok /\ (Some?.v r2).ms_ok /\ constTimeInvariant ts s1 s2) ==> (Some?.v r1).ms_trace = (Some?.v r2).ms_trace
false
IMSTsub.fst
IMSTsub.idx
val idx (#a: Type) (s: Type0) (rel: preorder s) (wp: st_wp' a s) : st_wp a
val idx (#a: Type) (s: Type0) (rel: preorder s) (wp: st_wp' a s) : st_wp a
let idx (#a:Type) (s:Type0) (rel:preorder s) (wp:st_wp' a s) : st_wp a = fun s' rel' post s0 -> s == s' /\ (forall x y . rel x y ==> rel' x y) /\ wp post s0
{ "file_name": "examples/indexed_effects/IMSTsub.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 87, "end_line": 103, "start_col": 0, "start_line": 102 }
(* 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.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Monotonic.Witnessed.fsti.checked" ], "interface_file": false, "source_file": "IMSTsub.fst" }
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
s: Type0 -> rel: FStar.Preorder.preorder s -> wp: IMSTsub.st_wp' a s -> IMSTsub.st_wp a
Prims.Tot
[ "total" ]
[]
[ "FStar.Preorder.preorder", "IMSTsub.st_wp'", "FStar.Pervasives.st_post_h", "Prims.l_and", "Prims.eq2", "Prims.l_Forall", "Prims.l_imp", "IMSTsub.st_wp" ]
[]
false
false
false
true
false
let idx (#a: Type) (s: Type0) (rel: preorder s) (wp: st_wp' a s) : st_wp a =
fun s' rel' post s0 -> s == s' /\ (forall x y. rel x y ==> rel' x y) /\ wp post s0
false
IMSTsub.fst
IMSTsub.nat_rel
val nat_rel:preorder nat
val nat_rel:preorder nat
let nat_rel : preorder nat = nat_rel'
{ "file_name": "examples/indexed_effects/IMSTsub.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 37, "end_line": 127, "start_col": 0, "start_line": 127 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Monotonic.Witnessed.fsti.checked" ], "interface_file": false, "source_file": "IMSTsub.fst" }
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
FStar.Preorder.preorder Prims.nat
Prims.Tot
[ "total" ]
[]
[ "IMSTsub.nat_rel'" ]
[]
false
false
false
true
false
let nat_rel:preorder nat =
nat_rel'
false
IMSTsub.fst
IMSTsub.eq_rel'
val eq_rel':relation nat
val eq_rel':relation nat
let eq_rel' : relation nat = fun i j -> i = j
{ "file_name": "examples/indexed_effects/IMSTsub.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 20, "end_line": 130, "start_col": 0, "start_line": 129 }
(* 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.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Monotonic.Witnessed.fsti.checked" ], "interface_file": false, "source_file": "IMSTsub.fst" }
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
FStar.Preorder.relation Prims.nat
Prims.Tot
[ "total" ]
[]
[ "Prims.nat", "Prims.b2t", "Prims.op_Equality" ]
[]
false
false
false
true
false
let eq_rel':relation nat =
fun i j -> i = j
false
IMSTsub.fst
IMSTsub.eq_rel
val eq_rel:preorder nat
val eq_rel:preorder nat
let eq_rel : preorder nat = eq_rel'
{ "file_name": "examples/indexed_effects/IMSTsub.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 35, "end_line": 132, "start_col": 0, "start_line": 132 }
(* 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.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Monotonic.Witnessed.fsti.checked" ], "interface_file": false, "source_file": "IMSTsub.fst" }
[ { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "f...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
FStar.Preorder.preorder Prims.nat
Prims.Tot
[ "total" ]
[]
[ "IMSTsub.eq_rel'" ]
[]
false
false
false
true
false
let eq_rel:preorder nat =
eq_rel'
false
HaclExample2.fst
HaclExample2.comp_name
val comp_name : Type0
let comp_name = normalize (mk_string_t "HaclExample2.comp")
{ "file_name": "share/steel/examples/steelc/HaclExample2.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 91, "end_line": 21, "start_col": 32, "start_line": 21 }
module HaclExample2 open Steel.ST.GenElim open Steel.ST.C.Types open Steel.C.Typenat open Steel.C.Typestring module SZ = FStar.SizeT module U64 = FStar.UInt64 (** In this file we demonstrate how Steel could be used to manipulate the following data type used in Hacl*: https://github.com/project-everest/hacl-star...
{ "checked_file": "/", "dependencies": [ "Steel.ST.GenElim.fsti.checked", "Steel.ST.C.Types.fst.checked", "Steel.C.Typestring.fsti.checked", "Steel.C.Typenat.fsti.checked", "prims.fst.checked", "FStar.UInt64.fsti.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FSt...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "SZ" }, { "abbrev": false, "full_module": "Steel.C.Typestring", "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
Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.normalize", "Steel.C.Typestring.mk_string_t" ]
[]
false
false
false
true
true
let comp_name =
normalize (mk_string_t "HaclExample2.comp")
false
HaclExample2.fst
HaclExample2.comp
val comp : Steel.ST.C.Types.Base.typedef (Steel.ST.C.Types.Struct.struct_t0 HaclExample2.comp_name "HaclExample2.comp" HaclExample2.comp_fields)
let comp = struct0 comp_name "HaclExample2.comp" comp_fields
{ "file_name": "share/steel/examples/steelc/HaclExample2.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 60, "end_line": 33, "start_col": 0, "start_line": 33 }
module HaclExample2 open Steel.ST.GenElim open Steel.ST.C.Types open Steel.C.Typenat open Steel.C.Typestring module SZ = FStar.SizeT module U64 = FStar.UInt64 (** In this file we demonstrate how Steel could be used to manipulate the following data type used in Hacl*: https://github.com/project-everest/hacl-star...
{ "checked_file": "/", "dependencies": [ "Steel.ST.GenElim.fsti.checked", "Steel.ST.C.Types.fst.checked", "Steel.C.Typestring.fsti.checked", "Steel.C.Typenat.fsti.checked", "prims.fst.checked", "FStar.UInt64.fsti.checked", "FStar.SizeT.fsti.checked", "FStar.Seq.fst.checked", "FSt...
[ { "abbrev": true, "full_module": "FStar.UInt64", "short_module": "U64" }, { "abbrev": true, "full_module": "FStar.SizeT", "short_module": "SZ" }, { "abbrev": false, "full_module": "Steel.C.Typestring", "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
Steel.ST.C.Types.Base.typedef (Steel.ST.C.Types.Struct.struct_t0 HaclExample2.comp_name "HaclExample2.comp" HaclExample2.comp_fields)
Prims.Tot
[ "total" ]
[]
[ "Steel.ST.C.Types.Struct.struct0", "HaclExample2.comp_name", "Steel.ST.C.Types.Fields.field_t_cons", "Steel.C.Typestring.string_cons", "Steel.C.Typestring.cl", "Steel.C.Typestring.ci", "Steel.C.Typestring.cm", "Steel.C.Typestring.cb", "Steel.C.Typestring.cs", "Steel.C.Typestring.string_nil", "St...
[]
false
false
false
false
false
let comp =
struct0 comp_name "HaclExample2.comp" comp_fields
false
IMSTsub.fst
IMSTsub.h
val h: Prims.unit -> IMST nat (idx nat nat_rel (fun p s0 -> forall s1. s1 > s0 ==> p s1 s1))
val h: Prims.unit -> IMST nat (idx nat nat_rel (fun p s0 -> forall s1. s1 > s0 ==> p s1 s1))
let h () : IMST nat (idx nat nat_rel (fun p s0 -> forall s1 . s1 > s0 ==> p s1 s1)) = let s0 = get #nat #eq_rel () in put #nat #eq_rel s0; put #nat #nat_rel (s0 + 1); let s1 = get #nat #eq_rel () in s1
{ "file_name": "examples/indexed_effects/IMSTsub.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 6, "end_line": 168, "start_col": 0, "start_line": 162 }
(* 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.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Monotonic.Witnessed.fsti.checked" ], "interface_file": false, "source_file": "IMSTsub.fst" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_mod...
{ "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 -> IMSTsub.IMST Prims.nat
IMSTsub.IMST
[]
[]
[ "Prims.unit", "Prims.nat", "IMSTsub.get", "IMSTsub.eq_rel", "IMSTsub.put", "IMSTsub.nat_rel", "Prims.op_Addition", "IMSTsub.idx", "Prims.int", "Prims.b2t", "Prims.op_GreaterThanOrEqual", "IMSTsub.st_post", "Prims.l_Forall", "Prims.l_imp", "Prims.op_GreaterThan" ]
[]
false
true
false
false
false
let h () : IMST nat (idx nat nat_rel (fun p s0 -> forall s1. s1 > s0 ==> p s1 s1)) =
let s0 = get #nat #eq_rel () in put #nat #eq_rel s0; put #nat #nat_rel (s0 + 1); let s1 = get #nat #eq_rel () in s1
false
IMSTsub.fst
IMSTsub.g
val g: Prims.unit -> IMST nat (idx nat nat_rel (fun p s0 -> forall s1. s1 > s0 ==> p s0 s1))
val g: Prims.unit -> IMST nat (idx nat nat_rel (fun p s0 -> forall s1. s1 > s0 ==> p s0 s1))
let g () : IMST nat (idx nat nat_rel (fun p s0 -> forall s1 . s1 > s0 ==> p s0 s1)) = let s0 = get #nat #nat_rel () in put #nat #nat_rel (s0 + 1); let s1 = get #nat #nat_rel () in assert (s1 > 0); witness #nat #nat_rel (fun n -> n > 0); put #nat #nat_rel (s1 * 42); recall #nat #nat_rel (f...
{ "file_name": "examples/indexed_effects/IMSTsub.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 6, "end_line": 160, "start_col": 0, "start_line": 140 }
(* 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.Preorder.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Mul.fst.checked", "FStar.Monotonic.Witnessed.fsti.checked" ], "interface_file": false, "source_file": "IMSTsub.fst" }
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": true, "full_module": "FStar.Monotonic.Witnessed", "short_module": "W" }, { "abbrev": false, "full_module": "FStar.Preorder", "short_module": null }, { "abbrev": false, "full_mod...
{ "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 -> IMSTsub.IMST Prims.nat
IMSTsub.IMST
[]
[]
[ "Prims.unit", "Prims._assert", "Prims.l_False", "Prims.b2t", "Prims.op_Equality", "Prims.nat", "Prims.int", "FStar.Mul.op_Star", "Prims.op_GreaterThan", "IMSTsub.get", "IMSTsub.nat_rel", "IMSTsub.recall", "IMSTsub.eq_rel", "IMSTsub.put", "IMSTsub.witness", "Prims.op_Addition", "IMSTs...
[]
false
true
false
false
false
let g () : IMST nat (idx nat nat_rel (fun p s0 -> forall s1. s1 > s0 ==> p s0 s1)) =
let s0 = get #nat #nat_rel () in put #nat #nat_rel (s0 + 1); let s1 = get #nat #nat_rel () in assert (s1 > 0); witness #nat #nat_rel (fun n -> n > 0); put #nat #nat_rel (s1 * 42); recall #nat #nat_rel (fun n -> n > 0); let s2 = get #nat #nat_rel () in assert (s2 > 0); witness #nat #eq_rel (fun n -> n = s2); put #nat #n...
false
Steel.ST.PCMReference.fsti
Steel.ST.PCMReference.pts_to
val pts_to : r: Steel.Memory.ref a pcm -> v: a -> Steel.Effect.Common.vprop
let pts_to (#a:Type) (#pcm:pcm a) (r:ref a pcm) (v:a) = to_vprop (pts_to r v)
{ "file_name": "lib/steel/Steel.ST.PCMReference.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 77, "end_line": 33, "start_col": 0, "start_line": 33 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.PCM.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "Steel.ST.PCMReference.fsti" }
[ { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": false, "full_module": "FStar.PCM", "short_module": null }, { "abbrev": false, "full_module": "Steel....
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Steel.Memory.ref a pcm -> v: a -> Steel.Effect.Common.vprop
Prims.Tot
[ "total" ]
[]
[ "FStar.PCM.pcm", "Steel.Memory.ref", "Steel.Effect.Common.to_vprop", "Steel.Memory.pts_to", "Steel.Effect.Common.vprop" ]
[]
false
false
false
false
false
let pts_to (#a: Type) (#pcm: pcm a) (r: ref a pcm) (v: a) =
to_vprop (pts_to r v)
false
Steel.ST.PCMReference.fsti
Steel.ST.PCMReference.fact_valid_compat
val fact_valid_compat : fact: Steel.Memory.stable_property pcm -> v: FStar.Ghost.erased a -> Type0
let fact_valid_compat (#a:Type) (#pcm:pcm a) (fact:stable_property pcm) (v:erased a) = squash (forall z. compatible pcm v z ==> fact z)
{ "file_name": "lib/steel/Steel.ST.PCMReference.fsti", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 52, "end_line": 128, "start_col": 0, "start_line": 125 }
(* Copyright 2020 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to...
{ "checked_file": "/", "dependencies": [ "Steel.ST.Util.fsti.checked", "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.PCM.fst.checked", "FStar.Ghost.fsti.checked" ], "interface_file": false, "source_file": "Steel.ST.PCMReference.fsti" }
[ { "abbrev": false, "full_module": "Steel.ST.Util", "short_module": null }, { "abbrev": false, "full_module": "FStar.Ghost", "short_module": null }, { "abbrev": false, "full_module": "FStar.PCM", "short_module": null }, { "abbrev": false, "full_module": "Steel....
{ "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
fact: Steel.Memory.stable_property pcm -> v: FStar.Ghost.erased a -> Type0
Prims.Tot
[ "total" ]
[]
[ "FStar.PCM.pcm", "Steel.Memory.stable_property", "FStar.Ghost.erased", "Prims.squash", "Prims.l_Forall", "Prims.l_imp", "FStar.PCM.compatible", "FStar.Ghost.reveal" ]
[]
false
false
false
false
true
let fact_valid_compat (#a: Type) (#pcm: pcm a) (fact: stable_property pcm) (v: erased a) =
squash (forall z. compatible pcm v z ==> fact z)
false
Spec.Hash.Lemmas.fst
Spec.Hash.Lemmas.block_length_smaller_than_max_input
val block_length_smaller_than_max_input (a:hash_alg) : Lemma (block_length a `less_than_max_input_length` a)
val block_length_smaller_than_max_input (a:hash_alg) : Lemma (block_length a `less_than_max_input_length` a)
let block_length_smaller_than_max_input (a:hash_alg) = normalize_term_spec(pow2 61 - 1); normalize_term_spec(pow2 125 - 1); normalize_term_spec(pow2 64 - 1)
{ "file_name": "specs/lemmas/Spec.Hash.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 34, "end_line": 210, "start_col": 0, "start_line": 207 }
module Spec.Hash.Lemmas module S = FStar.Seq open Lib.IntTypes open Spec.Agile.Hash open Spec.Hash.Definitions friend Spec.Agile.Hash (** Lemmas about the behavior of update_multi / update_last *) #push-options "--fuel 0 --ifuel 1 --z3rlimit 50" let update_multi_zero a h = match a with | MD5 | SHA1 | SHA2_224...
{ "checked_file": "/", "dependencies": [ "Spec.SHA3.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fst.checked", "Spec.Agile.Hash.fst.checked", "prims.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", ...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Hash.Definitions.hash_alg -> FStar.Pervasives.Lemma (ensures Spec.Hash.Definitions.less_than_max_input_length (Spec.Hash.Definitions.block_length a) a)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "FStar.Pervasives.normalize_term_spec", "Prims.int", "Prims.op_Subtraction", "Prims.pow2", "Prims.unit" ]
[]
true
false
true
false
false
let block_length_smaller_than_max_input (a: hash_alg) =
normalize_term_spec (pow2 61 - 1); normalize_term_spec (pow2 125 - 1); normalize_term_spec (pow2 64 - 1)
false
Hacl.Chacha20.Vec128.fst
Hacl.Chacha20.Vec128.double_round_128
val double_round_128 : Hacl.Meta.Chacha20.Vec.core32xn_double_round_higher_t Prims.l_True
let double_round_128 = core32xn_double_round_higher #4 True
{ "file_name": "code/chacha20/Hacl.Chacha20.Vec128.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 59, "end_line": 7, "start_col": 0, "start_line": 7 }
module Hacl.Chacha20.Vec128 open Hacl.Meta.Chacha20.Vec [@CInline]
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Meta.Chacha20.Vec.fst.checked", "Hacl.Impl.Chacha20.Vec.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Hacl.Chacha20.Vec128.fst" }
[ { "abbrev": false, "full_module": "Hacl.Meta.Chacha20.Vec", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Chacha20", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Chacha20", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 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.Meta.Chacha20.Vec.core32xn_double_round_higher_t Prims.l_True
Prims.Tot
[ "total" ]
[]
[ "Hacl.Meta.Chacha20.Vec.core32xn_double_round_higher", "Prims.l_True" ]
[]
false
false
false
false
false
let double_round_128 =
core32xn_double_round_higher #4 True
false
Spec.Hash.Lemmas.fst
Spec.Hash.Lemmas.lemma_blocki_aux1
val lemma_blocki_aux1 (a: blake_alg) (s1 s2: bytes) (i: nat{i < S.length s1 / block_length a}) : Lemma (Spec.Blake2.get_blocki (to_blake_alg a) s1 i == Spec.Blake2.get_blocki (to_blake_alg a) (S.append s1 s2) i)
val lemma_blocki_aux1 (a: blake_alg) (s1 s2: bytes) (i: nat{i < S.length s1 / block_length a}) : Lemma (Spec.Blake2.get_blocki (to_blake_alg a) s1 i == Spec.Blake2.get_blocki (to_blake_alg a) (S.append s1 s2) i)
let lemma_blocki_aux1 (a:blake_alg) (s1 s2:bytes) (i:nat{i < S.length s1 / block_length a}) : Lemma (Spec.Blake2.get_blocki (to_blake_alg a) s1 i == Spec.Blake2.get_blocki (to_blake_alg a) (S.append s1 s2) i) = assert (Spec.Blake2.get_blocki (to_blake_alg a) s1 i `S.equal` Spec.Blake2.get_blocki (to_blake_alg a) (S...
{ "file_name": "specs/lemmas/Spec.Hash.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 126, "end_line": 77, "start_col": 0, "start_line": 75 }
module Spec.Hash.Lemmas module S = FStar.Seq open Lib.IntTypes open Spec.Agile.Hash open Spec.Hash.Definitions friend Spec.Agile.Hash (** Lemmas about the behavior of update_multi / update_last *) #push-options "--fuel 0 --ifuel 1 --z3rlimit 50" let update_multi_zero a h = match a with | MD5 | SHA1 | SHA2_224...
{ "checked_file": "/", "dependencies": [ "Spec.SHA3.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fst.checked", "Spec.Agile.Hash.fst.checked", "prims.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", ...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": true, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Hash.Definitions.blake_alg -> s1: Spec.Hash.Definitions.bytes -> s2: Spec.Hash.Definitions.bytes -> i: Prims.nat{i < FStar.Seq.Base.length s1 / Spec.Hash.Definitions.block_length a} -> FStar.Pervasives.Lemma (ensures Spec.Blake2.get_blocki (Spec.Hash.Definitions.to_blake_alg a) s1 i...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.Hash.Definitions.blake_alg", "Spec.Hash.Definitions.bytes", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Prims.op_Division", "FStar.Seq.Base.length", "Lib.IntTypes.uint8", "Spec.Hash.Definitions.block_length", "Prims._assert", "FStar.Seq.Base.equal", "Spec.Blake2.get_blocki", "Spec....
[]
true
false
true
false
false
let lemma_blocki_aux1 (a: blake_alg) (s1 s2: bytes) (i: nat{i < S.length s1 / block_length a}) : Lemma (Spec.Blake2.get_blocki (to_blake_alg a) s1 i == Spec.Blake2.get_blocki (to_blake_alg a) (S.append s1 s2) i) =
assert ((Spec.Blake2.get_blocki (to_blake_alg a) s1 i) `S.equal` (Spec.Blake2.get_blocki (to_blake_alg a) (S.append s1 s2) i))
false
Hacl.Chacha20.Vec128.fst
Hacl.Chacha20.Vec128.chacha20_encrypt_128
val chacha20_encrypt_128 : Hacl.Meta.Chacha20.Vec.vec_chacha20_encrypt_higher_t Prims.l_True
let chacha20_encrypt_128 = vec_chacha20_encrypt_higher #4 True chacha20_init_128 chacha20_core_128
{ "file_name": "code/chacha20/Hacl.Chacha20.Vec128.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 98, "end_line": 15, "start_col": 0, "start_line": 15 }
module Hacl.Chacha20.Vec128 open Hacl.Meta.Chacha20.Vec [@CInline] private let double_round_128 = core32xn_double_round_higher #4 True [@CInline] private let chacha20_core_128 = vec_chacha20_core_higher #4 True double_round_128 [@CInline] private let chacha20_init_128 = Hacl.Impl.Chacha20.Vec.chacha20_init #4
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Meta.Chacha20.Vec.fst.checked", "Hacl.Impl.Chacha20.Vec.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Hacl.Chacha20.Vec128.fst" }
[ { "abbrev": false, "full_module": "Hacl.Meta.Chacha20.Vec", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Chacha20", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Chacha20", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 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.Meta.Chacha20.Vec.vec_chacha20_encrypt_higher_t Prims.l_True
Prims.Tot
[ "total" ]
[]
[ "Hacl.Meta.Chacha20.Vec.vec_chacha20_encrypt_higher", "Prims.l_True", "Hacl.Chacha20.Vec128.chacha20_init_128", "Hacl.Chacha20.Vec128.chacha20_core_128" ]
[]
false
false
false
false
false
let chacha20_encrypt_128 =
vec_chacha20_encrypt_higher #4 True chacha20_init_128 chacha20_core_128
false
Hacl.Chacha20.Vec128.fst
Hacl.Chacha20.Vec128.chacha20_decrypt_128
val chacha20_decrypt_128 : Hacl.Meta.Chacha20.Vec.vec_chacha20_decrypt_higher_t Prims.l_True
let chacha20_decrypt_128 = vec_chacha20_decrypt_higher #4 True chacha20_init_128 chacha20_core_128
{ "file_name": "code/chacha20/Hacl.Chacha20.Vec128.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 98, "end_line": 16, "start_col": 0, "start_line": 16 }
module Hacl.Chacha20.Vec128 open Hacl.Meta.Chacha20.Vec [@CInline] private let double_round_128 = core32xn_double_round_higher #4 True [@CInline] private let chacha20_core_128 = vec_chacha20_core_higher #4 True double_round_128 [@CInline] private let chacha20_init_128 = Hacl.Impl.Chacha20.Vec.chacha20_init #4
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Meta.Chacha20.Vec.fst.checked", "Hacl.Impl.Chacha20.Vec.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Hacl.Chacha20.Vec128.fst" }
[ { "abbrev": false, "full_module": "Hacl.Meta.Chacha20.Vec", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Chacha20", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Chacha20", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 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.Meta.Chacha20.Vec.vec_chacha20_decrypt_higher_t Prims.l_True
Prims.Tot
[ "total" ]
[]
[ "Hacl.Meta.Chacha20.Vec.vec_chacha20_decrypt_higher", "Prims.l_True", "Hacl.Chacha20.Vec128.chacha20_init_128", "Hacl.Chacha20.Vec128.chacha20_core_128" ]
[]
false
false
false
false
false
let chacha20_decrypt_128 =
vec_chacha20_decrypt_higher #4 True chacha20_init_128 chacha20_core_128
false
Spec.Hash.Lemmas.fst
Spec.Hash.Lemmas.update_multi_zero_blake
val update_multi_zero_blake (a: hash_alg { is_blake a } ) (prevlen: extra_state a) (h: words_state a): Lemma (requires (update_multi_pre a prevlen S.empty)) (ensures (update_multi a h prevlen S.empty == h))
val update_multi_zero_blake (a: hash_alg { is_blake a } ) (prevlen: extra_state a) (h: words_state a): Lemma (requires (update_multi_pre a prevlen S.empty)) (ensures (update_multi a h prevlen S.empty == h))
let update_multi_zero_blake a prevlen h = Lib.LoopCombinators.eq_repeati0 (0 / block_length a) (Spec.Blake2.blake2_update1 (to_blake_alg a) prevlen S.empty) h
{ "file_name": "specs/lemmas/Spec.Hash.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 118, "end_line": 28, "start_col": 0, "start_line": 27 }
module Spec.Hash.Lemmas module S = FStar.Seq open Lib.IntTypes open Spec.Agile.Hash open Spec.Hash.Definitions friend Spec.Agile.Hash (** Lemmas about the behavior of update_multi / update_last *) #push-options "--fuel 0 --ifuel 1 --z3rlimit 50" let update_multi_zero a h = match a with | MD5 | SHA1 | SHA2_224...
{ "checked_file": "/", "dependencies": [ "Spec.SHA3.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fst.checked", "Spec.Agile.Hash.fst.checked", "prims.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", ...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": true, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Hash.Definitions.hash_alg{Spec.Hash.Definitions.is_blake a} -> prevlen: Spec.Hash.Definitions.extra_state a -> h: Spec.Hash.Definitions.words_state a -> FStar.Pervasives.Lemma (requires Spec.Agile.Hash.update_multi_pre a prevlen FStar.Seq.Base.empty) (ensures Spec.Agile.Hash.update_mu...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Spec.Hash.Definitions.is_blake", "Spec.Hash.Definitions.extra_state", "Spec.Hash.Definitions.words_state", "Lib.LoopCombinators.eq_repeati0", "Spec.Blake2.Definitions.state", "Spec.Hash.Definitions.to_blake_alg", "Prims.op_Division", "Spec.Hash.Defin...
[]
true
false
true
false
false
let update_multi_zero_blake a prevlen h =
Lib.LoopCombinators.eq_repeati0 (0 / block_length a) (Spec.Blake2.blake2_update1 (to_blake_alg a) prevlen S.empty) h
false
Spec.Hash.Lemmas.fst
Spec.Hash.Lemmas.update_multi_update
val update_multi_update (a: md_alg) (h: words_state a) (input: bytes_block a): Lemma (ensures (update_multi a h () input == update a h input))
val update_multi_update (a: md_alg) (h: words_state a) (input: bytes_block a): Lemma (ensures (update_multi a h () input == update a h input))
let update_multi_update (a: md_alg) (h: words_state a) (input: bytes_block a): Lemma (ensures (update_multi a h () input) == (update a h input)) = let h1 = update_multi a h () input in assert(h1 == Lib.UpdateMulti.mk_update_multi (block_length a) (update a) h input); if S.length input = 0 then begin ass...
{ "file_name": "specs/lemmas/Spec.Hash.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 7, "end_line": 49, "start_col": 0, "start_line": 32 }
module Spec.Hash.Lemmas module S = FStar.Seq open Lib.IntTypes open Spec.Agile.Hash open Spec.Hash.Definitions friend Spec.Agile.Hash (** Lemmas about the behavior of update_multi / update_last *) #push-options "--fuel 0 --ifuel 1 --z3rlimit 50" let update_multi_zero a h = match a with | MD5 | SHA1 | SHA2_224...
{ "checked_file": "/", "dependencies": [ "Spec.SHA3.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fst.checked", "Spec.Agile.Hash.fst.checked", "prims.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", ...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": true, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "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: Spec.Hash.Definitions.md_alg -> h: Spec.Hash.Definitions.words_state a -> input: Spec.Hash.Definitions.bytes_block a -> FStar.Pervasives.Lemma (ensures Spec.Agile.Hash.update_multi a h () input == Spec.Agile.Hash.update a h input)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.Hash.Definitions.md_alg", "Spec.Hash.Definitions.words_state", "Spec.Hash.Definitions.bytes_block", "Prims.op_Equality", "Prims.int", "FStar.Seq.Base.length", "Lib.IntTypes.uint8", "Prims._assert", "Prims.eq2", "Prims.bool", "FStar.Seq.Base.seq", "Lib.UpdateMulti.uint8", "Lib.UpdateMul...
[]
false
false
true
false
false
let update_multi_update (a: md_alg) (h: words_state a) (input: bytes_block a) : Lemma (ensures (update_multi a h () input) == (update a h input)) =
let h1 = update_multi a h () input in assert (h1 == Lib.UpdateMulti.mk_update_multi (block_length a) (update a) h input); if S.length input = 0 then assert (h1 == h) else let block, rem = Lib.UpdateMulti.split_block (block_length a) input 1 in let h2 = update a h block in assert (rem `Seq.equal` Seq.empty); ass...
false
Hacl.Chacha20.Vec128.fst
Hacl.Chacha20.Vec128.chacha20_init_128
val chacha20_init_128 : ctx: Hacl.Impl.Chacha20.Core32xN.state 4 -> k: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> n: Lib.Buffer.lbuffer Lib.IntTypes.uint8 12ul -> ctr0: Lib.IntTypes.size_t -> FStar.HyperStack.ST.Stack Prims.unit
let chacha20_init_128 = Hacl.Impl.Chacha20.Vec.chacha20_init #4
{ "file_name": "code/chacha20/Hacl.Chacha20.Vec128.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 63, "end_line": 13, "start_col": 0, "start_line": 13 }
module Hacl.Chacha20.Vec128 open Hacl.Meta.Chacha20.Vec [@CInline] private let double_round_128 = core32xn_double_round_higher #4 True [@CInline] private let chacha20_core_128 = vec_chacha20_core_higher #4 True double_round_128 [@CInline]
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Meta.Chacha20.Vec.fst.checked", "Hacl.Impl.Chacha20.Vec.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Hacl.Chacha20.Vec128.fst" }
[ { "abbrev": false, "full_module": "Hacl.Meta.Chacha20.Vec", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Chacha20", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Chacha20", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 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
ctx: Hacl.Impl.Chacha20.Core32xN.state 4 -> k: Lib.Buffer.lbuffer Lib.IntTypes.uint8 32ul -> n: Lib.Buffer.lbuffer Lib.IntTypes.uint8 12ul -> ctr0: Lib.IntTypes.size_t -> FStar.HyperStack.ST.Stack Prims.unit
FStar.HyperStack.ST.Stack
[]
[]
[ "Hacl.Impl.Chacha20.Vec.chacha20_init" ]
[]
false
true
false
false
false
let chacha20_init_128 =
Hacl.Impl.Chacha20.Vec.chacha20_init #4
false
FStar.Tactics.Canon.fst
FStar.Tactics.Canon.step_lemma
val step_lemma (lem: term) : Tac unit
val step_lemma (lem: term) : Tac unit
let step_lemma (lem : term) : Tac unit = step (fun () -> apply_lemma lem)
{ "file_name": "ulib/FStar.Tactics.Canon.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 36, "end_line": 131, "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", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.Arith.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Order.fst.checked", "FStar.Mul.fst.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Order", "short_module": "O" }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2.Arith", "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
lem: FStar.Tactics.NamedView.term -> FStar.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Tactics.NamedView.term", "FStar.Tactics.Canon.step", "Prims.unit", "FStar.Tactics.V2.Derived.apply_lemma" ]
[]
false
true
false
false
false
let step_lemma (lem: term) : Tac unit =
step (fun () -> apply_lemma lem)
false
Hacl.Chacha20.Vec128.fst
Hacl.Chacha20.Vec128.chacha20_core_128
val chacha20_core_128 : Hacl.Meta.Chacha20.Vec.vec_chacha20_core_higher_t Prims.l_True
let chacha20_core_128 = vec_chacha20_core_higher #4 True double_round_128
{ "file_name": "code/chacha20/Hacl.Chacha20.Vec128.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 73, "end_line": 10, "start_col": 0, "start_line": 10 }
module Hacl.Chacha20.Vec128 open Hacl.Meta.Chacha20.Vec [@CInline] private let double_round_128 = core32xn_double_round_higher #4 True [@CInline]
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "Hacl.Meta.Chacha20.Vec.fst.checked", "Hacl.Impl.Chacha20.Vec.fst.checked", "FStar.Pervasives.fsti.checked" ], "interface_file": false, "source_file": "Hacl.Chacha20.Vec128.fst" }
[ { "abbrev": false, "full_module": "Hacl.Meta.Chacha20.Vec", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Chacha20", "short_module": null }, { "abbrev": false, "full_module": "Hacl.Chacha20", "short_module": null }, { "abbrev": false, "full_m...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 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.Meta.Chacha20.Vec.vec_chacha20_core_higher_t Prims.l_True
Prims.Tot
[ "total" ]
[]
[ "Hacl.Meta.Chacha20.Vec.vec_chacha20_core_higher", "Prims.l_True", "Hacl.Chacha20.Vec128.double_round_128" ]
[]
false
false
false
false
false
let chacha20_core_128 =
vec_chacha20_core_higher #4 True double_round_128
false
FStar.Tactics.Canon.fst
FStar.Tactics.Canon.step
val step (t: (unit -> Tac unit)) : Tac unit
val step (t: (unit -> Tac unit)) : Tac unit
let step (t : unit -> Tac unit) : Tac unit = apply_lemma (`trans); t ()
{ "file_name": "ulib/FStar.Tactics.Canon.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 8, "end_line": 127, "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", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.Arith.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Order.fst.checked", "FStar.Mul.fst.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Order", "short_module": "O" }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2.Arith", "short_module": null }, { "abbrev": false, "full_module...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: (_: Prims.unit -> FStar.Tactics.Effect.Tac Prims.unit) -> FStar.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.unit", "FStar.Tactics.V2.Derived.apply_lemma" ]
[]
false
true
false
false
false
let step (t: (unit -> Tac unit)) : Tac unit =
apply_lemma (`trans); t ()
false
FStar.Tactics.Canon.fst
FStar.Tactics.Canon.canon
val canon: Prims.unit -> Tac unit
val canon: Prims.unit -> Tac unit
let canon () : Tac unit = pointwise canon_point_entry
{ "file_name": "ulib/FStar.Tactics.Canon.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 31, "end_line": 281, "start_col": 0, "start_line": 280 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.Arith.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Order.fst.checked", "FStar.Mul.fst.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Order", "short_module": "O" }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2.Arith", "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 -> FStar.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.unit", "FStar.Tactics.V2.Derived.pointwise", "FStar.Tactics.Canon.canon_point_entry" ]
[]
false
true
false
false
false
let canon () : Tac unit =
pointwise canon_point_entry
false
Spec.Hash.Lemmas.fst
Spec.Hash.Lemmas.update_multi_zero
val update_multi_zero (a: hash_alg { not (is_blake a)} ) (h: words_state a): Lemma (ensures (update_multi a h () S.empty == h))
val update_multi_zero (a: hash_alg { not (is_blake a)} ) (h: words_state a): Lemma (ensures (update_multi a h () S.empty == h))
let update_multi_zero a h = match a with | MD5 | SHA1 | SHA2_224 | SHA2_256 | SHA2_384 | SHA2_512 -> Lib.UpdateMulti.update_multi_zero (block_length a) (Spec.Agile.Hash.update a) h | SHA3_224 | SHA3_256 | SHA3_384 | SHA3_512 | Shake128 | Shake256 -> let rateInBytes = rate a / 8 in let f = Spec.SHA3.ab...
{ "file_name": "specs/lemmas/Spec.Hash.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 96, "end_line": 25, "start_col": 0, "start_line": 15 }
module Spec.Hash.Lemmas module S = FStar.Seq open Lib.IntTypes open Spec.Agile.Hash open Spec.Hash.Definitions friend Spec.Agile.Hash (** Lemmas about the behavior of update_multi / update_last *) #push-options "--fuel 0 --ifuel 1 --z3rlimit 50"
{ "checked_file": "/", "dependencies": [ "Spec.SHA3.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fst.checked", "Spec.Agile.Hash.fst.checked", "prims.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", ...
[ { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_module": "Lib.IntTypes", "short_module": null }, { "abbrev": true, "full_mo...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 1, "max_fuel": 0, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Hash.Definitions.hash_alg{Prims.op_Negation (Spec.Hash.Definitions.is_blake a)} -> h: Spec.Hash.Definitions.words_state a -> FStar.Pervasives.Lemma (ensures Spec.Agile.Hash.update_multi a h () FStar.Seq.Base.empty == h)
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.Hash.Definitions.hash_alg", "Prims.b2t", "Prims.op_Negation", "Spec.Hash.Definitions.is_blake", "Spec.Hash.Definitions.words_state", "Lib.UpdateMulti.update_multi_zero", "Spec.Hash.Definitions.block_length", "Spec.Agile.Hash.update", "Lib.LoopCombinators.eq_repeati0", "Spec.SHA3.state", "L...
[]
false
false
true
false
false
let update_multi_zero a h =
match a with | MD5 | SHA1 | SHA2_224 | SHA2_256 | SHA2_384 | SHA2_512 -> Lib.UpdateMulti.update_multi_zero (block_length a) (Spec.Agile.Hash.update a) h | SHA3_224 | SHA3_256 | SHA3_384 | SHA3_512 | Shake128 | Shake256 -> let rateInBytes = rate a / 8 in let f = Spec.SHA3.absorb_inner rateInBytes in Lib.Sequence.l...
false
FStar.Tactics.Canon.fst
FStar.Tactics.Canon.canon_point
val canon_point : expr -> Tac expr
val canon_point : expr -> Tac expr
let rec canon_point e = let skip () : Tac expr = trefl (); e in match e with // Evaluate constants | Plus (Lit a) (Lit b) -> norm [primops]; trefl (); Lit (a + b) | Mult (Lit a) (Lit b) -> norm [delta; primops]; // Need delta to turn op_Star into op_Mult...
{ "file_name": "ulib/FStar.Tactics.Canon.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 15, "end_line": 254, "start_col": 8, "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", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.Arith.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Order.fst.checked", "FStar.Mul.fst.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Order", "short_module": "O" }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2.Arith", "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
e: FStar.Reflection.V2.Arith.expr -> FStar.Tactics.Effect.Tac FStar.Reflection.V2.Arith.expr
FStar.Tactics.Effect.Tac
[]
[]
[ "FStar.Reflection.V2.Arith.expr", "Prims.int", "FStar.Reflection.V2.Arith.Lit", "Prims.op_Addition", "Prims.unit", "FStar.Tactics.V2.Derived.trefl", "FStar.Stubs.Tactics.V2.Builtins.norm", "Prims.Cons", "FStar.Pervasives.norm_step", "FStar.Pervasives.primops", "Prims.Nil", "FStar.Mul.op_Star",...
[ "recursion" ]
false
true
false
false
false
let rec canon_point e =
let skip () : Tac expr = trefl (); e in match e with | Plus (Lit a) (Lit b) -> norm [primops]; trefl (); Lit (a + b) | Mult (Lit a) (Lit b) -> norm [delta; primops]; trefl (); Lit (a * b) | Neg e -> step_lemma (`neg_minus_one); canon_point (Mult (Lit (- 1)) e) | Mult a (Plus b c) -> step_lemma (`d...
false
Spec.Hash.Lemmas.fst
Spec.Hash.Lemmas.lemma_blocki_aux2
val lemma_blocki_aux2 (a: blake_alg) (s1 s2: bytes) (nb1 nb2: nat) (i: nat{i < nb2}) : Lemma (requires S.length s1 == nb1 * block_length a /\ S.length s2 == nb2 * block_length a) (ensures Spec.Blake2.get_blocki (to_blake_alg a) s2 i == Spec.Blake2.get_blocki (to_blake_alg a) (S.append s1 s2) (...
val lemma_blocki_aux2 (a: blake_alg) (s1 s2: bytes) (nb1 nb2: nat) (i: nat{i < nb2}) : Lemma (requires S.length s1 == nb1 * block_length a /\ S.length s2 == nb2 * block_length a) (ensures Spec.Blake2.get_blocki (to_blake_alg a) s2 i == Spec.Blake2.get_blocki (to_blake_alg a) (S.append s1 s2) (...
let lemma_blocki_aux2 (a:blake_alg) (s1 s2:bytes) (nb1 nb2:nat) (i:nat{i < nb2}) : Lemma (requires S.length s1 == nb1 * block_length a /\ S.length s2 == nb2 * block_length a) (ensures Spec.Blake2.get_blocki (to_blake_alg a) s2 i == Spec.Blake2.get_blocki (to_blake_alg a) (S.append s1 s2...
{ "file_name": "specs/lemmas/Spec.Hash.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 9, "end_line": 106, "start_col": 0, "start_line": 83 }
module Spec.Hash.Lemmas module S = FStar.Seq open Lib.IntTypes open Spec.Agile.Hash open Spec.Hash.Definitions friend Spec.Agile.Hash (** Lemmas about the behavior of update_multi / update_last *) #push-options "--fuel 0 --ifuel 1 --z3rlimit 50" let update_multi_zero a h = match a with | MD5 | SHA1 | SHA2_224...
{ "checked_file": "/", "dependencies": [ "Spec.SHA3.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fst.checked", "Spec.Agile.Hash.fst.checked", "prims.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", ...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Hash.Definitions.blake_alg -> s1: Spec.Hash.Definitions.bytes -> s2: Spec.Hash.Definitions.bytes -> nb1: Prims.nat -> nb2: Prims.nat -> i: Prims.nat{i < nb2} -> FStar.Pervasives.Lemma (requires FStar.Seq.Base.length s1 == nb1 * Spec.Hash.Definitions.block_length a /\ ...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.Hash.Definitions.blake_alg", "Spec.Hash.Definitions.bytes", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "FStar.Calc.calc_finish", "Spec.Blake2.Definitions.block_s", "Prims.eq2", "Spec.Blake2.get_blocki", "Prims.op_Addition", "Prims.Cons", "FStar.Preorder.relation", "Prims.Nil", "P...
[]
false
false
true
false
false
let lemma_blocki_aux2 (a: blake_alg) (s1 s2: bytes) (nb1 nb2: nat) (i: nat{i < nb2}) : Lemma (requires S.length s1 == nb1 * block_length a /\ S.length s2 == nb2 * block_length a) (ensures Spec.Blake2.get_blocki (to_blake_alg a) s2 i == Spec.Blake2.get_blocki (to_blake_alg a) (S.append s1 s2) (...
let s = s1 `S.append` s2 in let a' = to_blake_alg a in calc ( == ) { Spec.Blake2.get_blocki a' s (i + nb1); ( == ) { () } S.slice s ((i + nb1) * block_length a) ((i + nb1 + 1) * block_length a); ( == ) { () } S.slice s (i * block_length a + nb1 * block_length a) ((i + 1) * block_length a + nb1 * block...
false
TwoLockQueue.fst
TwoLockQueue.full
val full : Steel.FractionalPermission.perm
let full = full_perm
{ "file_name": "share/steel/examples/steel/TwoLockQueue.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 20, "end_line": 30, "start_col": 0, "start_line": 30 }
module TwoLockQueue open FStar.Ghost open Steel.Memory open Steel.Effect.Atomic open Steel.Effect open Steel.FractionalPermission open Steel.Reference open Steel.SpinLock module L = FStar.List.Tot module U = Steel.Utils module Q = Queue /// This module provides an implementation of Michael and Scott's two lock queue...
{ "checked_file": "/", "dependencies": [ "Steel.Utils.fst.checked", "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", "Queue.fsti.check...
[ { "abbrev": true, "full_module": "Queue", "short_module": "Q" }, { "abbrev": true, "full_module": "Steel.Utils", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Steel.SpinLock"...
{ "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
Steel.FractionalPermission.perm
Prims.Tot
[ "total" ]
[]
[ "Steel.FractionalPermission.full_perm" ]
[]
false
false
false
true
false
let full =
full_perm
false
Spec.Hash.Lemmas.fst
Spec.Hash.Lemmas.lemma_update_aux2
val lemma_update_aux2 (a: blake_alg) (s1 s2: bytes) (nb1 nb2 prevlen1 prevlen2: nat) (i: nat{i < nb2}) (acc: words_state a) : Lemma (requires S.length s1 == nb1 * block_length a /\ S.length s2 == nb2 * block_length a /\ prevlen1 % block_length a == 0 /\ prevlen2 =...
val lemma_update_aux2 (a: blake_alg) (s1 s2: bytes) (nb1 nb2 prevlen1 prevlen2: nat) (i: nat{i < nb2}) (acc: words_state a) : Lemma (requires S.length s1 == nb1 * block_length a /\ S.length s2 == nb2 * block_length a /\ prevlen1 % block_length a == 0 /\ prevlen2 =...
let lemma_update_aux2 (a:blake_alg) (s1 s2:bytes) (nb1 nb2:nat) (prevlen1 prevlen2:nat) (i:nat{i < nb2}) (acc:words_state a) : Lemma (requires S.length s1 == nb1 * block_length a /\ S.length s2 == nb2 * block_length a /\ prevlen1 % block_length a == 0 /\ prevlen2 = prevlen1 + S.length s1 /...
{ "file_name": "specs/lemmas/Spec.Hash.Lemmas.fst", "git_rev": "eb1badfa34c70b0bbe0fe24fe0f49fb1295c7872", "git_url": "https://github.com/project-everest/hacl-star.git", "project_name": "hacl-star" }
{ "end_col": 5, "end_line": 151, "start_col": 0, "start_line": 108 }
module Spec.Hash.Lemmas module S = FStar.Seq open Lib.IntTypes open Spec.Agile.Hash open Spec.Hash.Definitions friend Spec.Agile.Hash (** Lemmas about the behavior of update_multi / update_last *) #push-options "--fuel 0 --ifuel 1 --z3rlimit 50" let update_multi_zero a h = match a with | MD5 | SHA1 | SHA2_224...
{ "checked_file": "/", "dependencies": [ "Spec.SHA3.fst.checked", "Spec.Hash.Definitions.fst.checked", "Spec.Blake2.fst.checked", "Spec.Agile.Hash.fst.checked", "Spec.Agile.Hash.fst.checked", "prims.fst.checked", "Lib.UpdateMulti.fst.checked", "Lib.Sequence.Lemmas.fsti.checked", ...
[ { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "Spec.Hash.Definitions", "short_module": null }, { "abbrev": false, "full_module": "Spec.Agile.Hash", "short_module": null }, { "abbrev": false, "full_modu...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 0, "initial_ifuel": 0, "max_fuel": 0, "max_ifuel": 0, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Spec.Hash.Definitions.blake_alg -> s1: Spec.Hash.Definitions.bytes -> s2: Spec.Hash.Definitions.bytes -> nb1: Prims.nat -> nb2: Prims.nat -> prevlen1: Prims.nat -> prevlen2: Prims.nat -> i: Prims.nat{i < nb2} -> acc: Spec.Hash.Definitions.words_state a -> FStar.Pervasives.Lemma...
FStar.Pervasives.Lemma
[ "lemma" ]
[]
[ "Spec.Hash.Definitions.blake_alg", "Spec.Hash.Definitions.bytes", "Prims.nat", "Prims.b2t", "Prims.op_LessThan", "Spec.Hash.Definitions.words_state", "FStar.Calc.calc_finish", "Spec.Blake2.Definitions.state", "Spec.Hash.Definitions.to_blake_alg", "Prims.eq2", "Prims.op_Addition", "Prims.Cons",...
[]
false
false
true
false
false
let lemma_update_aux2 (a: blake_alg) (s1 s2: bytes) (nb1 nb2 prevlen1 prevlen2: nat) (i: nat{i < nb2}) (acc: words_state a) : Lemma (requires S.length s1 == nb1 * block_length a /\ S.length s2 == nb2 * block_length a /\ prevlen1 % block_length a == 0 /\ prevlen2 =...
let s = s1 `S.append` s2 in let a' = to_blake_alg a in let open Spec.Blake2 in let f1 = blake2_update1 (to_blake_alg a) prevlen1 s in let f2 = blake2_update1 (to_blake_alg a) prevlen2 s2 in let totlen1 = prevlen1 + (i + nb1 + 1) * size_block a' in let totlen2 = prevlen2 + (i + 1) * size_block a' in calc ( == ) { totl...
false
FStar.Tactics.Canon.fst
FStar.Tactics.Canon.canon_point_entry
val canon_point_entry: Prims.unit -> Tac unit
val canon_point_entry: Prims.unit -> Tac unit
let canon_point_entry () : Tac unit = norm [primops]; let g = cur_goal () in match term_as_formula g with | Comp (Eq _) l r -> begin match run_tm (is_arith_expr l) with | Inr e -> (let _e = canon_point e in ()) | Inl _ -> trefl () end | _ -> fail ("impossible:...
{ "file_name": "ulib/FStar.Tactics.Canon.fst", "git_rev": "10183ea187da8e8c426b799df6c825e24c0767d3", "git_url": "https://github.com/FStarLang/FStar.git", "project_name": "FStar" }
{ "end_col": 48, "end_line": 277, "start_col": 0, "start_line": 267 }
(* Copyright 2008-2018 Microsoft Research Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agre...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Tactics.V2.fst.checked", "FStar.Reflection.V2.Arith.fst.checked", "FStar.Reflection.V2.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Order.fst.checked", "FStar.Mul.fst.checked" ], "interface_file": false, ...
[ { "abbrev": true, "full_module": "FStar.Order", "short_module": "O" }, { "abbrev": false, "full_module": "FStar.Mul", "short_module": null }, { "abbrev": false, "full_module": "FStar.Reflection.V2.Arith", "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 -> FStar.Tactics.Effect.Tac Prims.unit
FStar.Tactics.Effect.Tac
[]
[]
[ "Prims.unit", "FStar.Pervasives.Native.option", "FStar.Stubs.Reflection.Types.typ", "FStar.Tactics.NamedView.term", "FStar.Reflection.V2.Arith.expr", "FStar.Tactics.Canon.canon_point", "Prims.string", "FStar.Tactics.V2.Derived.trefl", "FStar.Pervasives.either", "FStar.Reflection.V2.Arith.run_tm", ...
[]
false
true
false
false
false
let canon_point_entry () : Tac unit =
norm [primops]; let g = cur_goal () in match term_as_formula g with | Comp (Eq _) l r -> (match run_tm (is_arith_expr l) with | Inr e -> (let _e = canon_point e in ()) | Inl _ -> trefl ()) | _ -> fail ("impossible: " ^ term_to_string g)
false
TwoLockQueue.fst
TwoLockQueue.half
val half : Steel.FractionalPermission.perm
let half = half_perm full
{ "file_name": "share/steel/examples/steel/TwoLockQueue.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 25, "end_line": 32, "start_col": 0, "start_line": 32 }
module TwoLockQueue open FStar.Ghost open Steel.Memory open Steel.Effect.Atomic open Steel.Effect open Steel.FractionalPermission open Steel.Reference open Steel.SpinLock module L = FStar.List.Tot module U = Steel.Utils module Q = Queue /// This module provides an implementation of Michael and Scott's two lock queue...
{ "checked_file": "/", "dependencies": [ "Steel.Utils.fst.checked", "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", "Queue.fsti.check...
[ { "abbrev": true, "full_module": "Queue", "short_module": "Q" }, { "abbrev": true, "full_module": "Steel.Utils", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Steel.SpinLock"...
{ "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
Steel.FractionalPermission.perm
Prims.Tot
[ "total" ]
[]
[ "Steel.FractionalPermission.half_perm", "TwoLockQueue.full" ]
[]
false
false
false
true
false
let half =
half_perm full
false
Trees.fst
Trees.kv_tree
val kv_tree : a: Type -> b: Type -> Type
let kv_tree (a: Type) (b: Type) = tree (node_data a b)
{ "file_name": "share/steel/examples/steel/Trees.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 54, "end_line": 22, "start_col": 0, "start_line": 22 }
module Trees module M = FStar.Math.Lib #set-options "--fuel 1 --ifuel 1 --z3rlimit 20" (*** Type definitions *) (**** The tree structure *) type tree (a: Type) = | Leaf : tree a | Node: data: a -> left: tree a -> right: tree a -> tree a (**** Binary search trees *) type node_data (a b: Type) = { key: a; ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Math.Lib.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "Trees.fst" }
[ { "abbrev": true, "full_module": "FStar.Math.Lib", "short_module": "M" }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> b: Type -> Type
Prims.Tot
[ "total" ]
[]
[ "Trees.tree", "Trees.node_data" ]
[]
false
false
false
true
true
let kv_tree (a b: Type) =
tree (node_data a b)
false
TwoLockQueue.fst
TwoLockQueue.snd
val snd : x: (_ * _) -> _
let snd x = snd x
{ "file_name": "share/steel/examples/steel/TwoLockQueue.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 17, "end_line": 38, "start_col": 0, "start_line": 38 }
module TwoLockQueue open FStar.Ghost open Steel.Memory open Steel.Effect.Atomic open Steel.Effect open Steel.FractionalPermission open Steel.Reference open Steel.SpinLock module L = FStar.List.Tot module U = Steel.Utils module Q = Queue /// This module provides an implementation of Michael and Scott's two lock queue...
{ "checked_file": "/", "dependencies": [ "Steel.Utils.fst.checked", "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", "Queue.fsti.check...
[ { "abbrev": true, "full_module": "Queue", "short_module": "Q" }, { "abbrev": true, "full_module": "Steel.Utils", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Steel.SpinLock"...
{ "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: (_ * _) -> _
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.snd" ]
[]
false
false
false
true
false
let snd x =
snd x
false
Trees.fst
Trees.key_left
val key_left : compare: Trees.cmp a -> root: a -> key: a -> Prims.bool
let key_left (#a: Type) (compare:cmp a) (root key: a) = compare root key >= 0
{ "file_name": "share/steel/examples/steel/Trees.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 23, "end_line": 37, "start_col": 0, "start_line": 36 }
module Trees module M = FStar.Math.Lib #set-options "--fuel 1 --ifuel 1 --z3rlimit 20" (*** Type definitions *) (**** The tree structure *) type tree (a: Type) = | Leaf : tree a | Node: data: a -> left: tree a -> right: tree a -> tree a (**** Binary search trees *) type node_data (a b: Type) = { key: a; ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Math.Lib.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "Trees.fst" }
[ { "abbrev": true, "full_module": "FStar.Math.Lib", "short_module": "M" }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
compare: Trees.cmp a -> root: a -> key: a -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Trees.cmp", "Prims.op_GreaterThanOrEqual", "Prims.bool" ]
[]
false
false
false
true
false
let key_left (#a: Type) (compare: cmp a) (root key: a) =
compare root key >= 0
false
TwoLockQueue.fst
TwoLockQueue.fst
val fst : x: (_ * _) -> _
let fst x = fst x
{ "file_name": "share/steel/examples/steel/TwoLockQueue.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 17, "end_line": 37, "start_col": 0, "start_line": 37 }
module TwoLockQueue open FStar.Ghost open Steel.Memory open Steel.Effect.Atomic open Steel.Effect open Steel.FractionalPermission open Steel.Reference open Steel.SpinLock module L = FStar.List.Tot module U = Steel.Utils module Q = Queue /// This module provides an implementation of Michael and Scott's two lock queue...
{ "checked_file": "/", "dependencies": [ "Steel.Utils.fst.checked", "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", "Queue.fsti.check...
[ { "abbrev": true, "full_module": "Queue", "short_module": "Q" }, { "abbrev": true, "full_module": "Steel.Utils", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Steel.SpinLock"...
{ "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: (_ * _) -> _
Prims.Tot
[ "total" ]
[]
[ "FStar.Pervasives.Native.tuple2", "FStar.Pervasives.Native.fst" ]
[]
false
false
false
true
false
let fst x =
fst x
false
Trees.fst
Trees.bst
val bst : a: Type -> cmp: Trees.cmp a -> Type
let bst (a: Type) (cmp:cmp a) = x:tree a {is_bst cmp x}
{ "file_name": "share/steel/examples/steel/Trees.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 55, "end_line": 50, "start_col": 0, "start_line": 50 }
module Trees module M = FStar.Math.Lib #set-options "--fuel 1 --ifuel 1 --z3rlimit 20" (*** Type definitions *) (**** The tree structure *) type tree (a: Type) = | Leaf : tree a | Node: data: a -> left: tree a -> right: tree a -> tree a (**** Binary search trees *) type node_data (a b: Type) = { key: a; ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Math.Lib.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "Trees.fst" }
[ { "abbrev": true, "full_module": "FStar.Math.Lib", "short_module": "M" }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> cmp: Trees.cmp a -> Type
Prims.Tot
[ "total" ]
[]
[ "Trees.cmp", "Trees.tree", "Prims.b2t", "Trees.is_bst" ]
[]
false
false
false
true
true
let bst (a: Type) (cmp: cmp a) =
x: tree a {is_bst cmp x}
false
Trees.fst
Trees.key_right
val key_right : compare: Trees.cmp a -> root: a -> key: a -> Prims.bool
let key_right (#a: Type) (compare : cmp a) (root key: a) = compare root key <= 0
{ "file_name": "share/steel/examples/steel/Trees.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 23, "end_line": 40, "start_col": 0, "start_line": 39 }
module Trees module M = FStar.Math.Lib #set-options "--fuel 1 --ifuel 1 --z3rlimit 20" (*** Type definitions *) (**** The tree structure *) type tree (a: Type) = | Leaf : tree a | Node: data: a -> left: tree a -> right: tree a -> tree a (**** Binary search trees *) type node_data (a b: Type) = { key: a; ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Math.Lib.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "Trees.fst" }
[ { "abbrev": true, "full_module": "FStar.Math.Lib", "short_module": "M" }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
compare: Trees.cmp a -> root: a -> key: a -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Trees.cmp", "Prims.op_LessThanOrEqual", "Prims.bool" ]
[]
false
false
false
true
false
let key_right (#a: Type) (compare: cmp a) (root key: a) =
compare root key <= 0
false
TwoLockQueue.fst
TwoLockQueue.lock_inv
val lock_inv : ptr: Steel.Reference.ref (Queue.Def.t a) -> ghost: Steel.Reference.ghost_ref (Queue.Def.t a) -> Steel.Effect.Common.vprop
let lock_inv #a (ptr:ref (Q.t a)) (ghost:ghost_ref (Q.t a)) = h_exists (fun (v:Q.t a) -> pts_to ptr full v `star` ghost_pts_to ghost half v)
{ "file_name": "share/steel/examples/steel/TwoLockQueue.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 32, "end_line": 81, "start_col": 0, "start_line": 78 }
module TwoLockQueue open FStar.Ghost open Steel.Memory open Steel.Effect.Atomic open Steel.Effect open Steel.FractionalPermission open Steel.Reference open Steel.SpinLock module L = FStar.List.Tot module U = Steel.Utils module Q = Queue /// This module provides an implementation of Michael and Scott's two lock queue...
{ "checked_file": "/", "dependencies": [ "Steel.Utils.fst.checked", "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", "Queue.fsti.check...
[ { "abbrev": true, "full_module": "Queue", "short_module": "Q" }, { "abbrev": true, "full_module": "Steel.Utils", "short_module": "U" }, { "abbrev": true, "full_module": "FStar.List.Tot", "short_module": "L" }, { "abbrev": false, "full_module": "Steel.SpinLock"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 2, "initial_ifuel": 1, "max_fuel": 8, "max_ifuel": 2, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
ptr: Steel.Reference.ref (Queue.Def.t a) -> ghost: Steel.Reference.ghost_ref (Queue.Def.t a) -> Steel.Effect.Common.vprop
Prims.Tot
[ "total" ]
[]
[ "Steel.Reference.ref", "Queue.Def.t", "Steel.Reference.ghost_ref", "Steel.Effect.Atomic.h_exists", "Steel.Effect.Common.star", "Steel.Reference.pts_to", "TwoLockQueue.full", "Steel.Reference.ghost_pts_to", "TwoLockQueue.half", "Steel.Effect.Common.vprop" ]
[]
false
false
false
true
false
let lock_inv #a (ptr: ref (Q.t a)) (ghost: ghost_ref (Q.t a)) =
h_exists (fun (v: Q.t a) -> (pts_to ptr full v) `star` (ghost_pts_to ghost half v))
false
Trees.fst
Trees.forall_keys
val forall_keys (#a: Type) (t: tree a) (cond: (a -> bool)) : bool
val forall_keys (#a: Type) (t: tree a) (cond: (a -> bool)) : bool
let rec forall_keys (#a: Type) (t: tree a) (cond: a -> bool) : bool = match t with | Leaf -> true | Node data left right -> cond data && forall_keys left cond && forall_keys right cond
{ "file_name": "share/steel/examples/steel/Trees.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 64, "end_line": 34, "start_col": 0, "start_line": 30 }
module Trees module M = FStar.Math.Lib #set-options "--fuel 1 --ifuel 1 --z3rlimit 20" (*** Type definitions *) (**** The tree structure *) type tree (a: Type) = | Leaf : tree a | Node: data: a -> left: tree a -> right: tree a -> tree a (**** Binary search trees *) type node_data (a b: Type) = { key: a; ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Math.Lib.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "Trees.fst" }
[ { "abbrev": true, "full_module": "FStar.Math.Lib", "short_module": "M" }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
t: Trees.tree a -> cond: (_: a -> Prims.bool) -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Trees.tree", "Prims.bool", "Prims.op_AmpAmp", "Trees.forall_keys" ]
[ "recursion" ]
false
false
false
true
false
let rec forall_keys (#a: Type) (t: tree a) (cond: (a -> bool)) : bool =
match t with | Leaf -> true | Node data left right -> cond data && forall_keys left cond && forall_keys right cond
false
Trees.fst
Trees.is_avl
val is_avl (#a: Type) (cmp: cmp a) (x: tree a) : prop
val is_avl (#a: Type) (cmp: cmp a) (x: tree a) : prop
let is_avl (#a: Type) (cmp:cmp a) (x: tree a) : prop = is_bst cmp x /\ is_balanced x
{ "file_name": "share/steel/examples/steel/Trees.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 31, "end_line": 159, "start_col": 0, "start_line": 158 }
module Trees module M = FStar.Math.Lib #set-options "--fuel 1 --ifuel 1 --z3rlimit 20" (*** Type definitions *) (**** The tree structure *) type tree (a: Type) = | Leaf : tree a | Node: data: a -> left: tree a -> right: tree a -> tree a (**** Binary search trees *) type node_data (a b: Type) = { key: a; ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Math.Lib.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "Trees.fst" }
[ { "abbrev": true, "full_module": "FStar.Math.Lib", "short_module": "M" }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
cmp: Trees.cmp a -> x: Trees.tree a -> Prims.prop
Prims.Tot
[ "total" ]
[]
[ "Trees.cmp", "Trees.tree", "Prims.l_and", "Prims.b2t", "Trees.is_bst", "Trees.is_balanced", "Prims.prop" ]
[]
false
false
false
true
true
let is_avl (#a: Type) (cmp: cmp a) (x: tree a) : prop =
is_bst cmp x /\ is_balanced x
false
Trees.fst
Trees.mem
val mem (#a: Type) (r: tree a) (x: a) : prop
val mem (#a: Type) (r: tree a) (x: a) : prop
let rec mem (#a: Type) (r: tree a) (x: a) : prop = match r with | Leaf -> False | Node data left right -> (data == x) \/ (mem right x) \/ mem left x
{ "file_name": "share/steel/examples/steel/Trees.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 46, "end_line": 60, "start_col": 0, "start_line": 56 }
module Trees module M = FStar.Math.Lib #set-options "--fuel 1 --ifuel 1 --z3rlimit 20" (*** Type definitions *) (**** The tree structure *) type tree (a: Type) = | Leaf : tree a | Node: data: a -> left: tree a -> right: tree a -> tree a (**** Binary search trees *) type node_data (a b: Type) = { key: a; ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Math.Lib.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "Trees.fst" }
[ { "abbrev": true, "full_module": "FStar.Math.Lib", "short_module": "M" }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
r: Trees.tree a -> x: a -> Prims.prop
Prims.Tot
[ "total" ]
[]
[ "Trees.tree", "Prims.l_False", "Prims.l_or", "Prims.eq2", "Trees.mem", "Prims.prop" ]
[ "recursion" ]
false
false
false
true
true
let rec mem (#a: Type) (r: tree a) (x: a) : prop =
match r with | Leaf -> False | Node data left right -> (data == x) \/ (mem right x) \/ mem left x
false
Trees.fst
Trees.is_bst
val is_bst (#a: Type) (compare: cmp a) (x: tree a) : bool
val is_bst (#a: Type) (compare: cmp a) (x: tree a) : bool
let rec is_bst (#a: Type) (compare : cmp a) (x: tree a) : bool = match x with | Leaf -> true | Node data left right -> is_bst compare left && is_bst compare right && forall_keys left (key_left compare data) && forall_keys right (key_right compare data)
{ "file_name": "share/steel/examples/steel/Trees.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 46, "end_line": 48, "start_col": 0, "start_line": 42 }
module Trees module M = FStar.Math.Lib #set-options "--fuel 1 --ifuel 1 --z3rlimit 20" (*** Type definitions *) (**** The tree structure *) type tree (a: Type) = | Leaf : tree a | Node: data: a -> left: tree a -> right: tree a -> tree a (**** Binary search trees *) type node_data (a b: Type) = { key: a; ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Math.Lib.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "Trees.fst" }
[ { "abbrev": true, "full_module": "FStar.Math.Lib", "short_module": "M" }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
compare: Trees.cmp a -> x: Trees.tree a -> Prims.bool
Prims.Tot
[ "total" ]
[]
[ "Trees.cmp", "Trees.tree", "Prims.op_AmpAmp", "Trees.is_bst", "Trees.forall_keys", "Trees.key_left", "Trees.key_right", "Prims.bool" ]
[ "recursion" ]
false
false
false
true
false
let rec is_bst (#a: Type) (compare: cmp a) (x: tree a) : bool =
match x with | Leaf -> true | Node data left right -> is_bst compare left && is_bst compare right && forall_keys left (key_left compare data) && forall_keys right (key_right compare data)
false
Trees.fst
Trees.avl
val avl : a: Type -> cmp: Trees.cmp a -> Type
let avl (a: Type) (cmp:cmp a) = x: tree a {is_avl cmp x}
{ "file_name": "share/steel/examples/steel/Trees.fst", "git_rev": "f984200f79bdc452374ae994a5ca837496476c41", "git_url": "https://github.com/FStarLang/steel.git", "project_name": "steel" }
{ "end_col": 56, "end_line": 161, "start_col": 0, "start_line": 161 }
module Trees module M = FStar.Math.Lib #set-options "--fuel 1 --ifuel 1 --z3rlimit 20" (*** Type definitions *) (**** The tree structure *) type tree (a: Type) = | Leaf : tree a | Node: data: a -> left: tree a -> right: tree a -> tree a (**** Binary search trees *) type node_data (a b: Type) = { key: a; ...
{ "checked_file": "/", "dependencies": [ "prims.fst.checked", "FStar.Pervasives.fsti.checked", "FStar.Math.Lib.fst.checked", "FStar.Classical.fsti.checked" ], "interface_file": false, "source_file": "Trees.fst" }
[ { "abbrev": true, "full_module": "FStar.Math.Lib", "short_module": "M" }, { "abbrev": false, "full_module": "FStar.Pervasives", "short_module": null }, { "abbrev": false, "full_module": "Prims", "short_module": null }, { "abbrev": false, "full_module": "FStar"...
{ "detail_errors": false, "detail_hint_replay": false, "initial_fuel": 1, "initial_ifuel": 1, "max_fuel": 1, "max_ifuel": 1, "no_plugins": false, "no_smt": false, "no_tactics": false, "quake_hi": 1, "quake_keep": false, "quake_lo": 1, "retry": false, "reuse_hint_for": null, "smtencoding_el...
false
a: Type -> cmp: Trees.cmp a -> Type
Prims.Tot
[ "total" ]
[]
[ "Trees.cmp", "Trees.tree", "Trees.is_avl" ]
[]
false
false
false
true
true
let avl (a: Type) (cmp: cmp a) =
x: tree a {is_avl cmp x}
false